@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.
Files changed (55) hide show
  1. package/application/application.js +0 -1
  2. package/browser/browser-context-controller.d.ts +2 -2
  3. package/browser/browser-context-controller.js +6 -7
  4. package/browser/browser-controller.js +6 -7
  5. package/core.d.ts +2 -4
  6. package/core.js +2 -9
  7. package/database/mongo/module.js +8 -8
  8. package/disposable/async-disposer.d.ts +8 -7
  9. package/disposable/async-disposer.js +49 -23
  10. package/disposable/disposable.d.ts +5 -4
  11. package/disposable/disposable.js +9 -5
  12. package/injector/injector.d.ts +5 -2
  13. package/injector/injector.js +59 -23
  14. package/injector/interfaces.d.ts +4 -3
  15. package/injector/provider.d.ts +12 -12
  16. package/injector/resolve.error.d.ts +1 -1
  17. package/injector/types.d.ts +16 -7
  18. package/logger/console/logger.js +2 -2
  19. package/module/modules/web-server.module.js +0 -2
  20. package/object-storage/object-storage-provider.d.ts +1 -1
  21. package/object-storage/s3/s3.object-storage-provider.d.ts +1 -6
  22. package/object-storage/s3/s3.object-storage-provider.js +2 -12
  23. package/object-storage/s3/s3.object-storage.js +4 -1
  24. package/package.json +7 -6
  25. package/polyfills.d.ts +159 -0
  26. package/polyfills.js +2 -0
  27. package/queue/mongo/mongo-job.repository.js +3 -4
  28. package/search-index/elastic/module.js +4 -4
  29. package/tsconfig.json +1 -1
  30. package/utils/cancellation-token.d.ts +19 -17
  31. package/utils/cancellation-token.js +20 -19
  32. package/_container/container.d.ts +0 -99
  33. package/_container/container.js +0 -443
  34. package/_container/decorators.d.ts +0 -76
  35. package/_container/decorators.js +0 -110
  36. package/_container/index.d.ts +0 -10
  37. package/_container/index.js +0 -27
  38. package/_container/interfaces.d.ts +0 -16
  39. package/_container/interfaces.js +0 -26
  40. package/_container/provider.d.ts +0 -35
  41. package/_container/provider.js +0 -60
  42. package/_container/resolve-chain.d.ts +0 -27
  43. package/_container/resolve-chain.js +0 -105
  44. package/_container/resolve.error.d.ts +0 -5
  45. package/_container/resolve.error.js +0 -36
  46. package/_container/token.d.ts +0 -18
  47. package/_container/token.js +0 -41
  48. package/_container/type-info.d.ts +0 -18
  49. package/_container/type-info.js +0 -16
  50. package/_container/types.d.ts +0 -9
  51. package/_container/types.js +0 -16
  52. package/_container/utils.d.ts +0 -3
  53. package/_container/utils.js +0 -44
  54. package/global-this.d.ts +0 -1
  55. package/global-this.js +0 -37
@@ -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);
@@ -1,3 +0,0 @@
1
- import type { AbstractType, Type } from '../types.js';
2
- export declare function stubClass<T>(forClass: string | AbstractType<T>): Type<T>;
3
- export declare function isStubClass(target: object): boolean;
@@ -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
- }