@tachybase/utils 1.3.42 → 1.3.44

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/lib/client.d.ts +0 -3
  2. package/lib/client.js +0 -22
  3. package/lib/date.d.ts +1 -1
  4. package/lib/date.js +9 -9
  5. package/lib/dayjs.d.ts +1 -10
  6. package/lib/dayjs.js +4 -22
  7. package/lib/index.d.ts +2 -6
  8. package/lib/index.js +0 -27
  9. package/lib/parse-date.js +21 -11
  10. package/lib/parse-filter.js +4 -4
  11. package/package.json +1 -1
  12. package/lib/decorators.d.ts +0 -16
  13. package/lib/decorators.js +0 -94
  14. package/lib/typedi/container-instance.class.d.ts +0 -109
  15. package/lib/typedi/container-instance.class.js +0 -340
  16. package/lib/typedi/container-registry.class.d.ts +0 -51
  17. package/lib/typedi/container-registry.class.js +0 -95
  18. package/lib/typedi/decorators/inject-many.decorator.d.ts +0 -8
  19. package/lib/typedi/decorators/inject-many.decorator.js +0 -56
  20. package/lib/typedi/decorators/inject.decorator.d.ts +0 -9
  21. package/lib/typedi/decorators/inject.decorator.js +0 -56
  22. package/lib/typedi/decorators/service.decorator.d.ts +0 -6
  23. package/lib/typedi/decorators/service.decorator.js +0 -49
  24. package/lib/typedi/empty.const.d.ts +0 -6
  25. package/lib/typedi/empty.const.js +0 -27
  26. package/lib/typedi/error/cannot-inject-value.error.d.ts +0 -11
  27. package/lib/typedi/error/cannot-inject-value.error.js +0 -40
  28. package/lib/typedi/error/cannot-instantiate-value.error.d.ts +0 -11
  29. package/lib/typedi/error/cannot-instantiate-value.error.js +0 -49
  30. package/lib/typedi/error/service-not-found.error.d.ts +0 -11
  31. package/lib/typedi/error/service-not-found.error.js +0 -49
  32. package/lib/typedi/index.d.ts +0 -17
  33. package/lib/typedi/index.js +0 -49
  34. package/lib/typedi/interfaces/container-options.interface.d.ts +0 -45
  35. package/lib/typedi/interfaces/container-options.interface.js +0 -15
  36. package/lib/typedi/interfaces/handler.interface.d.ts +0 -27
  37. package/lib/typedi/interfaces/handler.interface.js +0 -15
  38. package/lib/typedi/interfaces/service-metadata.interface.d.ts +0 -53
  39. package/lib/typedi/interfaces/service-metadata.interface.js +0 -15
  40. package/lib/typedi/interfaces/service-options.interface.d.ts +0 -6
  41. package/lib/typedi/interfaces/service-options.interface.js +0 -15
  42. package/lib/typedi/token.class.d.ts +0 -11
  43. package/lib/typedi/token.class.js +0 -37
  44. package/lib/typedi/types/abstract-constructable.type.d.ts +0 -9
  45. package/lib/typedi/types/abstract-constructable.type.js +0 -15
  46. package/lib/typedi/types/container-identifier.type.d.ts +0 -4
  47. package/lib/typedi/types/container-identifier.type.js +0 -15
  48. package/lib/typedi/types/container-scope.type.d.ts +0 -1
  49. package/lib/typedi/types/container-scope.type.js +0 -15
  50. package/lib/typedi/types/service-identifier.type.d.ts +0 -8
  51. package/lib/typedi/types/service-identifier.type.js +0 -15
  52. package/lib/typedi/utils/resolve-to-type-wrapper.util.d.ts +0 -15
  53. package/lib/typedi/utils/resolve-to-type-wrapper.util.js +0 -39
  54. /package/lib/{typedi/types → types}/constructable.type.d.ts +0 -0
  55. /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
- });