-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 15.1.0 - DI unchained & NgComponentOutlet Augmentation direct…
…ive (#78) * Add ng component outlet augmentation directive (#76) * Added ngComponent outlet augmentation directive * Updated ng component outlet directive and added tests * Added docs to ngComponentOutlet augmentation directive * ng component outlet augmentation directive - PR fix * Feature/35-DI-unchained (#77) * Added di unchained sub entry and its features * Added and updated docs for Di unchained decorators * Added documentation to DI unchained sub-package. * version 15.1.0 --------- Co-authored-by: Krisztofer Kunc <106075716+krisztofer-kunc@users.noreply.github.com> Co-authored-by: Krisztofer <krisztofer.kunc@adroitgroup.io>
- Loading branch information
1 parent
2b51ef0
commit a612bd0
Showing
22 changed files
with
867 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"repoId": "df053afb-d37e-49ab-8371-559ec36ce6fe", | ||
"lastSync": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @adroit-group/ng-utils/di-unchained | ||
|
||
Secondary entry point of `@adroit-group/ng-utils`. It can be used by importing from `@adroit-group/ng-utils/di-unchained`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "src/index.ts" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export { | ||
DI, | ||
DIContextProvider, | ||
Unchained, | ||
WithDIContext, | ||
} from './lib/decorators'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { bindDescriptor } from "./bind-descriptor"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export function bindCLass(protoOrCtor: object) { | ||
const protoMembers = Object.entries( | ||
Object.getOwnPropertyDescriptors(protoOrCtor) | ||
).filter( | ||
([member, descriptor]) => | ||
(typeof descriptor.value === 'function' && member !== 'constructor') || | ||
descriptor.get || | ||
descriptor.set | ||
); | ||
|
||
protoMembers.forEach(([member, descriptor]) => | ||
bindDescriptor(protoOrCtor, member, descriptor) | ||
); | ||
} |
Oops, something went wrong.