@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.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -12
- package/dist/injection/facade/errors.d.ts +18 -18
- package/dist/injection/facade/errors.js +41 -41
- package/dist/injection/facade/errors.js.map +1 -1
- package/dist/injection/facade/lang.d.ts +46 -46
- package/dist/injection/facade/lang.js +45 -45
- package/dist/injection/facade/lang.js.map +1 -1
- package/dist/injection/facade/type.d.ts +22 -22
- package/dist/injection/facade/type.js +25 -25
- package/dist/injection/facade/type.js.map +1 -1
- package/dist/injection/forward_ref.d.ts +44 -44
- package/dist/injection/forward_ref.js +51 -52
- package/dist/injection/forward_ref.js.map +1 -1
- package/dist/injection/forward_ref.test.d.ts +8 -8
- package/dist/injection/index.d.ts +21 -21
- package/dist/injection/index.js +35 -35
- package/dist/injection/injection_token.d.ts +62 -62
- package/dist/injection/injection_token.js +73 -73
- package/dist/injection/injector.d.ts +94 -94
- package/dist/injection/injector.js +82 -82
- package/dist/injection/injector.js.map +1 -1
- package/dist/injection/injector.test.d.ts +8 -8
- package/dist/injection/metadata/annotations.d.ts +16 -16
- package/dist/injection/metadata/annotations.js +48 -48
- package/dist/injection/metadata/annotations.js.map +1 -1
- package/dist/injection/metadata/decorators.d.ts +138 -138
- package/dist/injection/metadata/decorators.js +160 -160
- package/dist/injection/metadata/index.d.ts +2 -2
- package/dist/injection/metadata/index.js +5 -5
- package/dist/injection/provider.d.ts +208 -208
- package/dist/injection/provider.js +13 -14
- package/dist/injection/provider.js.map +1 -1
- package/dist/injection/reflection/platform_reflection_capabilities.d.ts +26 -26
- package/dist/injection/reflection/platform_reflection_capabilities.js +9 -9
- package/dist/injection/reflection/reflection.d.ts +14 -14
- package/dist/injection/reflection/reflection.js +19 -19
- package/dist/injection/reflection/reflection_capabilities.d.ts +34 -34
- package/dist/injection/reflection/reflection_capabilities.js +173 -173
- package/dist/injection/reflection/reflection_capabilities.js.map +1 -1
- package/dist/injection/reflection/reflector.d.ts +36 -36
- package/dist/injection/reflection/reflector.js +61 -61
- package/dist/injection/reflection/reflector_reader.d.ts +22 -22
- package/dist/injection/reflection/reflector_reader.js +17 -17
- package/dist/injection/reflection/types.d.ts +10 -10
- package/dist/injection/reflection/types.js +9 -9
- package/dist/injection/reflective_errors.d.ts +144 -144
- package/dist/injection/reflective_errors.js +221 -222
- package/dist/injection/reflective_errors.js.map +1 -1
- package/dist/injection/reflective_injector.d.ts +281 -281
- package/dist/injection/reflective_injector.js +368 -368
- package/dist/injection/reflective_injector.js.map +1 -1
- package/dist/injection/reflective_injector.test.d.ts +8 -8
- package/dist/injection/reflective_injector.test.js.map +1 -1
- package/dist/injection/reflective_key.d.ts +43 -43
- package/dist/injection/reflective_key.js +84 -84
- package/dist/injection/reflective_key.js.map +1 -1
- package/dist/injection/reflective_key.test.d.ts +8 -8
- package/dist/injection/reflective_provider.d.ts +95 -95
- package/dist/injection/reflective_provider.js +233 -233
- package/dist/injection/reflective_provider.js.map +1 -1
- package/dist/modules.d.ts +36 -36
- package/dist/modules.js +30 -30
- package/dist/modules.js.map +1 -1
- package/dist/test.d.ts +1 -1
- package/dist.esm/index.d.ts +3 -3
- package/dist.esm/index.js +3 -3
- package/dist.esm/injection/facade/errors.d.ts +18 -18
- package/dist.esm/injection/facade/errors.js +33 -33
- package/dist.esm/injection/facade/lang.d.ts +46 -46
- package/dist.esm/injection/facade/lang.js +39 -39
- package/dist.esm/injection/facade/lang.js.map +1 -1
- package/dist.esm/injection/facade/type.d.ts +22 -22
- package/dist.esm/injection/facade/type.js +21 -21
- package/dist.esm/injection/forward_ref.d.ts +44 -44
- package/dist.esm/injection/forward_ref.js +47 -47
- package/dist.esm/injection/forward_ref.js.map +1 -1
- package/dist.esm/injection/forward_ref.test.d.ts +8 -8
- package/dist.esm/injection/index.d.ts +21 -21
- package/dist.esm/injection/index.js +20 -20
- package/dist.esm/injection/injection_token.d.ts +62 -62
- package/dist.esm/injection/injection_token.js +68 -68
- package/dist.esm/injection/injector.d.ts +94 -94
- package/dist.esm/injection/injector.js +77 -77
- package/dist.esm/injection/injector.js.map +1 -1
- package/dist.esm/injection/injector.test.d.ts +8 -8
- package/dist.esm/injection/metadata/annotations.d.ts +16 -16
- package/dist.esm/injection/metadata/annotations.js +45 -45
- package/dist.esm/injection/metadata/annotations.js.map +1 -1
- package/dist.esm/injection/metadata/decorators.d.ts +138 -138
- package/dist.esm/injection/metadata/decorators.js +157 -157
- package/dist.esm/injection/metadata/index.d.ts +2 -2
- package/dist.esm/injection/metadata/index.js +2 -2
- package/dist.esm/injection/provider.d.ts +208 -208
- package/dist.esm/injection/provider.js +10 -10
- package/dist.esm/injection/reflection/platform_reflection_capabilities.d.ts +26 -26
- package/dist.esm/injection/reflection/platform_reflection_capabilities.js +8 -8
- package/dist.esm/injection/reflection/reflection.d.ts +14 -14
- package/dist.esm/injection/reflection/reflection.js +15 -15
- package/dist.esm/injection/reflection/reflection_capabilities.d.ts +34 -34
- package/dist.esm/injection/reflection/reflection_capabilities.js +169 -169
- package/dist.esm/injection/reflection/reflection_capabilities.js.map +1 -1
- package/dist.esm/injection/reflection/reflector.d.ts +36 -36
- package/dist.esm/injection/reflection/reflector.js +57 -57
- package/dist.esm/injection/reflection/reflector_reader.d.ts +22 -22
- package/dist.esm/injection/reflection/reflector_reader.js +13 -13
- package/dist.esm/injection/reflection/types.d.ts +10 -10
- package/dist.esm/injection/reflection/types.js +8 -8
- package/dist.esm/injection/reflective_errors.d.ts +144 -144
- package/dist.esm/injection/reflective_errors.js +212 -212
- package/dist.esm/injection/reflective_errors.js.map +1 -1
- package/dist.esm/injection/reflective_injector.d.ts +281 -281
- package/dist.esm/injection/reflective_injector.js +363 -363
- package/dist.esm/injection/reflective_injector.js.map +1 -1
- package/dist.esm/injection/reflective_injector.test.d.ts +8 -8
- package/dist.esm/injection/reflective_injector.test.js.map +1 -1
- package/dist.esm/injection/reflective_key.d.ts +43 -43
- package/dist.esm/injection/reflective_key.js +79 -79
- package/dist.esm/injection/reflective_key.js.map +1 -1
- package/dist.esm/injection/reflective_key.test.d.ts +8 -8
- package/dist.esm/injection/reflective_provider.d.ts +95 -95
- package/dist.esm/injection/reflective_provider.js +224 -224
- package/dist.esm/injection/reflective_provider.js.map +1 -1
- package/dist.esm/modules.d.ts +36 -36
- package/dist.esm/modules.js +26 -26
- package/dist.esm/modules.js.map +1 -1
- package/dist.esm/test.d.ts +1 -1
- package/package.json +8 -8
- package/tsconfig.esm.tsbuildinfo +1 -0
- package/tsconfig.json +0 -2
- 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.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
return error[exports.
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
exports.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
error
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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":";;;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/injection/facade/errors.ts"],"names":[],"mappings":";;;AAeA,0BAEC;AAED,0CAEC;AAED,4CAEC;AAMD,wCAEC;AAED,oCAKC;AAvCD;;;;;;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;AAED,SAAgB,eAAe,CAAC,KAAY;IAC1C,OAAQ,KAAa,CAAC,2BAAmB,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAY;IAC3C,OAAQ,KAAa,CAAC,4BAAoB,CAAC,CAAC;AAC9C,CAAC;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;AAED,SAAgB,YAAY,CAAC,OAAe,EAAE,aAAkB;IAC9D,MAAM,GAAG,GAAG,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.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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":";;;
|
|
1
|
+
{"version":3,"file":"lang.js","sourceRoot":"","sources":["../../../src/injection/facade/lang.ts"],"names":[],"mappings":";;;AAwDA,8BAEC;AAED,8BAoBC;AA1CD,IAAI,WAA8B,CAAC;AACnC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,IAAI,OAAO,iBAAiB,KAAK,WAAW,IAAI,IAAI,YAAY,iBAAiB,EAAE,CAAC;QAClF,yEAAyE;QACzE,WAAW,GAAQ,IAAI,CAAC;IAC1B,CAAC;SAAM,CAAC;QACN,WAAW,GAAQ,MAAM,CAAC;IAC5B,CAAC;AACH,CAAC;KAAM,CAAC;IACN,WAAW,GAAQ,MAAM,CAAC;AAC5B,CAAC;AAED,kEAAkE;AAClE,4CAA4C;AAC5C,MAAM,OAAO,GAAsB,WAAW,CAAC;AAE3B,yBAAM;AAE1B,SAAgB,SAAS,CAAI,GAAM;IACjC,OAAO,GAAG,IAAI,IAAI,CAAC;AACrB,CAAC;AAED,SAAgB,SAAS,CAAC,KAAU;IAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,EAAE,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;QACzB,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IACnC,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QACf,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC7B,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;AAED,MAAsB,YAAY;CAYjC;AAZD,oCAYC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
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>;
|
|
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.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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;;;
|
|
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
|