@nx-ddd/core 0.0.0-PLACEHOLDER
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/di/create-injector.d.ts +4 -0
- package/di/create-injector.js +21 -0
- package/di/create-injector.js.map +1 -0
- package/di/definition-factory.d.ts +24 -0
- package/di/definition-factory.js +22 -0
- package/di/definition-factory.js.map +1 -0
- package/di/forward_ref.d.ts +49 -0
- package/di/forward_ref.js +57 -0
- package/di/forward_ref.js.map +1 -0
- package/di/index.d.ts +3 -0
- package/di/index.js +7 -0
- package/di/index.js.map +1 -0
- package/di/injectable.d.ts +7 -0
- package/di/injectable.js +34 -0
- package/di/injectable.js.map +1 -0
- package/di/injector.d.ts +3 -0
- package/di/injector.js +23 -0
- package/di/injector.js.map +1 -0
- package/di/interface/defs.d.ts +181 -0
- package/di/interface/defs.js +137 -0
- package/di/interface/defs.js.map +1 -0
- package/di/interface/provider.d.ts +324 -0
- package/di/interface/provider.js +10 -0
- package/di/interface/provider.js.map +1 -0
- package/di/interface/type.d.ts +3 -0
- package/di/interface/type.js +3 -0
- package/di/interface/type.js.map +1 -0
- package/di/provider-collection.d.ts +7 -0
- package/di/provider-collection.js +45 -0
- package/di/provider-collection.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +7 -0
- package/index.js.map +1 -0
- package/nx-module/index.d.ts +2 -0
- package/nx-module/index.js +6 -0
- package/nx-module/index.js.map +1 -0
- package/nx-module/nx-module-ref.d.ts +15 -0
- package/nx-module/nx-module-ref.js +27 -0
- package/nx-module/nx-module-ref.js.map +1 -0
- package/nx-module/nx-module.d.ts +6 -0
- package/nx-module/nx-module.js +16 -0
- package/nx-module/nx-module.js.map +1 -0
- package/package.json +12 -0
- package/test-bed/index.d.ts +10 -0
- package/test-bed/index.js +32 -0
- package/test-bed/index.js.map +1 -0
- package/testing/index.d.ts +20 -0
- package/testing/index.js +32 -0
- package/testing/index.js.map +1 -0
- package/util/array_utils.d.ts +1 -0
- package/util/array_utils.js +8 -0
- package/util/array_utils.js.map +1 -0
- package/util/empty.d.ts +2 -0
- package/util/empty.js +6 -0
- package/util/empty.js.map +1 -0
- package/util/property.d.ts +19 -0
- package/util/property.js +34 -0
- package/util/property.js.map +1 -0
- package/util/stringify.d.ts +17 -0
- package/util/stringify.js +49 -0
- package/util/stringify.js.map +1 -0
package/util/empty.d.ts
ADDED
package/util/empty.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/core/src/util/empty.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAO,EAAE,CAAC;AACnB,QAAA,WAAW,GAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
export declare function getClosureSafeProperty<T>(objWithPropertyToExtract: T): string;
|
|
9
|
+
/**
|
|
10
|
+
* Sets properties on a target object from a source object, but only if
|
|
11
|
+
* the property doesn't already exist on the target object.
|
|
12
|
+
* @param target The target to set properties on
|
|
13
|
+
* @param source The source of the property keys and values to set
|
|
14
|
+
*/
|
|
15
|
+
export declare function fillProperties(target: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
}, source: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
}): void;
|
package/util/property.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.fillProperties = exports.getClosureSafeProperty = void 0;
|
|
11
|
+
function getClosureSafeProperty(objWithPropertyToExtract) {
|
|
12
|
+
for (let key in objWithPropertyToExtract) {
|
|
13
|
+
if (objWithPropertyToExtract[key] === getClosureSafeProperty) {
|
|
14
|
+
return key;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
throw Error('Could not find renamed property on target object.');
|
|
18
|
+
}
|
|
19
|
+
exports.getClosureSafeProperty = getClosureSafeProperty;
|
|
20
|
+
/**
|
|
21
|
+
* Sets properties on a target object from a source object, but only if
|
|
22
|
+
* the property doesn't already exist on the target object.
|
|
23
|
+
* @param target The target to set properties on
|
|
24
|
+
* @param source The source of the property keys and values to set
|
|
25
|
+
*/
|
|
26
|
+
function fillProperties(target, source) {
|
|
27
|
+
for (const key in source) {
|
|
28
|
+
if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {
|
|
29
|
+
target[key] = source[key];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.fillProperties = fillProperties;
|
|
34
|
+
//# sourceMappingURL=property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/core/src/util/property.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,SAAgB,sBAAsB,CAAI,wBAA2B;IACnE,KAAK,IAAI,GAAG,IAAI,wBAAwB,EAAE;QACxC,IAAI,wBAAwB,CAAC,GAAG,CAAC,KAAK,sBAA6B,EAAE;YACnE,OAAO,GAAG,CAAC;SACZ;KACF;IACD,MAAM,KAAK,CAAC,mDAAmD,CAAC,CAAC;AACnE,CAAC;AAPD,wDAOC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,MAA+B,EAAE,MAA+B;IAC7F,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YAC7D,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;SAC3B;KACF;AACH,CAAC;AAND,wCAMC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
export declare function stringify(token: any): string;
|
|
9
|
+
/**
|
|
10
|
+
* Concatenates two strings with separator, allocating new strings only when necessary.
|
|
11
|
+
*
|
|
12
|
+
* @param before before string.
|
|
13
|
+
* @param separator separator string.
|
|
14
|
+
* @param after after string.
|
|
15
|
+
* @returns concatenated string.
|
|
16
|
+
*/
|
|
17
|
+
export declare function concatStringsWithSpace(before: string | null, after: string | null): string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.concatStringsWithSpace = exports.stringify = void 0;
|
|
11
|
+
function stringify(token) {
|
|
12
|
+
if (typeof token === 'string') {
|
|
13
|
+
return token;
|
|
14
|
+
}
|
|
15
|
+
if (Array.isArray(token)) {
|
|
16
|
+
return '[' + token.map(stringify).join(', ') + ']';
|
|
17
|
+
}
|
|
18
|
+
if (token == null) {
|
|
19
|
+
return '' + token;
|
|
20
|
+
}
|
|
21
|
+
if (token.overriddenName) {
|
|
22
|
+
return `${token.overriddenName}`;
|
|
23
|
+
}
|
|
24
|
+
if (token.name) {
|
|
25
|
+
return `${token.name}`;
|
|
26
|
+
}
|
|
27
|
+
const res = token.toString();
|
|
28
|
+
if (res == null) {
|
|
29
|
+
return '' + res;
|
|
30
|
+
}
|
|
31
|
+
const newLineIndex = res.indexOf('\n');
|
|
32
|
+
return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
|
|
33
|
+
}
|
|
34
|
+
exports.stringify = stringify;
|
|
35
|
+
/**
|
|
36
|
+
* Concatenates two strings with separator, allocating new strings only when necessary.
|
|
37
|
+
*
|
|
38
|
+
* @param before before string.
|
|
39
|
+
* @param separator separator string.
|
|
40
|
+
* @param after after string.
|
|
41
|
+
* @returns concatenated string.
|
|
42
|
+
*/
|
|
43
|
+
function concatStringsWithSpace(before, after) {
|
|
44
|
+
return (before == null || before === '') ?
|
|
45
|
+
(after === null ? '' : after) :
|
|
46
|
+
((after == null || after === '') ? before : before + ' ' + after);
|
|
47
|
+
}
|
|
48
|
+
exports.concatStringsWithSpace = concatStringsWithSpace;
|
|
49
|
+
//# sourceMappingURL=stringify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/core/src/util/stringify.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEF,SAAgB,SAAS,CAAC,KAAU;IACnC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,OAAO,KAAK,CAAC;KACd;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;KACpD;IAED,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,OAAO,EAAE,GAAG,KAAK,CAAC;KACnB;IAED,IAAI,KAAK,CAAC,cAAc,EAAE;QACxB,OAAO,GAAG,KAAK,CAA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