@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.
@@ -46,9 +46,9 @@ var init_esm_shims = __esm({
46
46
 
47
47
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
48
48
  var require_utils = __commonJS({
49
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
49
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports$1) {
50
50
  init_esm_shims();
51
- exports.isInteger = (num) => {
51
+ exports$1.isInteger = (num) => {
52
52
  if (typeof num === "number") {
53
53
  return Number.isInteger(num);
54
54
  }
@@ -57,13 +57,13 @@ var require_utils = __commonJS({
57
57
  }
58
58
  return false;
59
59
  };
60
- exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
61
- exports.exceedsLimit = (min, max, step = 1, limit) => {
60
+ exports$1.find = (node, type) => node.nodes.find((node2) => node2.type === type);
61
+ exports$1.exceedsLimit = (min, max, step = 1, limit) => {
62
62
  if (limit === false) return false;
63
- if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
63
+ if (!exports$1.isInteger(min) || !exports$1.isInteger(max)) return false;
64
64
  return (Number(max) - Number(min)) / Number(step) >= limit;
65
65
  };
66
- exports.escapeNode = (block, n = 0, type) => {
66
+ exports$1.escapeNode = (block, n = 0, type) => {
67
67
  const node = block.nodes[n];
68
68
  if (!node) return;
69
69
  if (type && node.type === type || node.type === "open" || node.type === "close") {
@@ -73,7 +73,7 @@ var require_utils = __commonJS({
73
73
  }
74
74
  }
75
75
  };
76
- exports.encloseBrace = (node) => {
76
+ exports$1.encloseBrace = (node) => {
77
77
  if (node.type !== "brace") return false;
78
78
  if (node.commas >> 0 + node.ranges >> 0 === 0) {
79
79
  node.invalid = true;
@@ -81,7 +81,7 @@ var require_utils = __commonJS({
81
81
  }
82
82
  return false;
83
83
  };
84
- exports.isInvalidBrace = (block) => {
84
+ exports$1.isInvalidBrace = (block) => {
85
85
  if (block.type !== "brace") return false;
86
86
  if (block.invalid === true || block.dollar) return true;
87
87
  if (block.commas >> 0 + block.ranges >> 0 === 0) {
@@ -94,18 +94,18 @@ var require_utils = __commonJS({
94
94
  }
95
95
  return false;
96
96
  };
97
- exports.isOpenOrClose = (node) => {
97
+ exports$1.isOpenOrClose = (node) => {
98
98
  if (node.type === "open" || node.type === "close") {
99
99
  return true;
100
100
  }
101
101
  return node.open === true || node.close === true;
102
102
  };
103
- exports.reduce = (nodes) => nodes.reduce((acc, node) => {
103
+ exports$1.reduce = (nodes) => nodes.reduce((acc, node) => {
104
104
  if (node.type === "text") acc.push(node.value);
105
105
  if (node.type === "range") node.type = "text";
106
106
  return acc;
107
107
  }, []);
108
- exports.flatten = (...args) => {
108
+ exports$1.flatten = (...args) => {
109
109
  const result = [];
110
110
  const flat = /* @__PURE__ */ __name((arr) => {
111
111
  for (let i = 0; i < arr.length; i++) {
@@ -128,7 +128,7 @@ var require_utils = __commonJS({
128
128
 
129
129
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
130
130
  var require_stringify = __commonJS({
131
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
131
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports$1, module) {
132
132
  init_esm_shims();
133
133
  var utils = require_utils();
134
134
  module.exports = (ast, options = {}) => {
@@ -159,7 +159,7 @@ var require_stringify = __commonJS({
159
159
 
160
160
  // ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
161
161
  var require_is_number = __commonJS({
162
- "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
162
+ "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports$1, module) {
163
163
  init_esm_shims();
164
164
  module.exports = function(num) {
165
165
  if (typeof num === "number") {
@@ -175,7 +175,7 @@ var require_is_number = __commonJS({
175
175
 
176
176
  // ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
177
177
  var require_to_regex_range = __commonJS({
178
- "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
178
+ "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports$1, module) {
179
179
  init_esm_shims();
180
180
  var isNumber = require_is_number();
181
181
  var toRegexRange = /* @__PURE__ */ __name((min, max, options) => {
@@ -425,7 +425,7 @@ var require_to_regex_range = __commonJS({
425
425
 
426
426
  // ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
427
427
  var require_fill_range = __commonJS({
428
- "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
428
+ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports$1, module) {
429
429
  init_esm_shims();
430
430
  var util = __require("util");
431
431
  var toRegexRange = require_to_regex_range();
@@ -643,7 +643,7 @@ var require_fill_range = __commonJS({
643
643
 
644
644
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
645
645
  var require_compile = __commonJS({
646
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
646
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports$1, module) {
647
647
  init_esm_shims();
648
648
  var fill = require_fill_range();
649
649
  var utils = require_utils();
@@ -700,7 +700,7 @@ var require_compile = __commonJS({
700
700
 
701
701
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
702
702
  var require_expand = __commonJS({
703
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
703
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports$1, module) {
704
704
  init_esm_shims();
705
705
  var fill = require_fill_range();
706
706
  var stringify = require_stringify();
@@ -796,7 +796,7 @@ var require_expand = __commonJS({
796
796
 
797
797
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
798
798
  var require_constants = __commonJS({
799
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
799
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports$1, module) {
800
800
  init_esm_shims();
801
801
  module.exports = {
802
802
  MAX_LENGTH: 1e4,
@@ -897,7 +897,7 @@ var require_constants = __commonJS({
897
897
 
898
898
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
899
899
  var require_parse = __commonJS({
900
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
900
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports$1, module) {
901
901
  init_esm_shims();
902
902
  var stringify = require_stringify();
903
903
  var {
@@ -1196,7 +1196,7 @@ var require_parse = __commonJS({
1196
1196
 
1197
1197
  // ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
1198
1198
  var require_braces = __commonJS({
1199
- "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
1199
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports$1, module) {
1200
1200
  init_esm_shims();
1201
1201
  var stringify = require_stringify();
1202
1202
  var compile = require_compile();
@@ -1265,7 +1265,7 @@ var require_braces = __commonJS({
1265
1265
 
1266
1266
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
1267
1267
  var require_constants2 = __commonJS({
1268
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
1268
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports$1, module) {
1269
1269
  init_esm_shims();
1270
1270
  var path = __require("path");
1271
1271
  var WIN_SLASH = "\\\\/";
@@ -1482,41 +1482,41 @@ var require_constants2 = __commonJS({
1482
1482
 
1483
1483
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
1484
1484
  var require_utils2 = __commonJS({
1485
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
1485
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports$1) {
1486
1486
  init_esm_shims();
1487
1487
  var path = __require("path");
1488
1488
  var win32 = process.platform === "win32";
1489
1489
  var { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants2();
1490
- exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
1491
- exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1492
- exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
1493
- exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
1494
- exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
1495
- exports.removeBackslashes = (str) => {
1490
+ exports$1.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
1491
+ exports$1.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1492
+ exports$1.isRegexChar = (str) => str.length === 1 && exports$1.hasRegexChars(str);
1493
+ exports$1.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
1494
+ exports$1.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
1495
+ exports$1.removeBackslashes = (str) => {
1496
1496
  return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
1497
1497
  return match === "\\" ? "" : match;
1498
1498
  });
1499
1499
  };
1500
- exports.supportsLookbehinds = () => {
1500
+ exports$1.supportsLookbehinds = () => {
1501
1501
  const segs = process.version.slice(1).split(".").map(Number);
1502
1502
  if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
1503
1503
  return true;
1504
1504
  }
1505
1505
  return false;
1506
1506
  };
1507
- exports.isWindows = (options) => {
1507
+ exports$1.isWindows = (options) => {
1508
1508
  if (options && typeof options.windows === "boolean") {
1509
1509
  return options.windows;
1510
1510
  }
1511
1511
  return win32 === true || path.sep === "\\";
1512
1512
  };
1513
- exports.escapeLast = (input, char, lastIdx) => {
1513
+ exports$1.escapeLast = (input, char, lastIdx) => {
1514
1514
  const idx = input.lastIndexOf(char, lastIdx);
1515
1515
  if (idx === -1) return input;
1516
- if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1);
1516
+ if (input[idx - 1] === "\\") return exports$1.escapeLast(input, char, idx - 1);
1517
1517
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
1518
1518
  };
1519
- exports.removePrefix = (input, state = {}) => {
1519
+ exports$1.removePrefix = (input, state = {}) => {
1520
1520
  let output = input;
1521
1521
  if (output.startsWith("./")) {
1522
1522
  output = output.slice(2);
@@ -1524,7 +1524,7 @@ var require_utils2 = __commonJS({
1524
1524
  }
1525
1525
  return output;
1526
1526
  };
1527
- exports.wrapOutput = (input, state = {}, options = {}) => {
1527
+ exports$1.wrapOutput = (input, state = {}, options = {}) => {
1528
1528
  const prepend = options.contains ? "" : "^";
1529
1529
  const append = options.contains ? "" : "$";
1530
1530
  let output = `${prepend}(?:${input})${append}`;
@@ -1538,7 +1538,7 @@ var require_utils2 = __commonJS({
1538
1538
 
1539
1539
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
1540
1540
  var require_scan = __commonJS({
1541
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
1541
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports$1, module) {
1542
1542
  init_esm_shims();
1543
1543
  var utils = require_utils2();
1544
1544
  var {
@@ -1876,7 +1876,7 @@ var require_scan = __commonJS({
1876
1876
 
1877
1877
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
1878
1878
  var require_parse2 = __commonJS({
1879
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
1879
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports$1, module) {
1880
1880
  init_esm_shims();
1881
1881
  var constants = require_constants2();
1882
1882
  var utils = require_utils2();
@@ -2771,7 +2771,7 @@ var require_parse2 = __commonJS({
2771
2771
 
2772
2772
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
2773
2773
  var require_picomatch = __commonJS({
2774
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
2774
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports$1, module) {
2775
2775
  init_esm_shims();
2776
2776
  var path = __require("path");
2777
2777
  var scan = require_scan();
@@ -2942,7 +2942,7 @@ var require_picomatch = __commonJS({
2942
2942
 
2943
2943
  // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
2944
2944
  var require_picomatch2 = __commonJS({
2945
- "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
2945
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports$1, module) {
2946
2946
  init_esm_shims();
2947
2947
  module.exports = require_picomatch();
2948
2948
  }
@@ -2950,7 +2950,7 @@ var require_picomatch2 = __commonJS({
2950
2950
 
2951
2951
  // ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
2952
2952
  var require_micromatch = __commonJS({
2953
- "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
2953
+ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports$1, module) {
2954
2954
  init_esm_shims();
2955
2955
  var util = __require("util");
2956
2956
  var braces = require_braces();
@@ -3132,10 +3132,10 @@ var require_micromatch = __commonJS({
3132
3132
  }
3133
3133
  });
3134
3134
 
3135
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3135
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3136
3136
  init_esm_shims();
3137
3137
 
3138
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
3138
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
3139
3139
  init_esm_shims();
3140
3140
  function isDebug(level = 1) {
3141
3141
  const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
@@ -3155,7 +3155,7 @@ function debug2(...message) {
3155
3155
  }
3156
3156
  __name(debug2, "debug2");
3157
3157
 
3158
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
3158
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
3159
3159
  init_esm_shims();
3160
3160
  var import_micromatch = __toESM(require_micromatch());
3161
3161
  var { createSourceFile, resolveModuleName, isStringLiteral, JSDocParsingMode, ScriptTarget } = ts2;
@@ -3242,7 +3242,7 @@ var Resolver = class {
3242
3242
  }
3243
3243
  };
3244
3244
 
3245
- // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_a17934cba501a812c663946629886f06/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3245
+ // ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=88e8267ac73f46799c551ae3696181dc1f272895f490f8c_059f482e475ee87aa7d146392302455c/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
3246
3246
  var reflectionModes = [
3247
3247
  "default",
3248
3248
  "explicit",
@@ -3511,5 +3511,5 @@ fill-range/index.js:
3511
3511
  */
3512
3512
 
3513
3513
  export { Resolver, __name, __require, debug, debug2, defaultExcluded, getConfigResolver, init_esm_shims, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
3514
- //# sourceMappingURL=chunk-3U3LDLIG.js.map
3515
- //# sourceMappingURL=chunk-3U3LDLIG.js.map
3514
+ //# sourceMappingURL=chunk-XAYJUIQW.js.map
3515
+ //# sourceMappingURL=chunk-XAYJUIQW.js.map