@alterior/di 3.13.3 → 3.13.4

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 (131) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +12 -12
  3. package/dist/injection/facade/errors.d.ts +18 -18
  4. package/dist/injection/facade/errors.js +41 -41
  5. package/dist/injection/facade/errors.js.map +1 -1
  6. package/dist/injection/facade/lang.d.ts +46 -46
  7. package/dist/injection/facade/lang.js +45 -45
  8. package/dist/injection/facade/lang.js.map +1 -1
  9. package/dist/injection/facade/type.d.ts +22 -22
  10. package/dist/injection/facade/type.js +25 -25
  11. package/dist/injection/facade/type.js.map +1 -1
  12. package/dist/injection/forward_ref.d.ts +44 -44
  13. package/dist/injection/forward_ref.js +51 -52
  14. package/dist/injection/forward_ref.js.map +1 -1
  15. package/dist/injection/forward_ref.test.d.ts +8 -8
  16. package/dist/injection/index.d.ts +21 -21
  17. package/dist/injection/index.js +35 -35
  18. package/dist/injection/injection_token.d.ts +62 -62
  19. package/dist/injection/injection_token.js +73 -73
  20. package/dist/injection/injector.d.ts +94 -94
  21. package/dist/injection/injector.js +82 -82
  22. package/dist/injection/injector.js.map +1 -1
  23. package/dist/injection/injector.test.d.ts +8 -8
  24. package/dist/injection/metadata/annotations.d.ts +16 -16
  25. package/dist/injection/metadata/annotations.js +48 -48
  26. package/dist/injection/metadata/annotations.js.map +1 -1
  27. package/dist/injection/metadata/decorators.d.ts +138 -138
  28. package/dist/injection/metadata/decorators.js +160 -160
  29. package/dist/injection/metadata/index.d.ts +2 -2
  30. package/dist/injection/metadata/index.js +5 -5
  31. package/dist/injection/provider.d.ts +208 -208
  32. package/dist/injection/provider.js +13 -14
  33. package/dist/injection/provider.js.map +1 -1
  34. package/dist/injection/reflection/platform_reflection_capabilities.d.ts +26 -26
  35. package/dist/injection/reflection/platform_reflection_capabilities.js +9 -9
  36. package/dist/injection/reflection/reflection.d.ts +14 -14
  37. package/dist/injection/reflection/reflection.js +19 -19
  38. package/dist/injection/reflection/reflection_capabilities.d.ts +34 -34
  39. package/dist/injection/reflection/reflection_capabilities.js +173 -173
  40. package/dist/injection/reflection/reflection_capabilities.js.map +1 -1
  41. package/dist/injection/reflection/reflector.d.ts +36 -36
  42. package/dist/injection/reflection/reflector.js +61 -61
  43. package/dist/injection/reflection/reflector_reader.d.ts +22 -22
  44. package/dist/injection/reflection/reflector_reader.js +17 -17
  45. package/dist/injection/reflection/types.d.ts +10 -10
  46. package/dist/injection/reflection/types.js +9 -9
  47. package/dist/injection/reflective_errors.d.ts +144 -144
  48. package/dist/injection/reflective_errors.js +221 -222
  49. package/dist/injection/reflective_errors.js.map +1 -1
  50. package/dist/injection/reflective_injector.d.ts +281 -281
  51. package/dist/injection/reflective_injector.js +368 -368
  52. package/dist/injection/reflective_injector.js.map +1 -1
  53. package/dist/injection/reflective_injector.test.d.ts +8 -8
  54. package/dist/injection/reflective_injector.test.js.map +1 -1
  55. package/dist/injection/reflective_key.d.ts +43 -43
  56. package/dist/injection/reflective_key.js +84 -84
  57. package/dist/injection/reflective_key.js.map +1 -1
  58. package/dist/injection/reflective_key.test.d.ts +8 -8
  59. package/dist/injection/reflective_provider.d.ts +95 -95
  60. package/dist/injection/reflective_provider.js +233 -233
  61. package/dist/injection/reflective_provider.js.map +1 -1
  62. package/dist/modules.d.ts +36 -36
  63. package/dist/modules.js +30 -30
  64. package/dist/modules.js.map +1 -1
  65. package/dist/test.d.ts +1 -1
  66. package/dist.esm/index.d.ts +3 -3
  67. package/dist.esm/index.js +3 -3
  68. package/dist.esm/injection/facade/errors.d.ts +18 -18
  69. package/dist.esm/injection/facade/errors.js +33 -33
  70. package/dist.esm/injection/facade/lang.d.ts +46 -46
  71. package/dist.esm/injection/facade/lang.js +39 -39
  72. package/dist.esm/injection/facade/lang.js.map +1 -1
  73. package/dist.esm/injection/facade/type.d.ts +22 -22
  74. package/dist.esm/injection/facade/type.js +21 -21
  75. package/dist.esm/injection/forward_ref.d.ts +44 -44
  76. package/dist.esm/injection/forward_ref.js +47 -47
  77. package/dist.esm/injection/forward_ref.js.map +1 -1
  78. package/dist.esm/injection/forward_ref.test.d.ts +8 -8
  79. package/dist.esm/injection/index.d.ts +21 -21
  80. package/dist.esm/injection/index.js +20 -20
  81. package/dist.esm/injection/injection_token.d.ts +62 -62
  82. package/dist.esm/injection/injection_token.js +68 -68
  83. package/dist.esm/injection/injector.d.ts +94 -94
  84. package/dist.esm/injection/injector.js +77 -77
  85. package/dist.esm/injection/injector.js.map +1 -1
  86. package/dist.esm/injection/injector.test.d.ts +8 -8
  87. package/dist.esm/injection/metadata/annotations.d.ts +16 -16
  88. package/dist.esm/injection/metadata/annotations.js +45 -45
  89. package/dist.esm/injection/metadata/annotations.js.map +1 -1
  90. package/dist.esm/injection/metadata/decorators.d.ts +138 -138
  91. package/dist.esm/injection/metadata/decorators.js +157 -157
  92. package/dist.esm/injection/metadata/index.d.ts +2 -2
  93. package/dist.esm/injection/metadata/index.js +2 -2
  94. package/dist.esm/injection/provider.d.ts +208 -208
  95. package/dist.esm/injection/provider.js +10 -10
  96. package/dist.esm/injection/reflection/platform_reflection_capabilities.d.ts +26 -26
  97. package/dist.esm/injection/reflection/platform_reflection_capabilities.js +8 -8
  98. package/dist.esm/injection/reflection/reflection.d.ts +14 -14
  99. package/dist.esm/injection/reflection/reflection.js +15 -15
  100. package/dist.esm/injection/reflection/reflection_capabilities.d.ts +34 -34
  101. package/dist.esm/injection/reflection/reflection_capabilities.js +169 -169
  102. package/dist.esm/injection/reflection/reflection_capabilities.js.map +1 -1
  103. package/dist.esm/injection/reflection/reflector.d.ts +36 -36
  104. package/dist.esm/injection/reflection/reflector.js +57 -57
  105. package/dist.esm/injection/reflection/reflector_reader.d.ts +22 -22
  106. package/dist.esm/injection/reflection/reflector_reader.js +13 -13
  107. package/dist.esm/injection/reflection/types.d.ts +10 -10
  108. package/dist.esm/injection/reflection/types.js +8 -8
  109. package/dist.esm/injection/reflective_errors.d.ts +144 -144
  110. package/dist.esm/injection/reflective_errors.js +212 -212
  111. package/dist.esm/injection/reflective_errors.js.map +1 -1
  112. package/dist.esm/injection/reflective_injector.d.ts +281 -281
  113. package/dist.esm/injection/reflective_injector.js +363 -363
  114. package/dist.esm/injection/reflective_injector.js.map +1 -1
  115. package/dist.esm/injection/reflective_injector.test.d.ts +8 -8
  116. package/dist.esm/injection/reflective_injector.test.js.map +1 -1
  117. package/dist.esm/injection/reflective_key.d.ts +43 -43
  118. package/dist.esm/injection/reflective_key.js +79 -79
  119. package/dist.esm/injection/reflective_key.js.map +1 -1
  120. package/dist.esm/injection/reflective_key.test.d.ts +8 -8
  121. package/dist.esm/injection/reflective_provider.d.ts +95 -95
  122. package/dist.esm/injection/reflective_provider.js +224 -224
  123. package/dist.esm/injection/reflective_provider.js.map +1 -1
  124. package/dist.esm/modules.d.ts +36 -36
  125. package/dist.esm/modules.js +26 -26
  126. package/dist.esm/modules.js.map +1 -1
  127. package/dist.esm/test.d.ts +1 -1
  128. package/package.json +8 -8
  129. package/tsconfig.esm.tsbuildinfo +1 -0
  130. package/tsconfig.json +0 -2
  131. package/tsconfig.tsbuildinfo +1 -4883
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './injection/metadata';
2
- export * from './modules';
3
- export { Injector, InjectionToken, ReflectiveInjector, Provider, ClassProvider, ExistingProvider, FactoryProvider, TypeProvider, ValueProvider, Type, inject } from './injection';
1
+ export * from './injection/metadata';
2
+ export * from './modules';
3
+ export { Injector, InjectionToken, ReflectiveInjector, Provider, ClassProvider, ExistingProvider, FactoryProvider, TypeProvider, ValueProvider, Type, inject } from './injection';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inject = exports.Type = exports.ReflectiveInjector = exports.InjectionToken = exports.Injector = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./injection/metadata"), exports);
6
- tslib_1.__exportStar(require("./modules"), exports);
7
- var injection_1 = require("./injection");
8
- Object.defineProperty(exports, "Injector", { enumerable: true, get: function () { return injection_1.Injector; } });
9
- Object.defineProperty(exports, "InjectionToken", { enumerable: true, get: function () { return injection_1.InjectionToken; } });
10
- Object.defineProperty(exports, "ReflectiveInjector", { enumerable: true, get: function () { return injection_1.ReflectiveInjector; } });
11
- Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return injection_1.Type; } });
12
- Object.defineProperty(exports, "inject", { enumerable: true, get: function () { return injection_1.inject; } });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inject = exports.Type = exports.ReflectiveInjector = exports.InjectionToken = exports.Injector = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./injection/metadata"), exports);
6
+ tslib_1.__exportStar(require("./modules"), exports);
7
+ var injection_1 = require("./injection");
8
+ Object.defineProperty(exports, "Injector", { enumerable: true, get: function () { return injection_1.Injector; } });
9
+ Object.defineProperty(exports, "InjectionToken", { enumerable: true, get: function () { return injection_1.InjectionToken; } });
10
+ Object.defineProperty(exports, "ReflectiveInjector", { enumerable: true, get: function () { return injection_1.ReflectiveInjector; } });
11
+ Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return injection_1.Type; } });
12
+ Object.defineProperty(exports, "inject", { enumerable: true, get: function () { return injection_1.inject; } });
13
13
  //# sourceMappingURL=index.js.map
@@ -1,19 +1,19 @@
1
- import { DebugContext } from './lang';
2
- /**
3
- * @license
4
- * Copyright Google Inc. 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
- export declare const ERROR_TYPE = "ngType";
10
- export declare const ERROR_COMPONENT_TYPE = "ngComponentType";
11
- export declare const ERROR_DEBUG_CONTEXT = "ngDebugContext";
12
- export declare const ERROR_ORIGINAL_ERROR = "ngOriginalError";
13
- export declare const ERROR_LOGGER = "ngErrorLogger";
14
- export declare function getType(error: Error): Function;
15
- export declare function getDebugContext(error: Error): DebugContext;
16
- export declare function getOriginalError(error: Error): Error;
17
- export declare function getErrorLogger(error: Error): (console: Console, ...values: any[]) => void;
18
- export declare function wrappedError(message: string, originalError: any): Error;
1
+ import { DebugContext } from './lang';
2
+ /**
3
+ * @license
4
+ * Copyright Google Inc. 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
+ export declare const ERROR_TYPE = "ngType";
10
+ export declare const ERROR_COMPONENT_TYPE = "ngComponentType";
11
+ export declare const ERROR_DEBUG_CONTEXT = "ngDebugContext";
12
+ export declare const ERROR_ORIGINAL_ERROR = "ngOriginalError";
13
+ export declare const ERROR_LOGGER = "ngErrorLogger";
14
+ export declare function getType(error: Error): Function;
15
+ export declare function getDebugContext(error: Error): DebugContext;
16
+ export declare function getOriginalError(error: Error): Error;
17
+ export declare function getErrorLogger(error: Error): (console: Console, ...values: any[]) => void;
18
+ export declare function wrappedError(message: string, originalError: any): Error;
19
19
  //# sourceMappingURL=errors.d.ts.map
@@ -1,42 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wrappedError = exports.getErrorLogger = exports.getOriginalError = exports.getDebugContext = exports.getType = exports.ERROR_LOGGER = exports.ERROR_ORIGINAL_ERROR = exports.ERROR_DEBUG_CONTEXT = exports.ERROR_COMPONENT_TYPE = exports.ERROR_TYPE = void 0;
4
- /**
5
- * @license
6
- * Copyright Google Inc. All Rights Reserved.
7
- *
8
- * Use of this source code is governed by an MIT-style license that can be
9
- * found in the LICENSE file at https://angular.io/license
10
- */
11
- exports.ERROR_TYPE = 'ngType';
12
- exports.ERROR_COMPONENT_TYPE = 'ngComponentType';
13
- exports.ERROR_DEBUG_CONTEXT = 'ngDebugContext';
14
- exports.ERROR_ORIGINAL_ERROR = 'ngOriginalError';
15
- exports.ERROR_LOGGER = 'ngErrorLogger';
16
- function getType(error) {
17
- return error[exports.ERROR_TYPE];
18
- }
19
- exports.getType = getType;
20
- function getDebugContext(error) {
21
- return error[exports.ERROR_DEBUG_CONTEXT];
22
- }
23
- exports.getDebugContext = getDebugContext;
24
- function getOriginalError(error) {
25
- return error[exports.ERROR_ORIGINAL_ERROR];
26
- }
27
- exports.getOriginalError = getOriginalError;
28
- function defaultErrorLogger(console, ...values) {
29
- console.error(...values);
30
- }
31
- function getErrorLogger(error) {
32
- return error[exports.ERROR_LOGGER] || defaultErrorLogger;
33
- }
34
- exports.getErrorLogger = getErrorLogger;
35
- function wrappedError(message, originalError) {
36
- const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;
37
- const error = Error(msg);
38
- error[exports.ERROR_ORIGINAL_ERROR] = originalError;
39
- return error;
40
- }
41
- exports.wrappedError = wrappedError;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERROR_LOGGER = exports.ERROR_ORIGINAL_ERROR = exports.ERROR_DEBUG_CONTEXT = exports.ERROR_COMPONENT_TYPE = exports.ERROR_TYPE = void 0;
4
+ exports.getType = getType;
5
+ exports.getDebugContext = getDebugContext;
6
+ exports.getOriginalError = getOriginalError;
7
+ exports.getErrorLogger = getErrorLogger;
8
+ exports.wrappedError = wrappedError;
9
+ /**
10
+ * @license
11
+ * Copyright Google Inc. All Rights Reserved.
12
+ *
13
+ * Use of this source code is governed by an MIT-style license that can be
14
+ * found in the LICENSE file at https://angular.io/license
15
+ */
16
+ exports.ERROR_TYPE = 'ngType';
17
+ exports.ERROR_COMPONENT_TYPE = 'ngComponentType';
18
+ exports.ERROR_DEBUG_CONTEXT = 'ngDebugContext';
19
+ exports.ERROR_ORIGINAL_ERROR = 'ngOriginalError';
20
+ exports.ERROR_LOGGER = 'ngErrorLogger';
21
+ function getType(error) {
22
+ return error[exports.ERROR_TYPE];
23
+ }
24
+ function getDebugContext(error) {
25
+ return error[exports.ERROR_DEBUG_CONTEXT];
26
+ }
27
+ function getOriginalError(error) {
28
+ return error[exports.ERROR_ORIGINAL_ERROR];
29
+ }
30
+ function defaultErrorLogger(console, ...values) {
31
+ console.error(...values);
32
+ }
33
+ function getErrorLogger(error) {
34
+ return error[exports.ERROR_LOGGER] || defaultErrorLogger;
35
+ }
36
+ function wrappedError(message, originalError) {
37
+ const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;
38
+ const error = Error(msg);
39
+ error[exports.ERROR_ORIGINAL_ERROR] = originalError;
40
+ return error;
41
+ }
42
42
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/injection/facade/errors.ts"],"names":[],"mappings":";;;AACA;;;;;;GAMG;AAEU,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AACzC,QAAA,mBAAmB,GAAG,gBAAgB,CAAC;AACvC,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AACzC,QAAA,YAAY,GAAG,eAAe,CAAC;AAE5C,SAAgB,OAAO,CAAC,KAAY;IAClC,OAAQ,KAAa,CAAC,kBAAU,CAAC,CAAC;AACpC,CAAC;AAFD,0BAEC;AAED,SAAgB,eAAe,CAAC,KAAY;IAC1C,OAAQ,KAAa,CAAC,2BAAmB,CAAC,CAAC;AAC7C,CAAC;AAFD,0CAEC;AAED,SAAgB,gBAAgB,CAAC,KAAY;IAC3C,OAAQ,KAAa,CAAC,4BAAoB,CAAC,CAAC;AAC9C,CAAC;AAFD,4CAEC;AAED,SAAS,kBAAkB,CAAC,OAAgB,EAAE,GAAG,MAAa;IACtD,OAAO,CAAC,KAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,cAAc,CAAC,KAAY;IACzC,OAAQ,KAAa,CAAC,oBAAY,CAAC,IAAI,kBAAkB,CAAC;AAC5D,CAAC;AAFD,wCAEC;AAED,SAAgB,Y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GAAG,OAAO,eAAe,aAAa,YAAY,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;IAC9G,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,KAAa,CAAC,4BAAoB,CAAC,GAAG,aAAa,CAAC;IACrD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,47 +1,47 @@
1
- import { Injector } from '../injector';
2
- /**
3
- * @license
4
- * Copyright Google Inc. 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
- export interface BrowserNodeGlobal {
10
- Object: typeof Object;
11
- Array: typeof Array;
12
- Map: typeof Map;
13
- Set: typeof Set;
14
- Date: DateConstructor;
15
- RegExp: RegExpConstructor;
16
- JSON: typeof JSON;
17
- Math: any;
18
- assert(condition: any): void;
19
- Reflect: any;
20
- getAngularTestability: Function;
21
- getAllAngularTestabilities: Function;
22
- getAllAngularRootElements: Function;
23
- frameworkStabilizers: Array<Function>;
24
- setTimeout: Function;
25
- clearTimeout: Function;
26
- setInterval: Function;
27
- clearInterval: Function;
28
- encodeURI: Function;
29
- }
30
- declare const _global: BrowserNodeGlobal;
31
- export { _global as global };
32
- export declare function isPresent<T>(obj: T): obj is NonNullable<T>;
33
- export declare function stringify(token: any): string;
34
- export declare abstract class DebugContext {
35
- abstract get nodeIndex(): number | null;
36
- abstract get injector(): Injector;
37
- abstract get component(): any;
38
- abstract get providerTokens(): any[];
39
- abstract get references(): {
40
- [key: string]: any;
41
- };
42
- abstract get context(): any;
43
- abstract get componentRenderElement(): any;
44
- abstract get renderNode(): any;
45
- abstract logError(console: Console, ...values: any[]): void;
46
- }
1
+ import { Injector } from '../injector';
2
+ /**
3
+ * @license
4
+ * Copyright Google Inc. 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
+ export interface BrowserNodeGlobal {
10
+ Object: typeof Object;
11
+ Array: typeof Array;
12
+ Map: typeof Map;
13
+ Set: typeof Set;
14
+ Date: DateConstructor;
15
+ RegExp: RegExpConstructor;
16
+ JSON: typeof JSON;
17
+ Math: any;
18
+ assert(condition: any): void;
19
+ Reflect: any;
20
+ getAngularTestability: Function;
21
+ getAllAngularTestabilities: Function;
22
+ getAllAngularRootElements: Function;
23
+ frameworkStabilizers: Array<Function>;
24
+ setTimeout: Function;
25
+ clearTimeout: Function;
26
+ setInterval: Function;
27
+ clearInterval: Function;
28
+ encodeURI: Function;
29
+ }
30
+ declare const _global: BrowserNodeGlobal;
31
+ export { _global as global };
32
+ export declare function isPresent<T>(obj: T): obj is NonNullable<T>;
33
+ export declare function stringify(token: any): string;
34
+ export declare abstract class DebugContext {
35
+ abstract get nodeIndex(): number | null;
36
+ abstract get injector(): Injector;
37
+ abstract get component(): any;
38
+ abstract get providerTokens(): any[];
39
+ abstract get references(): {
40
+ [key: string]: any;
41
+ };
42
+ abstract get context(): any;
43
+ abstract get componentRenderElement(): any;
44
+ abstract get renderNode(): any;
45
+ abstract logError(console: Console, ...values: any[]): void;
46
+ }
47
47
  //# sourceMappingURL=lang.d.ts.map
@@ -1,46 +1,46 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DebugContext = exports.stringify = exports.isPresent = exports.global = void 0;
4
- let globalScope;
5
- if (typeof window === 'undefined') {
6
- if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
7
- // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492
8
- globalScope = self;
9
- }
10
- else {
11
- globalScope = global;
12
- }
13
- }
14
- else {
15
- globalScope = window;
16
- }
17
- // Need to declare a new variable for global here since TypeScript
18
- // exports the original value of the symbol.
19
- const _global = globalScope;
20
- exports.global = _global;
21
- function isPresent(obj) {
22
- return obj != null;
23
- }
24
- exports.isPresent = isPresent;
25
- function stringify(token) {
26
- if (typeof token === 'string') {
27
- return token;
28
- }
29
- if (token == null) {
30
- return '' + token;
31
- }
32
- if (token.overriddenName) {
33
- return `${token.overriddenName}`;
34
- }
35
- if (token.name) {
36
- return `${token.name}`;
37
- }
38
- const res = token.toString();
39
- const newLineIndex = res.indexOf('\n');
40
- return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
41
- }
42
- exports.stringify = stringify;
43
- class DebugContext {
44
- }
45
- exports.DebugContext = DebugContext;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DebugContext = exports.global = void 0;
4
+ exports.isPresent = isPresent;
5
+ exports.stringify = stringify;
6
+ let globalScope;
7
+ if (typeof window === 'undefined') {
8
+ if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
9
+ // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492
10
+ globalScope = self;
11
+ }
12
+ else {
13
+ globalScope = global;
14
+ }
15
+ }
16
+ else {
17
+ globalScope = window;
18
+ }
19
+ // Need to declare a new variable for global here since TypeScript
20
+ // exports the original value of the symbol.
21
+ const _global = globalScope;
22
+ exports.global = _global;
23
+ function isPresent(obj) {
24
+ return obj != null;
25
+ }
26
+ function stringify(token) {
27
+ if (typeof token === 'string') {
28
+ return token;
29
+ }
30
+ if (token == null) {
31
+ return '' + token;
32
+ }
33
+ if (token.overriddenName) {
34
+ return `${token.overriddenName}`;
35
+ }
36
+ if (token.name) {
37
+ return `${token.name}`;
38
+ }
39
+ const res = token.toString();
40
+ const newLineIndex = res.indexOf('\n');
41
+ return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
42
+ }
43
+ class DebugContext {
44
+ }
45
+ exports.DebugContext = DebugContext;
46
46
  //# sourceMappingURL=lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lang.js","sourceRoot":"","sources":["../../../src/injection/facade/lang.ts"],"names":[],"mappings":";;;AAsCA,IAAI,WAA8B,CAAC;AACnC,IAAI,OAAO,MAAM,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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
- /**
9
- * @whatItDoes Represents a type that a Component or other object is instances of.
10
- *
11
- * @description
12
- *
13
- * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
14
- * the `MyCustomComponent` constructor function.
15
- *
16
- * @stable
17
- */
18
- export declare const Type: FunctionConstructor;
19
- export declare function isType(v: any): v is Type<any>;
20
- export type ConcreteType<T = object> = new (...args: any[]) => T;
21
- export type AbstractType<T = object> = abstract new (...args: any[]) => T;
22
- export type Type<T = object> = ConcreteType<T> | AbstractType<T>;
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. 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
+ /**
9
+ * @whatItDoes Represents a type that a Component or other object is instances of.
10
+ *
11
+ * @description
12
+ *
13
+ * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
14
+ * the `MyCustomComponent` constructor function.
15
+ *
16
+ * @stable
17
+ */
18
+ export declare const Type: FunctionConstructor;
19
+ export declare function isType(v: any): v is Type<any>;
20
+ export type ConcreteType<T = object> = new (...args: any[]) => T;
21
+ export type AbstractType<T = object> = abstract new (...args: any[]) => T;
22
+ export type Type<T = object> = ConcreteType<T> | AbstractType<T>;
23
23
  //# sourceMappingURL=type.d.ts.map
@@ -1,26 +1,26 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google Inc. 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.isType = exports.Type = void 0;
11
- /**
12
- * @whatItDoes Represents a type that a Component or other object is instances of.
13
- *
14
- * @description
15
- *
16
- * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
17
- * the `MyCustomComponent` constructor function.
18
- *
19
- * @stable
20
- */
21
- exports.Type = Function;
22
- function isType(v) {
23
- return typeof v === 'function';
24
- }
25
- exports.isType = isType;
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google Inc. 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.Type = void 0;
11
+ exports.isType = isType;
12
+ /**
13
+ * @whatItDoes Represents a type that a Component or other object is instances of.
14
+ *
15
+ * @description
16
+ *
17
+ * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
18
+ * the `MyCustomComponent` constructor function.
19
+ *
20
+ * @stable
21
+ */
22
+ exports.Type = Function;
23
+ function isType(v) {
24
+ return typeof v === 'function';
25
+ }
26
26
  //# sourceMappingURL=type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/injection/facade/type.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH;;;;;;;;;GASG;AACU,QAAA,IAAI,GAAG,QAAQ,CAAC;AAE7B,SAAgB,MAAM,CAAC,CAAM;IAC3B,OAAO,OAAO,CAAC,KAAK,UAAU,CAAC;AACjC,CAAC;AAFD,wBAEC"}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/injection/facade/type.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAcH,wBAEC;AAdD;;;;;;;;;GASG;AACU,QAAA,IAAI,GAAG,QAAQ,CAAC;AAE7B,SAAgB,MAAM,CAAC,CAAM;IAC3B,OAAO,OAAO,CAAC,KAAK,UAAU,CAAC;AACjC,CAAC"}
@@ -1,45 +1,45 @@
1
- /**
2
- * @license
3
- * Copyright Google Inc. 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
- /**
9
- * An interface that a function passed into {@link forwardRef} has to implement.
10
- *
11
- * ### Example
12
- *
13
- * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref_fn'}
14
- * @experimental
15
- */
16
- export interface ForwardRefFn<T = any> {
17
- (): T;
18
- }
19
- /**
20
- * Allows to refer to references which are not yet defined.
21
- *
22
- * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
23
- * DI is declared,
24
- * but not yet defined. It is also used when the `token` which we use when creating a query is not
25
- * yet defined.
26
- *
27
- * ### Example
28
- * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
29
- * @experimental
30
- */
31
- export declare function forwardRef<T>(forwardRefFn: ForwardRefFn): T;
32
- /**
33
- * Lazily retrieves the reference value from a forwardRef.
34
- *
35
- * Acts as the identity function when given a non-forward-ref value.
36
- *
37
- * ### Example ([live demo](http://plnkr.co/edit/GU72mJrk1fiodChcmiDR?p=preview))
38
- *
39
- * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
40
- *
41
- * See: {@link forwardRef}
42
- * @experimental
43
- */
44
- export declare function resolveForwardRef(type: any): any;
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. 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
+ /**
9
+ * An interface that a function passed into {@link forwardRef} has to implement.
10
+ *
11
+ * ### Example
12
+ *
13
+ * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref_fn'}
14
+ * @experimental
15
+ */
16
+ export interface ForwardRefFn<T = any> {
17
+ (): T;
18
+ }
19
+ /**
20
+ * Allows to refer to references which are not yet defined.
21
+ *
22
+ * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
23
+ * DI is declared,
24
+ * but not yet defined. It is also used when the `token` which we use when creating a query is not
25
+ * yet defined.
26
+ *
27
+ * ### Example
28
+ * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
29
+ * @experimental
30
+ */
31
+ export declare function forwardRef<T>(forwardRefFn: ForwardRefFn): T;
32
+ /**
33
+ * Lazily retrieves the reference value from a forwardRef.
34
+ *
35
+ * Acts as the identity function when given a non-forward-ref value.
36
+ *
37
+ * ### Example ([live demo](http://plnkr.co/edit/GU72mJrk1fiodChcmiDR?p=preview))
38
+ *
39
+ * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
40
+ *
41
+ * See: {@link forwardRef}
42
+ * @experimental
43
+ */
44
+ export declare function resolveForwardRef(type: any): any;
45
45
  //# sourceMappingURL=forward_ref.d.ts.map