@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.
Files changed (62) hide show
  1. package/README.md +11 -0
  2. package/di/create-injector.d.ts +4 -0
  3. package/di/create-injector.js +21 -0
  4. package/di/create-injector.js.map +1 -0
  5. package/di/definition-factory.d.ts +24 -0
  6. package/di/definition-factory.js +22 -0
  7. package/di/definition-factory.js.map +1 -0
  8. package/di/forward_ref.d.ts +49 -0
  9. package/di/forward_ref.js +57 -0
  10. package/di/forward_ref.js.map +1 -0
  11. package/di/index.d.ts +3 -0
  12. package/di/index.js +7 -0
  13. package/di/index.js.map +1 -0
  14. package/di/injectable.d.ts +7 -0
  15. package/di/injectable.js +34 -0
  16. package/di/injectable.js.map +1 -0
  17. package/di/injector.d.ts +3 -0
  18. package/di/injector.js +23 -0
  19. package/di/injector.js.map +1 -0
  20. package/di/interface/defs.d.ts +181 -0
  21. package/di/interface/defs.js +137 -0
  22. package/di/interface/defs.js.map +1 -0
  23. package/di/interface/provider.d.ts +324 -0
  24. package/di/interface/provider.js +10 -0
  25. package/di/interface/provider.js.map +1 -0
  26. package/di/interface/type.d.ts +3 -0
  27. package/di/interface/type.js +3 -0
  28. package/di/interface/type.js.map +1 -0
  29. package/di/provider-collection.d.ts +7 -0
  30. package/di/provider-collection.js +45 -0
  31. package/di/provider-collection.js.map +1 -0
  32. package/index.d.ts +3 -0
  33. package/index.js +7 -0
  34. package/index.js.map +1 -0
  35. package/nx-module/index.d.ts +2 -0
  36. package/nx-module/index.js +6 -0
  37. package/nx-module/index.js.map +1 -0
  38. package/nx-module/nx-module-ref.d.ts +15 -0
  39. package/nx-module/nx-module-ref.js +27 -0
  40. package/nx-module/nx-module-ref.js.map +1 -0
  41. package/nx-module/nx-module.d.ts +6 -0
  42. package/nx-module/nx-module.js +16 -0
  43. package/nx-module/nx-module.js.map +1 -0
  44. package/package.json +12 -0
  45. package/test-bed/index.d.ts +10 -0
  46. package/test-bed/index.js +32 -0
  47. package/test-bed/index.js.map +1 -0
  48. package/testing/index.d.ts +20 -0
  49. package/testing/index.js +32 -0
  50. package/testing/index.js.map +1 -0
  51. package/util/array_utils.d.ts +1 -0
  52. package/util/array_utils.js +8 -0
  53. package/util/array_utils.js.map +1 -0
  54. package/util/empty.d.ts +2 -0
  55. package/util/empty.js +6 -0
  56. package/util/empty.js.map +1 -0
  57. package/util/property.d.ts +19 -0
  58. package/util/property.js +34 -0
  59. package/util/property.js.map +1 -0
  60. package/util/stringify.d.ts +17 -0
  61. package/util/stringify.js +49 -0
  62. package/util/stringify.js.map +1 -0
@@ -0,0 +1,2 @@
1
+ export declare const EMPTY_OBJ: {};
2
+ export declare const EMPTY_ARRAY: any[];
package/util/empty.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMPTY_ARRAY = exports.EMPTY_OBJ = void 0;
4
+ exports.EMPTY_OBJ = {};
5
+ exports.EMPTY_ARRAY = [];
6
+ //# sourceMappingURL=empty.js.map
@@ -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;
@@ -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,CAAC,cAAc,EAAE,CAAC;KAClC;IAED,IAAI,KAAK,CAAC,IAAI,EAAE;QACd,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;KACxB;IAED,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAE7B,IAAI,GAAG,IAAI,IAAI,EAAE;QACf,OAAO,EAAE,GAAG,GAAG,CAAC;KACjB;IAED,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;AACpE,CAAC;AA7BA,8BA6BA;AAED;;;;;;;GAOG;AACH,SAAgB,sBAAsB,CAAC,MAAmB,EAAE,KAAkB;IAC5E,OAAO,CAAC,MAAM,IAAI,IAAI,IAAI,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC;QACtC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC;AACxE,CAAC;AAJD,wDAIC"}