ph-cmd 6.0.0-dev.56 → 6.0.0-dev.58

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/build/cli.old.js CHANGED
@@ -187031,7 +187031,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
187031
187031
  } });
187032
187032
  });
187033
187033
 
187034
- // ../../node_modules/.pnpm/balanced-match@4.0.2/node_modules/balanced-match/dist/commonjs/index.js
187034
+ // ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/commonjs/index.js
187035
187035
  var require_commonjs2 = __commonJS((exports) => {
187036
187036
  Object.defineProperty(exports, "__esModule", { value: true });
187037
187037
  exports.range = exports.balanced = undefined;
@@ -187090,10 +187090,9 @@ var require_commonjs2 = __commonJS((exports) => {
187090
187090
  exports.range = range;
187091
187091
  });
187092
187092
 
187093
- // ../../node_modules/.pnpm/brace-expansion@5.0.2/node_modules/brace-expansion/dist/commonjs/index.js
187093
+ // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js
187094
187094
  var require_commonjs3 = __commonJS((exports) => {
187095
187095
  Object.defineProperty(exports, "__esModule", { value: true });
187096
- exports.EXPANSION_MAX = undefined;
187097
187096
  exports.expand = expand;
187098
187097
  var balanced_match_1 = require_commonjs2();
187099
187098
  var escSlash = "\x00SLASH" + Math.random() + "\x00";
@@ -187111,7 +187110,6 @@ var require_commonjs3 = __commonJS((exports) => {
187111
187110
  var closePattern = /\\}/g;
187112
187111
  var commaPattern = /\\,/g;
187113
187112
  var periodPattern = /\\./g;
187114
- exports.EXPANSION_MAX = 1e5;
187115
187113
  function numeric(str2) {
187116
187114
  return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
187117
187115
  }
@@ -187141,15 +187139,14 @@ var require_commonjs3 = __commonJS((exports) => {
187141
187139
  parts.push.apply(parts, p);
187142
187140
  return parts;
187143
187141
  }
187144
- function expand(str2, options = {}) {
187142
+ function expand(str2) {
187145
187143
  if (!str2) {
187146
187144
  return [];
187147
187145
  }
187148
- const { max = exports.EXPANSION_MAX } = options;
187149
187146
  if (str2.slice(0, 2) === "{}") {
187150
187147
  str2 = "\\{\\}" + str2.slice(2);
187151
187148
  }
187152
- return expand_(escapeBraces(str2), max, true).map(unescapeBraces);
187149
+ return expand_(escapeBraces(str2), true).map(unescapeBraces);
187153
187150
  }
187154
187151
  function embrace(str2) {
187155
187152
  return "{" + str2 + "}";
@@ -187163,15 +187160,15 @@ var require_commonjs3 = __commonJS((exports) => {
187163
187160
  function gte(i, y) {
187164
187161
  return i >= y;
187165
187162
  }
187166
- function expand_(str2, max, isTop) {
187163
+ function expand_(str2, isTop) {
187167
187164
  const expansions = [];
187168
187165
  const m = (0, balanced_match_1.balanced)("{", "}", str2);
187169
187166
  if (!m)
187170
187167
  return [str2];
187171
187168
  const pre = m.pre;
187172
- const post = m.post.length ? expand_(m.post, max, false) : [""];
187169
+ const post = m.post.length ? expand_(m.post, false) : [""];
187173
187170
  if (/\$$/.test(m.pre)) {
187174
- for (let k = 0;k < post.length && k < max; k++) {
187171
+ for (let k = 0;k < post.length; k++) {
187175
187172
  const expansion = pre + "{" + m.body + "}" + post[k];
187176
187173
  expansions.push(expansion);
187177
187174
  }
@@ -187183,7 +187180,7 @@ var require_commonjs3 = __commonJS((exports) => {
187183
187180
  if (!isSequence && !isOptions) {
187184
187181
  if (m.post.match(/,(?!,).*\}/)) {
187185
187182
  str2 = m.pre + "{" + m.body + escClose + m.post;
187186
- return expand_(str2, max, true);
187183
+ return expand_(str2);
187187
187184
  }
187188
187185
  return [str2];
187189
187186
  }
@@ -187193,7 +187190,7 @@ var require_commonjs3 = __commonJS((exports) => {
187193
187190
  } else {
187194
187191
  n = parseCommaParts(m.body);
187195
187192
  if (n.length === 1 && n[0] !== undefined) {
187196
- n = expand_(n[0], max, false).map(embrace);
187193
+ n = expand_(n[0], false).map(embrace);
187197
187194
  if (n.length === 1) {
187198
187195
  return post.map((p) => m.pre + n[0] + p);
187199
187196
  }
@@ -187239,11 +187236,11 @@ var require_commonjs3 = __commonJS((exports) => {
187239
187236
  } else {
187240
187237
  N = [];
187241
187238
  for (let j = 0;j < n.length; j++) {
187242
- N.push.apply(N, expand_(n[j], max, false));
187239
+ N.push.apply(N, expand_(n[j], false));
187243
187240
  }
187244
187241
  }
187245
187242
  for (let j = 0;j < N.length; j++) {
187246
- for (let k = 0;k < post.length && expansions.length < max; k++) {
187243
+ for (let k = 0;k < post.length; k++) {
187247
187244
  const expansion = pre + N[j] + post[k];
187248
187245
  if (!isTop || isSequence || expansion) {
187249
187246
  expansions.push(expansion);
@@ -187255,7 +187252,7 @@ var require_commonjs3 = __commonJS((exports) => {
187255
187252
  }
187256
187253
  });
187257
187254
 
187258
- // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187255
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187259
187256
  var require_assert_valid_pattern = __commonJS((exports) => {
187260
187257
  Object.defineProperty(exports, "__esModule", { value: true });
187261
187258
  exports.assertValidPattern = undefined;
@@ -187271,7 +187268,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
187271
187268
  exports.assertValidPattern = assertValidPattern;
187272
187269
  });
187273
187270
 
187274
- // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187271
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187275
187272
  var require_brace_expressions = __commonJS((exports) => {
187276
187273
  Object.defineProperty(exports, "__esModule", { value: true });
187277
187274
  exports.parseClass = undefined;
@@ -187386,7 +187383,7 @@ var require_brace_expressions = __commonJS((exports) => {
187386
187383
  exports.parseClass = parseClass;
187387
187384
  });
187388
187385
 
187389
- // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/unescape.js
187386
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/unescape.js
187390
187387
  var require_unescape = __commonJS((exports) => {
187391
187388
  Object.defineProperty(exports, "__esModule", { value: true });
187392
187389
  exports.unescape = undefined;
@@ -187399,7 +187396,7 @@ var require_unescape = __commonJS((exports) => {
187399
187396
  exports.unescape = unescape;
187400
187397
  });
187401
187398
 
187402
- // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/ast.js
187399
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/ast.js
187403
187400
  var require_ast = __commonJS((exports) => {
187404
187401
  Object.defineProperty(exports, "__esModule", { value: true });
187405
187402
  exports.AST = undefined;
@@ -187758,7 +187755,6 @@ var require_ast = __commonJS((exports) => {
187758
187755
  let escaping = false;
187759
187756
  let re = "";
187760
187757
  let uflag = false;
187761
- let inStar = false;
187762
187758
  for (let i = 0;i < glob.length; i++) {
187763
187759
  const c2 = glob.charAt(i);
187764
187760
  if (escaping) {
@@ -187766,16 +187762,6 @@ var require_ast = __commonJS((exports) => {
187766
187762
  re += (reSpecials.has(c2) ? "\\" : "") + c2;
187767
187763
  continue;
187768
187764
  }
187769
- if (c2 === "*") {
187770
- if (inStar)
187771
- continue;
187772
- inStar = true;
187773
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
187774
- hasMagic = true;
187775
- continue;
187776
- } else {
187777
- inStar = false;
187778
- }
187779
187765
  if (c2 === "\\") {
187780
187766
  if (i === glob.length - 1) {
187781
187767
  re += "\\\\";
@@ -187794,6 +187780,11 @@ var require_ast = __commonJS((exports) => {
187794
187780
  continue;
187795
187781
  }
187796
187782
  }
187783
+ if (c2 === "*") {
187784
+ re += noEmpty && glob === "*" ? starNoEmpty : star;
187785
+ hasMagic = true;
187786
+ continue;
187787
+ }
187797
187788
  if (c2 === "?") {
187798
187789
  re += qmark;
187799
187790
  hasMagic = true;
@@ -187807,7 +187798,7 @@ var require_ast = __commonJS((exports) => {
187807
187798
  exports.AST = AST;
187808
187799
  });
187809
187800
 
187810
- // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/escape.js
187801
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/escape.js
187811
187802
  var require_escape = __commonJS((exports) => {
187812
187803
  Object.defineProperty(exports, "__esModule", { value: true });
187813
187804
  exports.escape = undefined;
@@ -187820,7 +187811,7 @@ var require_escape = __commonJS((exports) => {
187820
187811
  exports.escape = escape;
187821
187812
  });
187822
187813
 
187823
- // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/index.js
187814
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/index.js
187824
187815
  var require_commonjs4 = __commonJS((exports) => {
187825
187816
  Object.defineProperty(exports, "__esModule", { value: true });
187826
187817
  exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
@@ -187945,7 +187936,7 @@ var require_commonjs4 = __commonJS((exports) => {
187945
187936
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
187946
187937
  return [pattern];
187947
187938
  }
187948
- return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
187939
+ return (0, brace_expansion_1.expand)(pattern);
187949
187940
  };
187950
187941
  exports.braceExpand = braceExpand;
187951
187942
  exports.minimatch.braceExpand = exports.braceExpand;
@@ -187990,8 +187981,7 @@ var require_commonjs4 = __commonJS((exports) => {
187990
187981
  this.pattern = pattern;
187991
187982
  this.platform = options.platform || defaultPlatform;
187992
187983
  this.isWindows = this.platform === "win32";
187993
- const awe = "allowWindow" + "sEscape";
187994
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
187984
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
187995
187985
  if (this.windowsPathsNoEscape) {
187996
187986
  this.pattern = this.pattern.replace(/\\/g, "/");
187997
187987
  }
@@ -188047,10 +188037,7 @@ var require_commonjs4 = __commonJS((exports) => {
188047
188037
  const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
188048
188038
  const isDrive = /^[a-z]:/i.test(s[0]);
188049
188039
  if (isUNC) {
188050
- return [
188051
- ...s.slice(0, 4),
188052
- ...s.slice(4).map((ss) => this.parse(ss))
188053
- ];
188040
+ return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
188054
188041
  } else if (isDrive) {
188055
188042
  return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
188056
188043
  }
@@ -188294,10 +188281,7 @@ var require_commonjs4 = __commonJS((exports) => {
188294
188281
  const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
188295
188282
  const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
188296
188283
  if (typeof fdi === "number" && typeof pdi === "number") {
188297
- const [fd, pd] = [
188298
- file[fdi],
188299
- pattern[pdi]
188300
- ];
188284
+ const [fd, pd] = [file[fdi], pattern[pdi]];
188301
188285
  if (fd.toLowerCase() === pd.toLowerCase()) {
188302
188286
  pattern[pdi] = fd;
188303
188287
  if (pdi > fdi) {
@@ -602234,7 +602218,7 @@ import fs6 from "node:fs";
602234
602218
  import path9 from "node:path";
602235
602219
  var customVersionHandler = async () => {
602236
602220
  const projectInfo = await getProjectInfo(undefined, false);
602237
- const version2 = "6.0.0-dev.55";
602221
+ const version2 = "6.0.0-dev.57";
602238
602222
  console.log("PH CMD version: ", version2);
602239
602223
  if (projectInfo.available) {
602240
602224
  const packageManager = getPackageManagerFromLockfile(projectInfo.path);