@tstdl/base 0.86.0-beta9 → 0.86.1
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/application/application.js +0 -1
- package/browser/browser-context-controller.d.ts +2 -2
- package/browser/browser-context-controller.js +6 -7
- package/browser/browser-controller.js +6 -7
- package/core.d.ts +2 -4
- package/core.js +2 -9
- package/database/mongo/module.js +8 -8
- package/disposable/async-disposer.d.ts +8 -7
- package/disposable/async-disposer.js +49 -23
- package/disposable/disposable.d.ts +5 -4
- package/disposable/disposable.js +9 -5
- package/injector/injector.d.ts +5 -2
- package/injector/injector.js +59 -23
- package/injector/interfaces.d.ts +4 -3
- package/injector/provider.d.ts +12 -12
- package/injector/resolve.error.d.ts +1 -1
- package/injector/types.d.ts +16 -7
- package/logger/console/logger.js +2 -2
- package/module/modules/web-server.module.js +0 -2
- package/object-storage/object-storage-provider.d.ts +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +1 -6
- package/object-storage/s3/s3.object-storage-provider.js +2 -12
- package/object-storage/s3/s3.object-storage.js +4 -1
- package/package.json +7 -6
- package/polyfills.d.ts +159 -0
- package/polyfills.js +2 -0
- package/queue/mongo/mongo-job.repository.js +3 -4
- package/search-index/elastic/module.js +4 -4
- package/tsconfig.json +1 -1
- package/utils/cancellation-token.d.ts +19 -17
- package/utils/cancellation-token.js +20 -19
- package/_container/container.d.ts +0 -99
- package/_container/container.js +0 -443
- package/_container/decorators.d.ts +0 -76
- package/_container/decorators.js +0 -110
- package/_container/index.d.ts +0 -10
- package/_container/index.js +0 -27
- package/_container/interfaces.d.ts +0 -16
- package/_container/interfaces.js +0 -26
- package/_container/provider.d.ts +0 -35
- package/_container/provider.js +0 -60
- package/_container/resolve-chain.d.ts +0 -27
- package/_container/resolve-chain.js +0 -105
- package/_container/resolve.error.d.ts +0 -5
- package/_container/resolve.error.js +0 -36
- package/_container/token.d.ts +0 -18
- package/_container/token.js +0 -41
- package/_container/type-info.d.ts +0 -18
- package/_container/type-info.js +0 -16
- package/_container/types.d.ts +0 -9
- package/_container/types.js +0 -16
- package/_container/utils.d.ts +0 -3
- package/_container/utils.js +0 -44
- package/global-this.d.ts +0 -1
- package/global-this.js +0 -37
package/_container/types.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var types_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(types_exports);
|
package/_container/utils.d.ts
DELETED
package/_container/utils.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var utils_exports = {};
|
|
20
|
-
__export(utils_exports, {
|
|
21
|
-
isStubClass: () => isStubClass,
|
|
22
|
-
stubClass: () => stubClass
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(utils_exports);
|
|
25
|
-
var import_type_guards = require("../utils/type-guards.js");
|
|
26
|
-
var import_container = require("./container.js");
|
|
27
|
-
const isStubClassSymbol = Symbol("Stub class");
|
|
28
|
-
function stubClass(forClass) {
|
|
29
|
-
const forClassName = (0, import_type_guards.isString)(forClass) ? forClass : forClass.name;
|
|
30
|
-
const stubName = `${forClassName}Stub`;
|
|
31
|
-
const stub = {
|
|
32
|
-
[stubName]: class {
|
|
33
|
-
constructor() {
|
|
34
|
-
throw new Error(`Stub class for ${forClassName} not instantiable.`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}[stubName];
|
|
38
|
-
stub[isStubClassSymbol] = true;
|
|
39
|
-
import_container.container.register(stub, { useClass: stub });
|
|
40
|
-
return stub;
|
|
41
|
-
}
|
|
42
|
-
function isStubClass(target) {
|
|
43
|
-
return target[isStubClassSymbol] === true;
|
|
44
|
-
}
|
package/global-this.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ensureGlobalThis(): void;
|
package/global-this.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var global_this_exports = {};
|
|
20
|
-
__export(global_this_exports, {
|
|
21
|
-
ensureGlobalThis: () => ensureGlobalThis
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(global_this_exports);
|
|
24
|
-
function ensureGlobalThis() {
|
|
25
|
-
if (typeof globalThis === "object") {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
Object.defineProperty(Object.prototype, "__magic__", {
|
|
29
|
-
get() {
|
|
30
|
-
return this;
|
|
31
|
-
},
|
|
32
|
-
configurable: true
|
|
33
|
-
// this makes it possible to `delete` the getter later.
|
|
34
|
-
});
|
|
35
|
-
__magic__.globalThis = __magic__;
|
|
36
|
-
delete Object.prototype["__magic__"];
|
|
37
|
-
}
|