@powerlines/deepkit 0.5.1 → 0.5.2

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 (36) hide show
  1. package/dist/{chunk-4V4LIAN2.js → chunk-2ODODKQQ.js} +1 -1
  2. package/dist/{chunk-ESVH44QW.cjs → chunk-6QPIKQMO.cjs} +2 -2
  3. package/dist/{chunk-U5O6DHJ2.js → chunk-C7BRLIIA.js} +1 -1
  4. package/dist/{chunk-VWKKT7CM.cjs → chunk-EKHXI2JI.cjs} +3 -3
  5. package/dist/{chunk-YQQIT5YX.js → chunk-LPLPOVLC.js} +1 -1
  6. package/dist/{chunk-B6GTAZEL.js → chunk-MNUBEEIW.js} +4 -0
  7. package/dist/{chunk-PKLLVKY2.cjs → chunk-QABG54Y3.cjs} +2 -2
  8. package/dist/{chunk-FFBZWTR7.cjs → chunk-VXZTOOL6.cjs} +6 -0
  9. package/dist/esbuild-plugin.cjs +4 -4
  10. package/dist/esbuild-plugin.js +3 -3
  11. package/dist/index.cjs +9 -9
  12. package/dist/index.js +4 -4
  13. package/dist/reflect-type.cjs +5 -5
  14. package/dist/reflect-type.js +4 -4
  15. package/dist/transformer.cjs +3 -3
  16. package/dist/transformer.js +1 -1
  17. package/dist/transpile.cjs +3 -3
  18. package/dist/transpile.js +2 -2
  19. package/dist/vendor/chunk-5BKT4CS5.js +28 -0
  20. package/dist/vendor/{chunk-ZDFKNN7Y.cjs → chunk-BDXVTHBY.cjs} +322 -153
  21. package/dist/vendor/{chunk-7LAB3COT.js → chunk-BLN7QVCP.js} +154 -7
  22. package/dist/vendor/{chunk-5NPGWGPO.cjs → chunk-EQXMWOHO.cjs} +6 -0
  23. package/dist/vendor/chunk-MO4O4UYI.cjs +42 -0
  24. package/dist/vendor/core.cjs +131 -130
  25. package/dist/vendor/core.js +2 -2
  26. package/dist/vendor/index.cjs +28 -0
  27. package/dist/vendor/index.d.cts +2 -0
  28. package/dist/vendor/index.d.ts +2 -0
  29. package/dist/vendor/index.js +1 -0
  30. package/dist/vendor/type-spec.cjs +6 -5
  31. package/dist/vendor/type-spec.js +1 -1
  32. package/dist/vendor/type.cjs +2346 -641
  33. package/dist/vendor/type.js +1661 -23
  34. package/package.json +5 -5
  35. package/dist/vendor/chunk-SHUYVCID.js +0 -4
  36. package/dist/vendor/chunk-USNT2KNT.cjs +0 -6
@@ -1,6 +1,147 @@
1
- import { __name } from './chunk-SHUYVCID.js';
2
- import dotProp from 'dot-prop';
3
- import toFastPropertiesOri from 'to-fast-properties';
1
+ import { __commonJS, __name, __toESM } from './chunk-5BKT4CS5.js';
2
+
3
+ // ../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js
4
+ var require_is_obj = __commonJS({
5
+ "../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js"(exports$1, module) {
6
+ module.exports = (value) => {
7
+ const type = typeof value;
8
+ return value !== null && (type === "object" || type === "function");
9
+ };
10
+ }
11
+ });
12
+
13
+ // ../../node_modules/.pnpm/dot-prop@5.3.0/node_modules/dot-prop/index.js
14
+ var require_dot_prop = __commonJS({
15
+ "../../node_modules/.pnpm/dot-prop@5.3.0/node_modules/dot-prop/index.js"(exports$1, module) {
16
+ var isObj = require_is_obj();
17
+ var disallowedKeys = [
18
+ "__proto__",
19
+ "prototype",
20
+ "constructor"
21
+ ];
22
+ var isValidPath = /* @__PURE__ */ __name((pathSegments) => !pathSegments.some((segment) => disallowedKeys.includes(segment)), "isValidPath");
23
+ function getPathSegments(path) {
24
+ const pathArray = path.split(".");
25
+ const parts = [];
26
+ for (let i = 0; i < pathArray.length; i++) {
27
+ let p = pathArray[i];
28
+ while (p[p.length - 1] === "\\" && pathArray[i + 1] !== void 0) {
29
+ p = p.slice(0, -1) + ".";
30
+ p += pathArray[++i];
31
+ }
32
+ parts.push(p);
33
+ }
34
+ if (!isValidPath(parts)) {
35
+ return [];
36
+ }
37
+ return parts;
38
+ }
39
+ __name(getPathSegments, "getPathSegments");
40
+ module.exports = {
41
+ get(object, path, value) {
42
+ if (!isObj(object) || typeof path !== "string") {
43
+ return value === void 0 ? object : value;
44
+ }
45
+ const pathArray = getPathSegments(path);
46
+ if (pathArray.length === 0) {
47
+ return;
48
+ }
49
+ for (let i = 0; i < pathArray.length; i++) {
50
+ if (!Object.prototype.propertyIsEnumerable.call(object, pathArray[i])) {
51
+ return value;
52
+ }
53
+ object = object[pathArray[i]];
54
+ if (object === void 0 || object === null) {
55
+ if (i !== pathArray.length - 1) {
56
+ return value;
57
+ }
58
+ break;
59
+ }
60
+ }
61
+ return object;
62
+ },
63
+ set(object, path, value) {
64
+ if (!isObj(object) || typeof path !== "string") {
65
+ return object;
66
+ }
67
+ const root = object;
68
+ const pathArray = getPathSegments(path);
69
+ for (let i = 0; i < pathArray.length; i++) {
70
+ const p = pathArray[i];
71
+ if (!isObj(object[p])) {
72
+ object[p] = {};
73
+ }
74
+ if (i === pathArray.length - 1) {
75
+ object[p] = value;
76
+ }
77
+ object = object[p];
78
+ }
79
+ return root;
80
+ },
81
+ delete(object, path) {
82
+ if (!isObj(object) || typeof path !== "string") {
83
+ return false;
84
+ }
85
+ const pathArray = getPathSegments(path);
86
+ for (let i = 0; i < pathArray.length; i++) {
87
+ const p = pathArray[i];
88
+ if (i === pathArray.length - 1) {
89
+ delete object[p];
90
+ return true;
91
+ }
92
+ object = object[p];
93
+ if (!isObj(object)) {
94
+ return false;
95
+ }
96
+ }
97
+ },
98
+ has(object, path) {
99
+ if (!isObj(object) || typeof path !== "string") {
100
+ return false;
101
+ }
102
+ const pathArray = getPathSegments(path);
103
+ if (pathArray.length === 0) {
104
+ return false;
105
+ }
106
+ for (let i = 0; i < pathArray.length; i++) {
107
+ if (isObj(object)) {
108
+ if (!(pathArray[i] in object)) {
109
+ return false;
110
+ }
111
+ object = object[pathArray[i]];
112
+ } else {
113
+ return false;
114
+ }
115
+ }
116
+ return true;
117
+ }
118
+ };
119
+ }
120
+ });
121
+
122
+ // ../../node_modules/.pnpm/to-fast-properties@3.0.1/node_modules/to-fast-properties/index.js
123
+ var require_to_fast_properties = __commonJS({
124
+ "../../node_modules/.pnpm/to-fast-properties@3.0.1/node_modules/to-fast-properties/index.js"(exports$1, module) {
125
+ var fastProto = null;
126
+ function FastObject(o) {
127
+ if (fastProto !== null && typeof fastProto.property) {
128
+ const result = fastProto;
129
+ fastProto = FastObject.prototype = null;
130
+ return result;
131
+ }
132
+ fastProto = FastObject.prototype = o == null ? /* @__PURE__ */ Object.create(null) : o;
133
+ return new FastObject();
134
+ }
135
+ __name(FastObject, "FastObject");
136
+ var inlineCacheCutoff = 10;
137
+ for (let i = 0; i <= inlineCacheCutoff; i++) {
138
+ FastObject();
139
+ }
140
+ module.exports = /* @__PURE__ */ __name(function toFastproperties(o) {
141
+ return FastObject(o);
142
+ }, "toFastproperties");
143
+ }
144
+ });
4
145
 
5
146
  // ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/iterators.js
6
147
  var __\u03A9ArrayLike = [
@@ -154,6 +295,9 @@ eachPair.__type = [
154
295
  "eachPair",
155
296
  `PPP&"LM"o!"J2"PP&"GP'"GJo#"/$`
156
297
  ];
298
+
299
+ // ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/core.js
300
+ var import_dot_prop = __toESM(require_dot_prop(), 1);
157
301
  var __\u03A9Object = [
158
302
  () => Function,
159
303
  "constructor",
@@ -872,7 +1016,7 @@ function getPathValue(bag, parameterPath, defaultValue) {
872
1016
  if (isSet(bag[parameterPath])) {
873
1017
  return bag[parameterPath];
874
1018
  }
875
- const result = dotProp.get(bag, parameterPath);
1019
+ const result = import_dot_prop.default.get(bag, parameterPath);
876
1020
  return isSet(result) ? result : defaultValue;
877
1021
  }
878
1022
  __name(getPathValue, "getPathValue");
@@ -884,7 +1028,7 @@ getPathValue.__type = [
884
1028
  'PP&"LM2!&2""2#8"/$'
885
1029
  ];
886
1030
  function setPathValue(bag, parameterPath, value) {
887
- dotProp.set(bag, parameterPath, value);
1031
+ import_dot_prop.default.set(bag, parameterPath, value);
888
1032
  }
889
1033
  __name(setPathValue, "setPathValue");
890
1034
  setPathValue.__type = [
@@ -895,7 +1039,7 @@ setPathValue.__type = [
895
1039
  'P%2!&2""2#"/$'
896
1040
  ];
897
1041
  function deletePathValue(bag, parameterPath) {
898
- dotProp.delete(bag, parameterPath);
1042
+ import_dot_prop.default.delete(bag, parameterPath);
899
1043
  }
900
1044
  __name(deletePathValue, "deletePathValue");
901
1045
  deletePathValue.__type = [
@@ -1229,8 +1373,11 @@ assertDefined.__type = [
1229
1373
  "assertDefined",
1230
1374
  'P"2!!/"'
1231
1375
  ];
1376
+
1377
+ // ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/perf.js
1378
+ var import_to_fast_properties = __toESM(require_to_fast_properties(), 1);
1232
1379
  function toFastProperties(obj) {
1233
- toFastPropertiesOri(obj);
1380
+ (0, import_to_fast_properties.default)(obj);
1234
1381
  }
1235
1382
  __name(toFastProperties, "toFastProperties");
1236
1383
  toFastProperties.__type = [
@@ -1,6 +1,9 @@
1
1
  'use strict';
2
2
 
3
+ var chunkMO4O4UYI_cjs = require('./chunk-MO4O4UYI.cjs');
4
+
3
5
  // ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
6
+ chunkMO4O4UYI_cjs.init_cjs_shims();
4
7
  exports.TypeNumberBrand = void 0;
5
8
  (function(TypeNumberBrand2) {
6
9
  TypeNumberBrand2[TypeNumberBrand2["integer"] = 0] = "integer";
@@ -107,3 +110,6 @@ exports.ReflectionOp = void 0;
107
110
  ReflectionOp2[ReflectionOp2["nominal"] = 88] = "nominal";
108
111
  ReflectionOp2[ReflectionOp2["tags"] = 89] = "tags";
109
112
  })(exports.ReflectionOp || (exports.ReflectionOp = {}));
113
+
114
+ // ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/index.js
115
+ chunkMO4O4UYI_cjs.init_cjs_shims();
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
+ var __esm = (fn, res) => function __init() {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ };
13
+ var __commonJS = (cb, mod) => function __require() {
14
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
+ mod
31
+ ));
32
+
33
+ // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.55.2_@types+node@24.10.4__@swc+core@1.15.7_@swc+h_f8da27b0440c7f48fd09d237580fc3c9/node_modules/tsup/assets/cjs_shims.js
34
+ var init_cjs_shims = __esm({
35
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.55.2_@types+node@24.10.4__@swc+core@1.15.7_@swc+h_f8da27b0440c7f48fd09d237580fc3c9/node_modules/tsup/assets/cjs_shims.js"() {
36
+ }
37
+ });
38
+
39
+ exports.__commonJS = __commonJS;
40
+ exports.__name = __name;
41
+ exports.__toESM = __toESM;
42
+ exports.init_cjs_shims = init_cjs_shims;