@coana-tech/cli 15.0.1 → 15.0.3

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/cli.mjs CHANGED
@@ -12993,7 +12993,7 @@ var require_form_data = __commonJS({
12993
12993
  var util5 = __require("util");
12994
12994
  var path9 = __require("path");
12995
12995
  var http2 = __require("http");
12996
- var https2 = __require("https");
12996
+ var https3 = __require("https");
12997
12997
  var parseUrl = __require("url").parse;
12998
12998
  var fs11 = __require("fs");
12999
12999
  var Stream2 = __require("stream").Stream;
@@ -13262,7 +13262,7 @@ var require_form_data = __commonJS({
13262
13262
  }
13263
13263
  options.headers = this.getHeaders(params.headers);
13264
13264
  if (options.protocol === "https:") {
13265
- request = https2.request(options);
13265
+ request = https3.request(options);
13266
13266
  } else {
13267
13267
  request = http2.request(options);
13268
13268
  }
@@ -13387,7 +13387,7 @@ var require_ms = __commonJS({
13387
13387
  options = options || {};
13388
13388
  var type = typeof val2;
13389
13389
  if (type === "string" && val2.length > 0) {
13390
- return parse17(val2);
13390
+ return parse16(val2);
13391
13391
  } else if (type === "number" && isFinite(val2)) {
13392
13392
  return options.long ? fmtLong(val2) : fmtShort(val2);
13393
13393
  }
@@ -13395,7 +13395,7 @@ var require_ms = __commonJS({
13395
13395
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val2)
13396
13396
  );
13397
13397
  };
13398
- function parse17(str) {
13398
+ function parse16(str) {
13399
13399
  str = String(str);
13400
13400
  if (str.length > 100) {
13401
13401
  return;
@@ -14160,7 +14160,7 @@ var require_follow_redirects = __commonJS({
14160
14160
  var url2 = __require("url");
14161
14161
  var URL3 = url2.URL;
14162
14162
  var http2 = __require("http");
14163
- var https2 = __require("https");
14163
+ var https3 = __require("https");
14164
14164
  var Writable = __require("stream").Writable;
14165
14165
  var assert17 = __require("assert");
14166
14166
  var debug = require_debug();
@@ -14645,7 +14645,7 @@ var require_follow_redirects = __commonJS({
14645
14645
  function isURL(value2) {
14646
14646
  return URL3 && value2 instanceof URL3;
14647
14647
  }
14648
- module2.exports = wrap2({ http: http2, https: https2 });
14648
+ module2.exports = wrap2({ http: http2, https: https3 });
14649
14649
  module2.exports.wrap = wrap2;
14650
14650
  }
14651
14651
  });
@@ -15272,7 +15272,7 @@ var require_parse = __commonJS({
15272
15272
  var syntaxError = (type, char) => {
15273
15273
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
15274
15274
  };
15275
- var parse17 = (input, options) => {
15275
+ var parse16 = (input, options) => {
15276
15276
  if (typeof input !== "string") {
15277
15277
  throw new TypeError("Expected a string");
15278
15278
  }
@@ -15420,7 +15420,7 @@ var require_parse = __commonJS({
15420
15420
  output = token.close = `)$))${extglobStar}`;
15421
15421
  }
15422
15422
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
15423
- const expression = parse17(rest, { ...options, fastpaths: false }).output;
15423
+ const expression = parse16(rest, { ...options, fastpaths: false }).output;
15424
15424
  output = token.close = `)${expression})${extglobStar})`;
15425
15425
  }
15426
15426
  if (token.prev.type === "bos") {
@@ -15942,7 +15942,7 @@ var require_parse = __commonJS({
15942
15942
  }
15943
15943
  return state;
15944
15944
  };
15945
- parse17.fastpaths = (input, options) => {
15945
+ parse16.fastpaths = (input, options) => {
15946
15946
  const opts = { ...options };
15947
15947
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
15948
15948
  const len = input.length;
@@ -16007,7 +16007,7 @@ var require_parse = __commonJS({
16007
16007
  }
16008
16008
  return source;
16009
16009
  };
16010
- module2.exports = parse17;
16010
+ module2.exports = parse16;
16011
16011
  }
16012
16012
  });
16013
16013
 
@@ -16016,7 +16016,7 @@ var require_picomatch = __commonJS({
16016
16016
  "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
16017
16017
  "use strict";
16018
16018
  var scan = require_scan();
16019
- var parse17 = require_parse();
16019
+ var parse16 = require_parse();
16020
16020
  var utils = require_utils();
16021
16021
  var constants4 = require_constants();
16022
16022
  var isObject2 = (val2) => val2 && typeof val2 === "object" && !Array.isArray(val2);
@@ -16104,7 +16104,7 @@ var require_picomatch = __commonJS({
16104
16104
  picomatch11.isMatch = (str, patterns, options) => picomatch11(patterns, options)(str);
16105
16105
  picomatch11.parse = (pattern, options) => {
16106
16106
  if (Array.isArray(pattern)) return pattern.map((p3) => picomatch11.parse(p3, options));
16107
- return parse17(pattern, { ...options, fastpaths: false });
16107
+ return parse16(pattern, { ...options, fastpaths: false });
16108
16108
  };
16109
16109
  picomatch11.scan = (input, options) => scan(input, options);
16110
16110
  picomatch11.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -16130,10 +16130,10 @@ var require_picomatch = __commonJS({
16130
16130
  }
16131
16131
  let parsed = { negated: false, fastpaths: true };
16132
16132
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
16133
- parsed.output = parse17.fastpaths(input, options);
16133
+ parsed.output = parse16.fastpaths(input, options);
16134
16134
  }
16135
16135
  if (!parsed.output) {
16136
- parsed = parse17(input, options);
16136
+ parsed = parse16(input, options);
16137
16137
  }
16138
16138
  return picomatch11.compileRe(parsed, options, returnOutput, returnState);
16139
16139
  };
@@ -16168,9 +16168,9 @@ var require_picomatch2 = __commonJS({
16168
16168
  }
16169
16169
  });
16170
16170
 
16171
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/format.js
16171
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/format.js
16172
16172
  var require_format = __commonJS({
16173
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/format.js"(exports2, module2) {
16173
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/format.js"(exports2, module2) {
16174
16174
  "use strict";
16175
16175
  var InvalidFormatError = class _InvalidFormatError extends Error {
16176
16176
  constructor(formatFn) {
@@ -16976,9 +16976,9 @@ var require_triple_beam = __commonJS({
16976
16976
  }
16977
16977
  });
16978
16978
 
16979
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/colorize.js
16979
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/colorize.js
16980
16980
  var require_colorize = __commonJS({
16981
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/colorize.js"(exports2, module2) {
16981
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/colorize.js"(exports2, module2) {
16982
16982
  "use strict";
16983
16983
  var colors = require_safe();
16984
16984
  var { LEVEL, MESSAGE } = require_triple_beam();
@@ -17053,9 +17053,9 @@ var require_colorize = __commonJS({
17053
17053
  }
17054
17054
  });
17055
17055
 
17056
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/levels.js
17056
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/levels.js
17057
17057
  var require_levels = __commonJS({
17058
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/levels.js"(exports2, module2) {
17058
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/levels.js"(exports2, module2) {
17059
17059
  "use strict";
17060
17060
  var { Colorizer } = require_colorize();
17061
17061
  module2.exports = (config3) => {
@@ -17065,9 +17065,9 @@ var require_levels = __commonJS({
17065
17065
  }
17066
17066
  });
17067
17067
 
17068
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/align.js
17068
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/align.js
17069
17069
  var require_align = __commonJS({
17070
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/align.js"(exports2, module2) {
17070
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/align.js"(exports2, module2) {
17071
17071
  "use strict";
17072
17072
  var format6 = require_format();
17073
17073
  module2.exports = format6((info) => {
@@ -17077,9 +17077,9 @@ var require_align = __commonJS({
17077
17077
  }
17078
17078
  });
17079
17079
 
17080
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/errors.js
17080
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/errors.js
17081
17081
  var require_errors = __commonJS({
17082
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/errors.js"(exports2, module2) {
17082
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/errors.js"(exports2, module2) {
17083
17083
  "use strict";
17084
17084
  var format6 = require_format();
17085
17085
  var { LEVEL, MESSAGE } = require_triple_beam();
@@ -17107,9 +17107,9 @@ var require_errors = __commonJS({
17107
17107
  }
17108
17108
  });
17109
17109
 
17110
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/pad-levels.js
17110
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/pad-levels.js
17111
17111
  var require_pad_levels = __commonJS({
17112
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/pad-levels.js"(exports2, module2) {
17112
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/pad-levels.js"(exports2, module2) {
17113
17113
  "use strict";
17114
17114
  var { configs, LEVEL, MESSAGE } = require_triple_beam();
17115
17115
  var Padder = class _Padder {
@@ -17178,9 +17178,9 @@ var require_pad_levels = __commonJS({
17178
17178
  }
17179
17179
  });
17180
17180
 
17181
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/cli.js
17181
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/cli.js
17182
17182
  var require_cli2 = __commonJS({
17183
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/cli.js"(exports2, module2) {
17183
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/cli.js"(exports2, module2) {
17184
17184
  "use strict";
17185
17185
  var { Colorizer } = require_colorize();
17186
17186
  var { Padder } = require_pad_levels();
@@ -17215,9 +17215,9 @@ var require_cli2 = __commonJS({
17215
17215
  }
17216
17216
  });
17217
17217
 
17218
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/combine.js
17218
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/combine.js
17219
17219
  var require_combine = __commonJS({
17220
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/combine.js"(exports2, module2) {
17220
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/combine.js"(exports2, module2) {
17221
17221
  "use strict";
17222
17222
  var format6 = require_format();
17223
17223
  function cascade(formats) {
@@ -17839,9 +17839,9 @@ ${originalIndentation}`;
17839
17839
  }
17840
17840
  });
17841
17841
 
17842
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/json.js
17842
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/json.js
17843
17843
  var require_json = __commonJS({
17844
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/json.js"(exports2, module2) {
17844
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/json.js"(exports2, module2) {
17845
17845
  "use strict";
17846
17846
  var format6 = require_format();
17847
17847
  var { MESSAGE } = require_triple_beam();
@@ -17859,9 +17859,9 @@ var require_json = __commonJS({
17859
17859
  }
17860
17860
  });
17861
17861
 
17862
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/label.js
17862
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/label.js
17863
17863
  var require_label = __commonJS({
17864
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/label.js"(exports2, module2) {
17864
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/label.js"(exports2, module2) {
17865
17865
  "use strict";
17866
17866
  var format6 = require_format();
17867
17867
  module2.exports = format6((info, opts) => {
@@ -17875,9 +17875,9 @@ var require_label = __commonJS({
17875
17875
  }
17876
17876
  });
17877
17877
 
17878
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/logstash.js
17878
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/logstash.js
17879
17879
  var require_logstash = __commonJS({
17880
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/logstash.js"(exports2, module2) {
17880
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/logstash.js"(exports2, module2) {
17881
17881
  "use strict";
17882
17882
  var format6 = require_format();
17883
17883
  var { MESSAGE } = require_triple_beam();
@@ -17899,9 +17899,9 @@ var require_logstash = __commonJS({
17899
17899
  }
17900
17900
  });
17901
17901
 
17902
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/metadata.js
17902
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/metadata.js
17903
17903
  var require_metadata = __commonJS({
17904
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/metadata.js"(exports2, module2) {
17904
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/metadata.js"(exports2, module2) {
17905
17905
  "use strict";
17906
17906
  var format6 = require_format();
17907
17907
  function fillExcept(info, fillExceptKeys, metadataKey) {
@@ -17965,7 +17965,7 @@ var require_ms2 = __commonJS({
17965
17965
  options = options || {};
17966
17966
  var type = typeof val2;
17967
17967
  if (type === "string" && val2.length > 0) {
17968
- return parse17(val2);
17968
+ return parse16(val2);
17969
17969
  } else if (type === "number" && isFinite(val2)) {
17970
17970
  return options.long ? fmtLong(val2) : fmtShort(val2);
17971
17971
  }
@@ -17973,7 +17973,7 @@ var require_ms2 = __commonJS({
17973
17973
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val2)
17974
17974
  );
17975
17975
  };
17976
- function parse17(str) {
17976
+ function parse16(str) {
17977
17977
  str = String(str);
17978
17978
  if (str.length > 100) {
17979
17979
  return;
@@ -18068,9 +18068,9 @@ var require_ms2 = __commonJS({
18068
18068
  }
18069
18069
  });
18070
18070
 
18071
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/ms.js
18071
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/ms.js
18072
18072
  var require_ms3 = __commonJS({
18073
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/ms.js"(exports2, module2) {
18073
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/ms.js"(exports2, module2) {
18074
18074
  "use strict";
18075
18075
  var format6 = require_format();
18076
18076
  var ms = require_ms2();
@@ -18084,9 +18084,9 @@ var require_ms3 = __commonJS({
18084
18084
  }
18085
18085
  });
18086
18086
 
18087
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/pretty-print.js
18087
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/pretty-print.js
18088
18088
  var require_pretty_print = __commonJS({
18089
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/pretty-print.js"(exports2, module2) {
18089
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/pretty-print.js"(exports2, module2) {
18090
18090
  "use strict";
18091
18091
  var inspect = __require("util").inspect;
18092
18092
  var format6 = require_format();
@@ -18102,9 +18102,9 @@ var require_pretty_print = __commonJS({
18102
18102
  }
18103
18103
  });
18104
18104
 
18105
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/printf.js
18105
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/printf.js
18106
18106
  var require_printf = __commonJS({
18107
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/printf.js"(exports2, module2) {
18107
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/printf.js"(exports2, module2) {
18108
18108
  "use strict";
18109
18109
  var { MESSAGE } = require_triple_beam();
18110
18110
  var Printf = class {
@@ -18121,9 +18121,9 @@ var require_printf = __commonJS({
18121
18121
  }
18122
18122
  });
18123
18123
 
18124
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/simple.js
18124
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/simple.js
18125
18125
  var require_simple = __commonJS({
18126
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/simple.js"(exports2, module2) {
18126
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/simple.js"(exports2, module2) {
18127
18127
  "use strict";
18128
18128
  var format6 = require_format();
18129
18129
  var { MESSAGE } = require_triple_beam();
@@ -18145,9 +18145,9 @@ var require_simple = __commonJS({
18145
18145
  }
18146
18146
  });
18147
18147
 
18148
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/splat.js
18148
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/splat.js
18149
18149
  var require_splat = __commonJS({
18150
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/splat.js"(exports2, module2) {
18150
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/splat.js"(exports2, module2) {
18151
18151
  "use strict";
18152
18152
  var util5 = __require("util");
18153
18153
  var { SPLAT } = require_triple_beam();
@@ -18521,7 +18521,7 @@ var require_fecha_umd = __commonJS({
18521
18521
  return literals.shift();
18522
18522
  });
18523
18523
  };
18524
- function parse17(dateStr, format7, i18n) {
18524
+ function parse16(dateStr, format7, i18n) {
18525
18525
  if (i18n === void 0) {
18526
18526
  i18n = {};
18527
18527
  }
@@ -18616,7 +18616,7 @@ var require_fecha_umd = __commonJS({
18616
18616
  }
18617
18617
  var fecha = {
18618
18618
  format: format6,
18619
- parse: parse17,
18619
+ parse: parse16,
18620
18620
  defaultI18n,
18621
18621
  setGlobalDateI18n,
18622
18622
  setGlobalDateMasks
@@ -18624,7 +18624,7 @@ var require_fecha_umd = __commonJS({
18624
18624
  exports3.assign = assign;
18625
18625
  exports3.default = fecha;
18626
18626
  exports3.format = format6;
18627
- exports3.parse = parse17;
18627
+ exports3.parse = parse16;
18628
18628
  exports3.defaultI18n = defaultI18n;
18629
18629
  exports3.setGlobalDateI18n = setGlobalDateI18n;
18630
18630
  exports3.setGlobalDateMasks = setGlobalDateMasks;
@@ -18633,9 +18633,9 @@ var require_fecha_umd = __commonJS({
18633
18633
  }
18634
18634
  });
18635
18635
 
18636
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/timestamp.js
18636
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/timestamp.js
18637
18637
  var require_timestamp = __commonJS({
18638
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/timestamp.js"(exports2, module2) {
18638
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/timestamp.js"(exports2, module2) {
18639
18639
  "use strict";
18640
18640
  var fecha = require_fecha_umd();
18641
18641
  var format6 = require_format();
@@ -18654,9 +18654,9 @@ var require_timestamp = __commonJS({
18654
18654
  }
18655
18655
  });
18656
18656
 
18657
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/uncolorize.js
18657
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/uncolorize.js
18658
18658
  var require_uncolorize = __commonJS({
18659
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/uncolorize.js"(exports2, module2) {
18659
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/uncolorize.js"(exports2, module2) {
18660
18660
  "use strict";
18661
18661
  var colors = require_safe();
18662
18662
  var format6 = require_format();
@@ -18676,9 +18676,9 @@ var require_uncolorize = __commonJS({
18676
18676
  }
18677
18677
  });
18678
18678
 
18679
- // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/index.js
18679
+ // ../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/index.js
18680
18680
  var require_logform = __commonJS({
18681
- "../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/index.js"(exports2) {
18681
+ "../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/index.js"(exports2) {
18682
18682
  "use strict";
18683
18683
  var format6 = exports2.format = require_format();
18684
18684
  exports2.levels = require_levels();
@@ -21363,9 +21363,9 @@ var require_stream_writable = __commonJS({
21363
21363
  }
21364
21364
  });
21365
21365
 
21366
- // ../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/modern.js
21366
+ // ../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/modern.js
21367
21367
  var require_modern = __commonJS({
21368
- "../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/modern.js"(exports2, module2) {
21368
+ "../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/modern.js"(exports2, module2) {
21369
21369
  "use strict";
21370
21370
  var util5 = __require("util");
21371
21371
  var Writable = require_stream_writable();
@@ -21475,9 +21475,9 @@ var require_modern = __commonJS({
21475
21475
  }
21476
21476
  });
21477
21477
 
21478
- // ../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/legacy.js
21478
+ // ../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/legacy.js
21479
21479
  var require_legacy = __commonJS({
21480
- "../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/legacy.js"(exports2, module2) {
21480
+ "../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/legacy.js"(exports2, module2) {
21481
21481
  "use strict";
21482
21482
  var util5 = __require("util");
21483
21483
  var { LEVEL } = require_triple_beam();
@@ -21541,9 +21541,9 @@ var require_legacy = __commonJS({
21541
21541
  }
21542
21542
  });
21543
21543
 
21544
- // ../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/index.js
21544
+ // ../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/index.js
21545
21545
  var require_winston_transport = __commonJS({
21546
- "../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/index.js"(exports2, module2) {
21546
+ "../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/index.js"(exports2, module2) {
21547
21547
  "use strict";
21548
21548
  module2.exports = require_modern();
21549
21549
  module2.exports.LegacyTransportStream = require_legacy();
@@ -25169,7 +25169,7 @@ var require_http = __commonJS({
25169
25169
  "../../node_modules/.pnpm/winston@3.16.0/node_modules/winston/lib/winston/transports/http.js"(exports2, module2) {
25170
25170
  "use strict";
25171
25171
  var http2 = __require("http");
25172
- var https2 = __require("https");
25172
+ var https3 = __require("https");
25173
25173
  var { Stream: Stream2 } = require_readable();
25174
25174
  var TransportStream = require_winston_transport();
25175
25175
  var { configure } = require_safe_stable_stringify();
@@ -25361,7 +25361,7 @@ var require_http = __commonJS({
25361
25361
  if (auth && auth.bearer) {
25362
25362
  headers.Authorization = `Bearer ${auth.bearer}`;
25363
25363
  }
25364
- const req = (this.ssl ? https2 : http2).request({
25364
+ const req = (this.ssl ? https3 : http2).request({
25365
25365
  ...this.options,
25366
25366
  method: "POST",
25367
25367
  host: this.host,
@@ -27084,7 +27084,7 @@ var require_is_retry_allowed = __commonJS({
27084
27084
  var require_hpagent = __commonJS({
27085
27085
  "../../node_modules/.pnpm/hpagent@1.2.0/node_modules/hpagent/index.js"(exports2, module2) {
27086
27086
  "use strict";
27087
- var https2 = __require("https");
27087
+ var https3 = __require("https");
27088
27088
  var http2 = __require("http");
27089
27089
  var { URL: URL3 } = __require("url");
27090
27090
  var HttpProxyAgent2 = class extends http2.Agent {
@@ -27113,7 +27113,7 @@ var require_hpagent = __commonJS({
27113
27113
  if (this.proxy.protocol === "https:") {
27114
27114
  requestOptions.servername = this.proxy.hostname;
27115
27115
  }
27116
- const request = (this.proxy.protocol === "http:" ? http2 : https2).request(requestOptions);
27116
+ const request = (this.proxy.protocol === "http:" ? http2 : https3).request(requestOptions);
27117
27117
  request.once("connect", (response, socket, head) => {
27118
27118
  request.removeAllListeners();
27119
27119
  socket.removeAllListeners();
@@ -27134,7 +27134,7 @@ var require_hpagent = __commonJS({
27134
27134
  request.end();
27135
27135
  }
27136
27136
  };
27137
- var HttpsProxyAgent2 = class extends https2.Agent {
27137
+ var HttpsProxyAgent2 = class extends https3.Agent {
27138
27138
  constructor(options) {
27139
27139
  const { proxy, proxyRequestOptions, ...opts } = options;
27140
27140
  super(opts);
@@ -27160,7 +27160,7 @@ var require_hpagent = __commonJS({
27160
27160
  if (this.proxy.protocol === "https:") {
27161
27161
  requestOptions.servername = this.proxy.hostname;
27162
27162
  }
27163
- const request = (this.proxy.protocol === "http:" ? http2 : https2).request(requestOptions);
27163
+ const request = (this.proxy.protocol === "http:" ? http2 : https3).request(requestOptions);
27164
27164
  request.once("connect", (response, socket, head) => {
27165
27165
  request.removeAllListeners();
27166
27166
  socket.removeAllListeners();
@@ -37910,7 +37910,7 @@ var require_parse2 = __commonJS({
37910
37910
  CHAR_NO_BREAK_SPACE,
37911
37911
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
37912
37912
  } = require_constants2();
37913
- var parse17 = (input, options = {}) => {
37913
+ var parse16 = (input, options = {}) => {
37914
37914
  if (typeof input !== "string") {
37915
37915
  throw new TypeError("Expected a string");
37916
37916
  }
@@ -38112,7 +38112,7 @@ var require_parse2 = __commonJS({
38112
38112
  push2({ type: "eos" });
38113
38113
  return ast;
38114
38114
  };
38115
- module2.exports = parse17;
38115
+ module2.exports = parse16;
38116
38116
  }
38117
38117
  });
38118
38118
 
@@ -38123,7 +38123,7 @@ var require_braces = __commonJS({
38123
38123
  var stringify3 = require_stringify();
38124
38124
  var compile4 = require_compile();
38125
38125
  var expand2 = require_expand();
38126
- var parse17 = require_parse2();
38126
+ var parse16 = require_parse2();
38127
38127
  var braces = (input, options = {}) => {
38128
38128
  let output = [];
38129
38129
  if (Array.isArray(input)) {
@@ -38143,7 +38143,7 @@ var require_braces = __commonJS({
38143
38143
  }
38144
38144
  return output;
38145
38145
  };
38146
- braces.parse = (input, options = {}) => parse17(input, options);
38146
+ braces.parse = (input, options = {}) => parse16(input, options);
38147
38147
  braces.stringify = (input, options = {}) => {
38148
38148
  if (typeof input === "string") {
38149
38149
  return stringify3(braces.parse(input, options), options);
@@ -38796,7 +38796,7 @@ var require_parse3 = __commonJS({
38796
38796
  var syntaxError = (type, char) => {
38797
38797
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
38798
38798
  };
38799
- var parse17 = (input, options) => {
38799
+ var parse16 = (input, options) => {
38800
38800
  if (typeof input !== "string") {
38801
38801
  throw new TypeError("Expected a string");
38802
38802
  }
@@ -38945,7 +38945,7 @@ var require_parse3 = __commonJS({
38945
38945
  output = token.close = `)$))${extglobStar}`;
38946
38946
  }
38947
38947
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
38948
- const expression = parse17(rest, { ...options, fastpaths: false }).output;
38948
+ const expression = parse16(rest, { ...options, fastpaths: false }).output;
38949
38949
  output = token.close = `)${expression})${extglobStar})`;
38950
38950
  }
38951
38951
  if (token.prev.type === "bos") {
@@ -39470,7 +39470,7 @@ var require_parse3 = __commonJS({
39470
39470
  }
39471
39471
  return state;
39472
39472
  };
39473
- parse17.fastpaths = (input, options) => {
39473
+ parse16.fastpaths = (input, options) => {
39474
39474
  const opts = { ...options };
39475
39475
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
39476
39476
  const len = input.length;
@@ -39536,7 +39536,7 @@ var require_parse3 = __commonJS({
39536
39536
  }
39537
39537
  return source;
39538
39538
  };
39539
- module2.exports = parse17;
39539
+ module2.exports = parse16;
39540
39540
  }
39541
39541
  });
39542
39542
 
@@ -39546,7 +39546,7 @@ var require_picomatch3 = __commonJS({
39546
39546
  "use strict";
39547
39547
  var path9 = __require("path");
39548
39548
  var scan = require_scan2();
39549
- var parse17 = require_parse3();
39549
+ var parse16 = require_parse3();
39550
39550
  var utils = require_utils3();
39551
39551
  var constants4 = require_constants3();
39552
39552
  var isObject2 = (val2) => val2 && typeof val2 === "object" && !Array.isArray(val2);
@@ -39634,7 +39634,7 @@ var require_picomatch3 = __commonJS({
39634
39634
  picomatch11.isMatch = (str, patterns, options) => picomatch11(patterns, options)(str);
39635
39635
  picomatch11.parse = (pattern, options) => {
39636
39636
  if (Array.isArray(pattern)) return pattern.map((p3) => picomatch11.parse(p3, options));
39637
- return parse17(pattern, { ...options, fastpaths: false });
39637
+ return parse16(pattern, { ...options, fastpaths: false });
39638
39638
  };
39639
39639
  picomatch11.scan = (input, options) => scan(input, options);
39640
39640
  picomatch11.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -39660,10 +39660,10 @@ var require_picomatch3 = __commonJS({
39660
39660
  }
39661
39661
  let parsed = { negated: false, fastpaths: true };
39662
39662
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
39663
- parsed.output = parse17.fastpaths(input, options);
39663
+ parsed.output = parse16.fastpaths(input, options);
39664
39664
  }
39665
39665
  if (!parsed.output) {
39666
- parsed = parse17(input, options);
39666
+ parsed = parse16(input, options);
39667
39667
  }
39668
39668
  return picomatch11.compileRe(parsed, options, returnOutput, returnState);
39669
39669
  };
@@ -40282,7 +40282,7 @@ var require_parse4 = __commonJS({
40282
40282
  "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js"(exports2, module2) {
40283
40283
  "use strict";
40284
40284
  var SemVer = require_semver();
40285
- var parse17 = (version4, options, throwErrors = false) => {
40285
+ var parse16 = (version4, options, throwErrors = false) => {
40286
40286
  if (version4 instanceof SemVer) {
40287
40287
  return version4;
40288
40288
  }
@@ -40295,7 +40295,7 @@ var require_parse4 = __commonJS({
40295
40295
  throw er;
40296
40296
  }
40297
40297
  };
40298
- module2.exports = parse17;
40298
+ module2.exports = parse16;
40299
40299
  }
40300
40300
  });
40301
40301
 
@@ -40303,9 +40303,9 @@ var require_parse4 = __commonJS({
40303
40303
  var require_valid = __commonJS({
40304
40304
  "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js"(exports2, module2) {
40305
40305
  "use strict";
40306
- var parse17 = require_parse4();
40306
+ var parse16 = require_parse4();
40307
40307
  var valid = (version4, options) => {
40308
- const v = parse17(version4, options);
40308
+ const v = parse16(version4, options);
40309
40309
  return v ? v.version : null;
40310
40310
  };
40311
40311
  module2.exports = valid;
@@ -40316,9 +40316,9 @@ var require_valid = __commonJS({
40316
40316
  var require_clean = __commonJS({
40317
40317
  "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js"(exports2, module2) {
40318
40318
  "use strict";
40319
- var parse17 = require_parse4();
40319
+ var parse16 = require_parse4();
40320
40320
  var clean = (version4, options) => {
40321
- const s6 = parse17(version4.trim().replace(/^[=v]+/, ""), options);
40321
+ const s6 = parse16(version4.trim().replace(/^[=v]+/, ""), options);
40322
40322
  return s6 ? s6.version : null;
40323
40323
  };
40324
40324
  module2.exports = clean;
@@ -40353,10 +40353,10 @@ var require_inc = __commonJS({
40353
40353
  var require_diff = __commonJS({
40354
40354
  "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js"(exports2, module2) {
40355
40355
  "use strict";
40356
- var parse17 = require_parse4();
40356
+ var parse16 = require_parse4();
40357
40357
  var diff = (version1, version22) => {
40358
- const v12 = parse17(version1, null, true);
40359
- const v2 = parse17(version22, null, true);
40358
+ const v12 = parse16(version1, null, true);
40359
+ const v2 = parse16(version22, null, true);
40360
40360
  const comparison = v12.compare(v2);
40361
40361
  if (comparison === 0) {
40362
40362
  return null;
@@ -40427,9 +40427,9 @@ var require_patch = __commonJS({
40427
40427
  var require_prerelease = __commonJS({
40428
40428
  "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js"(exports2, module2) {
40429
40429
  "use strict";
40430
- var parse17 = require_parse4();
40430
+ var parse16 = require_parse4();
40431
40431
  var prerelease = (version4, options) => {
40432
- const parsed = parse17(version4, options);
40432
+ const parsed = parse16(version4, options);
40433
40433
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
40434
40434
  };
40435
40435
  module2.exports = prerelease;
@@ -40615,7 +40615,7 @@ var require_coerce = __commonJS({
40615
40615
  "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js"(exports2, module2) {
40616
40616
  "use strict";
40617
40617
  var SemVer = require_semver();
40618
- var parse17 = require_parse4();
40618
+ var parse16 = require_parse4();
40619
40619
  var { safeRe: re, t: t4 } = require_re();
40620
40620
  var coerce = (version4, options) => {
40621
40621
  if (version4 instanceof SemVer) {
@@ -40650,7 +40650,7 @@ var require_coerce = __commonJS({
40650
40650
  const patch = match2[4] || "0";
40651
40651
  const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
40652
40652
  const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
40653
- return parse17(`${major}.${minor}.${patch}${prerelease}${build}`, options);
40653
+ return parse16(`${major}.${minor}.${patch}${prerelease}${build}`, options);
40654
40654
  };
40655
40655
  module2.exports = coerce;
40656
40656
  }
@@ -41666,7 +41666,7 @@ var require_semver2 = __commonJS({
41666
41666
  var constants4 = require_constants4();
41667
41667
  var SemVer = require_semver();
41668
41668
  var identifiers = require_identifiers();
41669
- var parse17 = require_parse4();
41669
+ var parse16 = require_parse4();
41670
41670
  var valid = require_valid();
41671
41671
  var clean = require_clean();
41672
41672
  var inc = require_inc();
@@ -41704,7 +41704,7 @@ var require_semver2 = __commonJS({
41704
41704
  var simplifyRange = require_simplify();
41705
41705
  var subset = require_subset();
41706
41706
  module2.exports = {
41707
- parse: parse17,
41707
+ parse: parse16,
41708
41708
  valid,
41709
41709
  clean,
41710
41710
  inc,
@@ -56593,7 +56593,7 @@ var require_parse5 = __commonJS({
56593
56593
  }
56594
56594
  return parsed;
56595
56595
  }
56596
- function parse17(command, args2, options) {
56596
+ function parse16(command, args2, options) {
56597
56597
  if (args2 && !Array.isArray(args2)) {
56598
56598
  options = args2;
56599
56599
  args2 = null;
@@ -56612,7 +56612,7 @@ var require_parse5 = __commonJS({
56612
56612
  };
56613
56613
  return options.shell ? parsed : parseNonShell(parsed);
56614
56614
  }
56615
- module2.exports = parse17;
56615
+ module2.exports = parse16;
56616
56616
  }
56617
56617
  });
56618
56618
 
@@ -56671,16 +56671,16 @@ var require_cross_spawn = __commonJS({
56671
56671
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
56672
56672
  "use strict";
56673
56673
  var cp5 = __require("child_process");
56674
- var parse17 = require_parse5();
56674
+ var parse16 = require_parse5();
56675
56675
  var enoent = require_enoent();
56676
56676
  function spawn(command, args2, options) {
56677
- const parsed = parse17(command, args2, options);
56677
+ const parsed = parse16(command, args2, options);
56678
56678
  const spawned = cp5.spawn(parsed.command, parsed.args, parsed.options);
56679
56679
  enoent.hookChildProcess(spawned, parsed);
56680
56680
  return spawned;
56681
56681
  }
56682
56682
  function spawnSync(command, args2, options) {
56683
- const parsed = parse17(command, args2, options);
56683
+ const parsed = parse16(command, args2, options);
56684
56684
  const result = cp5.spawnSync(parsed.command, parsed.args, parsed.options);
56685
56685
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
56686
56686
  return result;
@@ -56688,7 +56688,7 @@ var require_cross_spawn = __commonJS({
56688
56688
  module2.exports = spawn;
56689
56689
  module2.exports.spawn = spawn;
56690
56690
  module2.exports.sync = spawnSync;
56691
- module2.exports._parse = parse17;
56691
+ module2.exports._parse = parse16;
56692
56692
  module2.exports._enoent = enoent;
56693
56693
  }
56694
56694
  });
@@ -58053,7 +58053,7 @@ var require_rfc4648 = __commonJS({
58053
58053
  "../../node_modules/.pnpm/rfc4648@1.5.3/node_modules/rfc4648/lib/cjs/rfc4648.js"(exports2) {
58054
58054
  "use strict";
58055
58055
  Object.defineProperty(exports2, "__esModule", { value: true });
58056
- function parse17(string, encoding, opts) {
58056
+ function parse16(string, encoding, opts) {
58057
58057
  var _opts$out;
58058
58058
  if (opts === void 0) {
58059
58059
  opts = {};
@@ -58144,7 +58144,7 @@ var require_rfc4648 = __commonJS({
58144
58144
  };
58145
58145
  var base16 = {
58146
58146
  parse: function parse$1(string, opts) {
58147
- return parse17(string.toUpperCase(), base16Encoding, opts);
58147
+ return parse16(string.toUpperCase(), base16Encoding, opts);
58148
58148
  },
58149
58149
  stringify: function stringify$1(data2, opts) {
58150
58150
  return stringify3(data2, base16Encoding, opts);
@@ -58155,7 +58155,7 @@ var require_rfc4648 = __commonJS({
58155
58155
  if (opts === void 0) {
58156
58156
  opts = {};
58157
58157
  }
58158
- return parse17(opts.loose ? string.toUpperCase().replace(/0/g, "O").replace(/1/g, "L").replace(/8/g, "B") : string, base32Encoding, opts);
58158
+ return parse16(opts.loose ? string.toUpperCase().replace(/0/g, "O").replace(/1/g, "L").replace(/8/g, "B") : string, base32Encoding, opts);
58159
58159
  },
58160
58160
  stringify: function stringify$1(data2, opts) {
58161
58161
  return stringify3(data2, base32Encoding, opts);
@@ -58163,7 +58163,7 @@ var require_rfc4648 = __commonJS({
58163
58163
  };
58164
58164
  var base32hex = {
58165
58165
  parse: function parse$1(string, opts) {
58166
- return parse17(string, base32HexEncoding, opts);
58166
+ return parse16(string, base32HexEncoding, opts);
58167
58167
  },
58168
58168
  stringify: function stringify$1(data2, opts) {
58169
58169
  return stringify3(data2, base32HexEncoding, opts);
@@ -58171,7 +58171,7 @@ var require_rfc4648 = __commonJS({
58171
58171
  };
58172
58172
  var base64 = {
58173
58173
  parse: function parse$1(string, opts) {
58174
- return parse17(string, base64Encoding, opts);
58174
+ return parse16(string, base64Encoding, opts);
58175
58175
  },
58176
58176
  stringify: function stringify$1(data2, opts) {
58177
58177
  return stringify3(data2, base64Encoding, opts);
@@ -58179,14 +58179,14 @@ var require_rfc4648 = __commonJS({
58179
58179
  };
58180
58180
  var base64url = {
58181
58181
  parse: function parse$1(string, opts) {
58182
- return parse17(string, base64UrlEncoding, opts);
58182
+ return parse16(string, base64UrlEncoding, opts);
58183
58183
  },
58184
58184
  stringify: function stringify$1(data2, opts) {
58185
58185
  return stringify3(data2, base64UrlEncoding, opts);
58186
58186
  }
58187
58187
  };
58188
58188
  var codec = {
58189
- parse: parse17,
58189
+ parse: parse16,
58190
58190
  stringify: stringify3
58191
58191
  };
58192
58192
  exports2.base16 = base16;
@@ -58335,7 +58335,7 @@ var require_lib17 = __commonJS({
58335
58335
  return `${pkgName}@${reference}`;
58336
58336
  }
58337
58337
  exports2.refToRelative = refToRelative;
58338
- function parse17(dependencyPath) {
58338
+ function parse16(dependencyPath) {
58339
58339
  if (typeof dependencyPath !== "string") {
58340
58340
  throw new TypeError(`Expected \`dependencyPath\` to be of type \`string\`, got \`${// eslint-disable-next-line: strict-type-predicates
58341
58341
  dependencyPath === null ? "null" : typeof dependencyPath}\``);
@@ -58380,7 +58380,7 @@ var require_lib17 = __commonJS({
58380
58380
  }
58381
58381
  return {};
58382
58382
  }
58383
- exports2.parse = parse17;
58383
+ exports2.parse = parse16;
58384
58384
  function depPathToFilename(depPath, maxLengthWithoutHash) {
58385
58385
  let filename = depPathToFilenameUnescaped(depPath).replace(/[\\/:*?"<>|]/g, "+");
58386
58386
  if (filename.includes("(")) {
@@ -59319,7 +59319,7 @@ var require_dist3 = __commonJS({
59319
59319
  "use strict";
59320
59320
  exports2 = module2.exports = fetch2;
59321
59321
  var http2 = __require("http");
59322
- var https2 = __require("https");
59322
+ var https3 = __require("https");
59323
59323
  var zlib2 = __require("zlib");
59324
59324
  var Stream2 = __require("stream");
59325
59325
  var dataUriToBuffer = require_src2();
@@ -60074,7 +60074,7 @@ var require_dist3 = __commonJS({
60074
60074
  resolve45(response2);
60075
60075
  return;
60076
60076
  }
60077
- const send = (options.protocol === "https:" ? https2 : http2).request;
60077
+ const send = (options.protocol === "https:" ? https3 : http2).request;
60078
60078
  const { signal } = request;
60079
60079
  let response = null;
60080
60080
  const abort = () => {
@@ -66148,7 +66148,7 @@ var require_agent5 = __commonJS({
66148
66148
  function getNonProxyAgent(uri, opts) {
66149
66149
  const parsedUri = new url_1.URL(uri);
66150
66150
  const isHttps2 = parsedUri.protocol === "https:";
66151
- const { ca, cert, key: certKey } = {
66151
+ const { ca: ca2, cert, key: certKey } = {
66152
66152
  ...opts,
66153
66153
  ...(0, network_config_1.pickSettingByUrl)(opts.clientCertificates, uri)
66154
66154
  };
@@ -66156,7 +66156,7 @@ var require_agent5 = __commonJS({
66156
66156
  `https:${isHttps2.toString()}`,
66157
66157
  `local-address:${opts.localAddress ?? ">no-local-address<"}`,
66158
66158
  `strict-ssl:${isHttps2 ? Boolean(opts.strictSsl).toString() : ">no-strict-ssl<"}`,
66159
- `ca:${isHttps2 && ca?.toString() || ">no-ca<"}`,
66159
+ `ca:${isHttps2 && ca2?.toString() || ">no-ca<"}`,
66160
66160
  `cert:${isHttps2 && cert?.toString() || ">no-cert<"}`,
66161
66161
  `key:${isHttps2 && certKey?.toString() || ">no-key<"}`
66162
66162
  ].join(":");
@@ -66165,7 +66165,7 @@ var require_agent5 = __commonJS({
66165
66165
  }
66166
66166
  const agentTimeout = typeof opts.timeout !== "number" || opts.timeout === 0 ? 0 : opts.timeout + 1;
66167
66167
  const agent = isHttps2 ? new HttpsAgent({
66168
- ca,
66168
+ ca: ca2,
66169
66169
  cert,
66170
66170
  key: certKey,
66171
66171
  localAddress: opts.localAddress,
@@ -71258,13 +71258,13 @@ var require_lockfile = __commonJS({
71258
71258
  }
71259
71259
  concat(integrity, opts) {
71260
71260
  const other = typeof integrity === "string" ? integrity : stringify3(integrity, opts);
71261
- return parse17(`${this.toString(opts)} ${other}`, opts);
71261
+ return parse16(`${this.toString(opts)} ${other}`, opts);
71262
71262
  }
71263
71263
  hexDigest() {
71264
- return parse17(this, { single: true }).hexDigest();
71264
+ return parse16(this, { single: true }).hexDigest();
71265
71265
  }
71266
71266
  match(integrity, opts) {
71267
- const other = parse17(integrity, opts);
71267
+ const other = parse16(integrity, opts);
71268
71268
  const algo = other.pickAlgorithm(opts);
71269
71269
  return this[algo] && other[algo] && this[algo].find(
71270
71270
  (hash) => other[algo].find(
@@ -71283,8 +71283,8 @@ var require_lockfile = __commonJS({
71283
71283
  });
71284
71284
  }
71285
71285
  }
71286
- module3.exports.parse = parse17;
71287
- function parse17(sri, opts) {
71286
+ module3.exports.parse = parse16;
71287
+ function parse16(sri, opts) {
71288
71288
  opts = opts || {};
71289
71289
  if (typeof sri === "string") {
71290
71290
  return _parse(sri, opts);
@@ -71317,7 +71317,7 @@ var require_lockfile = __commonJS({
71317
71317
  if (obj.algorithm && obj.digest) {
71318
71318
  return Hash.prototype.toString.call(obj, opts);
71319
71319
  } else if (typeof obj === "string") {
71320
- return stringify3(parse17(obj, opts), opts);
71320
+ return stringify3(parse16(obj, opts), opts);
71321
71321
  } else {
71322
71322
  return Integrity.prototype.toString.call(obj, opts);
71323
71323
  }
@@ -71325,7 +71325,7 @@ var require_lockfile = __commonJS({
71325
71325
  module3.exports.fromHex = fromHex;
71326
71326
  function fromHex(hexDigest, algorithm, opts) {
71327
71327
  const optString = opts && opts.options && opts.options.length ? `?${opts.options.join("?")}` : "";
71328
- return parse17(
71328
+ return parse16(
71329
71329
  `${algorithm}-${Buffer3.from(hexDigest, "hex").toString("base64")}${optString}`,
71330
71330
  opts
71331
71331
  );
@@ -71372,7 +71372,7 @@ var require_lockfile = __commonJS({
71372
71372
  module3.exports.checkData = checkData;
71373
71373
  function checkData(data2, sri, opts) {
71374
71374
  opts = opts || {};
71375
- sri = parse17(sri, opts);
71375
+ sri = parse16(sri, opts);
71376
71376
  if (!Object.keys(sri).length) {
71377
71377
  if (opts.error) {
71378
71378
  throw Object.assign(
@@ -71387,7 +71387,7 @@ var require_lockfile = __commonJS({
71387
71387
  }
71388
71388
  const algorithm = sri.pickAlgorithm(opts);
71389
71389
  const digest = crypto7.createHash(algorithm).update(data2).digest("base64");
71390
- const newSri = parse17({ algorithm, digest });
71390
+ const newSri = parse16({ algorithm, digest });
71391
71391
  const match2 = newSri.match(sri, opts);
71392
71392
  if (match2 || !opts.error) {
71393
71393
  return match2;
@@ -71433,7 +71433,7 @@ var require_lockfile = __commonJS({
71433
71433
  module3.exports.integrityStream = integrityStream;
71434
71434
  function integrityStream(opts) {
71435
71435
  opts = opts || {};
71436
- const sri = opts.integrity && parse17(opts.integrity, opts);
71436
+ const sri = opts.integrity && parse16(opts.integrity, opts);
71437
71437
  const goodSri = sri && Object.keys(sri).length;
71438
71438
  const algorithm = goodSri && sri.pickAlgorithm(opts);
71439
71439
  const digests = goodSri && sri[algorithm];
@@ -71452,7 +71452,7 @@ var require_lockfile = __commonJS({
71452
71452
  }
71453
71453
  }).on("end", () => {
71454
71454
  const optString = opts.options && opts.options.length ? `?${opts.options.join("?")}` : "";
71455
- const newSri = parse17(hashes.map((h, i7) => {
71455
+ const newSri = parse16(hashes.map((h, i7) => {
71456
71456
  return `${algorithms[i7]}-${h.digest("base64")}${optString}`;
71457
71457
  }).join(" "), opts);
71458
71458
  const match2 = goodSri && newSri.match(sri, opts);
@@ -71704,9 +71704,9 @@ var require_lockfile = __commonJS({
71704
71704
  }
71705
71705
  return expand2(pattern);
71706
71706
  }
71707
- Minimatch2.prototype.parse = parse17;
71707
+ Minimatch2.prototype.parse = parse16;
71708
71708
  var SUBPARSE = {};
71709
- function parse17(pattern, isSub) {
71709
+ function parse16(pattern, isSub) {
71710
71710
  if (pattern.length > 1024 * 64) {
71711
71711
  throw new TypeError("pattern is too long");
71712
71712
  }
@@ -72806,7 +72806,7 @@ var require_lockfile = __commonJS({
72806
72806
  });
72807
72807
  exports3.default = function(str, fileLoc = "lockfile") {
72808
72808
  str = (0, (_stripBom || _load_stripBom()).default)(str);
72809
- return hasMergeConflicts(str) ? parseWithConflict(str, fileLoc) : { type: "success", object: parse17(str, fileLoc) };
72809
+ return hasMergeConflicts(str) ? parseWithConflict(str, fileLoc) : { type: "success", object: parse16(str, fileLoc) };
72810
72810
  };
72811
72811
  var _util;
72812
72812
  function _load_util() {
@@ -73135,7 +73135,7 @@ var require_lockfile = __commonJS({
73135
73135
  function hasMergeConflicts(str) {
73136
73136
  return str.includes(MERGE_CONFLICT_START) && str.includes(MERGE_CONFLICT_SEP) && str.includes(MERGE_CONFLICT_END);
73137
73137
  }
73138
- function parse17(str, fileLoc) {
73138
+ function parse16(str, fileLoc) {
73139
73139
  const parser2 = new Parser5(str, fileLoc);
73140
73140
  parser2.next();
73141
73141
  return parser2.parse();
@@ -73143,7 +73143,7 @@ var require_lockfile = __commonJS({
73143
73143
  function parseWithConflict(str, fileLoc) {
73144
73144
  const variants = extractConflictVariants(str);
73145
73145
  try {
73146
- return { type: "merge", object: Object.assign({}, parse17(variants[0], fileLoc), parse17(variants[1], fileLoc)) };
73146
+ return { type: "merge", object: Object.assign({}, parse16(variants[0], fileLoc), parse16(variants[1], fileLoc)) };
73147
73147
  } catch (err) {
73148
73148
  if (err instanceof SyntaxError) {
73149
73149
  return { type: "conflict", object: {} };
@@ -76517,7 +76517,7 @@ ${indent3}`);
76517
76517
  options = options || {};
76518
76518
  var type = typeof val2;
76519
76519
  if (type === "string" && val2.length > 0) {
76520
- return parse17(val2);
76520
+ return parse16(val2);
76521
76521
  } else if (type === "number" && isNaN(val2) === false) {
76522
76522
  return options.long ? fmtLong(val2) : fmtShort(val2);
76523
76523
  }
@@ -76525,7 +76525,7 @@ ${indent3}`);
76525
76525
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val2)
76526
76526
  );
76527
76527
  };
76528
- function parse17(str) {
76528
+ function parse16(str) {
76529
76529
  str = String(str);
76530
76530
  if (str.length > 100) {
76531
76531
  return;
@@ -86033,7 +86033,7 @@ var require_identity = __commonJS({
86033
86033
  var isMap = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP;
86034
86034
  var isPair = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === PAIR;
86035
86035
  var isScalar = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SCALAR;
86036
- var isSeq = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SEQ;
86036
+ var isSeq2 = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SEQ;
86037
86037
  function isCollection(node) {
86038
86038
  if (node && typeof node === "object")
86039
86039
  switch (node[NODE_TYPE]) {
@@ -86070,7 +86070,7 @@ var require_identity = __commonJS({
86070
86070
  exports2.isNode = isNode2;
86071
86071
  exports2.isPair = isPair;
86072
86072
  exports2.isScalar = isScalar;
86073
- exports2.isSeq = isSeq;
86073
+ exports2.isSeq = isSeq2;
86074
86074
  }
86075
86075
  });
86076
86076
 
@@ -93089,7 +93089,7 @@ var require_public_api = __commonJS({
93089
93089
  return docs;
93090
93090
  return Object.assign([], { empty: true }, composer$1.streamInfo());
93091
93091
  }
93092
- function parseDocument2(source, options = {}) {
93092
+ function parseDocument3(source, options = {}) {
93093
93093
  const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
93094
93094
  const parser$1 = new parser2.Parser(lineCounter2?.addNewLine);
93095
93095
  const composer$1 = new composer.Composer(options);
@@ -93108,14 +93108,14 @@ var require_public_api = __commonJS({
93108
93108
  }
93109
93109
  return doc;
93110
93110
  }
93111
- function parse17(src, reviver, options) {
93111
+ function parse16(src, reviver, options) {
93112
93112
  let _reviver = void 0;
93113
93113
  if (typeof reviver === "function") {
93114
93114
  _reviver = reviver;
93115
93115
  } else if (options === void 0 && reviver && typeof reviver === "object") {
93116
93116
  options = reviver;
93117
93117
  }
93118
- const doc = parseDocument2(src, options);
93118
+ const doc = parseDocument3(src, options);
93119
93119
  if (!doc)
93120
93120
  return null;
93121
93121
  doc.warnings.forEach((warning) => log2.warn(doc.options.logLevel, warning));
@@ -93147,9 +93147,9 @@ var require_public_api = __commonJS({
93147
93147
  }
93148
93148
  return new Document2.Document(value2, _replacer, options).toString(options);
93149
93149
  }
93150
- exports2.parse = parse17;
93150
+ exports2.parse = parse16;
93151
93151
  exports2.parseAllDocuments = parseAllDocuments;
93152
- exports2.parseDocument = parseDocument2;
93152
+ exports2.parseDocument = parseDocument3;
93153
93153
  exports2.stringify = stringify3;
93154
93154
  }
93155
93155
  });
@@ -100367,7 +100367,7 @@ var require_tunnel = __commonJS({
100367
100367
  var net = __require("net");
100368
100368
  var tls = __require("tls");
100369
100369
  var http2 = __require("http");
100370
- var https2 = __require("https");
100370
+ var https3 = __require("https");
100371
100371
  var events = __require("events");
100372
100372
  var assert17 = __require("assert");
100373
100373
  var util5 = __require("util");
@@ -100389,12 +100389,12 @@ var require_tunnel = __commonJS({
100389
100389
  }
100390
100390
  function httpOverHttps(options) {
100391
100391
  var agent = new TunnelingAgent(options);
100392
- agent.request = https2.request;
100392
+ agent.request = https3.request;
100393
100393
  return agent;
100394
100394
  }
100395
100395
  function httpsOverHttps(options) {
100396
100396
  var agent = new TunnelingAgent(options);
100397
- agent.request = https2.request;
100397
+ agent.request = https3.request;
100398
100398
  agent.createSocket = createSecureSocket;
100399
100399
  agent.defaultPort = 443;
100400
100400
  return agent;
@@ -117417,7 +117417,7 @@ var require_lib28 = __commonJS({
117417
117417
  Object.defineProperty(exports2, "__esModule", { value: true });
117418
117418
  exports2.HttpClient = exports2.isHttps = exports2.HttpClientResponse = exports2.HttpClientError = exports2.getProxyUrl = exports2.MediaTypes = exports2.Headers = exports2.HttpCodes = void 0;
117419
117419
  var http2 = __importStar(__require("http"));
117420
- var https2 = __importStar(__require("https"));
117420
+ var https3 = __importStar(__require("https"));
117421
117421
  var pm = __importStar(require_proxy());
117422
117422
  var tunnel = __importStar(require_tunnel2());
117423
117423
  var undici_1 = require_undici();
@@ -117808,7 +117808,7 @@ var require_lib28 = __commonJS({
117808
117808
  const info = {};
117809
117809
  info.parsedUrl = requestUrl;
117810
117810
  const usingSsl = info.parsedUrl.protocol === "https:";
117811
- info.httpModule = usingSsl ? https2 : http2;
117811
+ info.httpModule = usingSsl ? https3 : http2;
117812
117812
  const defaultPort = usingSsl ? 443 : 80;
117813
117813
  info.options = {};
117814
117814
  info.options.host = info.parsedUrl.hostname;
@@ -117878,7 +117878,7 @@ var require_lib28 = __commonJS({
117878
117878
  }
117879
117879
  if (!agent) {
117880
117880
  const options = { keepAlive: this._keepAlive, maxSockets };
117881
- agent = usingSsl ? new https2.Agent(options) : new http2.Agent(options);
117881
+ agent = usingSsl ? new https3.Agent(options) : new http2.Agent(options);
117882
117882
  this._agent = agent;
117883
117883
  }
117884
117884
  if (usingSsl && this._ignoreSslError) {
@@ -119483,9 +119483,9 @@ var require_minimatch = __commonJS({
119483
119483
  throw new TypeError("pattern is too long");
119484
119484
  }
119485
119485
  };
119486
- Minimatch2.prototype.parse = parse17;
119486
+ Minimatch2.prototype.parse = parse16;
119487
119487
  var SUBPARSE = {};
119488
- function parse17(pattern, isSub) {
119488
+ function parse16(pattern, isSub) {
119489
119489
  assertValidPattern2(pattern);
119490
119490
  var options = this.options;
119491
119491
  if (pattern === "**") {
@@ -142332,7 +142332,7 @@ var require_dist_node2 = __commonJS({
142332
142332
  return template.replace(/\/$/, "");
142333
142333
  }
142334
142334
  }
142335
- function parse17(options) {
142335
+ function parse16(options) {
142336
142336
  let method = options.method.toUpperCase();
142337
142337
  let url2 = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
142338
142338
  let headers = Object.assign({}, options.headers);
@@ -142396,7 +142396,7 @@ var require_dist_node2 = __commonJS({
142396
142396
  );
142397
142397
  }
142398
142398
  function endpointWithDefaults(defaults3, route, options) {
142399
- return parse17(merge5(defaults3, route, options));
142399
+ return parse16(merge5(defaults3, route, options));
142400
142400
  }
142401
142401
  function withDefaults(oldDefaults, newDefaults) {
142402
142402
  const DEFAULTS2 = merge5(oldDefaults, newDefaults);
@@ -142405,7 +142405,7 @@ var require_dist_node2 = __commonJS({
142405
142405
  DEFAULTS: DEFAULTS2,
142406
142406
  defaults: withDefaults.bind(null, DEFAULTS2),
142407
142407
  merge: merge5.bind(null, DEFAULTS2),
142408
- parse: parse17
142408
+ parse: parse16
142409
142409
  });
142410
142410
  }
142411
142411
  var endpoint = withDefaults(null, DEFAULTS);
@@ -147258,7 +147258,7 @@ var require_parse8 = __commonJS({
147258
147258
  CHAR_NO_BREAK_SPACE,
147259
147259
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
147260
147260
  } = require_constants18();
147261
- var parse17 = (input, options = {}) => {
147261
+ var parse16 = (input, options = {}) => {
147262
147262
  if (typeof input !== "string") {
147263
147263
  throw new TypeError("Expected a string");
147264
147264
  }
@@ -147458,7 +147458,7 @@ var require_parse8 = __commonJS({
147458
147458
  push2({ type: "eos" });
147459
147459
  return ast;
147460
147460
  };
147461
- module2.exports = parse17;
147461
+ module2.exports = parse16;
147462
147462
  }
147463
147463
  });
147464
147464
 
@@ -147469,7 +147469,7 @@ var require_braces2 = __commonJS({
147469
147469
  var stringify3 = require_stringify4();
147470
147470
  var compile4 = require_compile2();
147471
147471
  var expand2 = require_expand2();
147472
- var parse17 = require_parse8();
147472
+ var parse16 = require_parse8();
147473
147473
  var braces = (input, options = {}) => {
147474
147474
  let output = [];
147475
147475
  if (Array.isArray(input)) {
@@ -147489,7 +147489,7 @@ var require_braces2 = __commonJS({
147489
147489
  }
147490
147490
  return output;
147491
147491
  };
147492
- braces.parse = (input, options = {}) => parse17(input, options);
147492
+ braces.parse = (input, options = {}) => parse16(input, options);
147493
147493
  braces.stringify = (input, options = {}) => {
147494
147494
  if (typeof input === "string") {
147495
147495
  return stringify3(braces.parse(input, options), options);
@@ -147686,193 +147686,6 @@ var require_micromatch2 = __commonJS({
147686
147686
  }
147687
147687
  });
147688
147688
 
147689
- // ../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/modern.js
147690
- var require_modern2 = __commonJS({
147691
- "../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/modern.js"(exports2, module2) {
147692
- "use strict";
147693
- var util5 = __require("util");
147694
- var Writable = require_stream_writable();
147695
- var { LEVEL } = require_triple_beam();
147696
- var TransportStream = module2.exports = function TransportStream2(options = {}) {
147697
- Writable.call(this, { objectMode: true, highWaterMark: options.highWaterMark });
147698
- this.format = options.format;
147699
- this.level = options.level;
147700
- this.handleExceptions = options.handleExceptions;
147701
- this.handleRejections = options.handleRejections;
147702
- this.silent = options.silent;
147703
- if (options.log) this.log = options.log;
147704
- if (options.logv) this.logv = options.logv;
147705
- if (options.close) this.close = options.close;
147706
- this.once("pipe", (logger4) => {
147707
- this.levels = logger4.levels;
147708
- this.parent = logger4;
147709
- });
147710
- this.once("unpipe", (src) => {
147711
- if (src === this.parent) {
147712
- this.parent = null;
147713
- if (this.close) {
147714
- this.close();
147715
- }
147716
- }
147717
- });
147718
- };
147719
- util5.inherits(TransportStream, Writable);
147720
- TransportStream.prototype._write = function _write2(info, enc, callback) {
147721
- if (this.silent || info.exception === true && !this.handleExceptions) {
147722
- return callback(null);
147723
- }
147724
- const level = this.level || this.parent && this.parent.level;
147725
- if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {
147726
- if (info && !this.format) {
147727
- return this.log(info, callback);
147728
- }
147729
- let errState;
147730
- let transformed;
147731
- try {
147732
- transformed = this.format.transform(Object.assign({}, info), this.format.options);
147733
- } catch (err) {
147734
- errState = err;
147735
- }
147736
- if (errState || !transformed) {
147737
- callback();
147738
- if (errState) throw errState;
147739
- return;
147740
- }
147741
- return this.log(transformed, callback);
147742
- }
147743
- this._writableState.sync = false;
147744
- return callback(null);
147745
- };
147746
- TransportStream.prototype._writev = function _writev(chunks, callback) {
147747
- if (this.logv) {
147748
- const infos = chunks.filter(this._accept, this);
147749
- if (!infos.length) {
147750
- return callback(null);
147751
- }
147752
- return this.logv(infos, callback);
147753
- }
147754
- for (let i7 = 0; i7 < chunks.length; i7++) {
147755
- if (!this._accept(chunks[i7])) continue;
147756
- if (chunks[i7].chunk && !this.format) {
147757
- this.log(chunks[i7].chunk, chunks[i7].callback);
147758
- continue;
147759
- }
147760
- let errState;
147761
- let transformed;
147762
- try {
147763
- transformed = this.format.transform(
147764
- Object.assign({}, chunks[i7].chunk),
147765
- this.format.options
147766
- );
147767
- } catch (err) {
147768
- errState = err;
147769
- }
147770
- if (errState || !transformed) {
147771
- chunks[i7].callback();
147772
- if (errState) {
147773
- callback(null);
147774
- throw errState;
147775
- }
147776
- } else {
147777
- this.log(transformed, chunks[i7].callback);
147778
- }
147779
- }
147780
- return callback(null);
147781
- };
147782
- TransportStream.prototype._accept = function _accept(write) {
147783
- const info = write.chunk;
147784
- if (this.silent) {
147785
- return false;
147786
- }
147787
- const level = this.level || this.parent && this.parent.level;
147788
- if (info.exception === true || !level || this.levels[level] >= this.levels[info[LEVEL]]) {
147789
- if (this.handleExceptions || info.exception !== true) {
147790
- return true;
147791
- }
147792
- }
147793
- return false;
147794
- };
147795
- TransportStream.prototype._nop = function _nop() {
147796
- return void 0;
147797
- };
147798
- }
147799
- });
147800
-
147801
- // ../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/legacy.js
147802
- var require_legacy2 = __commonJS({
147803
- "../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/legacy.js"(exports2, module2) {
147804
- "use strict";
147805
- var util5 = __require("util");
147806
- var { LEVEL } = require_triple_beam();
147807
- var TransportStream = require_modern2();
147808
- var LegacyTransportStream = module2.exports = function LegacyTransportStream2(options = {}) {
147809
- TransportStream.call(this, options);
147810
- if (!options.transport || typeof options.transport.log !== "function") {
147811
- throw new Error("Invalid transport, must be an object with a log method.");
147812
- }
147813
- this.transport = options.transport;
147814
- this.level = this.level || options.transport.level;
147815
- this.handleExceptions = this.handleExceptions || options.transport.handleExceptions;
147816
- this._deprecated();
147817
- function transportError(err) {
147818
- this.emit("error", err, this.transport);
147819
- }
147820
- if (!this.transport.__winstonError) {
147821
- this.transport.__winstonError = transportError.bind(this);
147822
- this.transport.on("error", this.transport.__winstonError);
147823
- }
147824
- };
147825
- util5.inherits(LegacyTransportStream, TransportStream);
147826
- LegacyTransportStream.prototype._write = function _write2(info, enc, callback) {
147827
- if (this.silent || info.exception === true && !this.handleExceptions) {
147828
- return callback(null);
147829
- }
147830
- if (!this.level || this.levels[this.level] >= this.levels[info[LEVEL]]) {
147831
- this.transport.log(info[LEVEL], info.message, info, this._nop);
147832
- }
147833
- callback(null);
147834
- };
147835
- LegacyTransportStream.prototype._writev = function _writev(chunks, callback) {
147836
- for (let i7 = 0; i7 < chunks.length; i7++) {
147837
- if (this._accept(chunks[i7])) {
147838
- this.transport.log(
147839
- chunks[i7].chunk[LEVEL],
147840
- chunks[i7].chunk.message,
147841
- chunks[i7].chunk,
147842
- this._nop
147843
- );
147844
- chunks[i7].callback();
147845
- }
147846
- }
147847
- return callback(null);
147848
- };
147849
- LegacyTransportStream.prototype._deprecated = function _deprecated() {
147850
- console.error([
147851
- `${this.transport.name} is a legacy winston transport. Consider upgrading: `,
147852
- "- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"
147853
- ].join("\n"));
147854
- };
147855
- LegacyTransportStream.prototype.close = function close() {
147856
- if (this.transport.close) {
147857
- this.transport.close();
147858
- }
147859
- if (this.transport.__winstonError) {
147860
- this.transport.removeListener("error", this.transport.__winstonError);
147861
- this.transport.__winstonError = null;
147862
- }
147863
- };
147864
- }
147865
- });
147866
-
147867
- // ../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/index.js
147868
- var require_winston_transport2 = __commonJS({
147869
- "../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/index.js"(exports2, module2) {
147870
- "use strict";
147871
- module2.exports = require_modern2();
147872
- module2.exports.LegacyTransportStream = require_legacy2();
147873
- }
147874
- });
147875
-
147876
147689
  // ../../node_modules/.pnpm/yaml@2.2.2/node_modules/yaml/dist/nodes/Node.js
147877
147690
  var require_Node2 = __commonJS({
147878
147691
  "../../node_modules/.pnpm/yaml@2.2.2/node_modules/yaml/dist/nodes/Node.js"(exports2) {
@@ -147889,7 +147702,7 @@ var require_Node2 = __commonJS({
147889
147702
  var isMap = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP;
147890
147703
  var isPair = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === PAIR;
147891
147704
  var isScalar = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SCALAR;
147892
- var isSeq = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SEQ;
147705
+ var isSeq2 = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SEQ;
147893
147706
  function isCollection(node) {
147894
147707
  if (node && typeof node === "object")
147895
147708
  switch (node[NODE_TYPE]) {
@@ -147939,7 +147752,7 @@ var require_Node2 = __commonJS({
147939
147752
  exports2.isNode = isNode2;
147940
147753
  exports2.isPair = isPair;
147941
147754
  exports2.isScalar = isScalar;
147942
- exports2.isSeq = isSeq;
147755
+ exports2.isSeq = isSeq2;
147943
147756
  }
147944
147757
  });
147945
147758
 
@@ -154834,7 +154647,7 @@ var require_public_api2 = __commonJS({
154834
154647
  return docs;
154835
154648
  return Object.assign([], { empty: true }, composer$1.streamInfo());
154836
154649
  }
154837
- function parseDocument2(source, options = {}) {
154650
+ function parseDocument3(source, options = {}) {
154838
154651
  const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
154839
154652
  const parser$1 = new parser2.Parser(lineCounter2?.addNewLine);
154840
154653
  const composer$1 = new composer.Composer(options);
@@ -154853,14 +154666,14 @@ var require_public_api2 = __commonJS({
154853
154666
  }
154854
154667
  return doc;
154855
154668
  }
154856
- function parse17(src, reviver, options) {
154669
+ function parse16(src, reviver, options) {
154857
154670
  let _reviver = void 0;
154858
154671
  if (typeof reviver === "function") {
154859
154672
  _reviver = reviver;
154860
154673
  } else if (options === void 0 && reviver && typeof reviver === "object") {
154861
154674
  options = reviver;
154862
154675
  }
154863
- const doc = parseDocument2(src, options);
154676
+ const doc = parseDocument3(src, options);
154864
154677
  if (!doc)
154865
154678
  return null;
154866
154679
  doc.warnings.forEach((warning) => log2.warn(doc.options.logLevel, warning));
@@ -154892,9 +154705,9 @@ var require_public_api2 = __commonJS({
154892
154705
  }
154893
154706
  return new Document2.Document(value2, _replacer, options).toString(options);
154894
154707
  }
154895
- exports2.parse = parse17;
154708
+ exports2.parse = parse16;
154896
154709
  exports2.parseAllDocuments = parseAllDocuments;
154897
- exports2.parseDocument = parseDocument2;
154710
+ exports2.parseDocument = parseDocument3;
154898
154711
  exports2.stringify = stringify3;
154899
154712
  }
154900
154713
  });
@@ -162223,7 +162036,7 @@ var require_bson = __commonJS({
162223
162036
  throw new BSONError("_bsontype must be a string, but was: " + typeof bsontype);
162224
162037
  }
162225
162038
  }
162226
- function parse17(text3, options) {
162039
+ function parse16(text3, options) {
162227
162040
  const ejsonOptions = {
162228
162041
  useBigInt64: options?.useBigInt64 ?? false,
162229
162042
  relaxed: options?.relaxed ?? true,
@@ -162258,10 +162071,10 @@ var require_bson = __commonJS({
162258
162071
  }
162259
162072
  function EJSONdeserialize(ejson, options) {
162260
162073
  options = options || {};
162261
- return parse17(JSON.stringify(ejson), options);
162074
+ return parse16(JSON.stringify(ejson), options);
162262
162075
  }
162263
162076
  var EJSON = /* @__PURE__ */ Object.create(null);
162264
- EJSON.parse = parse17;
162077
+ EJSON.parse = parse16;
162265
162078
  EJSON.stringify = stringify3;
162266
162079
  EJSON.serialize = EJSONserialize;
162267
162080
  EJSON.deserialize = EJSONdeserialize;
@@ -184487,7 +184300,7 @@ var require_parse9 = __commonJS({
184487
184300
  function isWhitespace3(c3) {
184488
184301
  return c3 === 32 || c3 === 9 || c3 === 10 || c3 === 12 || c3 === 13;
184489
184302
  }
184490
- function parse17(selector) {
184303
+ function parse16(selector) {
184491
184304
  var subselects2 = [];
184492
184305
  var endIndex = parseSelector(subselects2, "".concat(selector), 0);
184493
184306
  if (endIndex < selector.length) {
@@ -184495,7 +184308,7 @@ var require_parse9 = __commonJS({
184495
184308
  }
184496
184309
  return subselects2;
184497
184310
  }
184498
- exports2.parse = parse17;
184311
+ exports2.parse = parse16;
184499
184312
  function parseSelector(subselects2, selector, selectorIndex) {
184500
184313
  var tokens = [];
184501
184314
  function getName2(offset) {
@@ -188544,16 +188357,16 @@ var require_timespan = __commonJS({
188544
188357
  // ../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
188545
188358
  var require_asymmetricKeyDetailsSupported = __commonJS({
188546
188359
  "../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js"(exports2, module2) {
188547
- var semver2 = require_semver2();
188548
- module2.exports = semver2.satisfies(process.version, ">=15.7.0");
188360
+ var semver3 = require_semver2();
188361
+ module2.exports = semver3.satisfies(process.version, ">=15.7.0");
188549
188362
  }
188550
188363
  });
188551
188364
 
188552
188365
  // ../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
188553
188366
  var require_rsaPssKeyDetailsSupported = __commonJS({
188554
188367
  "../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js"(exports2, module2) {
188555
- var semver2 = require_semver2();
188556
- module2.exports = semver2.satisfies(process.version, ">=16.9.0");
188368
+ var semver3 = require_semver2();
188369
+ module2.exports = semver3.satisfies(process.version, ">=16.9.0");
188557
188370
  }
188558
188371
  });
188559
188372
 
@@ -188613,8 +188426,8 @@ var require_validateAsymmetricKey = __commonJS({
188613
188426
  // ../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/psSupported.js
188614
188427
  var require_psSupported = __commonJS({
188615
188428
  "../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/psSupported.js"(exports2, module2) {
188616
- var semver2 = require_semver2();
188617
- module2.exports = semver2.satisfies(process.version, "^6.12.0 || >=8.0.0");
188429
+ var semver3 = require_semver2();
188430
+ module2.exports = semver3.satisfies(process.version, "^6.12.0 || >=8.0.0");
188618
188431
  }
188619
188432
  });
188620
188433
 
@@ -194135,7 +193948,7 @@ var require_axios = __commonJS({
194135
193948
  var url2 = __require("url");
194136
193949
  var proxyFromEnv2 = require_proxy_from_env();
194137
193950
  var http2 = __require("http");
194138
- var https2 = __require("https");
193951
+ var https3 = __require("https");
194139
193952
  var util5 = __require("util");
194140
193953
  var followRedirects2 = require_follow_redirects();
194141
193954
  var zlib2 = __require("zlib");
@@ -194149,7 +193962,7 @@ var require_axios = __commonJS({
194149
193962
  var url__default = /* @__PURE__ */ _interopDefaultLegacy(url2);
194150
193963
  var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv2);
194151
193964
  var http__default = /* @__PURE__ */ _interopDefaultLegacy(http2);
194152
- var https__default = /* @__PURE__ */ _interopDefaultLegacy(https2);
193965
+ var https__default = /* @__PURE__ */ _interopDefaultLegacy(https3);
194153
193966
  var util__default = /* @__PURE__ */ _interopDefaultLegacy(util5);
194154
193967
  var followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects2);
194155
193968
  var zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib2);
@@ -197467,7 +197280,7 @@ var require_form_data2 = __commonJS({
197467
197280
  var util5 = __require("util");
197468
197281
  var path9 = __require("path");
197469
197282
  var http2 = __require("http");
197470
- var https2 = __require("https");
197283
+ var https3 = __require("https");
197471
197284
  var parseUrl = __require("url").parse;
197472
197285
  var fs11 = __require("fs");
197473
197286
  var mime = require_mime_types();
@@ -197733,7 +197546,7 @@ var require_form_data2 = __commonJS({
197733
197546
  }
197734
197547
  options.headers = this.getHeaders(params.headers);
197735
197548
  if (options.protocol == "https:") {
197736
- request = https2.request(options);
197549
+ request = https3.request(options);
197737
197550
  } else {
197738
197551
  request = http2.request(options);
197739
197552
  }
@@ -203574,6 +203387,7 @@ var CLILogger = class {
203574
203387
  import_winston.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss.SSS" }),
203575
203388
  utilFormatter(),
203576
203389
  import_winston.format.colorize(),
203390
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
203577
203391
  import_winston.format.printf(({ level, message: message2, label, timestamp }) => `${timestamp} ${label || "-"} ${level}: ${message2}`)
203578
203392
  ),
203579
203393
  transports
@@ -203607,6 +203421,7 @@ var CLILogger = class {
203607
203421
  import_winston.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss.SSS" }),
203608
203422
  utilFormatter(),
203609
203423
  import_winston.format.colorize(),
203424
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
203610
203425
  import_winston.format.printf(({ level, message: message2, label, timestamp }) => `${timestamp} ${label || "-"} ${level}: ${message2}`)
203611
203426
  ),
203612
203427
  transports: [new import_winston.transports.Console(), socketTransport]
@@ -204007,6 +203822,8 @@ function getPurlType(ecosystem) {
204007
203822
  return "cargo" /* CARGO */;
204008
203823
  case "RUBYGEMS":
204009
203824
  return "gem" /* GEM */;
203825
+ case "COMPOSER":
203826
+ return "composer" /* COMPOSER */;
204010
203827
  default:
204011
203828
  throw Error(`Unsupported ecosystem: ${ecosystem}`);
204012
203829
  }
@@ -204027,6 +203844,8 @@ function getAdvisoryEcosystemFromPurlType(purlType) {
204027
203844
  return "RUST";
204028
203845
  case "gem" /* GEM */:
204029
203846
  return "RUBYGEMS";
203847
+ case "composer" /* COMPOSER */:
203848
+ return "COMPOSER";
204030
203849
  default:
204031
203850
  return void 0;
204032
203851
  }
@@ -204077,6 +203896,8 @@ function getNameFromNamespaceAndName(purlType, namespace2, name2) {
204077
203896
  return name2;
204078
203897
  case "golang" /* GOLANG */:
204079
203898
  return namespace2 ? `${namespace2}/${name2}` : name2;
203899
+ case "composer" /* COMPOSER */:
203900
+ return namespace2 ? `${namespace2}/${name2}` : name2;
204080
203901
  default:
204081
203902
  return name2;
204082
203903
  }
@@ -204264,6 +204085,11 @@ axiosRetry.exponentialDelay = exponentialDelay;
204264
204085
  axiosRetry.isRetryableError = isRetryableError;
204265
204086
  var esm_default = axiosRetry;
204266
204087
 
204088
+ // ../utils/src/dashboard-api/axios-aux.ts
204089
+ import https2 from "node:https";
204090
+ import { readFileSync } from "node:fs";
204091
+ import { rootCertificates } from "node:tls";
204092
+
204267
204093
  // ../../node_modules/.pnpm/hpagent@1.2.0/node_modules/hpagent/index.mjs
204268
204094
  var import_index2 = __toESM(require_hpagent(), 1);
204269
204095
  var HttpProxyAgent = import_index2.default.HttpProxyAgent;
@@ -204273,7 +204099,20 @@ var HttpsProxyAgent = import_index2.default.HttpsProxyAgent;
204273
204099
  var import_lodash = __toESM(require_lodash(), 1);
204274
204100
  var { pickBy } = import_lodash.default;
204275
204101
  function getProxyUrl() {
204276
- return process.env.SOCKET_CLI_API_PROXY;
204102
+ return process.env.SOCKET_CLI_API_PROXY ?? process.env.HTTPS_PROXY ?? process.env.https_proxy ?? process.env.HTTP_PROXY ?? process.env.http_proxy;
204103
+ }
204104
+ function getExtraCaCerts() {
204105
+ if (process.env.NODE_EXTRA_CA_CERTS) {
204106
+ return void 0;
204107
+ }
204108
+ const certPath = process.env.SSL_CERT_FILE;
204109
+ if (!certPath) return void 0;
204110
+ try {
204111
+ const extraCerts = readFileSync(certPath, "utf-8");
204112
+ return [...rootCertificates, extraCerts];
204113
+ } catch {
204114
+ return void 0;
204115
+ }
204277
204116
  }
204278
204117
  function handleError(error, errorMessage, throwErr = true) {
204279
204118
  if (error instanceof AxiosError2) {
@@ -204286,9 +204125,15 @@ function handleError(error, errorMessage, throwErr = true) {
204286
204125
  }
204287
204126
  }
204288
204127
  var proxyUrl = getProxyUrl();
204128
+ var ca = getExtraCaCerts();
204289
204129
  var axiosClient = axios_default.create({
204290
- httpsAgent: proxyUrl ? new HttpsProxyAgent({ proxy: proxyUrl }) : void 0,
204291
- httpAgent: proxyUrl ? new HttpProxyAgent({ proxy: proxyUrl }) : void 0
204130
+ httpsAgent: proxyUrl ? new HttpsProxyAgent({ proxy: proxyUrl, ...ca ? { ca, proxyConnectOptions: { ca } } : {} }) : ca ? new https2.Agent({ ca }) : void 0,
204131
+ httpAgent: proxyUrl ? new HttpProxyAgent({ proxy: proxyUrl }) : void 0,
204132
+ // Disable axios's built-in proxy detection from HTTPS_PROXY/HTTP_PROXY env vars.
204133
+ // When hpagent is configured, axios's own proxy handling would conflict with it.
204134
+ // When no proxy is configured, we don't want axios silently routing through an env proxy
204135
+ // without proper TLS/CA handling.
204136
+ proxy: false
204292
204137
  });
204293
204138
  esm_default(axiosClient, {
204294
204139
  retries: 7,
@@ -204870,7 +204715,7 @@ function getSocketAPI() {
204870
204715
 
204871
204716
  // ../utils/src/tool-extractor.ts
204872
204717
  import { createHash } from "node:crypto";
204873
- import { createReadStream, createWriteStream as createWriteStream3, readFileSync, statSync as statSync2 } from "node:fs";
204718
+ import { createReadStream, createWriteStream as createWriteStream3, readFileSync as readFileSync2, statSync as statSync2 } from "node:fs";
204874
204719
  import { copyFile, cp as cp2, mkdir as mkdir4, writeFile as writeFile2 } from "node:fs/promises";
204875
204720
  import { tmpdir as tmpdir2 } from "node:os";
204876
204721
  import { basename as basename3, dirname as dirname5, join as join5 } from "node:path";
@@ -209064,12 +208909,12 @@ var listFileSync = (opt) => {
209064
208909
  }
209065
208910
  };
209066
208911
  var listFile = (opt, _files) => {
209067
- const parse17 = new Parser(opt);
208912
+ const parse16 = new Parser(opt);
209068
208913
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
209069
208914
  const file = opt.file;
209070
208915
  const p3 = new Promise((resolve45, reject) => {
209071
- parse17.on("error", reject);
209072
- parse17.on("end", resolve45);
208916
+ parse16.on("error", reject);
208917
+ parse16.on("end", resolve45);
209073
208918
  fs2.stat(file, (er, stat5) => {
209074
208919
  if (er) {
209075
208920
  reject(er);
@@ -209079,7 +208924,7 @@ var listFile = (opt, _files) => {
209079
208924
  size: stat5.size
209080
208925
  });
209081
208926
  stream5.on("error", reject);
209082
- stream5.pipe(parse17);
208927
+ stream5.pipe(parse16);
209083
208928
  }
209084
208929
  });
209085
208930
  });
@@ -211862,7 +211707,7 @@ function getCliVersion() {
211862
211707
  if (cliVersion) return cliVersion;
211863
211708
  try {
211864
211709
  const packageJsonPath = isNexeMode() ? join5(NEXE_VIRTUAL_FS_ROOT, "package.json") : join5(dirname5(dirname5(dirname5(dirname5(__filename)))), "npm-package-cli", "package.json");
211865
- const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
211710
+ const packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf-8"));
211866
211711
  if (process.env.ALWAYS_REEXTRACT_TOOLS === "true") {
211867
211712
  logger.info("ALWAYS_REEXTRACT_TOOLS is set to true, re-extracting tools");
211868
211713
  const randomVersion = Math.random().toString().slice(2, 8);
@@ -211891,7 +211736,7 @@ function loadChecksums() {
211891
211736
  throw new Error("Tool extraction is only supported in nexe mode");
211892
211737
  }
211893
211738
  const checksumsPath = join5(NEXE_VIRTUAL_FS_ROOT, "checksums.json");
211894
- return JSON.parse(readFileSync(checksumsPath, "utf-8"));
211739
+ return JSON.parse(readFileSync2(checksumsPath, "utf-8"));
211895
211740
  } catch (error) {
211896
211741
  logger.warn("Failed to load checksums.json:", error);
211897
211742
  throw new Error(
@@ -212278,7 +212123,7 @@ var ecosystemToSupport = {
212278
212123
  }
212279
212124
  },
212280
212125
  COMPOSER: {
212281
- supportStatus: "no-support",
212126
+ supportStatus: "reachability-analysis-support",
212282
212127
  fixesComputation: false,
212283
212128
  packageManagers: {
212284
212129
  COMPOSER: {
@@ -219001,7 +218846,7 @@ ${indent(1, indentationSize)}`)}
219001
218846
  };
219002
218847
 
219003
218848
  // ../fixing-management/src/fixing-management/npm/npm-socket-upgrade-manager.ts
219004
- import { existsSync as existsSync15 } from "fs";
218849
+ import { existsSync as existsSync17 } from "fs";
219005
218850
  import { readFile as readFile20 } from "fs/promises";
219006
218851
  import assert10 from "node:assert";
219007
218852
  import { dirname as dirname14, join as join14, relative as relative10, resolve as resolve24 } from "path";
@@ -225163,7 +225008,7 @@ async function runCommandResolveStdOut4(cmd, dir, options) {
225163
225008
 
225164
225009
  // ../utils/dist/package-utils.js
225165
225010
  import { parse as parse5, join as join11, resolve as resolve17, normalize as normalize2, dirname as dirname12, basename as basename5, relative as relative5 } from "path";
225166
- import { existsSync as existsSync11, readFileSync as readFileSync2, readdirSync as readdirSync2, statSync as statSync3, writeFileSync } from "fs";
225011
+ import { existsSync as existsSync11, readFileSync as readFileSync3, readdirSync as readdirSync2, statSync as statSync3, writeFileSync } from "fs";
225167
225012
  function getPackageJsonObject(workspaceRoot) {
225168
225013
  const packageJSONContent = getPackageJsonContent(workspaceRoot);
225169
225014
  if (!packageJSONContent)
@@ -225173,7 +225018,7 @@ function getPackageJsonObject(workspaceRoot) {
225173
225018
  function getPackageJsonContent(workspaceRoot) {
225174
225019
  const packageJsonPath = getPackageJSONPath(workspaceRoot);
225175
225020
  if (existsSync11(packageJsonPath))
225176
- return readFileSync2(packageJsonPath, "utf8");
225021
+ return readFileSync3(packageJsonPath, "utf8");
225177
225022
  return void 0;
225178
225023
  }
225179
225024
  function getPackageJSONPath(workspaceRoot) {
@@ -225298,6 +225143,7 @@ async function getYarnType(projectDir) {
225298
225143
  }
225299
225144
 
225300
225145
  // ../fixing-management/src/fixing-management/npm/npm-fixing-manager.ts
225146
+ import { existsSync as existsSync13 } from "fs";
225301
225147
  import { readFile as readFile17, writeFile as writeFile6 } from "fs/promises";
225302
225148
  import { relative as relative6, resolve as resolve20 } from "path";
225303
225149
 
@@ -225359,6 +225205,7 @@ var NpmFixingManager = class extends NpmEcosystemFixingManager {
225359
225205
  }
225360
225206
  }
225361
225207
  async applySecurityFixesSpecificPackageManager(fixes) {
225208
+ await checkForNpmOverrides(resolve20(this.rootDir, this.subprojectPath, "package.json"), fixes);
225362
225209
  const pkgLockLocation = resolve20(this.rootDir, this.subprojectPath, "package-lock.json");
225363
225210
  const packageLockContent = await readFile17(pkgLockLocation, "utf-8");
225364
225211
  const getPackageName = (pkgPath) => {
@@ -225396,13 +225243,39 @@ var NpmFixingManager = class extends NpmEcosystemFixingManager {
225396
225243
  );
225397
225244
  }
225398
225245
  };
225246
+ async function checkForNpmOverrides(packageJsonPath, fixes) {
225247
+ if (!existsSync13(packageJsonPath)) return;
225248
+ const content = await readFile17(packageJsonPath, "utf-8");
225249
+ const packageJson = JSON.parse(content);
225250
+ const overrides = packageJson.overrides;
225251
+ if (!overrides) return;
225252
+ for (const fix of fixes) {
225253
+ for (const [key, value2] of Object.entries(overrides)) {
225254
+ if (key === fix.dependencyName && typeof value2 === "string") {
225255
+ throw new Error(
225256
+ `Package "${fix.dependencyName}" is pinned via npm "overrides" in package.json to version "${value2}". Automatic updating of npm overrides is not yet supported. Please manually update the override to version ${fix.fixedVersion} in your package.json "overrides" field.`
225257
+ );
225258
+ }
225259
+ if (typeof value2 === "object" && value2 !== null) {
225260
+ for (const [nestedKey, nestedValue] of Object.entries(value2)) {
225261
+ if (nestedKey === fix.dependencyName && typeof nestedValue === "string") {
225262
+ throw new Error(
225263
+ `Package "${fix.dependencyName}" is pinned via npm "overrides" in package.json (under "overrides.${key}") to version "${nestedValue}". Automatic updating of npm overrides is not yet supported. Please manually update the override to version ${fix.fixedVersion} in your package.json "overrides" field.`
225264
+ );
225265
+ }
225266
+ }
225267
+ }
225268
+ }
225269
+ }
225270
+ }
225399
225271
 
225400
225272
  // ../fixing-management/src/fixing-management/npm/pnpm-fixing-manager.ts
225273
+ var import_semver3 = __toESM(require_semver2(), 1);
225401
225274
  import { readFile as readFile18, writeFile as writeFile7 } from "fs/promises";
225402
225275
  import { relative as relative7, resolve as resolve21 } from "path";
225403
225276
  var import_yaml = __toESM(require_dist10(), 1);
225404
225277
  var import_lockfile_file2 = __toESM(require_lib25(), 1);
225405
- import { existsSync as existsSync13 } from "fs";
225278
+ import { existsSync as existsSync14 } from "fs";
225406
225279
  var PnpmFixingManager = class extends NpmEcosystemFixingManager {
225407
225280
  pnpmMajorVersion;
225408
225281
  async getPnpmMajorVersion() {
@@ -225493,7 +225366,9 @@ var PnpmFixingManager = class extends NpmEcosystemFixingManager {
225493
225366
  );
225494
225367
  lockFileYaml.packages = newPackages;
225495
225368
  }
225496
- if (lockFileYaml.catalogs) {
225369
+ const hasCatalogFixes = !!lockFileYaml.catalogs;
225370
+ let catalogFixes = {};
225371
+ if (hasCatalogFixes) {
225497
225372
  const getFixCatalog = (catalogName, catalog) => {
225498
225373
  const fixList = [];
225499
225374
  for (const [packageName, catalogVersion] of Object.entries(catalog)) {
@@ -225508,22 +225383,41 @@ var PnpmFixingManager = class extends NpmEcosystemFixingManager {
225508
225383
  }
225509
225384
  return fixList;
225510
225385
  };
225511
- const catalogFixes = Object.fromEntries(
225386
+ catalogFixes = Object.fromEntries(
225512
225387
  Object.entries(lockFileYaml.catalogs).map(([catalogName, catalog]) => [
225513
225388
  catalogName,
225514
225389
  Object.fromEntries(getFixCatalog(catalogName, catalog))
225515
225390
  ])
225516
225391
  );
225517
- const pnpmWorkspaceYamlFile = resolve21(this.rootDir, this.subprojectPath, "pnpm-workspace.yaml");
225518
- if (!existsSync13(pnpmWorkspaceYamlFile)) {
225392
+ }
225393
+ const pnpmWorkspaceYamlFile = resolve21(this.rootDir, this.subprojectPath, "pnpm-workspace.yaml");
225394
+ if (hasCatalogFixes || existsSync14(pnpmWorkspaceYamlFile)) {
225395
+ if (hasCatalogFixes && !existsSync14(pnpmWorkspaceYamlFile)) {
225519
225396
  throw new Error(
225520
225397
  `pnpm-workspace.yaml could not be found in ${pnpmWorkspaceYamlFile}. The lockfile indicates that pnpm catalogs are used and they must be updated, which is not possible without a pnpm-workspace.yaml file`
225521
225398
  );
225522
225399
  }
225523
- const yamlAST = await readYamlFile(pnpmWorkspaceYamlFile);
225524
- fixCatalogVersions(yamlAST, catalogFixes);
225525
- await writeYamlFile(yamlAST, pnpmWorkspaceYamlFile);
225400
+ if (existsSync14(pnpmWorkspaceYamlFile)) {
225401
+ const yamlAST = await readYamlFile(pnpmWorkspaceYamlFile);
225402
+ let modified = false;
225403
+ if (hasCatalogFixes) {
225404
+ fixCatalogVersions(yamlAST, catalogFixes);
225405
+ modified = true;
225406
+ }
225407
+ const overrideResult = fixWorkspaceYamlOverrides(yamlAST, fixes);
225408
+ if (overrideResult.modified) modified = true;
225409
+ if (overrideResult.nestedOverrides.length > 0) {
225410
+ const nested = overrideResult.nestedOverrides[0];
225411
+ throw new Error(
225412
+ `Package "${nested.packageName}" is pinned via a nested pnpm override in pnpm-workspace.yaml (under "overrides"). Automatic updating of nested overrides is not yet supported. Please manually update the override to version ${nested.fixedVersion}.`
225413
+ );
225414
+ }
225415
+ if (modified) {
225416
+ await writeYamlFile(yamlAST, pnpmWorkspaceYamlFile);
225417
+ }
225418
+ }
225526
225419
  }
225420
+ await fixPackageJsonPnpmOverrides(resolve21(this.rootDir, this.subprojectPath, "package.json"), fixes);
225527
225421
  await (0, import_lockfile_file2.writeWantedLockfile)(resolve21(this.rootDir, this.subprojectPath), lockFileYaml);
225528
225422
  } catch (e) {
225529
225423
  if (e.message) throw e;
@@ -225585,14 +225479,156 @@ function updateCatalog(update3, map2) {
225585
225479
  }
225586
225480
  }
225587
225481
  }
225482
+ function getOverrideTargetPackageName(key) {
225483
+ const lastSeparatorIndex = key.lastIndexOf(">");
225484
+ return lastSeparatorIndex >= 0 ? key.substring(lastSeparatorIndex + 1) : key;
225485
+ }
225486
+ function computeOverrideUpdate(overrideValue, fix) {
225487
+ if (overrideValue.startsWith("workspace:") || overrideValue.startsWith("link:") || overrideValue.startsWith("file:") || overrideValue.startsWith("http:") || overrideValue.startsWith("https:") || overrideValue.startsWith("git:") || overrideValue.startsWith("git+")) {
225488
+ return null;
225489
+ }
225490
+ if (overrideValue.startsWith("npm:")) {
225491
+ const afterNpm = overrideValue.substring(4);
225492
+ const atIndex = afterNpm.lastIndexOf("@");
225493
+ if (atIndex === -1) return null;
225494
+ const prefix = "npm:" + afterNpm.substring(0, atIndex + 1);
225495
+ const versionPart = afterNpm.substring(atIndex + 1);
225496
+ const result = computeOverrideVersionUpdate(versionPart, fix);
225497
+ return result !== null ? `${prefix}${result}` : null;
225498
+ }
225499
+ return computeOverrideVersionUpdate(overrideValue, fix);
225500
+ }
225501
+ function computeOverrideVersionUpdate(versionValue, fix) {
225502
+ if (versionValue === fix.currentVersion) {
225503
+ return fix.fixedVersion;
225504
+ }
225505
+ if (import_semver3.default.validRange(versionValue) && import_semver3.default.valid(fix.currentVersion) && import_semver3.default.valid(fix.fixedVersion)) {
225506
+ if (import_semver3.default.satisfies(fix.currentVersion, versionValue)) {
225507
+ if (!import_semver3.default.satisfies(fix.fixedVersion, versionValue)) {
225508
+ return fix.fixedVersion;
225509
+ }
225510
+ logger.info(
225511
+ `Override for ${fix.dependencyName} uses range "${versionValue}" which already allows the fixed version ${fix.fixedVersion} \u2014 no update needed`
225512
+ );
225513
+ }
225514
+ }
225515
+ return null;
225516
+ }
225517
+ function fixWorkspaceYamlOverrides(yamlAST, fixes) {
225518
+ let modified = false;
225519
+ const nestedOverrides = [];
225520
+ import_yaml.CST.visit(yamlAST, (item, _path2) => {
225521
+ if (import_yaml.CST.isCollection(item.value) && item.value.type === "block-map") {
225522
+ if (import_yaml.CST.isScalar(item.key)) {
225523
+ const key = import_yaml.CST.resolveAsScalar(item.key).value;
225524
+ if (key === "overrides") {
225525
+ if (updateOverridesMap(item.value, fixes, nestedOverrides)) {
225526
+ modified = true;
225527
+ }
225528
+ }
225529
+ }
225530
+ }
225531
+ });
225532
+ return { modified, nestedOverrides };
225533
+ }
225534
+ function updateOverridesMap(map2, fixes, nestedOverrides) {
225535
+ const fixesByName = /* @__PURE__ */ new Map();
225536
+ for (const fix of fixes) {
225537
+ const existing = fixesByName.get(fix.dependencyName) ?? [];
225538
+ existing.push(fix);
225539
+ fixesByName.set(fix.dependencyName, existing);
225540
+ }
225541
+ let wasModified = false;
225542
+ for (const overrideEntry of map2.items) {
225543
+ if (!overrideEntry.key || !overrideEntry.value) continue;
225544
+ if (import_yaml.CST.isCollection(overrideEntry.value)) {
225545
+ const overrideKey2 = import_yaml.CST.resolveAsScalar(overrideEntry.key)?.value;
225546
+ if (overrideKey2) {
225547
+ const target = getOverrideTargetPackageName(String(overrideKey2));
225548
+ const matchingFixes2 = fixesByName.get(target);
225549
+ if (matchingFixes2) {
225550
+ for (const fix of matchingFixes2) {
225551
+ nestedOverrides.push({ packageName: fix.dependencyName, fixedVersion: fix.fixedVersion });
225552
+ }
225553
+ }
225554
+ }
225555
+ continue;
225556
+ }
225557
+ if (!import_yaml.CST.isScalar(overrideEntry.value)) continue;
225558
+ const overrideKey = import_yaml.CST.resolveAsScalar(overrideEntry.key)?.value;
225559
+ const overrideValue = import_yaml.CST.resolveAsScalar(overrideEntry.value)?.value;
225560
+ if (!overrideKey || !overrideValue) continue;
225561
+ const targetPackageName = getOverrideTargetPackageName(String(overrideKey));
225562
+ const matchingFixes = fixesByName.get(targetPackageName);
225563
+ if (!matchingFixes) continue;
225564
+ for (const fix of matchingFixes) {
225565
+ const newValue = computeOverrideUpdate(String(overrideValue), fix);
225566
+ if (newValue !== null) {
225567
+ logger.info(
225568
+ `Applying fix to ${fix.dependencyName} (${fix.dependencyIdentifier}) defined in pnpm-workspace.yaml overrides`
225569
+ );
225570
+ import_yaml.CST.setScalarValue(overrideEntry.value, newValue);
225571
+ wasModified = true;
225572
+ }
225573
+ }
225574
+ }
225575
+ return wasModified;
225576
+ }
225577
+ async function fixPackageJsonPnpmOverrides(packageJsonPath, fixes) {
225578
+ if (!existsSync14(packageJsonPath)) return;
225579
+ const content = await readFile18(packageJsonPath, "utf-8");
225580
+ const packageJson = JSON.parse(content);
225581
+ const overrides = packageJson.pnpm?.overrides;
225582
+ if (!overrides) return;
225583
+ const fixesByName = /* @__PURE__ */ new Map();
225584
+ for (const fix of fixes) {
225585
+ const existing = fixesByName.get(fix.dependencyName) ?? [];
225586
+ existing.push(fix);
225587
+ fixesByName.set(fix.dependencyName, existing);
225588
+ }
225589
+ let modified = false;
225590
+ for (const [key, value2] of Object.entries(overrides)) {
225591
+ if (typeof value2 === "object" && value2 !== null) {
225592
+ for (const [nestedKey, nestedValue] of Object.entries(value2)) {
225593
+ const nestedTarget = getOverrideTargetPackageName(nestedKey);
225594
+ const matchingFixes2 = fixesByName.get(nestedTarget);
225595
+ if (matchingFixes2 && typeof nestedValue === "string") {
225596
+ const fix = matchingFixes2[0];
225597
+ throw new Error(
225598
+ `Package "${fix.dependencyName}" is pinned via a nested pnpm override in package.json (under "pnpm.overrides.${key}"). Automatic updating of nested overrides is not yet supported. Please manually update the override to version ${fix.fixedVersion}.`
225599
+ );
225600
+ }
225601
+ }
225602
+ continue;
225603
+ }
225604
+ if (typeof value2 !== "string") continue;
225605
+ const targetPackageName = getOverrideTargetPackageName(key);
225606
+ const matchingFixes = fixesByName.get(targetPackageName);
225607
+ if (!matchingFixes) continue;
225608
+ for (const fix of matchingFixes) {
225609
+ const newValue = computeOverrideUpdate(value2, fix);
225610
+ if (newValue !== null) {
225611
+ logger.info(
225612
+ `Applying fix to ${fix.dependencyName} (${fix.dependencyIdentifier}) defined in package.json pnpm.overrides`
225613
+ );
225614
+ overrides[key] = newValue;
225615
+ modified = true;
225616
+ }
225617
+ }
225618
+ }
225619
+ if (modified) {
225620
+ await writeFile7(packageJsonPath, JSON.stringify(packageJson, null, 2) + "\n");
225621
+ }
225622
+ }
225588
225623
 
225589
225624
  // ../fixing-management/src/fixing-management/npm/yarn-fixing-manager.ts
225625
+ import { existsSync as existsSync16 } from "fs";
225590
225626
  import { readFile as readFile19, writeFile as writeFile8 } from "fs/promises";
225591
225627
  import { relative as relative9, resolve as resolve23 } from "path";
225592
225628
 
225593
225629
  // ../utils/src/package-utils.ts
225594
225630
  import { parse as parse7, join as join13, resolve as resolve22, normalize as normalize3, dirname as dirname13, basename as basename6, relative as relative8 } from "path";
225595
- import { existsSync as existsSync14, readFileSync as readFileSync3, readdirSync as readdirSync3, statSync as statSync4, writeFileSync as writeFileSync2 } from "fs";
225631
+ import { existsSync as existsSync15, readFileSync as readFileSync4, readdirSync as readdirSync3, statSync as statSync4, writeFileSync as writeFileSync2 } from "fs";
225596
225632
  function setFieldInPackageJson(workspaceRoot, field, value2) {
225597
225633
  const packageJSONContentObj = getPackageJsonObject2(workspaceRoot);
225598
225634
  if (!packageJSONContentObj) return void 0;
@@ -225609,7 +225645,7 @@ function writePackageJsonContent(workspaceRoot, packageJsonContent) {
225609
225645
  }
225610
225646
  function getPackageJsonContent2(workspaceRoot) {
225611
225647
  const packageJsonPath = getPackageJSONPath2(workspaceRoot);
225612
- if (existsSync14(packageJsonPath)) return readFileSync3(packageJsonPath, "utf8");
225648
+ if (existsSync15(packageJsonPath)) return readFileSync4(packageJsonPath, "utf8");
225613
225649
  return void 0;
225614
225650
  }
225615
225651
  function getPackageJSONPath2(workspaceRoot) {
@@ -225776,6 +225812,7 @@ var YarnFixingManager = class extends NpmEcosystemFixingManager {
225776
225812
  await this.writeYarnObj(yarnLock, yarnLockLocation);
225777
225813
  }
225778
225814
  async applySecurityFixesSpecificPackageManager(fixes) {
225815
+ await checkForYarnResolutions(resolve23(this.rootDir, this.subprojectPath, "package.json"), fixes);
225779
225816
  const yarnLockLocation = resolve23(this.rootDir, this.subprojectPath, "yarn.lock");
225780
225817
  const yarnType = await this.getYarnType();
225781
225818
  try {
@@ -225815,6 +225852,24 @@ var YarnFixingManager = class extends NpmEcosystemFixingManager {
225815
225852
  }
225816
225853
  }
225817
225854
  };
225855
+ async function checkForYarnResolutions(packageJsonPath, fixes) {
225856
+ if (!existsSync16(packageJsonPath)) return;
225857
+ const content = await readFile19(packageJsonPath, "utf-8");
225858
+ const packageJson = JSON.parse(content);
225859
+ const resolutions = packageJson.resolutions;
225860
+ if (!resolutions) return;
225861
+ for (const fix of fixes) {
225862
+ for (const [key, value2] of Object.entries(resolutions)) {
225863
+ const parts = key.split("/");
225864
+ const targetPackage = parts[parts.length - 1];
225865
+ if (targetPackage === fix.dependencyName && typeof value2 === "string") {
225866
+ throw new Error(
225867
+ `Package "${fix.dependencyName}" is pinned via yarn "resolutions" in package.json to version "${value2}". Automatic updating of yarn resolutions is not yet supported. Please manually update the resolution to version ${fix.fixedVersion} in your package.json "resolutions" field.`
225868
+ );
225869
+ }
225870
+ }
225871
+ }
225872
+ }
225818
225873
 
225819
225874
  // ../fixing-management/src/fixing-management/npm/npm-socket-upgrade-manager.ts
225820
225875
  import { basename as basename7 } from "node:path";
@@ -225987,11 +226042,11 @@ var NpmSocketUpgradeManager = class {
225987
226042
  }
225988
226043
  getPackageManagerForDirectory(directory) {
225989
226044
  const fullPath = resolve24(this.rootDir, directory);
225990
- if (existsSync15(join14(fullPath, "pnpm-lock.yaml")) || existsSync15(join14(fullPath, "pnpm-lock.yml"))) {
226045
+ if (existsSync17(join14(fullPath, "pnpm-lock.yaml")) || existsSync17(join14(fullPath, "pnpm-lock.yml"))) {
225991
226046
  return "PNPM";
225992
- } else if (existsSync15(join14(fullPath, "yarn.lock"))) {
226047
+ } else if (existsSync17(join14(fullPath, "yarn.lock"))) {
225993
226048
  return "YARN";
225994
- } else if (existsSync15(join14(fullPath, "package-lock.json"))) {
226049
+ } else if (existsSync17(join14(fullPath, "package-lock.json"))) {
225995
226050
  return "NPM";
225996
226051
  }
225997
226052
  throw new Error(
@@ -226000,10 +226055,10 @@ var NpmSocketUpgradeManager = class {
226000
226055
  }
226001
226056
  getLockfileName(directory) {
226002
226057
  const fullPath = resolve24(this.rootDir, directory);
226003
- if (existsSync15(join14(fullPath, "pnpm-lock.yaml"))) return "pnpm-lock.yaml";
226004
- if (existsSync15(join14(fullPath, "pnpm-lock.yml"))) return "pnpm-lock.yml";
226005
- if (existsSync15(join14(fullPath, "yarn.lock"))) return "yarn.lock";
226006
- if (existsSync15(join14(fullPath, "package-lock.json"))) return "package-lock.json";
226058
+ if (existsSync17(join14(fullPath, "pnpm-lock.yaml"))) return "pnpm-lock.yaml";
226059
+ if (existsSync17(join14(fullPath, "pnpm-lock.yml"))) return "pnpm-lock.yml";
226060
+ if (existsSync17(join14(fullPath, "yarn.lock"))) return "yarn.lock";
226061
+ if (existsSync17(join14(fullPath, "package-lock.json"))) return "package-lock.json";
226007
226062
  throw new Error(`No lockfile found in ${fullPath}`);
226008
226063
  }
226009
226064
  async createDirectDependencyPatches(mf, idx, upgradeVersion, ctxt) {
@@ -226388,10 +226443,10 @@ import { dirname as dirname16, relative as relative12, resolve as resolve26 } fr
226388
226443
  var import_parse_xml3 = __toESM(require_dist(), 1);
226389
226444
  import { readFile as readFile22 } from "node:fs/promises";
226390
226445
  import { dirname as dirname15, join as join17, relative as relative11, resolve as resolve25, basename as basename8, extname } from "node:path";
226391
- import { existsSync as existsSync16 } from "node:fs";
226446
+ import { existsSync as existsSync18 } from "node:fs";
226392
226447
 
226393
226448
  // ../utils/dist/version-comparison/version-satisfies.js
226394
- var import_semver3 = __toESM(require_semver2(), 1);
226449
+ var import_semver4 = __toESM(require_semver2(), 1);
226395
226450
 
226396
226451
  // ../utils/dist/version-comparison/maven/comparable-version.js
226397
226452
  var IntItem2 = class _IntItem {
@@ -227787,10 +227842,10 @@ function versionSatisfiesSpecifier2(ecosystem, version4, specifier) {
227787
227842
  }
227788
227843
  var ecosystemMap2 = {
227789
227844
  NPM: {
227790
- sortVersions: import_semver3.sort,
227845
+ sortVersions: import_semver4.sort,
227791
227846
  isPrerelease: semverIsPrerelease2,
227792
227847
  versionSatisfiesSpecifier: semverSatisfiesSpecifier2,
227793
- versionSatisfiesRelation: import_semver3.cmp,
227848
+ versionSatisfiesRelation: import_semver4.cmp,
227794
227849
  versionSatisfiesRange: semverSatisfiesRange2
227795
227850
  },
227796
227851
  MAVEN: {
@@ -227813,17 +227868,17 @@ var ecosystemMap2 = {
227813
227868
  versionSatisfiesRange: versionSatisfiesWithVersionComparisonFunction2(pipCompareVersions2)
227814
227869
  },
227815
227870
  GO: {
227816
- sortVersions: import_semver3.sort,
227871
+ sortVersions: import_semver4.sort,
227817
227872
  isPrerelease: semverIsPrerelease2,
227818
227873
  versionSatisfiesSpecifier: semverSatisfiesSpecifier2,
227819
- versionSatisfiesRelation: import_semver3.cmp,
227874
+ versionSatisfiesRelation: import_semver4.cmp,
227820
227875
  versionSatisfiesRange: semverSatisfiesRange2
227821
227876
  },
227822
227877
  RUST: {
227823
- sortVersions: import_semver3.sort,
227878
+ sortVersions: import_semver4.sort,
227824
227879
  isPrerelease: semverIsPrerelease2,
227825
227880
  versionSatisfiesSpecifier: (version4, specifier) => specifier.split(",").map((part) => part.trim()).every((trimmed) => semverSatisfiesSpecifier2(version4, /^\d/.test(trimmed) ? `^${trimmed}` : trimmed)),
227826
- versionSatisfiesRelation: import_semver3.cmp,
227881
+ versionSatisfiesRelation: import_semver4.cmp,
227827
227882
  versionSatisfiesRange: semverSatisfiesRange2
227828
227883
  },
227829
227884
  NUGET: {
@@ -227867,16 +227922,16 @@ function buildUnsupportedEcosystem2(ecosystem) {
227867
227922
  };
227868
227923
  }
227869
227924
  function semverSatisfiesSpecifier2(version4, specifier) {
227870
- return (0, import_semver3.satisfies)(version4, specifier);
227925
+ return (0, import_semver4.satisfies)(version4, specifier);
227871
227926
  }
227872
227927
  function semverSatisfiesRange2(version4, range2) {
227873
- if ((0, import_semver3.satisfies)(version4, range2))
227928
+ if ((0, import_semver4.satisfies)(version4, range2))
227874
227929
  return true;
227875
- const versionWithoutPrerelease = (0, import_semver3.coerce)(version4)?.version;
227876
- return versionWithoutPrerelease ? (0, import_semver3.satisfies)(versionWithoutPrerelease, range2) : false;
227930
+ const versionWithoutPrerelease = (0, import_semver4.coerce)(version4)?.version;
227931
+ return versionWithoutPrerelease ? (0, import_semver4.satisfies)(versionWithoutPrerelease, range2) : false;
227877
227932
  }
227878
227933
  function semverIsPrerelease2(version4) {
227879
- return (0, import_semver3.coerce)(version4)?.version !== version4;
227934
+ return (0, import_semver4.coerce)(version4)?.version !== version4;
227880
227935
  }
227881
227936
  var operators2 = {
227882
227937
  lt: "<",
@@ -227941,7 +227996,7 @@ async function loadNuGetProject(rootDir, projectFile, validateFile) {
227941
227996
  }
227942
227997
  async function loadNuGetProjectOrTarget(rootDir, projectFile, mainProject, visited, validateFile) {
227943
227998
  const validatedProjectPath = validateFile ? validateFile(resolve25(rootDir, projectFile)) : resolve25(rootDir, projectFile);
227944
- if (!validatedProjectPath || !existsSync16(validatedProjectPath)) return void 0;
227999
+ if (!validatedProjectPath || !existsSync18(validatedProjectPath)) return void 0;
227945
228000
  if (visited.has(validatedProjectPath)) return void 0;
227946
228001
  visited.set(validatedProjectPath);
227947
228002
  const sourceText = await readFile22(validatedProjectPath, "utf-8");
@@ -228016,7 +228071,7 @@ async function loadNuGetProjectOrTarget(rootDir, projectFile, mainProject, visit
228016
228071
  }
228017
228072
  async function loadPackagesConfig(rootDir, file, validateFile) {
228018
228073
  const validatedConfigPath = validateFile(resolve25(rootDir, file));
228019
- if (!validatedConfigPath || !existsSync16(validatedConfigPath)) return void 0;
228074
+ if (!validatedConfigPath || !existsSync18(validatedConfigPath)) return void 0;
228020
228075
  const sourceText = await readFile22(validatedConfigPath, "utf-8");
228021
228076
  const configXml = (0, import_parse_xml3.parseXml)(sourceText, { includeOffsets: true });
228022
228077
  const packages = extractPackagesFromXml(configXml, sourceText);
@@ -228146,7 +228201,7 @@ async function handleImportElement(currentProject, importElement, mainProject, v
228146
228201
  if (!importPath) return;
228147
228202
  const resolvedPath = resolve25(dirname15(currentProject.validatedProjectPath), normalizeMSBuildPath(importPath));
228148
228203
  const validatedPath = validateFile ? validateFile(resolvedPath) : resolvedPath;
228149
- if (!validatedPath || !existsSync16(validatedPath)) return;
228204
+ if (!validatedPath || !existsSync18(validatedPath)) return;
228150
228205
  const importedProject = await loadNuGetProjectOrTarget(
228151
228206
  currentProject.rootDir,
228152
228207
  resolvedPath,
@@ -228839,7 +228894,7 @@ var NuGetSocketUpgradeManager = class {
228839
228894
  // ../fixing-management/src/fixing-management/rust/cargo-socket-upgrade-manager.ts
228840
228895
  import { dirname as dirname18, relative as relative13, resolve as resolve28 } from "node:path";
228841
228896
  var import_picomatch6 = __toESM(require_picomatch2(), 1);
228842
- var import_semver4 = __toESM(require_semver2(), 1);
228897
+ var import_semver5 = __toESM(require_semver2(), 1);
228843
228898
  import assert12 from "node:assert";
228844
228899
  import { readFile as readFile24, writeFile as writeFile10 } from "node:fs/promises";
228845
228900
 
@@ -229103,7 +229158,7 @@ var CargoSocketUpgradeManager = class {
229103
229158
  * This handles Cargo's implicit caret behavior and uses semver for proper version range matching
229104
229159
  */
229105
229160
  versionMatches(tomlVersion, resolvedVersion) {
229106
- return import_semver4.default.satisfies(resolvedVersion, /^\d/.test(tomlVersion) ? `^${tomlVersion}` : tomlVersion);
229161
+ return import_semver5.default.satisfies(resolvedVersion, /^\d/.test(tomlVersion) ? `^${tomlVersion}` : tomlVersion);
229107
229162
  }
229108
229163
  /**
229109
229164
  * Add a new dependency to a Cargo.toml file
@@ -229550,14 +229605,14 @@ function createPep508VersionPatches(file, idx, requirement, oldVersion, upgradeV
229550
229605
  }
229551
229606
 
229552
229607
  // ../utils/src/pip-utils.ts
229553
- import { existsSync as existsSync17 } from "node:fs";
229608
+ import { existsSync as existsSync19 } from "node:fs";
229554
229609
  import { readFile as readFile26 } from "node:fs/promises";
229555
229610
  import { dirname as dirname19, resolve as resolve30 } from "node:path";
229556
229611
  import util4 from "node:util";
229557
229612
 
229558
229613
  // ../utils/src/python-versions-manager.ts
229559
229614
  var import_lodash6 = __toESM(require_lodash(), 1);
229560
- var import_semver5 = __toESM(require_semver2(), 1);
229615
+ var import_semver6 = __toESM(require_semver2(), 1);
229561
229616
  import { execFileSync } from "child_process";
229562
229617
  import { constants as constants3 } from "fs";
229563
229618
  import { access as access3, readFile as readFile25 } from "fs/promises";
@@ -230401,7 +230456,7 @@ import assert14 from "node:assert";
230401
230456
  var import_good_enough_parser4 = __toESM(require_cjs(), 1);
230402
230457
  init_ruby_lang();
230403
230458
  import { resolve as resolve32, dirname as dirname21, relative as relative14 } from "node:path";
230404
- import { existsSync as existsSync18, readFileSync as readFileSync4, readdirSync as readdirSync4 } from "node:fs";
230459
+ import { existsSync as existsSync20, readFileSync as readFileSync5, readdirSync as readdirSync4 } from "node:fs";
230405
230460
  init_gemspec_utils();
230406
230461
  var booleanQuery2 = import_good_enough_parser4.query.alt(
230407
230462
  import_good_enough_parser4.query.sym(/^true|false$/, (ctx, { value: value2, offset }) => {
@@ -230516,8 +230571,8 @@ var evalGemfileQuery = import_good_enough_parser4.query.sym("eval_gemfile").join
230516
230571
  if (pathEvaluated === void 0) return ctx;
230517
230572
  const rootDir = ctx.gemfile.rootDir;
230518
230573
  const file = relative14(rootDir, resolve32(rootDir, dirname21(ctx.gemfile.file), pathEvaluated));
230519
- if (!existsSync18(resolve32(rootDir, file))) return ctx;
230520
- const sourceText = readFileSync4(resolve32(rootDir, file), "utf-8");
230574
+ if (!existsSync20(resolve32(rootDir, file))) return ctx;
230575
+ const sourceText = readFileSync5(resolve32(rootDir, file), "utf-8");
230521
230576
  const parser2 = import_good_enough_parser4.lang.createLang(lang3);
230522
230577
  const cursor = parser2.parse(sourceText);
230523
230578
  const otherCtx = parser2.query(cursor, treeQuery4, {
@@ -230591,7 +230646,7 @@ var gemspecQuery = import_good_enough_parser4.query.sym("gemspec").opt(
230591
230646
  ctx.currentGem = void 0;
230592
230647
  }
230593
230648
  const searchDir = gemspecPath ? resolve32(rootDir, gemfileDir, gemspecPath) : resolve32(rootDir, gemfileDir);
230594
- if (!existsSync18(searchDir)) return ctx;
230649
+ if (!existsSync20(searchDir)) return ctx;
230595
230650
  let gemspecFiles = [];
230596
230651
  try {
230597
230652
  const entries = readdirSync4(searchDir);
@@ -230609,7 +230664,7 @@ var gemspecQuery = import_good_enough_parser4.query.sym("gemspec").opt(
230609
230664
  const gemspecFullPath = resolve32(searchDir, gemspecFile);
230610
230665
  const gemspecRelativePath = relative14(rootDir, gemspecFullPath);
230611
230666
  try {
230612
- const sourceText = readFileSync4(gemspecFullPath, "utf-8");
230667
+ const sourceText = readFileSync5(gemspecFullPath, "utf-8");
230613
230668
  const gemspec = parseGemspec(rootDir, gemspecRelativePath, sourceText);
230614
230669
  ctx.gemspecs.push(gemspec);
230615
230670
  ctx.gems.push(...gemspec.dependencies);
@@ -231315,7 +231370,7 @@ async function applySocketUpgrades(ecosystem, rootDir, ctxt) {
231315
231370
 
231316
231371
  // dist/cli-apply-fix.js
231317
231372
  var import_lodash13 = __toESM(require_lodash(), 1);
231318
- import { existsSync as existsSync22 } from "fs";
231373
+ import { existsSync as existsSync24 } from "fs";
231319
231374
 
231320
231375
  // ../other-modules-communicator/src/other-modules-communicator.ts
231321
231376
  import { execFileSync as execFileSync2 } from "child_process";
@@ -231332,7 +231387,7 @@ import { fileURLToPath as fileURLToPath3 } from "node:url";
231332
231387
  // ../utils/dist/file-utils.js
231333
231388
  var import_lodash7 = __toESM(require_lodash(), 1);
231334
231389
  var import_micromatch2 = __toESM(require_micromatch(), 1);
231335
- import { existsSync as existsSync19 } from "fs";
231390
+ import { existsSync as existsSync21 } from "fs";
231336
231391
  import { access as access4, cp as cp3, readdir as readdir4, stat as stat4 } from "fs/promises";
231337
231392
  import { basename as basename9, join as join20, relative as relative16, resolve as resolve34 } from "path";
231338
231393
  var { uniq: uniq2 } = import_lodash7.default;
@@ -231562,7 +231617,13 @@ var CLILogger2 = class {
231562
231617
  this.logger = (0, import_winston2.createLogger)({
231563
231618
  level: debug ? "debug" : "info",
231564
231619
  levels: customLevels,
231565
- format: import_winston2.format.combine(import_winston2.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss.SSS" }), utilFormatter2(), import_winston2.format.colorize(), import_winston2.format.printf(({ level, message: message2, label, timestamp }) => `${timestamp} ${label || "-"} ${level}: ${message2}`)),
231620
+ format: import_winston2.format.combine(
231621
+ import_winston2.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss.SSS" }),
231622
+ utilFormatter2(),
231623
+ import_winston2.format.colorize(),
231624
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
231625
+ import_winston2.format.printf(({ level, message: message2, label, timestamp }) => `${timestamp} ${label || "-"} ${level}: ${message2}`)
231626
+ ),
231566
231627
  transports
231567
231628
  });
231568
231629
  }
@@ -231590,7 +231651,13 @@ var CLILogger2 = class {
231590
231651
  this.logger = (0, import_winston2.createLogger)({
231591
231652
  level: options.debug ? "debug" : "info",
231592
231653
  levels: customLevels,
231593
- format: import_winston2.format.combine(import_winston2.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss.SSS" }), utilFormatter2(), import_winston2.format.colorize(), import_winston2.format.printf(({ level, message: message2, label, timestamp }) => `${timestamp} ${label || "-"} ${level}: ${message2}`)),
231654
+ format: import_winston2.format.combine(
231655
+ import_winston2.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss.SSS" }),
231656
+ utilFormatter2(),
231657
+ import_winston2.format.colorize(),
231658
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
231659
+ import_winston2.format.printf(({ level, message: message2, label, timestamp }) => `${timestamp} ${label || "-"} ${level}: ${message2}`)
231660
+ ),
231594
231661
  transports: [new import_winston2.transports.Console(), socketTransport]
231595
231662
  });
231596
231663
  }
@@ -231760,7 +231827,7 @@ async function detectVariantMaven(projectDir) {
231760
231827
  }
231761
231828
 
231762
231829
  // ../docker-management/src/maven/gradle-version-detector.ts
231763
- import { existsSync as existsSync20 } from "fs";
231830
+ import { existsSync as existsSync22 } from "fs";
231764
231831
  import { join as join23 } from "path";
231765
231832
  import { readFile as readFile30 } from "fs/promises";
231766
231833
  async function detectVariantGradle(projectDir) {
@@ -231768,7 +231835,7 @@ async function detectVariantGradle(projectDir) {
231768
231835
  }
231769
231836
  async function detect(projectDir) {
231770
231837
  const gradleWrapperPropertiesPath = join23(projectDir, "gradle", "wrapper", "gradle-wrapper.properties");
231771
- const gradleWrapperProperties = existsSync20(gradleWrapperPropertiesPath) ? (await readFile30(gradleWrapperPropertiesPath, "utf-8")).split("\n").map((line) => line.trim()).filter((line) => !line.startsWith("#")).filter((line) => line) : void 0;
231838
+ const gradleWrapperProperties = existsSync22(gradleWrapperPropertiesPath) ? (await readFile30(gradleWrapperPropertiesPath, "utf-8")).split("\n").map((line) => line.trim()).filter((line) => !line.startsWith("#")).filter((line) => line) : void 0;
231772
231839
  if (!gradleWrapperProperties) return void 0;
231773
231840
  const distributionUrlRegex = /.*gradle-(\d+(\.\d+(\.\d+)?)?)/;
231774
231841
  for (const prop2 of gradleWrapperProperties) {
@@ -231782,7 +231849,7 @@ async function detect(projectDir) {
231782
231849
  }
231783
231850
 
231784
231851
  // ../docker-management/src/maven/sbt-version-detector.ts
231785
- import { existsSync as existsSync21 } from "fs";
231852
+ import { existsSync as existsSync23 } from "fs";
231786
231853
  import { join as join24 } from "path";
231787
231854
  import { readFile as readFile31 } from "fs/promises";
231788
231855
  async function detectVariantSbt(projectDir) {
@@ -231790,7 +231857,7 @@ async function detectVariantSbt(projectDir) {
231790
231857
  }
231791
231858
  async function detect2(projectDir) {
231792
231859
  const sbtBuildPropertiesPath = join24(projectDir, "project", "build.properties");
231793
- const sbtBuildProperties = existsSync21(sbtBuildPropertiesPath) ? (await readFile31(sbtBuildPropertiesPath, "utf-8")).split("\n").map((line) => line.trim()).filter((line) => !line.startsWith("#")).filter((line) => line) : void 0;
231860
+ const sbtBuildProperties = existsSync23(sbtBuildPropertiesPath) ? (await readFile31(sbtBuildPropertiesPath, "utf-8")).split("\n").map((line) => line.trim()).filter((line) => !line.startsWith("#")).filter((line) => line) : void 0;
231794
231861
  if (!sbtBuildProperties) return void 0;
231795
231862
  for (const prop2 of sbtBuildProperties) {
231796
231863
  const [key, value2] = prop2.split("=");
@@ -232119,7 +232186,7 @@ var ecosystemToSupport2 = {
232119
232186
  }
232120
232187
  },
232121
232188
  COMPOSER: {
232122
- supportStatus: "no-support",
232189
+ supportStatus: "reachability-analysis-support",
232123
232190
  fixesComputation: false,
232124
232191
  packageManagers: {
232125
232192
  COMPOSER: {
@@ -232271,6 +232338,8 @@ async function extractAllToolsForNexeMode() {
232271
232338
  getUvExecutable(),
232272
232339
  // Extract Jelly (JavaScript/TypeScript analysis)
232273
232340
  extractTool("jelly-private", "repos/coana-tech/jelly-private"),
232341
+ // Extract SPAR (Experimental JS/TS analysis)
232342
+ extractTool("spar", "repos/coana-tech/spar"),
232274
232343
  // Extract Mambalade (Python analysis)
232275
232344
  extractTool("mambalade", "repos/coana-tech/mambalade"),
232276
232345
  // Extract Goana (Go analysis) - platform/arch-specific binary
@@ -233094,7 +233163,7 @@ async function verifyFixes(fixes, otherModulesCommunicator, rootPath) {
233094
233163
  if (pathsForEachFixIdData.length !== new Set(pathsForEachFixIdData).size) {
233095
233164
  throw new Error("Multiple fix IDs found for the same subproject, workspace and ecosystem");
233096
233165
  }
233097
- const subprojectsNotFound = uniq3(fixes.filter(({ vulnerabilityInstance: v }) => !existsSync22(resolve37(rootPath, v.subprojectPath))).map(({ vulnerabilityInstance: v }) => `${v.subprojectPath}:${v.ecosystem}`));
233166
+ const subprojectsNotFound = uniq3(fixes.filter(({ vulnerabilityInstance: v }) => !existsSync24(resolve37(rootPath, v.subprojectPath))).map(({ vulnerabilityInstance: v }) => `${v.subprojectPath}:${v.ecosystem}`));
233098
233167
  if (subprojectsNotFound.length > 0) {
233099
233168
  throw new Error(`Cannot find the following subprojects: ${subprojectsNotFound.join(", ")}`);
233100
233169
  }
@@ -233526,7 +233595,7 @@ function getVulnReachability(c3) {
233526
233595
  }
233527
233596
 
233528
233597
  // ../web-compat-utils/src/report-utils.ts
233529
- var import_semver6 = __toESM(require_semver2(), 1);
233598
+ var import_semver7 = __toESM(require_semver2(), 1);
233530
233599
  function generateUrlToRepoSourceLocation(sourceLocation, repoUrl, commit, subprojectWorkspacePath) {
233531
233600
  if (!repoUrl || !commit || !subprojectWorkspacePath) return void 0;
233532
233601
  const isGithub = repoUrl.toLowerCase().includes("github");
@@ -233920,7 +233989,7 @@ import { readdir as readdir6 } from "fs/promises";
233920
233989
  import { join as join29, relative as relative19, resolve as resolve38 } from "path";
233921
233990
 
233922
233991
  // ../project-management/src/project-management/ecosystem-management/ecosystem-specs.ts
233923
- import { existsSync as existsSync23 } from "fs";
233992
+ import { existsSync as existsSync25 } from "fs";
233924
233993
  import { readdir as readdir5, readFile as readFile33 } from "fs/promises";
233925
233994
  import { join as join28, sep as sep4 } from "path";
233926
233995
  var specs = {
@@ -233997,7 +234066,7 @@ function getEcosystemSpecs(ecosystems) {
233997
234066
  }
233998
234067
  function packageManagerIfPackageJSONExistsAndValid(packageManager) {
233999
234068
  return async (projectDir) => {
234000
- if (!existsSync23(join28(projectDir, "package.json"))) return void 0;
234069
+ if (!existsSync25(join28(projectDir, "package.json"))) return void 0;
234001
234070
  const packageJSONPath = join28(projectDir, "package.json");
234002
234071
  try {
234003
234072
  JSON.parse(await readFile33(packageJSONPath, "utf-8"));
@@ -234892,7 +234961,7 @@ function prettyApplyFixesTo(applyFixesToOption) {
234892
234961
 
234893
234962
  // dist/cli-core.js
234894
234963
  import assert16 from "node:assert";
234895
- import { existsSync as existsSync28, writeFileSync as writeFileSync3 } from "fs";
234964
+ import { existsSync as existsSync30, writeFileSync as writeFileSync3 } from "fs";
234896
234965
  import { mkdir as mkdir6, rm as rm3, writeFile as writeFile15 } from "fs/promises";
234897
234966
  var import_lodash15 = __toESM(require_lodash(), 1);
234898
234967
  import os2 from "os";
@@ -235145,7 +235214,7 @@ var BatchedHttpLogStreamer = class {
235145
235214
  // ../utils/src/logging/socket-log-server.ts
235146
235215
  import { createServer } from "net";
235147
235216
  import { once as once8 } from "events";
235148
- import { createWriteStream as createWriteStream6, existsSync as existsSync24 } from "fs";
235217
+ import { createWriteStream as createWriteStream6, existsSync as existsSync26 } from "fs";
235149
235218
  import { unlink as unlink3 } from "fs/promises";
235150
235219
  var SocketLogServer = class {
235151
235220
  server;
@@ -235166,7 +235235,7 @@ var SocketLogServer = class {
235166
235235
  this.server = createServer((socket) => this.handleConnection(socket));
235167
235236
  }
235168
235237
  async start() {
235169
- if (existsSync24(this.socketPath)) {
235238
+ if (existsSync26(this.socketPath)) {
235170
235239
  await unlink3(this.socketPath);
235171
235240
  }
235172
235241
  this.server.listen(this.socketPath);
@@ -235288,7 +235357,7 @@ var SocketLogServer = class {
235288
235357
  return new Promise((resolve45, reject) => {
235289
235358
  this.server.close((serverError) => {
235290
235359
  this.writeStream.end(() => {
235291
- if (existsSync24(this.socketPath)) {
235360
+ if (existsSync26(this.socketPath)) {
235292
235361
  unlink3(this.socketPath).then(() => {
235293
235362
  if (serverError) reject(serverError);
235294
235363
  else resolve45();
@@ -235304,7 +235373,7 @@ var SocketLogServer = class {
235304
235373
  };
235305
235374
 
235306
235375
  // ../utils/src/logging/main-process-transport.ts
235307
- var import_winston_transport = __toESM(require_winston_transport2(), 1);
235376
+ var import_winston_transport = __toESM(require_winston_transport(), 1);
235308
235377
  var MainProcessTransport = class extends import_winston_transport.default {
235309
235378
  socketLogServer;
235310
235379
  context;
@@ -235647,30 +235716,32 @@ Alternatively, you can reduce the --memory-limit option to require fewer mapping
235647
235716
  var DEFAULT_REPORT_FILENAME_BASE = "coana-report";
235648
235717
 
235649
235718
  // dist/internal/exclude-dirs-from-configuration-files.js
235650
- import { existsSync as existsSync25 } from "fs";
235719
+ import { existsSync as existsSync27 } from "fs";
235651
235720
  import { readFile as readFile35 } from "fs/promises";
235652
235721
  import { basename as basename11, resolve as resolve41 } from "path";
235653
235722
  var import_yaml2 = __toESM(require_dist11(), 1);
235654
235723
  async function inferExcludeDirsFromConfigurationFiles(rootWorkingDir) {
235655
235724
  const socketYmlConfigFile = resolve41(rootWorkingDir, "socket.yml");
235656
- if (existsSync25(socketYmlConfigFile))
235725
+ if (existsSync27(socketYmlConfigFile))
235657
235726
  return inferExcludeDirsFromSocketConfig(socketYmlConfigFile);
235658
235727
  const socketYamlConfigFile = resolve41(rootWorkingDir, "socket.yaml");
235659
- if (existsSync25(socketYamlConfigFile))
235728
+ if (existsSync27(socketYamlConfigFile))
235660
235729
  return inferExcludeDirsFromSocketConfig(socketYamlConfigFile);
235661
235730
  return void 0;
235662
235731
  }
235663
235732
  async function inferExcludeDirsFromSocketConfig(socketConfigFile) {
235664
235733
  try {
235665
- const config3 = (0, import_yaml2.parse)(await readFile35(socketConfigFile, "utf8"));
235666
- const version4 = config3.version;
235667
- const ignorePaths = config3[version4 === 1 ? "ignore" : "projectIgnorePaths"];
235668
- if (!ignorePaths)
235734
+ const doc = (0, import_yaml2.parseDocument)(await readFile35(socketConfigFile, "utf8"));
235735
+ const version4 = doc.get("version");
235736
+ const key = version4 === 1 ? "ignore" : "projectIgnorePaths";
235737
+ const ignorePathsNode = doc.get(key, true);
235738
+ if (!ignorePathsNode || !(0, import_yaml2.isSeq)(ignorePathsNode))
235669
235739
  return void 0;
235740
+ const ignorePaths = ignorePathsNode.items.map((item) => String(item));
235670
235741
  if (ignorePaths.some((ignorePath) => ignorePath.includes("!")))
235671
235742
  return void 0;
235672
235743
  logger.info(`Inferring paths to exclude based on Socket config file: ${basename11(socketConfigFile)}`);
235673
- return config3.projectIgnorePaths;
235744
+ return ignorePaths;
235674
235745
  } catch (e) {
235675
235746
  return void 0;
235676
235747
  }
@@ -239457,7 +239528,7 @@ var import_css_what2 = __toESM(require_commonjs(), 1);
239457
239528
  var whitespace = /* @__PURE__ */ new Set([9, 10, 12, 13, 32]);
239458
239529
  var ZERO = "0".charCodeAt(0);
239459
239530
  var NINE = "9".charCodeAt(0);
239460
- function parse10(formula) {
239531
+ function parse9(formula) {
239461
239532
  formula = formula.trim().toLowerCase();
239462
239533
  if (formula === "even") {
239463
239534
  return [2, 0];
@@ -239530,7 +239601,7 @@ function compile(parsed) {
239530
239601
 
239531
239602
  // ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.js
239532
239603
  function nthCheck(formula) {
239533
- return compile(parse10(formula));
239604
+ return compile(parse9(formula));
239534
239605
  }
239535
239606
 
239536
239607
  // ../../node_modules/.pnpm/css-select@5.1.0/node_modules/css-select/lib/esm/pseudo-selectors/filters.js
@@ -240652,7 +240723,7 @@ __export(manipulation_exports, {
240652
240723
 
240653
240724
  // ../../node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/parse.js
240654
240725
  function getParse(parser2) {
240655
- return function parse17(content, options, isDocument2, context2) {
240726
+ return function parse16(content, options, isDocument2, context2) {
240656
240727
  if (typeof Buffer !== "undefined" && Buffer.isBuffer(content)) {
240657
240728
  content = content.toString();
240658
240729
  }
@@ -241032,7 +241103,7 @@ function setCss(el, prop2, value2, idx) {
241032
241103
  function getCss(el, prop2) {
241033
241104
  if (!el || !isTag2(el))
241034
241105
  return;
241035
- const styles = parse14(el.attribs["style"]);
241106
+ const styles = parse13(el.attribs["style"]);
241036
241107
  if (typeof prop2 === "string") {
241037
241108
  return styles[prop2];
241038
241109
  }
@@ -241050,7 +241121,7 @@ function getCss(el, prop2) {
241050
241121
  function stringify2(obj) {
241051
241122
  return Object.keys(obj).reduce((str, prop2) => `${str}${str ? " " : ""}${prop2}: ${obj[prop2]};`, "");
241052
241123
  }
241053
- function parse14(styles) {
241124
+ function parse13(styles) {
241054
241125
  styles = (styles || "").trim();
241055
241126
  if (!styles)
241056
241127
  return {};
@@ -241143,13 +241214,13 @@ Cheerio.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
241143
241214
  Object.assign(Cheerio.prototype, attributes_exports, traversing_exports, manipulation_exports, css_exports, forms_exports);
241144
241215
 
241145
241216
  // ../../node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/load.js
241146
- function getLoad(parse17, render3) {
241217
+ function getLoad(parse16, render3) {
241147
241218
  return function load2(content, options, isDocument2 = true) {
241148
241219
  if (content == null) {
241149
241220
  throw new Error("cheerio.load() expects a string");
241150
241221
  }
241151
241222
  const internalOpts = { ...options_default, ...flatten(options) };
241152
- const initialRoot = parse17(content, internalOpts, isDocument2, null);
241223
+ const initialRoot = parse16(content, internalOpts, isDocument2, null);
241153
241224
  class LoadedCheerio extends Cheerio {
241154
241225
  _make(selector, context2) {
241155
241226
  const cheerio = initialize(selector, context2);
@@ -241157,7 +241228,7 @@ function getLoad(parse17, render3) {
241157
241228
  return cheerio;
241158
241229
  }
241159
241230
  _parse(content2, options2, isDocument3, context2) {
241160
- return parse17(content2, options2, isDocument3, context2);
241231
+ return parse16(content2, options2, isDocument3, context2);
241161
241232
  }
241162
241233
  _render(dom) {
241163
241234
  return render3(dom, this.options);
@@ -241170,7 +241241,7 @@ function getLoad(parse17, render3) {
241170
241241
  ...internalOpts,
241171
241242
  ...flatten(opts)
241172
241243
  };
241173
- const r3 = typeof root3 === "string" ? [parse17(root3, options2, false, null)] : "length" in root3 ? root3 : [root3];
241244
+ const r3 = typeof root3 === "string" ? [parse16(root3, options2, false, null)] : "length" in root3 ? root3 : [root3];
241174
241245
  const rootInstance = isCheerio(r3) ? r3 : new LoadedCheerio(r3, null, options2);
241175
241246
  rootInstance._root = rootInstance;
241176
241247
  if (!selector) {
@@ -241178,7 +241249,7 @@ function getLoad(parse17, render3) {
241178
241249
  }
241179
241250
  const elements = typeof selector === "string" && isHtml(selector) ? (
241180
241251
  // $(<html>)
241181
- parse17(selector, options2, false, null).children
241252
+ parse16(selector, options2, false, null).children
241182
241253
  ) : isNode(selector) ? (
241183
241254
  // $(dom)
241184
241255
  [selector]
@@ -241199,7 +241270,7 @@ function getLoad(parse17, render3) {
241199
241270
  rootInstance
241200
241271
  ) : typeof context2 === "string" ? isHtml(context2) ? (
241201
241272
  // $('li', '<ul>...</ul>')
241202
- new LoadedCheerio([parse17(context2, options2, false, null)], rootInstance, options2)
241273
+ new LoadedCheerio([parse16(context2, options2, false, null)], rootInstance, options2)
241203
241274
  ) : (
241204
241275
  // $('li', 'ul')
241205
241276
  (search = `${context2} ${search}`, rootInstance)
@@ -248877,7 +248948,7 @@ function serializeDocumentTypeNode(node, { treeAdapter }) {
248877
248948
  }
248878
248949
 
248879
248950
  // ../../node_modules/.pnpm/parse5@7.1.2/node_modules/parse5/dist/index.js
248880
- function parse15(html3, options) {
248951
+ function parse14(html3, options) {
248881
248952
  return Parser3.parse(html3, options);
248882
248953
  }
248883
248954
  function parseFragment(fragmentContext, html3, options) {
@@ -249106,7 +249177,7 @@ function parseWithParse5(content, options, isDocument2, context2) {
249106
249177
  treeAdapter: adapter2,
249107
249178
  sourceCodeLocationInfo: options.sourceCodeLocationInfo
249108
249179
  };
249109
- return isDocument2 ? parse15(content, opts) : parseFragment(context2, content, opts);
249180
+ return isDocument2 ? parse14(content, opts) : parseFragment(context2, content, opts);
249110
249181
  }
249111
249182
  var renderOpts = { treeAdapter: adapter2 };
249112
249183
  function renderWithParse5(dom) {
@@ -250362,15 +250433,15 @@ var Parser4 = class {
250362
250433
  };
250363
250434
 
250364
250435
  // ../../node_modules/.pnpm/htmlparser2@8.0.2/node_modules/htmlparser2/lib/esm/index.js
250365
- function parseDocument(data2, options) {
250436
+ function parseDocument2(data2, options) {
250366
250437
  const handler = new DomHandler(void 0, options);
250367
250438
  new Parser4(handler, options).end(data2);
250368
250439
  return handler.root;
250369
250440
  }
250370
250441
 
250371
250442
  // ../../node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/index.js
250372
- var parse16 = getParse((content, options, isDocument2, context2) => options.xmlMode || options._useHtmlParser2 ? parseDocument(content, options) : parseWithParse5(content, options, isDocument2, context2));
250373
- var load = getLoad(parse16, (dom, options) => options.xmlMode || options._useHtmlParser2 ? esm_default2(dom, options) : renderWithParse5(dom));
250443
+ var parse15 = getParse((content, options, isDocument2, context2) => options.xmlMode || options._useHtmlParser2 ? parseDocument2(content, options) : parseWithParse5(content, options, isDocument2, context2));
250444
+ var load = getLoad(parse15, (dom, options) => options.xmlMode || options._useHtmlParser2 ? esm_default2(dom, options) : renderWithParse5(dom));
250374
250445
  var esm_default3 = load([]);
250375
250446
  var { contains: contains2 } = static_exports;
250376
250447
  var { merge: merge4 } = static_exports;
@@ -250379,11 +250450,11 @@ var { root: root2 } = static_exports;
250379
250450
 
250380
250451
  // ../utils/src/maven-utils.ts
250381
250452
  var import_lodash14 = __toESM(require_lodash(), 1);
250382
- import { existsSync as existsSync27, readdirSync as readdirSync5, statSync as statSync5 } from "fs";
250453
+ import { existsSync as existsSync29, readdirSync as readdirSync5, statSync as statSync5 } from "fs";
250383
250454
  import { join as join33 } from "path";
250384
250455
 
250385
250456
  // ../utils/src/download-utils.ts
250386
- import { existsSync as existsSync26 } from "fs";
250457
+ import { existsSync as existsSync28 } from "fs";
250387
250458
  import { writeFile as writeFile14 } from "fs/promises";
250388
250459
 
250389
250460
  // ../utils/src/maven-utils.ts
@@ -251751,7 +251822,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251751
251822
  }
251752
251823
 
251753
251824
  // dist/version.js
251754
- var version3 = "15.0.1";
251825
+ var version3 = "15.0.3";
251755
251826
 
251756
251827
  // dist/cli-core.js
251757
251828
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
@@ -251870,6 +251941,33 @@ var CliCore = class {
251870
251941
  throw new Error("The --manifests-tar-hash option is only supported when using --socket-mode");
251871
251942
  }
251872
251943
  }
251944
+ /**
251945
+ * Returns the ecosystems derived from purlTypes, or undefined if no purlTypes were specified.
251946
+ * When both ecosystems and purlTypes are specified, purlTypes takes precedence for filtering.
251947
+ */
251948
+ getEffectiveEcosystems() {
251949
+ if (this.options.purlTypes) {
251950
+ const fromPurlTypes = this.options.purlTypes.map((pt) => getAdvisoryEcosystemFromPurlType(pt)).filter((e) => e !== void 0);
251951
+ if (fromPurlTypes.length === 0) {
251952
+ return void 0;
251953
+ }
251954
+ if (this.options.ecosystems) {
251955
+ const intersection = fromPurlTypes.filter((e) => this.options.ecosystems.includes(e));
251956
+ return intersection.length > 0 ? intersection : void 0;
251957
+ }
251958
+ return fromPurlTypes;
251959
+ }
251960
+ return this.options.ecosystems;
251961
+ }
251962
+ /**
251963
+ * Filters an array of ecosystems by purlTypes if specified.
251964
+ */
251965
+ filterEcosystemsByPurlTypes(ecosystems) {
251966
+ if (!this.options.purlTypes)
251967
+ return ecosystems;
251968
+ const allowedEcosystems = new Set(this.options.purlTypes.map((pt) => getAdvisoryEcosystemFromPurlType(pt)).filter((e) => e !== void 0));
251969
+ return ecosystems.filter((e) => allowedEcosystems.has(e));
251970
+ }
251873
251971
  async main() {
251874
251972
  const tmpDir = await createTmpDirectory("coana-cli-");
251875
251973
  this.coanaLogPath = join34(tmpDir, "coana-log.txt");
@@ -251962,7 +252060,7 @@ var CliCore = class {
251962
252060
  logger.info("Fetching artifacts from Socket backend");
251963
252061
  if (!this.options.disableExternalToolChecks) {
251964
252062
  const manifestFiles = await fetchManifestFilesFromManifestsTarHash(this.options.manifestsTarHash);
251965
- const ecosystems = getEcosystemsFromManifestFileNames(manifestFiles);
252063
+ const ecosystems = this.filterEcosystemsByPurlTypes(getEcosystemsFromManifestFileNames(manifestFiles));
251966
252064
  await validateExternalDependencies(ecosystems, "run", manifestFiles);
251967
252065
  }
251968
252066
  this.sendProgress("SCAN_FOR_VULNERABILITIES", true, ".", ".");
@@ -252028,7 +252126,16 @@ var CliCore = class {
252028
252126
  otherModulesCommunicator,
252029
252127
  this.rootWorkingDirectory,
252030
252128
  ecosystem,
252031
- ["NPM", "PIP", "GO", "MAVEN", "NUGET", "RUST", "RUBYGEMS"].includes(ecosystem) && isEcosystemToAnalyze,
252129
+ [
252130
+ "NPM",
252131
+ "PIP",
252132
+ "GO",
252133
+ "MAVEN",
252134
+ "NUGET",
252135
+ "RUST",
252136
+ "RUBYGEMS",
252137
+ ...process.env.COANA_ENABLE_PHP_ANALYSIS ? ["COMPOSER"] : []
252138
+ ].includes(ecosystem) && isEcosystemToAnalyze,
252032
252139
  (workspaceName, workspaceNumber, totalWorkspacesForCurrentEcosystem) => {
252033
252140
  currentOverallWorkspace++;
252034
252141
  logger.info(bold(`Analyzing ecosystem ${ecosystem} for project ${workspaceName} (${workspaceNumber}/${totalWorkspacesForCurrentEcosystem}) - Overall progress: Project ${currentOverallWorkspace}/${totalWorkspaces}, ecosystem ${ecosystemIndex + 1}/${totalEcosystems}`));
@@ -252139,7 +252246,7 @@ var CliCore = class {
252139
252246
  async computeReport(otherModulesCommunicator) {
252140
252247
  const startTime = (/* @__PURE__ */ new Date()).toISOString();
252141
252248
  this.sendProgress("CREATE_PROJECT_MANAGER", true);
252142
- const manager = await ProjectManager.create(this.rootWorkingDirectory, otherModulesCommunicator, this.options.ecosystems, this.options.includeDirs, this.options.excludeDirs, this.options.changedFiles);
252249
+ const manager = await ProjectManager.create(this.rootWorkingDirectory, otherModulesCommunicator, this.getEffectiveEcosystems(), this.options.includeDirs, this.options.excludeDirs, this.options.changedFiles);
252143
252250
  this.sendProgress("CREATE_PROJECT_MANAGER", false);
252144
252251
  const { reachabilitySupport, traditionalScaSupport, noSupport } = manager.getSubprojectsWithWorkspacePaths();
252145
252252
  await this.dashboardAPI.registerSubprojects([...reachabilitySupport, ...traditionalScaSupport, ...noSupport].map((sp) => ({
@@ -252332,7 +252439,7 @@ Subproject: ${subproject}`);
252332
252439
  const concurrency = Number(this.options.concurrency);
252333
252440
  const shouldIncludeWorkspaceInLogs = concurrency > 1;
252334
252441
  let npmProjectDirPool;
252335
- const nodeModulesExists = existsSync28(resolve42(subprojectPath, "node_modules"));
252442
+ const nodeModulesExists = existsSync30(resolve42(subprojectPath, "node_modules"));
252336
252443
  if (ecosystem === "NPM" && concurrency > 1 && !nodeModulesExists) {
252337
252444
  const numCopies = Math.min(concurrency, workspaces.length) - 1;
252338
252445
  if (numCopies > 0) {
@@ -252391,7 +252498,7 @@ Subproject: ${subproject}`);
252391
252498
  [effectiveSubprojectPath, releaseDir] = await npmProjectDirPool.acquire();
252392
252499
  }
252393
252500
  try {
252394
- const perProjectEcosystems = ["PIP", "RUBYGEMS"];
252501
+ const perProjectEcosystems = ["PIP", "RUBYGEMS", "COMPOSER"];
252395
252502
  const effectivePreinstallDir = preinstallDir && perProjectEcosystems.includes(ecosystem) ? join34(preinstallDir, workspacePath.replace(/\//g, "_")) : preinstallDir;
252396
252503
  const resAndDiagnostics = await this.runReachabilityAnalysis(
252397
252504
  otherModulesCommunicator,
@@ -252520,7 +252627,7 @@ Subproject: ${subproject}`);
252520
252627
  const ecosystemDir = join34(preinstallDir, ecosystem);
252521
252628
  await mkdir6(ecosystemDir, { recursive: true });
252522
252629
  for (const [workspace, analysisData] of Object.entries(workspaceToAnalysisData)) {
252523
- const perProjectEcosystems = ["PIP", "RUBYGEMS"];
252630
+ const perProjectEcosystems = ["PIP", "RUBYGEMS", "COMPOSER"];
252524
252631
  const installDir = perProjectEcosystems.includes(ecosystem) ? join34(ecosystemDir, workspace.replace(/\//g, "_")) : ecosystemDir;
252525
252632
  if (installDir !== ecosystemDir) {
252526
252633
  await mkdir6(installDir, { recursive: true });
@@ -253007,6 +253114,18 @@ computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument(
253007
253114
  logger.initWinstonLogger(options.debug, logFile);
253008
253115
  try {
253009
253116
  await initializeComputeFixesAndUpgradePurls(path9, options);
253117
+ if (!options.exclude) {
253118
+ const ignorePaths = await inferExcludeDirsFromConfigurationFiles(path9);
253119
+ if (ignorePaths) {
253120
+ options.exclude = ignorePaths.flatMap((p3) => {
253121
+ const firstSlash = p3.indexOf("/");
253122
+ const prefix = firstSlash === -1 || firstSlash === p3.length - 1 ? "**/" : "";
253123
+ const normalized = p3.startsWith("/") ? p3.slice(1) : p3;
253124
+ const pattern = `${prefix}${normalized}`;
253125
+ return [pattern, `${pattern}/**`];
253126
+ });
253127
+ }
253128
+ }
253010
253129
  const optionsToUse = {
253011
253130
  ...y(options, ["minimumReleaseAge"]),
253012
253131
  minimumReleaseAgeInMinutes: options.minimumReleaseAge ? parseMinimumReleaseAgeToMinutes(options.minimumReleaseAge) : void 0