@tachybase/utils 1.3.41 → 1.3.43
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/lib/client.d.ts +0 -3
- package/lib/client.js +0 -22
- package/lib/date.d.ts +1 -1
- package/lib/date.js +9 -9
- package/lib/dayjs.d.ts +1 -10
- package/lib/dayjs.js +4 -22
- package/lib/index.d.ts +2 -6
- package/lib/index.js +0 -27
- package/lib/parse-date.js +21 -11
- package/lib/parse-filter.js +4 -4
- package/package.json +1 -1
- package/lib/decorators.d.ts +0 -16
- package/lib/decorators.js +0 -94
- package/lib/typedi/container-instance.class.d.ts +0 -109
- package/lib/typedi/container-instance.class.js +0 -340
- package/lib/typedi/container-registry.class.d.ts +0 -51
- package/lib/typedi/container-registry.class.js +0 -95
- package/lib/typedi/decorators/inject-many.decorator.d.ts +0 -8
- package/lib/typedi/decorators/inject-many.decorator.js +0 -56
- package/lib/typedi/decorators/inject.decorator.d.ts +0 -9
- package/lib/typedi/decorators/inject.decorator.js +0 -56
- package/lib/typedi/decorators/service.decorator.d.ts +0 -6
- package/lib/typedi/decorators/service.decorator.js +0 -49
- package/lib/typedi/empty.const.d.ts +0 -6
- package/lib/typedi/empty.const.js +0 -27
- package/lib/typedi/error/cannot-inject-value.error.d.ts +0 -11
- package/lib/typedi/error/cannot-inject-value.error.js +0 -40
- package/lib/typedi/error/cannot-instantiate-value.error.d.ts +0 -11
- package/lib/typedi/error/cannot-instantiate-value.error.js +0 -49
- package/lib/typedi/error/service-not-found.error.d.ts +0 -11
- package/lib/typedi/error/service-not-found.error.js +0 -49
- package/lib/typedi/index.d.ts +0 -17
- package/lib/typedi/index.js +0 -49
- package/lib/typedi/interfaces/container-options.interface.d.ts +0 -45
- package/lib/typedi/interfaces/container-options.interface.js +0 -15
- package/lib/typedi/interfaces/handler.interface.d.ts +0 -27
- package/lib/typedi/interfaces/handler.interface.js +0 -15
- package/lib/typedi/interfaces/service-metadata.interface.d.ts +0 -53
- package/lib/typedi/interfaces/service-metadata.interface.js +0 -15
- package/lib/typedi/interfaces/service-options.interface.d.ts +0 -6
- package/lib/typedi/interfaces/service-options.interface.js +0 -15
- package/lib/typedi/token.class.d.ts +0 -11
- package/lib/typedi/token.class.js +0 -37
- package/lib/typedi/types/abstract-constructable.type.d.ts +0 -9
- package/lib/typedi/types/abstract-constructable.type.js +0 -15
- package/lib/typedi/types/container-identifier.type.d.ts +0 -4
- package/lib/typedi/types/container-identifier.type.js +0 -15
- package/lib/typedi/types/container-scope.type.d.ts +0 -1
- package/lib/typedi/types/container-scope.type.js +0 -15
- package/lib/typedi/types/service-identifier.type.d.ts +0 -8
- package/lib/typedi/types/service-identifier.type.js +0 -15
- package/lib/typedi/utils/resolve-to-type-wrapper.util.d.ts +0 -15
- package/lib/typedi/utils/resolve-to-type-wrapper.util.js +0 -39
- /package/lib/{typedi/types → types}/constructable.type.d.ts +0 -0
- /package/lib/{typedi/types → types}/constructable.type.js +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
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 resolve_to_type_wrapper_util_exports = {};
|
|
20
|
-
__export(resolve_to_type_wrapper_util_exports, {
|
|
21
|
-
resolveToTypeWrapper: () => resolveToTypeWrapper
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(resolve_to_type_wrapper_util_exports);
|
|
24
|
-
var import_token = require("../token.class");
|
|
25
|
-
function resolveToTypeWrapper(typeOrIdentifier, target, propertyName, index) {
|
|
26
|
-
let typeWrapper;
|
|
27
|
-
if (typeOrIdentifier && typeof typeOrIdentifier === "string" || typeOrIdentifier instanceof import_token.Token) {
|
|
28
|
-
typeWrapper = { eagerType: typeOrIdentifier, lazyType: /* @__PURE__ */ __name(() => typeOrIdentifier, "lazyType") };
|
|
29
|
-
}
|
|
30
|
-
if (typeOrIdentifier && typeof typeOrIdentifier === "function") {
|
|
31
|
-
typeWrapper = { eagerType: null, lazyType: /* @__PURE__ */ __name(() => typeOrIdentifier(), "lazyType") };
|
|
32
|
-
}
|
|
33
|
-
return typeWrapper;
|
|
34
|
-
}
|
|
35
|
-
__name(resolveToTypeWrapper, "resolveToTypeWrapper");
|
|
36
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
-
0 && (module.exports = {
|
|
38
|
-
resolveToTypeWrapper
|
|
39
|
-
});
|
|
File without changes
|
|
File without changes
|