@powerlines/deepkit 0.4.9 → 0.4.11

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.
@@ -52,9 +52,9 @@ var init_cjs_shims = __esm({
52
52
 
53
53
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
54
54
  var require_utils = __commonJS({
55
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
55
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports$1) {
56
56
  init_cjs_shims();
57
- exports.isInteger = (num) => {
57
+ exports$1.isInteger = (num) => {
58
58
  if (typeof num === "number") {
59
59
  return Number.isInteger(num);
60
60
  }
@@ -63,13 +63,13 @@ var require_utils = __commonJS({
63
63
  }
64
64
  return false;
65
65
  };
66
- exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
67
- exports.exceedsLimit = (min, max, step = 1, limit) => {
66
+ exports$1.find = (node, type) => node.nodes.find((node2) => node2.type === type);
67
+ exports$1.exceedsLimit = (min, max, step = 1, limit) => {
68
68
  if (limit === false) return false;
69
- if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
69
+ if (!exports$1.isInteger(min) || !exports$1.isInteger(max)) return false;
70
70
  return (Number(max) - Number(min)) / Number(step) >= limit;
71
71
  };
72
- exports.escapeNode = (block, n = 0, type) => {
72
+ exports$1.escapeNode = (block, n = 0, type) => {
73
73
  const node = block.nodes[n];
74
74
  if (!node) return;
75
75
  if (type && node.type === type || node.type === "open" || node.type === "close") {
@@ -79,7 +79,7 @@ var require_utils = __commonJS({
79
79
  }
80
80
  }
81
81
  };
82
- exports.encloseBrace = (node) => {
82
+ exports$1.encloseBrace = (node) => {
83
83
  if (node.type !== "brace") return false;
84
84
  if (node.commas >> 0 + node.ranges >> 0 === 0) {
85
85
  node.invalid = true;
@@ -87,7 +87,7 @@ var require_utils = __commonJS({
87
87
  }
88
88
  return false;
89
89
  };
90
- exports.isInvalidBrace = (block) => {
90
+ exports$1.isInvalidBrace = (block) => {
91
91
  if (block.type !== "brace") return false;
92
92
  if (block.invalid === true || block.dollar) return true;
93
93
  if (block.commas >> 0 + block.ranges >> 0 === 0) {
@@ -100,18 +100,18 @@ var require_utils = __commonJS({
100
100
  }
101
101
  return false;
102
102
  };
103
- exports.isOpenOrClose = (node) => {
103
+ exports$1.isOpenOrClose = (node) => {
104
104
  if (node.type === "open" || node.type === "close") {
105
105
  return true;
106
106
  }
107
107
  return node.open === true || node.close === true;
108
108
  };
109
- exports.reduce = (nodes) => nodes.reduce((acc, node) => {
109
+ exports$1.reduce = (nodes) => nodes.reduce((acc, node) => {
110
110
  if (node.type === "text") acc.push(node.value);
111
111
  if (node.type === "range") node.type = "text";
112
112
  return acc;
113
113
  }, []);
114
- exports.flatten = (...args) => {
114
+ exports$1.flatten = (...args) => {
115
115
  const result = [];
116
116
  const flat = /* @__PURE__ */ __name((arr) => {
117
117
  for (let i = 0; i < arr.length; i++) {
@@ -134,7 +134,7 @@ var require_utils = __commonJS({
134
134
 
135
135
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
136
136
  var require_stringify = __commonJS({
137
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
137
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports$1, module) {
138
138
  init_cjs_shims();
139
139
  var utils = require_utils();
140
140
  module.exports = (ast, options = {}) => {
@@ -165,7 +165,7 @@ var require_stringify = __commonJS({
165
165
 
166
166
  // ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
167
167
  var require_is_number = __commonJS({
168
- "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
168
+ "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports$1, module) {
169
169
  init_cjs_shims();
170
170
  module.exports = function(num) {
171
171
  if (typeof num === "number") {
@@ -181,7 +181,7 @@ var require_is_number = __commonJS({
181
181
 
182
182
  // ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
183
183
  var require_to_regex_range = __commonJS({
184
- "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
184
+ "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports$1, module) {
185
185
  init_cjs_shims();
186
186
  var isNumber = require_is_number();
187
187
  var toRegexRange = /* @__PURE__ */ __name((min, max, options) => {
@@ -431,7 +431,7 @@ var require_to_regex_range = __commonJS({
431
431
 
432
432
  // ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
433
433
  var require_fill_range = __commonJS({
434
- "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
434
+ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports$1, module) {
435
435
  init_cjs_shims();
436
436
  var util = __require("util");
437
437
  var toRegexRange = require_to_regex_range();
@@ -649,7 +649,7 @@ var require_fill_range = __commonJS({
649
649
 
650
650
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
651
651
  var require_compile = __commonJS({
652
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
652
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports$1, module) {
653
653
  init_cjs_shims();
654
654
  var fill = require_fill_range();
655
655
  var utils = require_utils();
@@ -706,7 +706,7 @@ var require_compile = __commonJS({
706
706
 
707
707
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
708
708
  var require_expand = __commonJS({
709
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
709
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports$1, module) {
710
710
  init_cjs_shims();
711
711
  var fill = require_fill_range();
712
712
  var stringify = require_stringify();
@@ -802,7 +802,7 @@ var require_expand = __commonJS({
802
802
 
803
803
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
804
804
  var require_constants = __commonJS({
805
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
805
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports$1, module) {
806
806
  init_cjs_shims();
807
807
  module.exports = {
808
808
  MAX_LENGTH: 1e4,
@@ -903,7 +903,7 @@ var require_constants = __commonJS({
903
903
 
904
904
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
905
905
  var require_parse = __commonJS({
906
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
906
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports$1, module) {
907
907
  init_cjs_shims();
908
908
  var stringify = require_stringify();
909
909
  var {
@@ -1202,7 +1202,7 @@ var require_parse = __commonJS({
1202
1202
 
1203
1203
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
1204
1204
  var require_braces = __commonJS({
1205
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
1205
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports$1, module) {
1206
1206
  init_cjs_shims();
1207
1207
  var stringify = require_stringify();
1208
1208
  var compile = require_compile();
@@ -1271,7 +1271,7 @@ var require_braces = __commonJS({
1271
1271
 
1272
1272
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
1273
1273
  var require_constants2 = __commonJS({
1274
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
1274
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports$1, module) {
1275
1275
  init_cjs_shims();
1276
1276
  var path = __require("path");
1277
1277
  var WIN_SLASH = "\\\\/";
@@ -1488,41 +1488,41 @@ var require_constants2 = __commonJS({
1488
1488
 
1489
1489
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
1490
1490
  var require_utils2 = __commonJS({
1491
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
1491
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports$1) {
1492
1492
  init_cjs_shims();
1493
1493
  var path = __require("path");
1494
1494
  var win32 = process.platform === "win32";
1495
1495
  var { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants2();
1496
- exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
1497
- exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1498
- exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
1499
- exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
1500
- exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
1501
- exports.removeBackslashes = (str) => {
1496
+ exports$1.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
1497
+ exports$1.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1498
+ exports$1.isRegexChar = (str) => str.length === 1 && exports$1.hasRegexChars(str);
1499
+ exports$1.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
1500
+ exports$1.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
1501
+ exports$1.removeBackslashes = (str) => {
1502
1502
  return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
1503
1503
  return match === "\\" ? "" : match;
1504
1504
  });
1505
1505
  };
1506
- exports.supportsLookbehinds = () => {
1506
+ exports$1.supportsLookbehinds = () => {
1507
1507
  const segs = process.version.slice(1).split(".").map(Number);
1508
1508
  if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
1509
1509
  return true;
1510
1510
  }
1511
1511
  return false;
1512
1512
  };
1513
- exports.isWindows = (options) => {
1513
+ exports$1.isWindows = (options) => {
1514
1514
  if (options && typeof options.windows === "boolean") {
1515
1515
  return options.windows;
1516
1516
  }
1517
1517
  return win32 === true || path.sep === "\\";
1518
1518
  };
1519
- exports.escapeLast = (input, char, lastIdx) => {
1519
+ exports$1.escapeLast = (input, char, lastIdx) => {
1520
1520
  const idx = input.lastIndexOf(char, lastIdx);
1521
1521
  if (idx === -1) return input;
1522
- if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1);
1522
+ if (input[idx - 1] === "\\") return exports$1.escapeLast(input, char, idx - 1);
1523
1523
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
1524
1524
  };
1525
- exports.removePrefix = (input, state = {}) => {
1525
+ exports$1.removePrefix = (input, state = {}) => {
1526
1526
  let output = input;
1527
1527
  if (output.startsWith("./")) {
1528
1528
  output = output.slice(2);
@@ -1530,7 +1530,7 @@ var require_utils2 = __commonJS({
1530
1530
  }
1531
1531
  return output;
1532
1532
  };
1533
- exports.wrapOutput = (input, state = {}, options = {}) => {
1533
+ exports$1.wrapOutput = (input, state = {}, options = {}) => {
1534
1534
  const prepend = options.contains ? "" : "^";
1535
1535
  const append = options.contains ? "" : "$";
1536
1536
  let output = `${prepend}(?:${input})${append}`;
@@ -1544,7 +1544,7 @@ var require_utils2 = __commonJS({
1544
1544
 
1545
1545
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
1546
1546
  var require_scan = __commonJS({
1547
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
1547
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports$1, module) {
1548
1548
  init_cjs_shims();
1549
1549
  var utils = require_utils2();
1550
1550
  var {
@@ -1882,7 +1882,7 @@ var require_scan = __commonJS({
1882
1882
 
1883
1883
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
1884
1884
  var require_parse2 = __commonJS({
1885
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
1885
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports$1, module) {
1886
1886
  init_cjs_shims();
1887
1887
  var constants = require_constants2();
1888
1888
  var utils = require_utils2();
@@ -2777,7 +2777,7 @@ var require_parse2 = __commonJS({
2777
2777
 
2778
2778
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
2779
2779
  var require_picomatch = __commonJS({
2780
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
2780
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports$1, module) {
2781
2781
  init_cjs_shims();
2782
2782
  var path = __require("path");
2783
2783
  var scan = require_scan();
@@ -2948,7 +2948,7 @@ var require_picomatch = __commonJS({
2948
2948
 
2949
2949
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
2950
2950
  var require_picomatch2 = __commonJS({
2951
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
2951
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports$1, module) {
2952
2952
  init_cjs_shims();
2953
2953
  module.exports = require_picomatch();
2954
2954
  }
@@ -2956,7 +2956,7 @@ var require_picomatch2 = __commonJS({
2956
2956
 
2957
2957
  // ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
2958
2958
  var require_micromatch = __commonJS({
2959
- "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
2959
+ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports$1, module) {
2960
2960
  init_cjs_shims();
2961
2961
  var util = __require("util");
2962
2962
  var braces = require_braces();
@@ -3138,10 +3138,10 @@ var require_micromatch = __commonJS({
3138
3138
  }
3139
3139
  });
3140
3140
 
3141
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3141
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3142
3142
  init_cjs_shims();
3143
3143
 
3144
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
3144
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
3145
3145
  init_cjs_shims();
3146
3146
  function isDebug(level = 1) {
3147
3147
  const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
@@ -3161,7 +3161,7 @@ function debug2(...message) {
3161
3161
  }
3162
3162
  __name(debug2, "debug2");
3163
3163
 
3164
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
3164
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
3165
3165
  init_cjs_shims();
3166
3166
  var import_micromatch = __toESM(require_micromatch());
3167
3167
  var { createSourceFile, resolveModuleName, isStringLiteral, JSDocParsingMode, ScriptTarget } = ts2__default.default;
@@ -3248,7 +3248,7 @@ var Resolver = class {
3248
3248
  }
3249
3249
  };
3250
3250
 
3251
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3251
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3252
3252
  var reflectionModes = [
3253
3253
  "default",
3254
3254
  "explicit",
@@ -3529,5 +3529,5 @@ exports.parseRawMode = parseRawMode;
3529
3529
  exports.reflectionLevel = reflectionLevel;
3530
3530
  exports.reflectionModeMatcher = reflectionModeMatcher;
3531
3531
  exports.reflectionModes = reflectionModes;
3532
- //# sourceMappingURL=chunk-2D2LOUPF.cjs.map
3533
- //# sourceMappingURL=chunk-2D2LOUPF.cjs.map
3532
+ //# sourceMappingURL=chunk-R6CPSEXA.cjs.map
3533
+ //# sourceMappingURL=chunk-R6CPSEXA.cjs.map