@coana-tech/cli 14.12.138 → 14.12.139

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.
@@ -6672,14 +6672,14 @@ var require_async_iterator = __commonJS({
6672
6672
  };
6673
6673
  }
6674
6674
  function readAndResolve(iter) {
6675
- var resolve24 = iter[kLastResolve];
6676
- if (resolve24 !== null) {
6675
+ var resolve23 = iter[kLastResolve];
6676
+ if (resolve23 !== null) {
6677
6677
  var data2 = iter[kStream].read();
6678
6678
  if (data2 !== null) {
6679
6679
  iter[kLastPromise] = null;
6680
6680
  iter[kLastResolve] = null;
6681
6681
  iter[kLastReject] = null;
6682
- resolve24(createIterResult(data2, false));
6682
+ resolve23(createIterResult(data2, false));
6683
6683
  }
6684
6684
  }
6685
6685
  }
@@ -6687,13 +6687,13 @@ var require_async_iterator = __commonJS({
6687
6687
  process.nextTick(readAndResolve, iter);
6688
6688
  }
6689
6689
  function wrapForNext(lastPromise, iter) {
6690
- return function(resolve24, reject) {
6690
+ return function(resolve23, reject) {
6691
6691
  lastPromise.then(function() {
6692
6692
  if (iter[kEnded]) {
6693
- resolve24(createIterResult(void 0, true));
6693
+ resolve23(createIterResult(void 0, true));
6694
6694
  return;
6695
6695
  }
6696
- iter[kHandlePromise](resolve24, reject);
6696
+ iter[kHandlePromise](resolve23, reject);
6697
6697
  }, reject);
6698
6698
  };
6699
6699
  }
@@ -6713,12 +6713,12 @@ var require_async_iterator = __commonJS({
6713
6713
  return Promise.resolve(createIterResult(void 0, true));
6714
6714
  }
6715
6715
  if (this[kStream].destroyed) {
6716
- return new Promise(function(resolve24, reject) {
6716
+ return new Promise(function(resolve23, reject) {
6717
6717
  process.nextTick(function() {
6718
6718
  if (_this[kError]) {
6719
6719
  reject(_this[kError]);
6720
6720
  } else {
6721
- resolve24(createIterResult(void 0, true));
6721
+ resolve23(createIterResult(void 0, true));
6722
6722
  }
6723
6723
  });
6724
6724
  });
@@ -6741,13 +6741,13 @@ var require_async_iterator = __commonJS({
6741
6741
  return this;
6742
6742
  }), _defineProperty(_Object$setPrototypeO, "return", function _return() {
6743
6743
  var _this2 = this;
6744
- return new Promise(function(resolve24, reject) {
6744
+ return new Promise(function(resolve23, reject) {
6745
6745
  _this2[kStream].destroy(null, function(err) {
6746
6746
  if (err) {
6747
6747
  reject(err);
6748
6748
  return;
6749
6749
  }
6750
- resolve24(createIterResult(void 0, true));
6750
+ resolve23(createIterResult(void 0, true));
6751
6751
  });
6752
6752
  });
6753
6753
  }), _Object$setPrototypeO), AsyncIteratorPrototype);
@@ -6769,15 +6769,15 @@ var require_async_iterator = __commonJS({
6769
6769
  value: stream8._readableState.endEmitted,
6770
6770
  writable: true
6771
6771
  }), _defineProperty(_Object$create, kHandlePromise, {
6772
- value: function value2(resolve24, reject) {
6772
+ value: function value2(resolve23, reject) {
6773
6773
  var data2 = iterator2[kStream].read();
6774
6774
  if (data2) {
6775
6775
  iterator2[kLastPromise] = null;
6776
6776
  iterator2[kLastResolve] = null;
6777
6777
  iterator2[kLastReject] = null;
6778
- resolve24(createIterResult(data2, false));
6778
+ resolve23(createIterResult(data2, false));
6779
6779
  } else {
6780
- iterator2[kLastResolve] = resolve24;
6780
+ iterator2[kLastResolve] = resolve23;
6781
6781
  iterator2[kLastReject] = reject;
6782
6782
  }
6783
6783
  },
@@ -6796,12 +6796,12 @@ var require_async_iterator = __commonJS({
6796
6796
  iterator2[kError] = err;
6797
6797
  return;
6798
6798
  }
6799
- var resolve24 = iterator2[kLastResolve];
6800
- if (resolve24 !== null) {
6799
+ var resolve23 = iterator2[kLastResolve];
6800
+ if (resolve23 !== null) {
6801
6801
  iterator2[kLastPromise] = null;
6802
6802
  iterator2[kLastResolve] = null;
6803
6803
  iterator2[kLastReject] = null;
6804
- resolve24(createIterResult(void 0, true));
6804
+ resolve23(createIterResult(void 0, true));
6805
6805
  }
6806
6806
  iterator2[kEnded] = true;
6807
6807
  });
@@ -6816,7 +6816,7 @@ var require_async_iterator = __commonJS({
6816
6816
  var require_from = __commonJS({
6817
6817
  "../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) {
6818
6818
  "use strict";
6819
- function asyncGeneratorStep(gen, resolve24, reject, _next, _throw, key, arg) {
6819
+ function asyncGeneratorStep(gen, resolve23, reject, _next, _throw, key, arg) {
6820
6820
  try {
6821
6821
  var info = gen[key](arg);
6822
6822
  var value2 = info.value;
@@ -6825,7 +6825,7 @@ var require_from = __commonJS({
6825
6825
  return;
6826
6826
  }
6827
6827
  if (info.done) {
6828
- resolve24(value2);
6828
+ resolve23(value2);
6829
6829
  } else {
6830
6830
  Promise.resolve(value2).then(_next, _throw);
6831
6831
  }
@@ -6833,13 +6833,13 @@ var require_from = __commonJS({
6833
6833
  function _asyncToGenerator(fn) {
6834
6834
  return function() {
6835
6835
  var self2 = this, args = arguments;
6836
- return new Promise(function(resolve24, reject) {
6836
+ return new Promise(function(resolve23, reject) {
6837
6837
  var gen = fn.apply(self2, args);
6838
6838
  function _next(value2) {
6839
- asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value2);
6839
+ asyncGeneratorStep(gen, resolve23, reject, _next, _throw, "next", value2);
6840
6840
  }
6841
6841
  function _throw(err) {
6842
- asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "throw", err);
6842
+ asyncGeneratorStep(gen, resolve23, reject, _next, _throw, "throw", err);
6843
6843
  }
6844
6844
  _next(void 0);
6845
6845
  });
@@ -8676,10 +8676,10 @@ var require_awaitify = __commonJS({
8676
8676
  if (typeof args[arity - 1] === "function") {
8677
8677
  return asyncFn.apply(this, args);
8678
8678
  }
8679
- return new Promise((resolve24, reject) => {
8679
+ return new Promise((resolve23, reject) => {
8680
8680
  args[arity - 1] = (err, ...cbArgs) => {
8681
8681
  if (err) return reject(err);
8682
- resolve24(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
8682
+ resolve23(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
8683
8683
  };
8684
8684
  asyncFn.apply(this, args);
8685
8685
  });
@@ -9308,13 +9308,13 @@ var require_diagnostics = __commonJS({
9308
9308
  if (adapters[i4](namespace2)) return true;
9309
9309
  }
9310
9310
  if (!async.length) return false;
9311
- return new Promise(function pinky(resolve24) {
9311
+ return new Promise(function pinky(resolve23) {
9312
9312
  Promise.all(
9313
9313
  async.map(function prebind(fn) {
9314
9314
  return fn(namespace2);
9315
9315
  })
9316
9316
  ).then(function resolved(values) {
9317
- resolve24(values.some(Boolean));
9317
+ resolve23(values.some(Boolean));
9318
9318
  });
9319
9319
  });
9320
9320
  }
@@ -35531,8 +35531,8 @@ var require_follow_redirects = __commonJS({
35531
35531
  }
35532
35532
  return parsed;
35533
35533
  }
35534
- function resolveUrl(relative11, base) {
35535
- return useNativeURL ? new URL3(relative11, base) : parseUrl(url3.resolve(base, relative11));
35534
+ function resolveUrl(relative10, base) {
35535
+ return useNativeURL ? new URL3(relative10, base) : parseUrl(url3.resolve(base, relative10));
35536
35536
  }
35537
35537
  function validateUrl(input) {
35538
35538
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -40073,8 +40073,8 @@ var require_util3 = __commonJS({
40073
40073
  function createDeferredPromise() {
40074
40074
  let res;
40075
40075
  let rej;
40076
- const promise = new Promise((resolve24, reject) => {
40077
- res = resolve24;
40076
+ const promise = new Promise((resolve23, reject) => {
40077
+ res = resolve23;
40078
40078
  rej = reject;
40079
40079
  });
40080
40080
  return { promise, resolve: res, reject: rej };
@@ -41578,8 +41578,8 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
41578
41578
  });
41579
41579
  }
41580
41580
  });
41581
- const busboyResolve = new Promise((resolve24, reject) => {
41582
- busboy.on("finish", resolve24);
41581
+ const busboyResolve = new Promise((resolve23, reject) => {
41582
+ busboy.on("finish", resolve23);
41583
41583
  busboy.on("error", (err) => reject(new TypeError(err)));
41584
41584
  });
41585
41585
  if (this.body !== null) for await (const chunk2 of consumeBody(this[kState].body)) busboy.write(chunk2);
@@ -42113,9 +42113,9 @@ var require_dispatcher_base = __commonJS({
42113
42113
  }
42114
42114
  close(callback) {
42115
42115
  if (callback === void 0) {
42116
- return new Promise((resolve24, reject) => {
42116
+ return new Promise((resolve23, reject) => {
42117
42117
  this.close((err, data2) => {
42118
- return err ? reject(err) : resolve24(data2);
42118
+ return err ? reject(err) : resolve23(data2);
42119
42119
  });
42120
42120
  });
42121
42121
  }
@@ -42153,12 +42153,12 @@ var require_dispatcher_base = __commonJS({
42153
42153
  err = null;
42154
42154
  }
42155
42155
  if (callback === void 0) {
42156
- return new Promise((resolve24, reject) => {
42156
+ return new Promise((resolve23, reject) => {
42157
42157
  this.destroy(err, (err2, data2) => {
42158
42158
  return err2 ? (
42159
42159
  /* istanbul ignore next: should never error */
42160
42160
  reject(err2)
42161
- ) : resolve24(data2);
42161
+ ) : resolve23(data2);
42162
42162
  });
42163
42163
  });
42164
42164
  }
@@ -43218,16 +43218,16 @@ var require_client = __commonJS({
43218
43218
  return this[kNeedDrain] < 2;
43219
43219
  }
43220
43220
  async [kClose]() {
43221
- return new Promise((resolve24) => {
43221
+ return new Promise((resolve23) => {
43222
43222
  if (!this[kSize]) {
43223
- resolve24(null);
43223
+ resolve23(null);
43224
43224
  } else {
43225
- this[kClosedResolve] = resolve24;
43225
+ this[kClosedResolve] = resolve23;
43226
43226
  }
43227
43227
  });
43228
43228
  }
43229
43229
  async [kDestroy](err) {
43230
- return new Promise((resolve24) => {
43230
+ return new Promise((resolve23) => {
43231
43231
  const requests = this[kQueue].splice(this[kPendingIdx]);
43232
43232
  for (let i4 = 0; i4 < requests.length; i4++) {
43233
43233
  const request = requests[i4];
@@ -43238,7 +43238,7 @@ var require_client = __commonJS({
43238
43238
  this[kClosedResolve]();
43239
43239
  this[kClosedResolve] = null;
43240
43240
  }
43241
- resolve24();
43241
+ resolve23();
43242
43242
  };
43243
43243
  if (this[kHTTP2Session] != null) {
43244
43244
  util8.destroy(this[kHTTP2Session], err);
@@ -43818,7 +43818,7 @@ var require_client = __commonJS({
43818
43818
  });
43819
43819
  }
43820
43820
  try {
43821
- const socket = await new Promise((resolve24, reject) => {
43821
+ const socket = await new Promise((resolve23, reject) => {
43822
43822
  client[kConnector]({
43823
43823
  host,
43824
43824
  hostname,
@@ -43830,7 +43830,7 @@ var require_client = __commonJS({
43830
43830
  if (err) {
43831
43831
  reject(err);
43832
43832
  } else {
43833
- resolve24(socket2);
43833
+ resolve23(socket2);
43834
43834
  }
43835
43835
  });
43836
43836
  });
@@ -44454,12 +44454,12 @@ upgrade: ${upgrade}\r
44454
44454
  cb();
44455
44455
  }
44456
44456
  }
44457
- const waitForDrain = () => new Promise((resolve24, reject) => {
44457
+ const waitForDrain = () => new Promise((resolve23, reject) => {
44458
44458
  assert9(callback === null);
44459
44459
  if (socket[kError]) {
44460
44460
  reject(socket[kError]);
44461
44461
  } else {
44462
- callback = resolve24;
44462
+ callback = resolve23;
44463
44463
  }
44464
44464
  });
44465
44465
  if (client[kHTTPConnVersion] === "h2") {
@@ -44804,8 +44804,8 @@ var require_pool_base = __commonJS({
44804
44804
  if (this[kQueue].isEmpty()) {
44805
44805
  return Promise.all(this[kClients].map((c) => c.close()));
44806
44806
  } else {
44807
- return new Promise((resolve24) => {
44808
- this[kClosedResolve] = resolve24;
44807
+ return new Promise((resolve23) => {
44808
+ this[kClosedResolve] = resolve23;
44809
44809
  });
44810
44810
  }
44811
44811
  }
@@ -45375,7 +45375,7 @@ var require_readable2 = __commonJS({
45375
45375
  if (this.closed) {
45376
45376
  return Promise.resolve(null);
45377
45377
  }
45378
- return new Promise((resolve24, reject) => {
45378
+ return new Promise((resolve23, reject) => {
45379
45379
  const signalListenerCleanup = signal ? util8.addAbortListener(signal, () => {
45380
45380
  this.destroy();
45381
45381
  }) : noop5;
@@ -45384,7 +45384,7 @@ var require_readable2 = __commonJS({
45384
45384
  if (signal && signal.aborted) {
45385
45385
  reject(signal.reason || Object.assign(new Error("The operation was aborted"), { name: "AbortError" }));
45386
45386
  } else {
45387
- resolve24(null);
45387
+ resolve23(null);
45388
45388
  }
45389
45389
  }).on("error", noop5).on("data", function(chunk2) {
45390
45390
  limit -= chunk2.length;
@@ -45406,11 +45406,11 @@ var require_readable2 = __commonJS({
45406
45406
  throw new TypeError("unusable");
45407
45407
  }
45408
45408
  assert9(!stream8[kConsume]);
45409
- return new Promise((resolve24, reject) => {
45409
+ return new Promise((resolve23, reject) => {
45410
45410
  stream8[kConsume] = {
45411
45411
  type,
45412
45412
  stream: stream8,
45413
- resolve: resolve24,
45413
+ resolve: resolve23,
45414
45414
  reject,
45415
45415
  length: 0,
45416
45416
  body: []
@@ -45445,12 +45445,12 @@ var require_readable2 = __commonJS({
45445
45445
  }
45446
45446
  }
45447
45447
  function consumeEnd(consume2) {
45448
- const { type, body, resolve: resolve24, stream: stream8, length } = consume2;
45448
+ const { type, body, resolve: resolve23, stream: stream8, length } = consume2;
45449
45449
  try {
45450
45450
  if (type === "text") {
45451
- resolve24(toUSVString(Buffer.concat(body)));
45451
+ resolve23(toUSVString(Buffer.concat(body)));
45452
45452
  } else if (type === "json") {
45453
- resolve24(JSON.parse(Buffer.concat(body)));
45453
+ resolve23(JSON.parse(Buffer.concat(body)));
45454
45454
  } else if (type === "arrayBuffer") {
45455
45455
  const dst = new Uint8Array(length);
45456
45456
  let pos2 = 0;
@@ -45458,12 +45458,12 @@ var require_readable2 = __commonJS({
45458
45458
  dst.set(buf, pos2);
45459
45459
  pos2 += buf.byteLength;
45460
45460
  }
45461
- resolve24(dst.buffer);
45461
+ resolve23(dst.buffer);
45462
45462
  } else if (type === "blob") {
45463
45463
  if (!Blob2) {
45464
45464
  Blob2 = __require("buffer").Blob;
45465
45465
  }
45466
- resolve24(new Blob2(body, { type: stream8[kContentType] }));
45466
+ resolve23(new Blob2(body, { type: stream8[kContentType] }));
45467
45467
  }
45468
45468
  consumeFinish(consume2);
45469
45469
  } catch (err) {
@@ -45718,9 +45718,9 @@ var require_api_request = __commonJS({
45718
45718
  };
45719
45719
  function request(opts, callback) {
45720
45720
  if (callback === void 0) {
45721
- return new Promise((resolve24, reject) => {
45721
+ return new Promise((resolve23, reject) => {
45722
45722
  request.call(this, opts, (err, data2) => {
45723
- return err ? reject(err) : resolve24(data2);
45723
+ return err ? reject(err) : resolve23(data2);
45724
45724
  });
45725
45725
  });
45726
45726
  }
@@ -45893,9 +45893,9 @@ var require_api_stream = __commonJS({
45893
45893
  };
45894
45894
  function stream8(opts, factory, callback) {
45895
45895
  if (callback === void 0) {
45896
- return new Promise((resolve24, reject) => {
45896
+ return new Promise((resolve23, reject) => {
45897
45897
  stream8.call(this, opts, factory, (err, data2) => {
45898
- return err ? reject(err) : resolve24(data2);
45898
+ return err ? reject(err) : resolve23(data2);
45899
45899
  });
45900
45900
  });
45901
45901
  }
@@ -46176,9 +46176,9 @@ var require_api_upgrade = __commonJS({
46176
46176
  };
46177
46177
  function upgrade(opts, callback) {
46178
46178
  if (callback === void 0) {
46179
- return new Promise((resolve24, reject) => {
46179
+ return new Promise((resolve23, reject) => {
46180
46180
  upgrade.call(this, opts, (err, data2) => {
46181
- return err ? reject(err) : resolve24(data2);
46181
+ return err ? reject(err) : resolve23(data2);
46182
46182
  });
46183
46183
  });
46184
46184
  }
@@ -46267,9 +46267,9 @@ var require_api_connect = __commonJS({
46267
46267
  };
46268
46268
  function connect(opts, callback) {
46269
46269
  if (callback === void 0) {
46270
- return new Promise((resolve24, reject) => {
46270
+ return new Promise((resolve23, reject) => {
46271
46271
  connect.call(this, opts, (err, data2) => {
46272
- return err ? reject(err) : resolve24(data2);
46272
+ return err ? reject(err) : resolve23(data2);
46273
46273
  });
46274
46274
  });
46275
46275
  }
@@ -49887,7 +49887,7 @@ var require_fetch = __commonJS({
49887
49887
  async function dispatch({ body }) {
49888
49888
  const url3 = requestCurrentURL(request);
49889
49889
  const agent = fetchParams.controller.dispatcher;
49890
- return new Promise((resolve24, reject) => agent.dispatch(
49890
+ return new Promise((resolve23, reject) => agent.dispatch(
49891
49891
  {
49892
49892
  path: url3.pathname + url3.search,
49893
49893
  origin: url3.origin,
@@ -49963,7 +49963,7 @@ var require_fetch = __commonJS({
49963
49963
  }
49964
49964
  }
49965
49965
  }
49966
- resolve24({
49966
+ resolve23({
49967
49967
  status,
49968
49968
  statusText,
49969
49969
  headersList: headers[kHeadersList],
@@ -50006,7 +50006,7 @@ var require_fetch = __commonJS({
50006
50006
  const val2 = headersList[n + 1].toString("latin1");
50007
50007
  headers[kHeadersList].append(key, val2);
50008
50008
  }
50009
- resolve24({
50009
+ resolve23({
50010
50010
  status,
50011
50011
  statusText: STATUS_CODES[status],
50012
50012
  headersList: headers[kHeadersList],
@@ -53374,11 +53374,11 @@ var require_lib = __commonJS({
53374
53374
  };
53375
53375
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
53376
53376
  function adopt(value2) {
53377
- return value2 instanceof P ? value2 : new P(function(resolve24) {
53378
- resolve24(value2);
53377
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
53378
+ resolve23(value2);
53379
53379
  });
53380
53380
  }
53381
- return new (P || (P = Promise))(function(resolve24, reject) {
53381
+ return new (P || (P = Promise))(function(resolve23, reject) {
53382
53382
  function fulfilled(value2) {
53383
53383
  try {
53384
53384
  step(generator.next(value2));
@@ -53394,7 +53394,7 @@ var require_lib = __commonJS({
53394
53394
  }
53395
53395
  }
53396
53396
  function step(result) {
53397
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
53397
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
53398
53398
  }
53399
53399
  step((generator = generator.apply(thisArg, _arguments || [])).next());
53400
53400
  });
@@ -53480,26 +53480,26 @@ var require_lib = __commonJS({
53480
53480
  }
53481
53481
  readBody() {
53482
53482
  return __awaiter(this, void 0, void 0, function* () {
53483
- return new Promise((resolve24) => __awaiter(this, void 0, void 0, function* () {
53483
+ return new Promise((resolve23) => __awaiter(this, void 0, void 0, function* () {
53484
53484
  let output = Buffer.alloc(0);
53485
53485
  this.message.on("data", (chunk2) => {
53486
53486
  output = Buffer.concat([output, chunk2]);
53487
53487
  });
53488
53488
  this.message.on("end", () => {
53489
- resolve24(output.toString());
53489
+ resolve23(output.toString());
53490
53490
  });
53491
53491
  }));
53492
53492
  });
53493
53493
  }
53494
53494
  readBodyBuffer() {
53495
53495
  return __awaiter(this, void 0, void 0, function* () {
53496
- return new Promise((resolve24) => __awaiter(this, void 0, void 0, function* () {
53496
+ return new Promise((resolve23) => __awaiter(this, void 0, void 0, function* () {
53497
53497
  const chunks = [];
53498
53498
  this.message.on("data", (chunk2) => {
53499
53499
  chunks.push(chunk2);
53500
53500
  });
53501
53501
  this.message.on("end", () => {
53502
- resolve24(Buffer.concat(chunks));
53502
+ resolve23(Buffer.concat(chunks));
53503
53503
  });
53504
53504
  }));
53505
53505
  });
@@ -53708,14 +53708,14 @@ var require_lib = __commonJS({
53708
53708
  */
53709
53709
  requestRaw(info, data2) {
53710
53710
  return __awaiter(this, void 0, void 0, function* () {
53711
- return new Promise((resolve24, reject) => {
53711
+ return new Promise((resolve23, reject) => {
53712
53712
  function callbackForResult(err, res) {
53713
53713
  if (err) {
53714
53714
  reject(err);
53715
53715
  } else if (!res) {
53716
53716
  reject(new Error("Unknown error"));
53717
53717
  } else {
53718
- resolve24(res);
53718
+ resolve23(res);
53719
53719
  }
53720
53720
  }
53721
53721
  this.requestRawWithCallback(info, data2, callbackForResult);
@@ -53897,12 +53897,12 @@ var require_lib = __commonJS({
53897
53897
  return __awaiter(this, void 0, void 0, function* () {
53898
53898
  retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
53899
53899
  const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
53900
- return new Promise((resolve24) => setTimeout(() => resolve24(), ms));
53900
+ return new Promise((resolve23) => setTimeout(() => resolve23(), ms));
53901
53901
  });
53902
53902
  }
53903
53903
  _processResponse(res, options) {
53904
53904
  return __awaiter(this, void 0, void 0, function* () {
53905
- return new Promise((resolve24, reject) => __awaiter(this, void 0, void 0, function* () {
53905
+ return new Promise((resolve23, reject) => __awaiter(this, void 0, void 0, function* () {
53906
53906
  const statusCode = res.message.statusCode || 0;
53907
53907
  const response = {
53908
53908
  statusCode,
@@ -53910,7 +53910,7 @@ var require_lib = __commonJS({
53910
53910
  headers: {}
53911
53911
  };
53912
53912
  if (statusCode === HttpCodes.NotFound) {
53913
- resolve24(response);
53913
+ resolve23(response);
53914
53914
  }
53915
53915
  function dateTimeDeserializer(key, value2) {
53916
53916
  if (typeof value2 === "string") {
@@ -53949,7 +53949,7 @@ var require_lib = __commonJS({
53949
53949
  err.result = response.result;
53950
53950
  reject(err);
53951
53951
  } else {
53952
- resolve24(response);
53952
+ resolve23(response);
53953
53953
  }
53954
53954
  }));
53955
53955
  });
@@ -53966,11 +53966,11 @@ var require_auth = __commonJS({
53966
53966
  "use strict";
53967
53967
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
53968
53968
  function adopt(value2) {
53969
- return value2 instanceof P ? value2 : new P(function(resolve24) {
53970
- resolve24(value2);
53969
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
53970
+ resolve23(value2);
53971
53971
  });
53972
53972
  }
53973
- return new (P || (P = Promise))(function(resolve24, reject) {
53973
+ return new (P || (P = Promise))(function(resolve23, reject) {
53974
53974
  function fulfilled(value2) {
53975
53975
  try {
53976
53976
  step(generator.next(value2));
@@ -53986,7 +53986,7 @@ var require_auth = __commonJS({
53986
53986
  }
53987
53987
  }
53988
53988
  function step(result) {
53989
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
53989
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
53990
53990
  }
53991
53991
  step((generator = generator.apply(thisArg, _arguments || [])).next());
53992
53992
  });
@@ -54070,11 +54070,11 @@ var require_oidc_utils = __commonJS({
54070
54070
  "use strict";
54071
54071
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
54072
54072
  function adopt(value2) {
54073
- return value2 instanceof P ? value2 : new P(function(resolve24) {
54074
- resolve24(value2);
54073
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
54074
+ resolve23(value2);
54075
54075
  });
54076
54076
  }
54077
- return new (P || (P = Promise))(function(resolve24, reject) {
54077
+ return new (P || (P = Promise))(function(resolve23, reject) {
54078
54078
  function fulfilled(value2) {
54079
54079
  try {
54080
54080
  step(generator.next(value2));
@@ -54090,7 +54090,7 @@ var require_oidc_utils = __commonJS({
54090
54090
  }
54091
54091
  }
54092
54092
  function step(result) {
54093
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
54093
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
54094
54094
  }
54095
54095
  step((generator = generator.apply(thisArg, _arguments || [])).next());
54096
54096
  });
@@ -54168,11 +54168,11 @@ var require_summary = __commonJS({
54168
54168
  "use strict";
54169
54169
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
54170
54170
  function adopt(value2) {
54171
- return value2 instanceof P ? value2 : new P(function(resolve24) {
54172
- resolve24(value2);
54171
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
54172
+ resolve23(value2);
54173
54173
  });
54174
54174
  }
54175
- return new (P || (P = Promise))(function(resolve24, reject) {
54175
+ return new (P || (P = Promise))(function(resolve23, reject) {
54176
54176
  function fulfilled(value2) {
54177
54177
  try {
54178
54178
  step(generator.next(value2));
@@ -54188,7 +54188,7 @@ var require_summary = __commonJS({
54188
54188
  }
54189
54189
  }
54190
54190
  function step(result) {
54191
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
54191
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
54192
54192
  }
54193
54193
  step((generator = generator.apply(thisArg, _arguments || [])).next());
54194
54194
  });
@@ -54530,11 +54530,11 @@ var require_core = __commonJS({
54530
54530
  };
54531
54531
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
54532
54532
  function adopt(value2) {
54533
- return value2 instanceof P ? value2 : new P(function(resolve24) {
54534
- resolve24(value2);
54533
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
54534
+ resolve23(value2);
54535
54535
  });
54536
54536
  }
54537
- return new (P || (P = Promise))(function(resolve24, reject) {
54537
+ return new (P || (P = Promise))(function(resolve23, reject) {
54538
54538
  function fulfilled(value2) {
54539
54539
  try {
54540
54540
  step(generator.next(value2));
@@ -54550,7 +54550,7 @@ var require_core = __commonJS({
54550
54550
  }
54551
54551
  }
54552
54552
  function step(result) {
54553
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
54553
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
54554
54554
  }
54555
54555
  step((generator = generator.apply(thisArg, _arguments || [])).next());
54556
54556
  });
@@ -58172,11 +58172,11 @@ var require_utils3 = __commonJS({
58172
58172
  "use strict";
58173
58173
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
58174
58174
  function adopt(value2) {
58175
- return value2 instanceof P ? value2 : new P(function(resolve24) {
58176
- resolve24(value2);
58175
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
58176
+ resolve23(value2);
58177
58177
  });
58178
58178
  }
58179
- return new (P || (P = Promise))(function(resolve24, reject) {
58179
+ return new (P || (P = Promise))(function(resolve23, reject) {
58180
58180
  function fulfilled(value2) {
58181
58181
  try {
58182
58182
  step(generator.next(value2));
@@ -58192,7 +58192,7 @@ var require_utils3 = __commonJS({
58192
58192
  }
58193
58193
  }
58194
58194
  function step(result) {
58195
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
58195
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
58196
58196
  }
58197
58197
  step((generator = generator.apply(thisArg, _arguments || [])).next());
58198
58198
  });
@@ -58402,19 +58402,19 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)}
58402
58402
  exports.getProperRetention = getProperRetention;
58403
58403
  function sleep(milliseconds) {
58404
58404
  return __awaiter(this, void 0, void 0, function* () {
58405
- return new Promise((resolve24) => setTimeout(resolve24, milliseconds));
58405
+ return new Promise((resolve23) => setTimeout(resolve23, milliseconds));
58406
58406
  });
58407
58407
  }
58408
58408
  exports.sleep = sleep;
58409
58409
  function digestForStream(stream8) {
58410
58410
  return __awaiter(this, void 0, void 0, function* () {
58411
- return new Promise((resolve24, reject) => {
58411
+ return new Promise((resolve23, reject) => {
58412
58412
  const crc64 = new crc64_1.default();
58413
58413
  const md52 = crypto_1.default.createHash("md5");
58414
58414
  stream8.on("data", (data2) => {
58415
58415
  crc64.update(data2);
58416
58416
  md52.update(data2);
58417
- }).on("end", () => resolve24({
58417
+ }).on("end", () => resolve23({
58418
58418
  crc64: crc64.digest("base64"),
58419
58419
  md5: md52.digest("base64")
58420
58420
  })).on("error", reject);
@@ -58538,11 +58538,11 @@ var require_upload_gzip = __commonJS({
58538
58538
  };
58539
58539
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
58540
58540
  function adopt(value2) {
58541
- return value2 instanceof P ? value2 : new P(function(resolve24) {
58542
- resolve24(value2);
58541
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
58542
+ resolve23(value2);
58543
58543
  });
58544
58544
  }
58545
- return new (P || (P = Promise))(function(resolve24, reject) {
58545
+ return new (P || (P = Promise))(function(resolve23, reject) {
58546
58546
  function fulfilled(value2) {
58547
58547
  try {
58548
58548
  step(generator.next(value2));
@@ -58558,7 +58558,7 @@ var require_upload_gzip = __commonJS({
58558
58558
  }
58559
58559
  }
58560
58560
  function step(result) {
58561
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
58561
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
58562
58562
  }
58563
58563
  step((generator = generator.apply(thisArg, _arguments || [])).next());
58564
58564
  });
@@ -58571,14 +58571,14 @@ var require_upload_gzip = __commonJS({
58571
58571
  }, i4);
58572
58572
  function verb(n) {
58573
58573
  i4[n] = o3[n] && function(v) {
58574
- return new Promise(function(resolve24, reject) {
58575
- v = o3[n](v), settle3(resolve24, reject, v.done, v.value);
58574
+ return new Promise(function(resolve23, reject) {
58575
+ v = o3[n](v), settle3(resolve23, reject, v.done, v.value);
58576
58576
  });
58577
58577
  };
58578
58578
  }
58579
- function settle3(resolve24, reject, d, v) {
58579
+ function settle3(resolve23, reject, d, v) {
58580
58580
  Promise.resolve(v).then(function(v2) {
58581
- resolve24({ value: v2, done: d });
58581
+ resolve23({ value: v2, done: d });
58582
58582
  }, reject);
58583
58583
  }
58584
58584
  };
@@ -58619,14 +58619,14 @@ var require_upload_gzip = __commonJS({
58619
58619
  return Number.MAX_SAFE_INTEGER;
58620
58620
  }
58621
58621
  }
58622
- return new Promise((resolve24, reject) => {
58622
+ return new Promise((resolve23, reject) => {
58623
58623
  const inputStream = fs12.createReadStream(originalFilePath);
58624
58624
  const gzip = zlib4.createGzip();
58625
58625
  const outputStream = fs12.createWriteStream(tempFilePath);
58626
58626
  inputStream.pipe(gzip).pipe(outputStream);
58627
58627
  outputStream.on("finish", () => __awaiter(this, void 0, void 0, function* () {
58628
58628
  const size = (yield stat3(tempFilePath)).size;
58629
- resolve24(size);
58629
+ resolve23(size);
58630
58630
  }));
58631
58631
  outputStream.on("error", (error) => {
58632
58632
  console.log(error);
@@ -58638,7 +58638,7 @@ var require_upload_gzip = __commonJS({
58638
58638
  exports.createGZipFileOnDisk = createGZipFileOnDisk;
58639
58639
  function createGZipFileInBuffer(originalFilePath) {
58640
58640
  return __awaiter(this, void 0, void 0, function* () {
58641
- return new Promise((resolve24) => __awaiter(this, void 0, void 0, function* () {
58641
+ return new Promise((resolve23) => __awaiter(this, void 0, void 0, function* () {
58642
58642
  var _a2, e_1, _b, _c;
58643
58643
  const inputStream = fs12.createReadStream(originalFilePath);
58644
58644
  const gzip = zlib4.createGzip();
@@ -58664,7 +58664,7 @@ var require_upload_gzip = __commonJS({
58664
58664
  if (e_1) throw e_1.error;
58665
58665
  }
58666
58666
  }
58667
- resolve24(Buffer.concat(chunks));
58667
+ resolve23(Buffer.concat(chunks));
58668
58668
  }));
58669
58669
  });
58670
58670
  }
@@ -58705,11 +58705,11 @@ var require_requestUtils = __commonJS({
58705
58705
  };
58706
58706
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
58707
58707
  function adopt(value2) {
58708
- return value2 instanceof P ? value2 : new P(function(resolve24) {
58709
- resolve24(value2);
58708
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
58709
+ resolve23(value2);
58710
58710
  });
58711
58711
  }
58712
- return new (P || (P = Promise))(function(resolve24, reject) {
58712
+ return new (P || (P = Promise))(function(resolve23, reject) {
58713
58713
  function fulfilled(value2) {
58714
58714
  try {
58715
58715
  step(generator.next(value2));
@@ -58725,7 +58725,7 @@ var require_requestUtils = __commonJS({
58725
58725
  }
58726
58726
  }
58727
58727
  function step(result) {
58728
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
58728
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
58729
58729
  }
58730
58730
  step((generator = generator.apply(thisArg, _arguments || [])).next());
58731
58731
  });
@@ -58822,11 +58822,11 @@ var require_upload_http_client = __commonJS({
58822
58822
  };
58823
58823
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
58824
58824
  function adopt(value2) {
58825
- return value2 instanceof P ? value2 : new P(function(resolve24) {
58826
- resolve24(value2);
58825
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
58826
+ resolve23(value2);
58827
58827
  });
58828
58828
  }
58829
- return new (P || (P = Promise))(function(resolve24, reject) {
58829
+ return new (P || (P = Promise))(function(resolve23, reject) {
58830
58830
  function fulfilled(value2) {
58831
58831
  try {
58832
58832
  step(generator.next(value2));
@@ -58842,7 +58842,7 @@ var require_upload_http_client = __commonJS({
58842
58842
  }
58843
58843
  }
58844
58844
  function step(result) {
58845
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
58845
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
58846
58846
  }
58847
58847
  step((generator = generator.apply(thisArg, _arguments || [])).next());
58848
58848
  });
@@ -59214,11 +59214,11 @@ var require_download_http_client = __commonJS({
59214
59214
  };
59215
59215
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
59216
59216
  function adopt(value2) {
59217
- return value2 instanceof P ? value2 : new P(function(resolve24) {
59218
- resolve24(value2);
59217
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
59218
+ resolve23(value2);
59219
59219
  });
59220
59220
  }
59221
- return new (P || (P = Promise))(function(resolve24, reject) {
59221
+ return new (P || (P = Promise))(function(resolve23, reject) {
59222
59222
  function fulfilled(value2) {
59223
59223
  try {
59224
59224
  step(generator.next(value2));
@@ -59234,7 +59234,7 @@ var require_download_http_client = __commonJS({
59234
59234
  }
59235
59235
  }
59236
59236
  function step(result) {
59237
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
59237
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
59238
59238
  }
59239
59239
  step((generator = generator.apply(thisArg, _arguments || [])).next());
59240
59240
  });
@@ -59367,10 +59367,10 @@ var require_download_http_client = __commonJS({
59367
59367
  };
59368
59368
  const resetDestinationStream = (fileDownloadPath) => __awaiter(this, void 0, void 0, function* () {
59369
59369
  destinationStream.close();
59370
- yield new Promise((resolve24) => {
59371
- destinationStream.on("close", resolve24);
59370
+ yield new Promise((resolve23) => {
59371
+ destinationStream.on("close", resolve23);
59372
59372
  if (destinationStream.writableFinished) {
59373
- resolve24();
59373
+ resolve23();
59374
59374
  }
59375
59375
  });
59376
59376
  yield (0, utils_1.rmFile)(fileDownloadPath);
@@ -59419,7 +59419,7 @@ var require_download_http_client = __commonJS({
59419
59419
  */
59420
59420
  pipeResponseToFile(response, destinationStream, isGzip) {
59421
59421
  return __awaiter(this, void 0, void 0, function* () {
59422
- yield new Promise((resolve24, reject) => {
59422
+ yield new Promise((resolve23, reject) => {
59423
59423
  if (isGzip) {
59424
59424
  const gunzip = zlib4.createGunzip();
59425
59425
  response.message.on("error", (error) => {
@@ -59432,7 +59432,7 @@ var require_download_http_client = __commonJS({
59432
59432
  destinationStream.close();
59433
59433
  reject(error);
59434
59434
  }).pipe(destinationStream).on("close", () => {
59435
- resolve24();
59435
+ resolve23();
59436
59436
  }).on("error", (error) => {
59437
59437
  core.info(`An error occurred while writing a downloaded file to ${destinationStream.path}`);
59438
59438
  reject(error);
@@ -59443,7 +59443,7 @@ var require_download_http_client = __commonJS({
59443
59443
  destinationStream.close();
59444
59444
  reject(error);
59445
59445
  }).pipe(destinationStream).on("close", () => {
59446
- resolve24();
59446
+ resolve23();
59447
59447
  }).on("error", (error) => {
59448
59448
  core.info(`An error occurred while writing a downloaded file to ${destinationStream.path}`);
59449
59449
  reject(error);
@@ -59557,11 +59557,11 @@ var require_artifact_client = __commonJS({
59557
59557
  };
59558
59558
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
59559
59559
  function adopt(value2) {
59560
- return value2 instanceof P ? value2 : new P(function(resolve24) {
59561
- resolve24(value2);
59560
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
59561
+ resolve23(value2);
59562
59562
  });
59563
59563
  }
59564
- return new (P || (P = Promise))(function(resolve24, reject) {
59564
+ return new (P || (P = Promise))(function(resolve23, reject) {
59565
59565
  function fulfilled(value2) {
59566
59566
  try {
59567
59567
  step(generator.next(value2));
@@ -59577,7 +59577,7 @@ var require_artifact_client = __commonJS({
59577
59577
  }
59578
59578
  }
59579
59579
  function step(result) {
59580
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
59580
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
59581
59581
  }
59582
59582
  step((generator = generator.apply(thisArg, _arguments || [])).next());
59583
59583
  });
@@ -73492,10 +73492,10 @@ var require_adm_zip = __commonJS({
73492
73492
  * @param {function|string} [props.namefix] - optional function to help fix filename
73493
73493
  */
73494
73494
  addLocalFolderPromise: function(localPath2, props) {
73495
- return new Promise((resolve24, reject) => {
73495
+ return new Promise((resolve23, reject) => {
73496
73496
  this.addLocalFolderAsync2(Object.assign({ localPath: localPath2 }, props), (err, done) => {
73497
73497
  if (err) reject(err);
73498
- if (done) resolve24(this);
73498
+ if (done) resolve23(this);
73499
73499
  });
73500
73500
  });
73501
73501
  },
@@ -73682,12 +73682,12 @@ var require_adm_zip = __commonJS({
73682
73682
  keepOriginalPermission = get_Bool(false, keepOriginalPermission);
73683
73683
  overwrite = get_Bool(false, overwrite);
73684
73684
  if (!callback) {
73685
- return new Promise((resolve24, reject) => {
73685
+ return new Promise((resolve23, reject) => {
73686
73686
  this.extractAllToAsync(targetPath, overwrite, keepOriginalPermission, function(err) {
73687
73687
  if (err) {
73688
73688
  reject(err);
73689
73689
  } else {
73690
- resolve24(this);
73690
+ resolve23(this);
73691
73691
  }
73692
73692
  });
73693
73693
  });
@@ -73785,11 +73785,11 @@ var require_adm_zip = __commonJS({
73785
73785
  */
73786
73786
  writeZipPromise: function(targetFileName, props) {
73787
73787
  const { overwrite, perm } = Object.assign({ overwrite: true }, props);
73788
- return new Promise((resolve24, reject) => {
73788
+ return new Promise((resolve23, reject) => {
73789
73789
  if (!targetFileName && opts.filename) targetFileName = opts.filename;
73790
73790
  if (!targetFileName) reject("ADM-ZIP: ZIP File Name Missing");
73791
73791
  this.toBufferPromise().then((zipData) => {
73792
- const ret = (done) => done ? resolve24(done) : reject("ADM-ZIP: Wasn't able to write zip file");
73792
+ const ret = (done) => done ? resolve23(done) : reject("ADM-ZIP: Wasn't able to write zip file");
73793
73793
  filetools.writeFileToAsync(targetFileName, zipData, overwrite, perm, ret);
73794
73794
  }, reject);
73795
73795
  });
@@ -73798,8 +73798,8 @@ var require_adm_zip = __commonJS({
73798
73798
  * @returns {Promise<Buffer>} A promise to the Buffer.
73799
73799
  */
73800
73800
  toBufferPromise: function() {
73801
- return new Promise((resolve24, reject) => {
73802
- _zip.toAsyncBuffer(resolve24, reject);
73801
+ return new Promise((resolve23, reject) => {
73802
+ _zip.toAsyncBuffer(resolve23, reject);
73803
73803
  });
73804
73804
  },
73805
73805
  /**
@@ -75922,20 +75922,20 @@ var CLILogger = class {
75922
75922
  this.finished = true;
75923
75923
  await this.batchedHttpLogStreamer?.close();
75924
75924
  this.socketTransport?.close?.();
75925
- return new Promise((resolve24) => {
75925
+ return new Promise((resolve23) => {
75926
75926
  if (this.logger instanceof Console) {
75927
- resolve24();
75927
+ resolve23();
75928
75928
  return;
75929
75929
  }
75930
75930
  this.logger.on("error", () => {
75931
75931
  });
75932
75932
  this.logger.end(() => {
75933
75933
  if (!this.writeStream || this.writeStream.writableEnded) {
75934
- resolve24();
75934
+ resolve23();
75935
75935
  return;
75936
75936
  }
75937
75937
  if (!this.writeStream.writableEnded) {
75938
- this.writeStream.end(resolve24);
75938
+ this.writeStream.end(resolve23);
75939
75939
  }
75940
75940
  });
75941
75941
  });
@@ -75970,11 +75970,11 @@ var E_ALREADY_LOCKED = new Error("mutex already locked");
75970
75970
  var E_CANCELED = new Error("request for lock canceled");
75971
75971
  var __awaiter$2 = function(thisArg, _arguments, P, generator) {
75972
75972
  function adopt(value2) {
75973
- return value2 instanceof P ? value2 : new P(function(resolve24) {
75974
- resolve24(value2);
75973
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
75974
+ resolve23(value2);
75975
75975
  });
75976
75976
  }
75977
- return new (P || (P = Promise))(function(resolve24, reject) {
75977
+ return new (P || (P = Promise))(function(resolve23, reject) {
75978
75978
  function fulfilled(value2) {
75979
75979
  try {
75980
75980
  step(generator.next(value2));
@@ -75990,7 +75990,7 @@ var __awaiter$2 = function(thisArg, _arguments, P, generator) {
75990
75990
  }
75991
75991
  }
75992
75992
  function step(result) {
75993
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
75993
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
75994
75994
  }
75995
75995
  step((generator = generator.apply(thisArg, _arguments || [])).next());
75996
75996
  });
@@ -76005,8 +76005,8 @@ var Semaphore = class {
76005
76005
  acquire(weight = 1, priority = 0) {
76006
76006
  if (weight <= 0)
76007
76007
  throw new Error(`invalid weight ${weight}: must be positive`);
76008
- return new Promise((resolve24, reject) => {
76009
- const task = { resolve: resolve24, reject, weight, priority };
76008
+ return new Promise((resolve23, reject) => {
76009
+ const task = { resolve: resolve23, reject, weight, priority };
76010
76010
  const i4 = findIndexFromEnd(this._queue, (other) => priority <= other.priority);
76011
76011
  if (i4 === -1 && weight <= this._value) {
76012
76012
  this._dispatchItem(task);
@@ -76031,10 +76031,10 @@ var Semaphore = class {
76031
76031
  if (this._couldLockImmediately(weight, priority)) {
76032
76032
  return Promise.resolve();
76033
76033
  } else {
76034
- return new Promise((resolve24) => {
76034
+ return new Promise((resolve23) => {
76035
76035
  if (!this._weightedWaiters[weight - 1])
76036
76036
  this._weightedWaiters[weight - 1] = [];
76037
- insertSorted(this._weightedWaiters[weight - 1], { resolve: resolve24, priority });
76037
+ insertSorted(this._weightedWaiters[weight - 1], { resolve: resolve23, priority });
76038
76038
  });
76039
76039
  }
76040
76040
  }
@@ -76117,11 +76117,11 @@ function findIndexFromEnd(a2, predicate) {
76117
76117
  }
76118
76118
  var __awaiter$1 = function(thisArg, _arguments, P, generator) {
76119
76119
  function adopt(value2) {
76120
- return value2 instanceof P ? value2 : new P(function(resolve24) {
76121
- resolve24(value2);
76120
+ return value2 instanceof P ? value2 : new P(function(resolve23) {
76121
+ resolve23(value2);
76122
76122
  });
76123
76123
  }
76124
- return new (P || (P = Promise))(function(resolve24, reject) {
76124
+ return new (P || (P = Promise))(function(resolve23, reject) {
76125
76125
  function fulfilled(value2) {
76126
76126
  try {
76127
76127
  step(generator.next(value2));
@@ -76137,7 +76137,7 @@ var __awaiter$1 = function(thisArg, _arguments, P, generator) {
76137
76137
  }
76138
76138
  }
76139
76139
  function step(result) {
76140
- result.done ? resolve24(result.value) : adopt(result.value).then(fulfilled, rejected);
76140
+ result.done ? resolve23(result.value) : adopt(result.value).then(fulfilled, rejected);
76141
76141
  }
76142
76142
  step((generator = generator.apply(thisArg, _arguments || [])).next());
76143
76143
  });
@@ -77703,10 +77703,10 @@ utils_default.inherits(CanceledError, AxiosError_default, {
77703
77703
  var CanceledError_default = CanceledError;
77704
77704
 
77705
77705
  // ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/core/settle.js
77706
- function settle(resolve24, reject, response) {
77706
+ function settle(resolve23, reject, response) {
77707
77707
  const validateStatus3 = response.config.validateStatus;
77708
77708
  if (!response.status || !validateStatus3 || validateStatus3(response.status)) {
77709
- resolve24(response);
77709
+ resolve23(response);
77710
77710
  } else {
77711
77711
  reject(new AxiosError_default(
77712
77712
  "Request failed with status code " + response.status,
@@ -78207,7 +78207,7 @@ function setProxy(options, configProxy, location) {
78207
78207
  }
78208
78208
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
78209
78209
  var wrapAsync = (asyncExecutor) => {
78210
- return new Promise((resolve24, reject) => {
78210
+ return new Promise((resolve23, reject) => {
78211
78211
  let onDone;
78212
78212
  let isDone;
78213
78213
  const done = (value2, isRejected) => {
@@ -78217,7 +78217,7 @@ var wrapAsync = (asyncExecutor) => {
78217
78217
  };
78218
78218
  const _resolve = (value2) => {
78219
78219
  done(value2);
78220
- resolve24(value2);
78220
+ resolve23(value2);
78221
78221
  };
78222
78222
  const _reject = (reason) => {
78223
78223
  done(reason, true);
@@ -78237,7 +78237,7 @@ var resolveFamily = ({ address, family }) => {
78237
78237
  };
78238
78238
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
78239
78239
  var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
78240
- return wrapAsync(async function dispatchHttpRequest(resolve24, reject, onDone) {
78240
+ return wrapAsync(async function dispatchHttpRequest(resolve23, reject, onDone) {
78241
78241
  let { data: data2, lookup, family } = config2;
78242
78242
  const { responseType, responseEncoding } = config2;
78243
78243
  const method = config2.method.toUpperCase();
@@ -78289,7 +78289,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
78289
78289
  if (protocol === "data:") {
78290
78290
  let convertedData;
78291
78291
  if (method !== "GET") {
78292
- return settle(resolve24, reject, {
78292
+ return settle(resolve23, reject, {
78293
78293
  status: 405,
78294
78294
  statusText: "method not allowed",
78295
78295
  headers: {},
@@ -78311,7 +78311,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
78311
78311
  } else if (responseType === "stream") {
78312
78312
  convertedData = stream3.Readable.from(convertedData);
78313
78313
  }
78314
- return settle(resolve24, reject, {
78314
+ return settle(resolve23, reject, {
78315
78315
  data: convertedData,
78316
78316
  status: 200,
78317
78317
  statusText: "OK",
@@ -78529,7 +78529,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
78529
78529
  };
78530
78530
  if (responseType === "stream") {
78531
78531
  response.data = responseStream;
78532
- settle(resolve24, reject, response);
78532
+ settle(resolve23, reject, response);
78533
78533
  } else {
78534
78534
  const responseBuffer = [];
78535
78535
  let totalResponseBytes = 0;
@@ -78577,7 +78577,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
78577
78577
  } catch (err) {
78578
78578
  return reject(AxiosError_default.from(err, null, config2, response.request, response));
78579
78579
  }
78580
- settle(resolve24, reject, response);
78580
+ settle(resolve23, reject, response);
78581
78581
  });
78582
78582
  }
78583
78583
  emitter.once("abort", (err) => {
@@ -78804,7 +78804,7 @@ var resolveConfig_default = (config2) => {
78804
78804
  // ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/adapters/xhr.js
78805
78805
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
78806
78806
  var xhr_default = isXHRAdapterSupported && function(config2) {
78807
- return new Promise(function dispatchXhrRequest(resolve24, reject) {
78807
+ return new Promise(function dispatchXhrRequest(resolve23, reject) {
78808
78808
  const _config = resolveConfig_default(config2);
78809
78809
  let requestData = _config.data;
78810
78810
  const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
@@ -78838,7 +78838,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
78838
78838
  request
78839
78839
  };
78840
78840
  settle(function _resolve(value2) {
78841
- resolve24(value2);
78841
+ resolve23(value2);
78842
78842
  done();
78843
78843
  }, function _reject(err) {
78844
78844
  reject(err);
@@ -79181,8 +79181,8 @@ var fetch_default = isFetchSupported && (async (config2) => {
79181
79181
  responseType = responseType || "text";
79182
79182
  let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config2);
79183
79183
  !isStreamResponse && unsubscribe && unsubscribe();
79184
- return await new Promise((resolve24, reject) => {
79185
- settle(resolve24, reject, {
79184
+ return await new Promise((resolve23, reject) => {
79185
+ settle(resolve23, reject, {
79186
79186
  data: responseData,
79187
79187
  headers: AxiosHeaders_default.from(response.headers),
79188
79188
  status: response.status,
@@ -79548,8 +79548,8 @@ var CancelToken = class _CancelToken {
79548
79548
  throw new TypeError("executor must be a function.");
79549
79549
  }
79550
79550
  let resolvePromise;
79551
- this.promise = new Promise(function promiseExecutor(resolve24) {
79552
- resolvePromise = resolve24;
79551
+ this.promise = new Promise(function promiseExecutor(resolve23) {
79552
+ resolvePromise = resolve23;
79553
79553
  });
79554
79554
  const token = this;
79555
79555
  this.promise.then((cancel) => {
@@ -79562,9 +79562,9 @@ var CancelToken = class _CancelToken {
79562
79562
  });
79563
79563
  this.promise.then = (onfulfilled) => {
79564
79564
  let _resolve;
79565
- const promise = new Promise((resolve24) => {
79566
- token.subscribe(resolve24);
79567
- _resolve = resolve24;
79565
+ const promise = new Promise((resolve23) => {
79566
+ token.subscribe(resolve23);
79567
+ _resolve = resolve23;
79568
79568
  }).then(onfulfilled);
79569
79569
  promise.cancel = function reject() {
79570
79570
  token.unsubscribe(_resolve);
@@ -79893,8 +79893,8 @@ var axiosRetry = (axiosInstance, defaultOptions2) => {
79893
79893
  }
79894
79894
  config2.transformRequest = [(data2) => data2];
79895
79895
  await onRetry(currentState.retryCount, error, config2);
79896
- return new Promise((resolve24) => {
79897
- setTimeout(() => resolve24(axiosInstance(config2)), delay);
79896
+ return new Promise((resolve23) => {
79897
+ setTimeout(() => resolve23(axiosInstance(config2)), delay);
79898
79898
  });
79899
79899
  }
79900
79900
  await handleMaxRetryTimesExceeded(currentState, error);
@@ -80166,7 +80166,7 @@ function deserializeRustDependencyChainNode(s2) {
80166
80166
 
80167
80167
  // dist/main.js
80168
80168
  var import_lodash22 = __toESM(require_lodash(), 1);
80169
- import { relative as relative10, resolve as resolve23 } from "path";
80169
+ import { relative as relative9, resolve as resolve22 } from "path";
80170
80170
 
80171
80171
  // ../utils/src/dashboard-api/coana-api.ts
80172
80172
  import { writeFile } from "fs/promises";
@@ -80391,7 +80391,7 @@ function getCoanaAPI() {
80391
80391
  // ../utils/src/dashboard-api/socket-api.ts
80392
80392
  var import_form_data2 = __toESM(require_form_data2(), 1);
80393
80393
  import { readFile as readFile2 } from "node:fs/promises";
80394
- import { join, relative, resolve } from "node:path";
80394
+ import { join } from "node:path";
80395
80395
 
80396
80396
  // ../web-compat-utils/src/ghsa.ts
80397
80397
  function extractGHSAIdFromUrl(url3) {
@@ -81009,7 +81009,7 @@ ${stderr}`) ? em.slice(0, -stderr.length - 1) : em}`);
81009
81009
  logger[logLevel](`stderr: ${stderr}`);
81010
81010
  }
81011
81011
  async function execNeverFail(cmd, dir, options) {
81012
- return new Promise((resolve24) => {
81012
+ return new Promise((resolve23) => {
81013
81013
  let args;
81014
81014
  if (typeof cmd !== "string") [cmd, ...args] = cmd;
81015
81015
  const timeout = options?.timeout ?? DEFAULT_TIMEOUT_MS;
@@ -81018,7 +81018,7 @@ async function execNeverFail(cmd, dir, options) {
81018
81018
  args,
81019
81019
  { ...options, cwd: dir, maxBuffer: 1024 * 1024 * 1024, shell: args === void 0, timeout },
81020
81020
  (error, stdout, stderr) => {
81021
- resolve24({ error, stdout, stderr });
81021
+ resolve23({ error, stdout, stderr });
81022
81022
  }
81023
81023
  );
81024
81024
  if (options?.pipe) {
@@ -81144,7 +81144,7 @@ var import_lodash3 = __toESM(require_lodash(), 1);
81144
81144
  var import_micromatch = __toESM(require_micromatch(), 1);
81145
81145
  import { existsSync } from "fs";
81146
81146
  import { access, cp, readdir, stat } from "fs/promises";
81147
- import { basename, join as join2, relative as relative2, resolve as resolve2 } from "path";
81147
+ import { basename, join as join2, relative, resolve } from "path";
81148
81148
 
81149
81149
  // ../web-compat-utils/src/async.ts
81150
81150
  async function asyncMap(array, mapper, concurrency = 1) {
@@ -81182,21 +81182,21 @@ async function asyncFilter(arr, predicate, concurrency = 1) {
81182
81182
  var { uniq } = import_lodash3.default;
81183
81183
  var { isMatch } = import_micromatch.default;
81184
81184
  function excludeFiles(excludedDirsRoot, filesRoot, files, excludeDirs) {
81185
- return files.map((f2) => resolve2(filesRoot, f2)).filter(
81186
- (file) => !isMatch(relative2(excludedDirsRoot, file), excludeDirs) && // also exclude files in directories that are excluded
81185
+ return files.map((f2) => resolve(filesRoot, f2)).filter(
81186
+ (file) => !isMatch(relative(excludedDirsRoot, file), excludeDirs) && // also exclude files in directories that are excluded
81187
81187
  !isMatch(
81188
- relative2(excludedDirsRoot, file),
81188
+ relative(excludedDirsRoot, file),
81189
81189
  excludeDirs.map((ed) => `${ed}/**/*`)
81190
81190
  ) && !excludeDirs.some(
81191
- (excludeDir) => relative2(excludedDirsRoot, file).startsWith(excludeDir.endsWith("/") ? excludeDir : `${excludeDir}/`)
81191
+ (excludeDir) => relative(excludedDirsRoot, file).startsWith(excludeDir.endsWith("/") ? excludeDir : `${excludeDir}/`)
81192
81192
  )
81193
- ).map((f2) => relative2(filesRoot, f2));
81193
+ ).map((f2) => relative(filesRoot, f2));
81194
81194
  }
81195
81195
  function* parents(dir) {
81196
81196
  let [curr, last2] = [dir, dir];
81197
81197
  do {
81198
81198
  yield curr;
81199
- [last2, curr] = [curr, resolve2(curr, "..")];
81199
+ [last2, curr] = [curr, resolve(curr, "..")];
81200
81200
  } while (curr !== last2);
81201
81201
  return void 0;
81202
81202
  }
@@ -84703,10 +84703,10 @@ var Minipass = class extends EventEmitter2 {
84703
84703
  * Return a void Promise that resolves once the stream ends.
84704
84704
  */
84705
84705
  async promise() {
84706
- return new Promise((resolve24, reject) => {
84706
+ return new Promise((resolve23, reject) => {
84707
84707
  this.on(DESTROYED, () => reject(new Error("stream destroyed")));
84708
84708
  this.on("error", (er) => reject(er));
84709
- this.on("end", () => resolve24());
84709
+ this.on("end", () => resolve23());
84710
84710
  });
84711
84711
  }
84712
84712
  /**
@@ -84730,7 +84730,7 @@ var Minipass = class extends EventEmitter2 {
84730
84730
  return Promise.resolve({ done: false, value: res });
84731
84731
  if (this[EOF])
84732
84732
  return stop();
84733
- let resolve24;
84733
+ let resolve23;
84734
84734
  let reject;
84735
84735
  const onerr = (er) => {
84736
84736
  this.off("data", ondata);
@@ -84744,19 +84744,19 @@ var Minipass = class extends EventEmitter2 {
84744
84744
  this.off("end", onend);
84745
84745
  this.off(DESTROYED, ondestroy);
84746
84746
  this.pause();
84747
- resolve24({ value: value2, done: !!this[EOF] });
84747
+ resolve23({ value: value2, done: !!this[EOF] });
84748
84748
  };
84749
84749
  const onend = () => {
84750
84750
  this.off("error", onerr);
84751
84751
  this.off("data", ondata);
84752
84752
  this.off(DESTROYED, ondestroy);
84753
84753
  stop();
84754
- resolve24({ done: true, value: void 0 });
84754
+ resolve23({ done: true, value: void 0 });
84755
84755
  };
84756
84756
  const ondestroy = () => onerr(new Error("stream destroyed"));
84757
84757
  return new Promise((res2, rej) => {
84758
84758
  reject = rej;
84759
- resolve24 = res2;
84759
+ resolve23 = res2;
84760
84760
  this.once(DESTROYED, ondestroy);
84761
84761
  this.once("error", onerr);
84762
84762
  this.once("end", onend);
@@ -85726,9 +85726,9 @@ var PathBase = class {
85726
85726
  if (this.#asyncReaddirInFlight) {
85727
85727
  await this.#asyncReaddirInFlight;
85728
85728
  } else {
85729
- let resolve24 = () => {
85729
+ let resolve23 = () => {
85730
85730
  };
85731
- this.#asyncReaddirInFlight = new Promise((res) => resolve24 = res);
85731
+ this.#asyncReaddirInFlight = new Promise((res) => resolve23 = res);
85732
85732
  try {
85733
85733
  for (const e of await this.#fs.promises.readdir(fullpath, {
85734
85734
  withFileTypes: true
@@ -85741,7 +85741,7 @@ var PathBase = class {
85741
85741
  children2.provisional = 0;
85742
85742
  }
85743
85743
  this.#asyncReaddirInFlight = void 0;
85744
- resolve24();
85744
+ resolve23();
85745
85745
  }
85746
85746
  return children2.slice(0, children2.provisional);
85747
85747
  }
@@ -86803,10 +86803,10 @@ var Ignore = class {
86803
86803
  ignored(p) {
86804
86804
  const fullpath = p.fullpath();
86805
86805
  const fullpaths = `${fullpath}/`;
86806
- const relative11 = p.relative() || ".";
86807
- const relatives = `${relative11}/`;
86806
+ const relative10 = p.relative() || ".";
86807
+ const relatives = `${relative10}/`;
86808
86808
  for (const m of this.relative) {
86809
- if (m.match(relative11) || m.match(relatives))
86809
+ if (m.match(relative10) || m.match(relatives))
86810
86810
  return true;
86811
86811
  }
86812
86812
  for (const m of this.absolute) {
@@ -86817,9 +86817,9 @@ var Ignore = class {
86817
86817
  }
86818
86818
  childrenIgnored(p) {
86819
86819
  const fullpath = p.fullpath() + "/";
86820
- const relative11 = (p.relative() || ".") + "/";
86820
+ const relative10 = (p.relative() || ".") + "/";
86821
86821
  for (const m of this.relativeChildren) {
86822
- if (m.match(relative11))
86822
+ if (m.match(relative10))
86823
86823
  return true;
86824
86824
  }
86825
86825
  for (const m of this.absoluteChildren) {
@@ -87642,7 +87642,7 @@ glob.glob = glob;
87642
87642
  var import_lodash17 = __toESM(require_lodash(), 1);
87643
87643
  var import_semver4 = __toESM(require_semver2(), 1);
87644
87644
  import assert8 from "assert";
87645
- import { relative as relative8 } from "path";
87645
+ import { relative as relative7 } from "path";
87646
87646
 
87647
87647
  // ../utils/src/promise-queue.ts
87648
87648
  var PromiseQueue = class {
@@ -87703,14 +87703,14 @@ var PromiseQueue = class {
87703
87703
  this.runNextTask();
87704
87704
  }
87705
87705
  async onIdle() {
87706
- return new Promise((resolve24, reject) => {
87706
+ return new Promise((resolve23, reject) => {
87707
87707
  if (this.error) {
87708
87708
  reject(this.error);
87709
87709
  this.error = null;
87710
87710
  } else if (this.queue.length === 0 && this.activeTasks === 0) {
87711
- resolve24();
87711
+ resolve23();
87712
87712
  } else {
87713
- this.idleResolver = resolve24;
87713
+ this.idleResolver = resolve23;
87714
87714
  this.idleRejector = reject;
87715
87715
  }
87716
87716
  });
@@ -87741,12 +87741,12 @@ function getVulnReachability(c) {
87741
87741
  // dist/analyzers/pip-analyzer.js
87742
87742
  var import_lodash16 = __toESM(require_lodash(), 1);
87743
87743
  import assert7 from "assert";
87744
- import { resolve as resolve20 } from "path";
87744
+ import { resolve as resolve19 } from "path";
87745
87745
 
87746
87746
  // ../utils/src/pip-utils.ts
87747
87747
  import { existsSync as existsSync2 } from "node:fs";
87748
87748
  import { readFile as readFile4 } from "node:fs/promises";
87749
- import { dirname, resolve as resolve4 } from "node:path";
87749
+ import { dirname, resolve as resolve3 } from "node:path";
87750
87750
  import util4 from "node:util";
87751
87751
 
87752
87752
  // ../utils/src/python-versions-manager.ts
@@ -87755,7 +87755,7 @@ var import_semver = __toESM(require_semver4(), 1);
87755
87755
  import { execFileSync } from "child_process";
87756
87756
  import { constants as constants2 } from "fs";
87757
87757
  import { access as access2, readFile as readFile3 } from "fs/promises";
87758
- import { join as join4, resolve as resolve3 } from "path";
87758
+ import { join as join4, resolve as resolve2 } from "path";
87759
87759
  import util3 from "util";
87760
87760
  var { once } = import_lodash4.default;
87761
87761
  var systemPython = once(() => {
@@ -87799,14 +87799,14 @@ var PythonVersionsManager = class _PythonVersionsManager {
87799
87799
  }
87800
87800
  // Extracts the python version specifier from the workspace and returns it as an array of semver parts.
87801
87801
  async getPythonSpecifier(workspacePath, checkPyProject = true) {
87802
- const absPath = resolve3(this.projectDir, workspacePath);
87802
+ const absPath = resolve2(this.projectDir, workspacePath);
87803
87803
  for (const parent2 of parents(absPath))
87804
87804
  try {
87805
87805
  return [(await readFile3(join4(parent2, ".python-version"), "utf-8")).split("\n")[0].trim()];
87806
87806
  } catch (e) {
87807
87807
  if (e.code !== "ENOENT") logger.warn("Failed to read python version file with error", e);
87808
87808
  }
87809
- const pipfile = resolve3(absPath, "Pipfile");
87809
+ const pipfile = resolve2(absPath, "Pipfile");
87810
87810
  try {
87811
87811
  await access2(pipfile, constants2.R_OK);
87812
87812
  try {
@@ -87856,7 +87856,7 @@ var PythonVersionsManager = class _PythonVersionsManager {
87856
87856
  );
87857
87857
  } else if (!await hasPyenv() || _PythonVersionsManager.getGlobalPythonVersion() === "system")
87858
87858
  return systemPython();
87859
- return resolve3(await _PythonVersionsManager.getPythonPrefixMatchingSpecifier(semVerSpec), "bin", "python");
87859
+ return resolve2(await _PythonVersionsManager.getPythonPrefixMatchingSpecifier(semVerSpec), "bin", "python");
87860
87860
  }
87861
87861
  // Throws an error if the python version is not installed.
87862
87862
  static async getPythonPrefixForVersion(version3) {
@@ -87866,7 +87866,7 @@ var PythonVersionsManager = class _PythonVersionsManager {
87866
87866
  const versions = await this.getInstalledPythonVersions();
87867
87867
  return [
87868
87868
  ...versions.map(
87869
- (v) => [v, async () => resolve3(await this.getPythonPrefixForVersion(v), "bin", "python")]
87869
+ (v) => [v, async () => resolve2(await this.getPythonPrefixForVersion(v), "bin", "python")]
87870
87870
  ),
87871
87871
  [await getPythonVersion(systemPython()), async () => systemPython()]
87872
87872
  ];
@@ -88105,7 +88105,7 @@ async function parseTomlFile(file) {
88105
88105
  return JSON.parse(await runCommandResolveStdOut2(["python", "-SIc", parseTomlProgram, file]));
88106
88106
  }
88107
88107
  async function getPyProjectParsed(dir) {
88108
- const pyprojectLoc = resolve4(dir, "pyproject.toml");
88108
+ const pyprojectLoc = resolve3(dir, "pyproject.toml");
88109
88109
  if (!existsSync2(pyprojectLoc)) return void 0;
88110
88110
  return parseTomlFile(pyprojectLoc);
88111
88111
  }
@@ -88140,7 +88140,7 @@ var MambaladeHeuristics = {
88140
88140
  // dist/whole-program-code-aware-vulnerability-scanner/python/phantom-deps.js
88141
88141
  var import_lodash15 = __toESM(require_lodash(), 1);
88142
88142
  import fs11 from "fs/promises";
88143
- import path9, { resolve as resolve19 } from "path";
88143
+ import path9, { resolve as resolve18 } from "path";
88144
88144
 
88145
88145
  // ../utils/src/vulnerable-paths-utils.ts
88146
88146
  function mkTrie() {
@@ -88164,7 +88164,7 @@ import assert6 from "assert";
88164
88164
  import { existsSync as existsSync12 } from "fs";
88165
88165
  import { cp as cp7, readdir as readdir4, readFile as readFile11, rm as rm5 } from "fs/promises";
88166
88166
  var import_semver3 = __toESM(require_semver2(), 1);
88167
- import { basename as basename11, dirname as dirname15, join as join16, resolve as resolve18, sep as sep5 } from "path";
88167
+ import { basename as basename11, dirname as dirname15, join as join16, resolve as resolve17, sep as sep5 } from "path";
88168
88168
  import util5 from "util";
88169
88169
 
88170
88170
  // ../utils/src/constants.ts
@@ -88213,10 +88213,10 @@ async function downloadFile(fileUrl, outputFile) {
88213
88213
  // ../utils/src/file-tree-utils.ts
88214
88214
  import { closeSync, lstatSync as lstatSync2, openSync, readdirSync as readdirSync3, readSync } from "fs";
88215
88215
  import { readdir as readdir3 } from "fs/promises";
88216
- import { basename as basename3, join as join7, relative as relative4, resolve as resolve6 } from "path";
88216
+ import { basename as basename3, join as join7, relative as relative3, resolve as resolve5 } from "path";
88217
88217
 
88218
88218
  // ../utils/src/package-utils.ts
88219
- import { parse as parse2, join as join6, resolve as resolve5, normalize as normalize2, dirname as dirname3, basename as basename2, relative as relative3 } from "path";
88219
+ import { parse as parse2, join as join6, resolve as resolve4, normalize as normalize2, dirname as dirname3, basename as basename2, relative as relative2 } from "path";
88220
88220
  import { existsSync as existsSync4, readFileSync, readdirSync as readdirSync2, statSync, writeFileSync } from "fs";
88221
88221
  function getPackageJsonObject(workspaceRoot) {
88222
88222
  const packageJSONContent = getPackageJsonContent(workspaceRoot);
@@ -88248,7 +88248,7 @@ async function findFilesInPythonProjectMatching(projectDir, fileMatcher, maxDept
88248
88248
  if (shouldIgnoreDir(fileOrDirectory.name, projectDir === path10)) continue;
88249
88249
  directoriesToTraverse.push(fileOrDirectory.name);
88250
88250
  } else if (fileOrDirectory.isFile()) {
88251
- if (fileMatcher(fullPath)) files.push(relative4(projectDir, fullPath));
88251
+ if (fileMatcher(fullPath)) files.push(relative3(projectDir, fullPath));
88252
88252
  }
88253
88253
  }
88254
88254
  if (depthLeft === 0) return;
@@ -88266,7 +88266,7 @@ async function findFilesInPythonProjectMatching(projectDir, fileMatcher, maxDept
88266
88266
  // ../utils/src/tmp-file.ts
88267
88267
  import { rm, mkdtemp as mkdtemp2, cp as cp3, lstat as lstat2 } from "fs/promises";
88268
88268
  import { tmpdir } from "os";
88269
- import { join as join8, relative as relative5, sep as sep2, extname } from "path";
88269
+ import { join as join8, relative as relative4, sep as sep2, extname } from "path";
88270
88270
  async function createTmpDirectory(prefix) {
88271
88271
  try {
88272
88272
  const tmpDir = await mkdtemp2(join8(tmpdir(), prefix));
@@ -88293,16 +88293,16 @@ async function withTmpDirectory(prefix, fn, deleteTmpDir = true) {
88293
88293
  var ROOT_NODE_STR = "";
88294
88294
 
88295
88295
  // dist/tool-path-resolver.js
88296
- import { resolve as resolve7 } from "path";
88296
+ import { resolve as resolve6 } from "path";
88297
88297
  var ToolPathResolver = class {
88298
88298
  static get jellyPath() {
88299
- return resolve7(COANA_REPOS_PATH(), "jelly-private", "dist", "bundle", "jelly.js");
88299
+ return resolve6(COANA_REPOS_PATH(), "jelly-private", "dist", "bundle", "jelly.js");
88300
88300
  }
88301
88301
  /**
88302
88302
  * Get the path to the Mambalade dist directory
88303
88303
  */
88304
88304
  static get mambaladeDistPath() {
88305
- return resolve7(COANA_REPOS_PATH(), "mambalade", "dist");
88305
+ return resolve6(COANA_REPOS_PATH(), "mambalade", "dist");
88306
88306
  }
88307
88307
  /**
88308
88308
  * Get the path to the Goana binary for the current platform and architecture
@@ -88310,61 +88310,61 @@ var ToolPathResolver = class {
88310
88310
  static getGoanaBinaryPath(platform6, arch) {
88311
88311
  const rarch = arch === "arm" ? "arm64" : arch === "x64" ? "amd64" : arch;
88312
88312
  const binaryName = `goana-${platform6}-${rarch}.gz`;
88313
- return resolve7(COANA_REPOS_PATH(), "goana", "bin", binaryName);
88313
+ return resolve6(COANA_REPOS_PATH(), "goana", "bin", binaryName);
88314
88314
  }
88315
88315
  /**
88316
88316
  * Get the path to the Javap Service JAR file
88317
88317
  */
88318
88318
  static get javapServiceJarPath() {
88319
- return resolve7(COANA_REPOS_PATH(), "javap-service", "javap-service.jar");
88319
+ return resolve6(COANA_REPOS_PATH(), "javap-service", "javap-service.jar");
88320
88320
  }
88321
88321
  /**
88322
88322
  * Get the path to the Cocoa DLL file
88323
88323
  */
88324
88324
  static get cocoaDllPath() {
88325
- return resolve7(COANA_REPOS_PATH(), "cocoa", "release", "Coana.Cocoa.dll");
88325
+ return resolve6(COANA_REPOS_PATH(), "cocoa", "release", "Coana.Cocoa.dll");
88326
88326
  }
88327
88327
  /**
88328
88328
  * Get the path to the class-graph-analysis CLI executable
88329
88329
  */
88330
88330
  static get classGraphAnalysisCliPath() {
88331
- return resolve7(COANA_REPOS_PATH(), "class-graph-analysis", "dist", "bundle", "class-graph-analysis-cli.mjs");
88331
+ return resolve6(COANA_REPOS_PATH(), "class-graph-analysis", "dist", "bundle", "class-graph-analysis-cli.mjs");
88332
88332
  }
88333
88333
  /**
88334
88334
  * Get the path to the callgraph-reachability-analyzers CLI executable
88335
88335
  */
88336
88336
  static get callgraphReachabilityAnalyzersCliPath() {
88337
- return resolve7(COANA_REPOS_PATH(), "callgraph-reachability-analyzers", "packages", "cli", "dist", "bundle", "cli.mjs");
88337
+ return resolve6(COANA_REPOS_PATH(), "callgraph-reachability-analyzers", "packages", "cli", "dist", "bundle", "cli.mjs");
88338
88338
  }
88339
88339
  /**
88340
88340
  * Get the path to the Tree-sitter Java parser
88341
88341
  */
88342
88342
  static get treeSitterJavaPath() {
88343
- return resolve7(REPOS_PATH(), "tree-sitter", "tree-sitter-java");
88343
+ return resolve6(REPOS_PATH(), "tree-sitter", "tree-sitter-java");
88344
88344
  }
88345
88345
  /**
88346
88346
  * Get the path to the Tree-sitter Kotlin parser
88347
88347
  */
88348
88348
  static get treeSitterKotlinPath() {
88349
- return resolve7(REPOS_PATH(), "fwcd", "tree-sitter-kotlin");
88349
+ return resolve6(REPOS_PATH(), "fwcd", "tree-sitter-kotlin");
88350
88350
  }
88351
88351
  /**
88352
88352
  * Get the path to the Tree-sitter Scala parser
88353
88353
  */
88354
88354
  static get treeSitterScalaPath() {
88355
- return resolve7(COANA_REPOS_PATH(), "tree-sitter-scala");
88355
+ return resolve6(COANA_REPOS_PATH(), "tree-sitter-scala");
88356
88356
  }
88357
88357
  /**
88358
88358
  * Get the path to the Tree-sitter C# parser
88359
88359
  */
88360
88360
  static get treeSitterCSharpPath() {
88361
- return resolve7(REPOS_PATH(), "tree-sitter", "tree-sitter-c-sharp");
88361
+ return resolve6(REPOS_PATH(), "tree-sitter", "tree-sitter-c-sharp");
88362
88362
  }
88363
88363
  /**
88364
88364
  * Get the path to the Tree-sitter Rust parser
88365
88365
  */
88366
88366
  static get treeSitterRustPath() {
88367
- return resolve7(REPOS_PATH(), "tree-sitter", "tree-sitter-rust");
88367
+ return resolve6(REPOS_PATH(), "tree-sitter", "tree-sitter-rust");
88368
88368
  }
88369
88369
  /**
88370
88370
  * Get the path to the Node.js executable
@@ -88397,12 +88397,12 @@ var ToolPathResolver = class {
88397
88397
  // dist/whole-program-code-aware-vulnerability-scanner/code-aware-vulnerability-scanner.js
88398
88398
  var import_lodash13 = __toESM(require_lodash(), 1);
88399
88399
  import { readFileSync as readFileSync3 } from "fs";
88400
- import { resolve as resolve17 } from "path";
88400
+ import { resolve as resolve16 } from "path";
88401
88401
 
88402
88402
  // dist/whole-program-code-aware-vulnerability-scanner/dotnet/dotnet-code-aware-vulnerability-scanner.js
88403
88403
  var import_lodash6 = __toESM(require_lodash(), 1);
88404
88404
  import { existsSync as existsSync6 } from "node:fs";
88405
- import { basename as basename7, dirname as dirname10, extname as extname3, resolve as resolve10 } from "node:path";
88405
+ import { basename as basename7, dirname as dirname10, extname as extname3, resolve as resolve9 } from "node:path";
88406
88406
 
88407
88407
  // ../utils/src/nuget-utils.ts
88408
88408
  function getUrlForPackage(packageName, version3) {
@@ -90782,9 +90782,9 @@ var listFile = (opt, _files) => {
90782
90782
  const parse14 = new Parser(opt);
90783
90783
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
90784
90784
  const file = opt.file;
90785
- const p = new Promise((resolve24, reject) => {
90785
+ const p = new Promise((resolve23, reject) => {
90786
90786
  parse14.on("error", reject);
90787
- parse14.on("end", resolve24);
90787
+ parse14.on("end", resolve23);
90788
90788
  fs2.stat(file, (er, stat3) => {
90789
90789
  if (er) {
90790
90790
  reject(er);
@@ -92176,7 +92176,7 @@ var mkdirpNative = Object.assign(async (path10, options) => {
92176
92176
  }, { sync: mkdirpNativeSync });
92177
92177
 
92178
92178
  // ../../node_modules/.pnpm/mkdirp@3.0.1/node_modules/mkdirp/dist/mjs/path-arg.js
92179
- import { parse as parse6, resolve as resolve8 } from "path";
92179
+ import { parse as parse6, resolve as resolve7 } from "path";
92180
92180
  var platform3 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
92181
92181
  var pathArg = (path10) => {
92182
92182
  if (/\0/.test(path10)) {
@@ -92185,7 +92185,7 @@ var pathArg = (path10) => {
92185
92185
  code: "ERR_INVALID_ARG_VALUE"
92186
92186
  });
92187
92187
  }
92188
- path10 = resolve8(path10);
92188
+ path10 = resolve7(path10);
92189
92189
  if (platform3 === "win32") {
92190
92190
  const badWinChars = /[*|"<>?:]/;
92191
92191
  const { root: root3 } = parse6(path10);
@@ -93290,9 +93290,9 @@ var extractFile = (opt, _) => {
93290
93290
  const u3 = new Unpack(opt);
93291
93291
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
93292
93292
  const file = opt.file;
93293
- const p = new Promise((resolve24, reject) => {
93293
+ const p = new Promise((resolve23, reject) => {
93294
93294
  u3.on("error", reject);
93295
- u3.on("close", resolve24);
93295
+ u3.on("close", resolve23);
93296
93296
  fs9.stat(file, (er, stat3) => {
93297
93297
  if (er) {
93298
93298
  reject(er);
@@ -93426,7 +93426,7 @@ var replaceAsync = (opt, files) => {
93426
93426
  };
93427
93427
  fs10.read(fd, headBuf, 0, 512, position, onread);
93428
93428
  };
93429
- const promise = new Promise((resolve24, reject) => {
93429
+ const promise = new Promise((resolve23, reject) => {
93430
93430
  p.on("error", reject);
93431
93431
  let flag = "r+";
93432
93432
  const onopen = (er, fd) => {
@@ -93451,7 +93451,7 @@ var replaceAsync = (opt, files) => {
93451
93451
  });
93452
93452
  p.pipe(stream8);
93453
93453
  stream8.on("error", reject);
93454
- stream8.on("close", resolve24);
93454
+ stream8.on("close", resolve23);
93455
93455
  addFilesAsync2(p, files);
93456
93456
  });
93457
93457
  });
@@ -93741,7 +93741,7 @@ function getClassGraphAnalysisCliPath() {
93741
93741
  // ../utils/src/nuget-project-utils.ts
93742
93742
  var import_parse_xml2 = __toESM(require_dist(), 1);
93743
93743
  import { readFile as readFile5 } from "node:fs/promises";
93744
- import { dirname as dirname9, join as join11, relative as relative6, resolve as resolve9, basename as basename6, extname as extname2 } from "node:path";
93744
+ import { dirname as dirname9, join as join11, relative as relative5, resolve as resolve8, basename as basename6, extname as extname2 } from "node:path";
93745
93745
 
93746
93746
  // ../utils/src/xml-utils.ts
93747
93747
  var import_parse_xml = __toESM(require_dist(), 1);
@@ -95396,7 +95396,7 @@ async function loadNuGetProject(rootDir, projectFile, validateFile) {
95396
95396
  );
95397
95397
  }
95398
95398
  async function loadNuGetProjectOrTarget(rootDir, projectFile, mainProject, visited, validateFile) {
95399
- const validatedProjectPath = validateFile ? validateFile(resolve9(rootDir, projectFile)) : resolve9(rootDir, projectFile);
95399
+ const validatedProjectPath = validateFile ? validateFile(resolve8(rootDir, projectFile)) : resolve8(rootDir, projectFile);
95400
95400
  if (!validatedProjectPath || !existsSync5(validatedProjectPath)) return void 0;
95401
95401
  if (visited.has(validatedProjectPath)) return void 0;
95402
95402
  visited.set(validatedProjectPath);
@@ -95428,7 +95428,7 @@ async function loadNuGetProjectOrTarget(rootDir, projectFile, mainProject, visit
95428
95428
  });
95429
95429
  currentProject.sourceFiles.push(...files);
95430
95430
  } catch (err) {
95431
- logger.debug(`Failed to glob default pattern for ${relative6(rootDir, validatedProjectPath)}: ${err}`);
95431
+ logger.debug(`Failed to glob default pattern for ${relative5(rootDir, validatedProjectPath)}: ${err}`);
95432
95432
  }
95433
95433
  }
95434
95434
  mainProject ??= currentProject;
@@ -95560,7 +95560,7 @@ async function handleImportElement(currentProject, importElement, mainProject, v
95560
95560
  if (!projectValue) return;
95561
95561
  const importPath = evaluate(projectValue.text, currentProject);
95562
95562
  if (!importPath) return;
95563
- const resolvedPath = resolve9(dirname9(currentProject.validatedProjectPath), normalizeMSBuildPath(importPath));
95563
+ const resolvedPath = resolve8(dirname9(currentProject.validatedProjectPath), normalizeMSBuildPath(importPath));
95564
95564
  const validatedPath = validateFile ? validateFile(resolvedPath) : resolvedPath;
95565
95565
  if (!validatedPath || !existsSync5(validatedPath)) return;
95566
95566
  const importedProject = await loadNuGetProjectOrTarget(
@@ -95651,11 +95651,11 @@ async function handleCompileItem(project, child) {
95651
95651
  } catch (err) {
95652
95652
  if (evaluatedExclude) {
95653
95653
  logger.debug(
95654
- `Failed to glob Compile Include ${includePatterns}, Exclude ${excludePatterns} in ${relative6(project.rootDir, project.validatedProjectPath)}: ${err}`
95654
+ `Failed to glob Compile Include ${includePatterns}, Exclude ${excludePatterns} in ${relative5(project.rootDir, project.validatedProjectPath)}: ${err}`
95655
95655
  );
95656
95656
  } else {
95657
95657
  logger.debug(
95658
- `Failed to glob Compile Include ${includePatterns} in ${relative6(project.rootDir, project.validatedProjectPath)}: ${err}`
95658
+ `Failed to glob Compile Include ${includePatterns} in ${relative5(project.rootDir, project.validatedProjectPath)}: ${err}`
95659
95659
  );
95660
95660
  }
95661
95661
  }
@@ -95675,7 +95675,7 @@ async function handleCompileItem(project, child) {
95675
95675
  project.sourceFiles = project.sourceFiles.filter((f2) => !removeSet.has(f2));
95676
95676
  } catch (err) {
95677
95677
  logger.debug(
95678
- `Failed to glob Compile Remove pattern ${evaluatedRemove} in ${relative6(project.rootDir, project.validatedProjectPath)}: ${err}`
95678
+ `Failed to glob Compile Remove pattern ${evaluatedRemove} in ${relative5(project.rootDir, project.validatedProjectPath)}: ${err}`
95679
95679
  );
95680
95680
  }
95681
95681
  }
@@ -95685,7 +95685,7 @@ function handlePropertyGroupElement(project, propertyGroup) {
95685
95685
  const condition = createAttributeMap(propertyGroup, project.sourceText).get("Condition");
95686
95686
  if (condition) {
95687
95687
  logger.debug(
95688
- `Skipping conditional property group ${propertyGroup.name} (${propertyGroup.start}, ${propertyGroup.end}) with condition ${condition.text} in file ${relative6(project.rootDir, project.validatedProjectPath)}`
95688
+ `Skipping conditional property group ${propertyGroup.name} (${propertyGroup.start}, ${propertyGroup.end}) with condition ${condition.text} in file ${relative5(project.rootDir, project.validatedProjectPath)}`
95689
95689
  );
95690
95690
  return;
95691
95691
  }
@@ -95695,7 +95695,7 @@ function handlePropertyGroupElement(project, propertyGroup) {
95695
95695
  const condition2 = createAttributeMap(propertyElement, project.sourceText).get("Condition");
95696
95696
  if (condition2) {
95697
95697
  logger.debug(
95698
- `Skipping conditional property ${propertyElement.name} (${propertyElement.start}, ${propertyElement.end}) with condition ${condition2.text} in file ${relative6(project.rootDir, project.validatedProjectPath)}`
95698
+ `Skipping conditional property ${propertyElement.name} (${propertyElement.start}, ${propertyElement.end}) with condition ${condition2.text} in file ${relative5(project.rootDir, project.validatedProjectPath)}`
95699
95699
  );
95700
95700
  continue;
95701
95701
  }
@@ -95736,7 +95736,7 @@ function evaluate(expression, project) {
95736
95736
  function evaluateWithContext(value2, depth) {
95737
95737
  if (depth > 50) {
95738
95738
  logger.warn(
95739
- `Recursion limit hit while evaluating expression ${expression} in project ${relative6(project.rootDir, project.validatedProjectPath)}`
95739
+ `Recursion limit hit while evaluating expression ${expression} in project ${relative5(project.rootDir, project.validatedProjectPath)}`
95740
95740
  );
95741
95741
  isFullyEvaluated = false;
95742
95742
  return value2;
@@ -95747,7 +95747,7 @@ function evaluate(expression, project) {
95747
95747
  return evaluateWithContext(property.text, depth + 1);
95748
95748
  } else {
95749
95749
  logger.debug(
95750
- `Unknown property ${propertyName} for project ${relative6(project.rootDir, project.validatedProjectPath)}`
95750
+ `Unknown property ${propertyName} for project ${relative5(project.rootDir, project.validatedProjectPath)}`
95751
95751
  );
95752
95752
  isFullyEvaluated = false;
95753
95753
  return "";
@@ -95899,8 +95899,8 @@ var DotnetCodeAwareVulnerabilityScanner = class _DotnetCodeAwareVulnerabilitySca
95899
95899
  deps: this.deps,
95900
95900
  timeoutInSeconds
95901
95901
  };
95902
- const inputFile = resolve10(tmpDir, "input.json");
95903
- const outputFile = resolve10(tmpDir, "output.json");
95902
+ const inputFile = resolve9(tmpDir, "input.json");
95903
+ const outputFile = resolve9(tmpDir, "output.json");
95904
95904
  await writeFile4(inputFile, JSON.stringify(options));
95905
95905
  const timeoutMs = Math.max(timeoutInSeconds * 1.5, timeoutInSeconds + 30) * 1e3;
95906
95906
  const result = await execNeverFail2(cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} ${getClassGraphAnalysisCliPath()} runDotnetDirectDependencyAnalysis -i ${inputFile} -o ${outputFile} --cocoa ${getCocoaPath()} --tree-sitter-c-sharp ${getTreeSitterCSharpPath()}`, void 0, { timeout: timeoutMs, killSignal: "SIGKILL" });
@@ -95938,8 +95938,8 @@ var DotnetCodeAwareVulnerabilityScanner = class _DotnetCodeAwareVulnerabilitySca
95938
95938
  vulnerableClasses: uniq2(vulnerabilityAccessPaths?.map((vulnFunction) => vulnFunction.slice(1).split(":")[0])),
95939
95939
  timeoutInSeconds
95940
95940
  };
95941
- const inputFile = resolve10(tmpDir, "input.json");
95942
- const outputFile = resolve10(tmpDir, "output.json");
95941
+ const inputFile = resolve9(tmpDir, "input.json");
95942
+ const outputFile = resolve9(tmpDir, "output.json");
95943
95943
  await writeFile4(inputFile, JSON.stringify(options));
95944
95944
  const timeoutMs = Math.max(timeoutInSeconds * 1.5, timeoutInSeconds + 30) * 1e3;
95945
95945
  const result = await execNeverFail2(cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} ${getClassGraphAnalysisCliPath()} runDotnetReachabilityAnalysis -i ${inputFile} -o ${outputFile} --cocoa ${getCocoaPath()} --tree-sitter-c-sharp ${getTreeSitterCSharpPath()}`, void 0, { timeout: timeoutMs, killSignal: "SIGKILL" });
@@ -95994,7 +95994,7 @@ var DotnetCodeAwareVulnerabilityScanner = class _DotnetCodeAwareVulnerabilitySca
95994
95994
  }
95995
95995
  };
95996
95996
  async function extractNugetPackage(nupkgFilePath, packageName, version3, tmpDir) {
95997
- const packageDir = resolve10(tmpDir, packageName.toLowerCase(), version3.toLowerCase());
95997
+ const packageDir = resolve9(tmpDir, packageName.toLowerCase(), version3.toLowerCase());
95998
95998
  if (existsSync6(packageDir)) {
95999
95999
  const dllMatcher = (0, import_picomatch.default)("**/*.dll");
96000
96000
  try {
@@ -96015,7 +96015,7 @@ async function extractNugetPackage(nupkgFilePath, packageName, version3, tmpDir)
96015
96015
  return;
96016
96016
  if (!allowedRoots.some((root3) => entry.entryName?.startsWith(root3)))
96017
96017
  return;
96018
- const entryPath = resolve10(packageDir, entry.entryName);
96018
+ const entryPath = resolve9(packageDir, entry.entryName);
96019
96019
  await mkdir5(dirname10(entryPath), { recursive: true });
96020
96020
  await writeFile4(entryPath, entry.getData());
96021
96021
  if (extname3(entryPath) === ".dll") {
@@ -96028,7 +96028,7 @@ async function extractNugetPackage(nupkgFilePath, packageName, version3, tmpDir)
96028
96028
  }
96029
96029
  }
96030
96030
  async function downloadAndExtractNugetPackage(packageName, version3, tmpDir) {
96031
- const packageFile = resolve10(tmpDir, `${packageName.toLowerCase()}.${version3.toLowerCase()}.nupkg`);
96031
+ const packageFile = resolve9(tmpDir, `${packageName.toLowerCase()}.${version3.toLowerCase()}.nupkg`);
96032
96032
  if (!existsSync6(packageFile)) {
96033
96033
  const packageUrl = getUrlForPackage(packageName, version3);
96034
96034
  const success = await downloadFile(packageUrl, packageFile);
@@ -96052,17 +96052,17 @@ function getNuGetLocalRepositoryPaths() {
96052
96052
  const home = process.env.HOME ?? "~";
96053
96053
  const repositories = [
96054
96054
  // Windows/Cross-platform global packages folder
96055
- resolve10(home, ".nuget", "packages"),
96055
+ resolve9(home, ".nuget", "packages"),
96056
96056
  // Windows NuGet cache
96057
- resolve10(home, "AppData", "Local", "NuGet", "v3-cache"),
96057
+ resolve9(home, "AppData", "Local", "NuGet", "v3-cache"),
96058
96058
  // macOS/Linux NuGet cache
96059
- resolve10(home, ".local", "share", "NuGet", "v3-cache")
96059
+ resolve9(home, ".local", "share", "NuGet", "v3-cache")
96060
96060
  ];
96061
96061
  return repositories.filter((repo) => existsSync6(repo));
96062
96062
  }
96063
96063
  async function findNuGetPackageInLocalRepo(repo, packageName, version3, tmpDir) {
96064
96064
  const dllMatcher = (0, import_picomatch.default)("**/*.dll");
96065
- const allFiles = await getFiles(resolve10(repo, packageName.toLowerCase(), version3.toLowerCase()));
96065
+ const allFiles = await getFiles(resolve9(repo, packageName.toLowerCase(), version3.toLowerCase()));
96066
96066
  const dllFiles = allFiles.filter((file) => dllMatcher(file));
96067
96067
  if (dllFiles.length > 0)
96068
96068
  return dllFiles;
@@ -96096,7 +96096,7 @@ var import_lodash8 = __toESM(require_lodash(), 1);
96096
96096
  var import_adm_zip2 = __toESM(require_adm_zip(), 1);
96097
96097
  import { existsSync as existsSync8 } from "node:fs";
96098
96098
  import { mkdir as mkdir6, readFile as readFile7, writeFile as writeFile5 } from "node:fs/promises";
96099
- import { basename as basename8, dirname as dirname11, resolve as resolve11 } from "node:path";
96099
+ import { basename as basename8, dirname as dirname11, resolve as resolve10 } from "node:path";
96100
96100
 
96101
96101
  // ../../node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/options.js
96102
96102
  var defaultOpts = {
@@ -97736,10 +97736,10 @@ function compareDocumentPosition(nodeA, nodeB) {
97736
97736
  function uniqueSort(nodes) {
97737
97737
  nodes = nodes.filter((node, i4, arr) => !arr.includes(node, i4 + 1));
97738
97738
  nodes.sort((a2, b) => {
97739
- const relative11 = compareDocumentPosition(a2, b);
97740
- if (relative11 & DocumentPosition.PRECEDING) {
97739
+ const relative10 = compareDocumentPosition(a2, b);
97740
+ if (relative10 & DocumentPosition.PRECEDING) {
97741
97741
  return -1;
97742
- } else if (relative11 & DocumentPosition.FOLLOWING) {
97742
+ } else if (relative10 & DocumentPosition.FOLLOWING) {
97743
97743
  return 1;
97744
97744
  }
97745
97745
  return 0;
@@ -109875,8 +109875,8 @@ var JavaCodeAwareVulnerabilityScanner = class _JavaCodeAwareVulnerabilityScanner
109875
109875
  deps: this.deps,
109876
109876
  timeoutInSeconds
109877
109877
  };
109878
- const inputFile = resolve11(tmpDir, "input.json");
109879
- const outputFile = resolve11(tmpDir, "output.json");
109878
+ const inputFile = resolve10(tmpDir, "input.json");
109879
+ const outputFile = resolve10(tmpDir, "output.json");
109880
109880
  await writeFile5(inputFile, JSON.stringify(options));
109881
109881
  const timeoutMs = Math.max(timeoutInSeconds * 1.5, timeoutInSeconds + 30) * 1e3;
109882
109882
  const result = await execNeverFail2(cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} ${getClassGraphAnalysisCliPath()} runJvmDirectDependencyAnalysis -i ${inputFile} -o ${outputFile} --javap-service ${getJavapServicePath()} --tree-sitter-java ${getTreeSitterJavaPath()} --tree-sitter-kotlin ${getTreeSitterKotlinPath()} --tree-sitter-scala ${getTreeSitterScalaPath()}`, void 0, { timeout: timeoutMs, killSignal: "SIGKILL" });
@@ -109914,8 +109914,8 @@ var JavaCodeAwareVulnerabilityScanner = class _JavaCodeAwareVulnerabilityScanner
109914
109914
  vulnerableClasses: uniq3(vulnerabilityAccessPaths?.map((vulnFunction) => vulnFunction.slice(1).split(":")[0])),
109915
109915
  timeoutInSeconds
109916
109916
  };
109917
- const inputFile = resolve11(tmpDir, "input.json");
109918
- const outputFile = resolve11(tmpDir, "output.json");
109917
+ const inputFile = resolve10(tmpDir, "input.json");
109918
+ const outputFile = resolve10(tmpDir, "output.json");
109919
109919
  await writeFile5(inputFile, JSON.stringify(options));
109920
109920
  const timeoutMs = Math.max(timeoutInSeconds * 1.5, timeoutInSeconds + 30) * 1e3;
109921
109921
  const result = await execNeverFail2(cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} ${getClassGraphAnalysisCliPath()} runJvmReachabilityAnalysis -i ${inputFile} -o ${outputFile} --javap-service ${getJavapServicePath()} --tree-sitter-java ${getTreeSitterJavaPath()} --tree-sitter-kotlin ${getTreeSitterKotlinPath()} --tree-sitter-scala ${getTreeSitterScalaPath()}`, void 0, { timeout: timeoutMs, killSignal: "SIGKILL" });
@@ -109981,7 +109981,7 @@ async function convertDependencyChain2(dependencyChain, tmpDir) {
109981
109981
  continue;
109982
109982
  const artifactPaths = await asyncMap(artifacts, async (artifact) => {
109983
109983
  const artifactUrl = `${packageUrl.endsWith("/") ? packageUrl.slice(0, -1) : packageUrl}/${artifact}`;
109984
- const artifactFile = resolve11(packageDir, artifact);
109984
+ const artifactFile = resolve10(packageDir, artifact);
109985
109985
  const success = await downloadFile(artifactUrl, artifactFile);
109986
109986
  return success ? artifactFile : void 0;
109987
109987
  }, 4);
@@ -110002,16 +110002,16 @@ async function convertDependencyChain2(dependencyChain, tmpDir) {
110002
110002
  function getLocalRepositoryPaths() {
110003
110003
  const home = process.env.HOME ?? "~";
110004
110004
  return [
110005
- { path: resolve11(home, ".m2", "repository"), type: "maven" },
110006
- { path: resolve11(home, ".gradle", "caches", "modules-2", "files-2.1"), type: "gradle" },
110007
- { path: resolve11(home, ".ivy2", "cache"), type: "sbt" }
110005
+ { path: resolve10(home, ".m2", "repository"), type: "maven" },
110006
+ { path: resolve10(home, ".gradle", "caches", "modules-2", "files-2.1"), type: "gradle" },
110007
+ { path: resolve10(home, ".ivy2", "cache"), type: "sbt" }
110008
110008
  ];
110009
110009
  }
110010
110010
  async function convertSocketArtifacts2(rootDir, artifacts, tmpDir) {
110011
110011
  const pomMatcher = (0, import_picomatch2.default)("{*-*.,}pom{.xml,}");
110012
110012
  const mavenInstalled = await isMavenInstalled();
110013
110013
  const localRepositories = getLocalRepositoryPaths().filter((repo) => existsSync8(repo.path));
110014
- const mavenLocalRepo = await findLocalRepository() ?? resolve11(process.env.HOME ?? "~", ".m2", "repository");
110014
+ const mavenLocalRepo = await findLocalRepository() ?? resolve10(process.env.HOME ?? "~", ".m2", "repository");
110015
110015
  async function resolveArtifact(groupId, artifactId, type, classifier, version3, pomFile) {
110016
110016
  for (const repo of localRepositories) {
110017
110017
  switch (repo.type) {
@@ -110022,13 +110022,13 @@ async function convertSocketArtifacts2(rootDir, artifacts, tmpDir) {
110022
110022
  break;
110023
110023
  }
110024
110024
  case "gradle": {
110025
- const artifactPath = (await getFiles(resolve11(repo.path, groupId, artifactId, version3))).find((file) => basename8(file) === `${artifactId}-${version3}${classifier ? `-${classifier}` : ""}.${type}`);
110025
+ const artifactPath = (await getFiles(resolve10(repo.path, groupId, artifactId, version3))).find((file) => basename8(file) === `${artifactId}-${version3}${classifier ? `-${classifier}` : ""}.${type}`);
110026
110026
  if (artifactPath)
110027
110027
  return artifactPath;
110028
110028
  break;
110029
110029
  }
110030
110030
  case "sbt": {
110031
- const artifactPath = (await getFiles(resolve11(repo.path, groupId, artifactId))).find((file) => basename8(file) === `${artifactId}-${version3}${classifier ? `-${classifier}` : ""}.${type}`);
110031
+ const artifactPath = (await getFiles(resolve10(repo.path, groupId, artifactId))).find((file) => basename8(file) === `${artifactId}-${version3}${classifier ? `-${classifier}` : ""}.${type}`);
110032
110032
  if (artifactPath)
110033
110033
  return artifactPath;
110034
110034
  break;
@@ -110037,8 +110037,8 @@ async function convertSocketArtifacts2(rootDir, artifacts, tmpDir) {
110037
110037
  }
110038
110038
  if (mavenInstalled && pomFile) {
110039
110039
  try {
110040
- const dependencyGetCmd = cmdt`mvn -f=${basename8(resolve11(rootDir, pomFile))} dependency:get -DgroupId=${groupId} -DartifactId=${artifactId} -Dpackaging=${type} -Dclassifier${classifier} -Dversion=${version3} -Dtransitive=false`;
110041
- await execNeverFail2(dependencyGetCmd, dirname11(resolve11(rootDir, pomFile)));
110040
+ const dependencyGetCmd = cmdt`mvn -f=${basename8(resolve10(rootDir, pomFile))} dependency:get -DgroupId=${groupId} -DartifactId=${artifactId} -Dpackaging=${type} -Dclassifier${classifier} -Dversion=${version3} -Dtransitive=false`;
110041
+ await execNeverFail2(dependencyGetCmd, dirname11(resolve10(rootDir, pomFile)));
110042
110042
  const mavenArtifact = getPathToArtifact(mavenLocalRepo, groupId, artifactId, type, classifier, version3);
110043
110043
  if (existsSync8(mavenArtifact))
110044
110044
  return mavenArtifact;
@@ -110071,7 +110071,7 @@ async function extractArchivesIfNeeded(tmpDir, apps, deps) {
110071
110071
  await asyncForEach(Object.values(allPackages), async (packageInfo) => {
110072
110072
  if (!packageInfo.bin?.length)
110073
110073
  return;
110074
- const extractDir = resolve11(tmpDir, randomUUID2());
110074
+ const extractDir = resolve10(tmpDir, randomUUID2());
110075
110075
  await mkdir6(extractDir, { recursive: true });
110076
110076
  let anySucceeded = false;
110077
110077
  const failedBinPaths = [];
@@ -110098,22 +110098,22 @@ import { join as join14 } from "path";
110098
110098
 
110099
110099
  // dist/whole-program-code-aware-vulnerability-scanner/js/dependency-preparation.js
110100
110100
  import { existsSync as existsSync9 } from "fs";
110101
- import { resolve as resolve13 } from "path";
110101
+ import { resolve as resolve12 } from "path";
110102
110102
 
110103
110103
  // dist/whole-program-code-aware-vulnerability-scanner/js/setup-npm-dependencies-for-analysis.js
110104
110104
  var import_lodash9 = __toESM(require_lodash(), 1);
110105
110105
  import { link, mkdir as mkdir7 } from "fs/promises";
110106
110106
  import { availableParallelism } from "os";
110107
- import { dirname as dirname12, join as join13, resolve as resolve12 } from "path";
110107
+ import { dirname as dirname12, join as join13, resolve as resolve11 } from "path";
110108
110108
  var { chunk } = import_lodash9.default;
110109
110109
  var ROOT_PACKAGE_METADATA_NAME = "UNIQUE_ROOT_PACKAGE_METADATA_NAME";
110110
110110
  async function setupDependenciesForAnalysis(subprojectDir, workspaceDir, directDependencies, artifactIdToArtifact) {
110111
110111
  return await withTmpDirectory("npm-packages", async (tmpDir) => {
110112
- const dirToInstallDependencies = resolve12(subprojectDir, "node_modules", ".jelly");
110112
+ const dirToInstallDependencies = resolve11(subprojectDir, "node_modules", ".jelly");
110113
110113
  const { installedPackages, failedPackages } = await downloadDependenciesToDir(Object.values(artifactIdToArtifact), tmpDir);
110114
110114
  const augmentedInstalledPackages = await extractDownloadedDependenciesToDir(dirToInstallDependencies, tmpDir, installedPackages);
110115
110115
  const packageMetadatas = convertToPackageMetadatas(workspaceDir, augmentedInstalledPackages, directDependencies, artifactIdToArtifact);
110116
- const packagePlacements = computePackagePlacements(packageMetadatas, resolve12(subprojectDir, "node_modules"));
110116
+ const packagePlacements = computePackagePlacements(packageMetadatas, resolve11(subprojectDir, "node_modules"));
110117
110117
  await hardlinkPackages(packagePlacements);
110118
110118
  return { failedPackages, installedPackages: installedPackages.map((dep) => dep.artifact) };
110119
110119
  });
@@ -110206,7 +110206,7 @@ async function downloadDependenciesToDir(dependenciesToInstall, tmpDir) {
110206
110206
  const npmPackRes = JSON.parse(stdout);
110207
110207
  installedPackages.push(...chunk2.map((dep, idx) => ({
110208
110208
  artifact: dep,
110209
- tarFileName: resolve12(tmpDir, npmPackRes[idx].filename)
110209
+ tarFileName: resolve11(tmpDir, npmPackRes[idx].filename)
110210
110210
  })));
110211
110211
  } catch (e) {
110212
110212
  logger.debug("Error downloading dependencies:", e.message);
@@ -110230,8 +110230,8 @@ async function downloadDependenciesToDir(dependenciesToInstall, tmpDir) {
110230
110230
  }
110231
110231
  async function extractDownloadedDependenciesToDir(dirToInstallDependencies, tmpDir, dependenciesToInstall) {
110232
110232
  return await asyncMap(dependenciesToInstall, async (dep) => {
110233
- const tgzPath = resolve12(tmpDir, dep.tarFileName);
110234
- const dependencyDir = resolve12(dirToInstallDependencies, `${dep.artifact.version ? `${dep.artifact.name}@${dep.artifact.version}` : dep.artifact.name}`.replace("/", "+"), "node_modules", dep.artifact.name);
110233
+ const tgzPath = resolve11(tmpDir, dep.tarFileName);
110234
+ const dependencyDir = resolve11(dirToInstallDependencies, `${dep.artifact.version ? `${dep.artifact.name}@${dep.artifact.version}` : dep.artifact.name}`.replace("/", "+"), "node_modules", dep.artifact.name);
110235
110235
  await mkdir7(dependencyDir, { recursive: true });
110236
110236
  await extract({ file: tgzPath, cwd: dependencyDir, stripComponents: 1 });
110237
110237
  return { artifact: dep.artifact, installedPath: dependencyDir };
@@ -110319,7 +110319,7 @@ function computePackagePlacements(packageMetadatas, nodeModulesDir) {
110319
110319
  for (const installName of installNames.get(metadataToPlace) ?? /* @__PURE__ */ new Set([metadataToPlace.name])) {
110320
110320
  if (installDir.endsWith(`/node_modules/${installName}`))
110321
110321
  continue;
110322
- const computedInstallDir = installDir.endsWith(nodeModulesDir) ? resolve12(installDir, installName) : resolve12(installDir, "node_modules", installName);
110322
+ const computedInstallDir = installDir.endsWith(nodeModulesDir) ? resolve11(installDir, installName) : resolve11(installDir, "node_modules", installName);
110323
110323
  if (!allInstallDirs.has(computedInstallDir)) {
110324
110324
  computedPlacementsForMetadata.add(computedInstallDir);
110325
110325
  allInstallDirs.add(computedInstallDir);
@@ -110417,7 +110417,7 @@ function tarjanAndCondensation(packageMetadatas) {
110417
110417
 
110418
110418
  // dist/whole-program-code-aware-vulnerability-scanner/js/dependency-preparation.js
110419
110419
  async function prepareNpmDependencies(subprojectDir, workspaceDir, artifactIdToArtifact, directDependencies, packageNamesToInstall) {
110420
- if (existsSync9(resolve13(subprojectDir, "node_modules")))
110420
+ if (existsSync9(resolve12(subprojectDir, "node_modules")))
110421
110421
  return { failedPackages: [], installedPackages: [] };
110422
110422
  const artifactToOriginal = /* @__PURE__ */ new Map();
110423
110423
  const transitiveDependenciesToInstall = Object.fromEntries(Object.entries(artifactIdToArtifact).filter(([_, dep]) => packageNamesToInstall.includes(getPackageName(dep))).map(([depId, dep]) => {
@@ -110503,7 +110503,7 @@ function computePackagesOnVulnPath(vulnerabilities, { includeLeafPackages = fals
110503
110503
  var import_lodash10 = __toESM(require_lodash(), 1);
110504
110504
  import assert4 from "assert";
110505
110505
  import { readFile as readFile8, realpath as realpath2, rm as rm2, writeFile as writeFile6 } from "fs/promises";
110506
- import { relative as relative7, resolve as resolve14 } from "path";
110506
+ import { relative as relative6, resolve as resolve13 } from "path";
110507
110507
  var { map: map2, uniq: uniq4 } = import_lodash10.default;
110508
110508
  var PRINT_JELLY_COMMAND = false;
110509
110509
  async function runJellyAnalysis(mainProjectRoot, projectRoot, jellyOptions, reachabilityAnalysisOptions, timeoutInSeconds, vulnerabilities, experiment) {
@@ -110519,11 +110519,11 @@ async function runJellyAnalysis(mainProjectRoot, projectRoot, jellyOptions, reac
110519
110519
  // Replace > with /**> to ensure Jelly also matches call <PKG/dist/index.js>.foo for pattern <PKG>.foo
110520
110520
  };
110521
110521
  });
110522
- const vulnerabilitiesFile = resolve14(tmpFolder, "vulnerabilities.json");
110523
- const diagnosticsFile = resolve14(tmpFolder, "diagnostics.json");
110524
- const callStackFile = resolve14(tmpFolder, "call-stacks.json");
110525
- const affectedPackagesFile = resolve14(tmpFolder, "affected-packages.json");
110526
- const logFile = reachabilityAnalysisOptions.analysisLogFile ?? (reachabilityAnalysisOptions.printLogFile && resolve14(projectRoot, "js-analysis.log"));
110522
+ const vulnerabilitiesFile = resolve13(tmpFolder, "vulnerabilities.json");
110523
+ const diagnosticsFile = resolve13(tmpFolder, "diagnostics.json");
110524
+ const callStackFile = resolve13(tmpFolder, "call-stacks.json");
110525
+ const affectedPackagesFile = resolve13(tmpFolder, "affected-packages.json");
110526
+ const logFile = reachabilityAnalysisOptions.analysisLogFile ?? (reachabilityAnalysisOptions.printLogFile && resolve13(projectRoot, "js-analysis.log"));
110527
110527
  await writeFile6(vulnerabilitiesFile, JSON.stringify(vulnerabilitiesInJellyFormat));
110528
110528
  const useLazy = experiment === "LAZY_EXPERIMENT" || reachabilityAnalysisOptions.lazy;
110529
110529
  const { includePackages } = jellyOptions;
@@ -110587,7 +110587,7 @@ async function runJellyPhantomDependencyAnalysis(projectRoot, options) {
110587
110587
  const tmpFolder = await createTmpDirectory("jelly-analysis");
110588
110588
  try {
110589
110589
  const jellyExecutable = ToolPathResolver.jellyPath;
110590
- const reachablePackagesFile = resolve14(tmpFolder, "reachable-packages.json");
110590
+ const reachablePackagesFile = resolve13(tmpFolder, "reachable-packages.json");
110591
110591
  const jellyCmd = cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} --max-old-space-size=${options.memoryLimitInMB}
110592
110592
  ${jellyExecutable} --basedir ${projectRoot} --modules-only --ignore-dependencies
110593
110593
  --reachable-json ${reachablePackagesFile} ${projectRoot}`;
@@ -110604,7 +110604,7 @@ async function runJellyImportReachabilityAnalysis(mainProjectRoot, projectRoot,
110604
110604
  const tmpFolder = await createTmpDirectory("jelly-analysis");
110605
110605
  try {
110606
110606
  const includePackages = computePackagesOnVulnPath(vulnerabilities, { includeLeafPackages: true });
110607
- const reachableModulesFile = resolve14(tmpFolder, "reachable-modules.json");
110607
+ const reachableModulesFile = resolve13(tmpFolder, "reachable-modules.json");
110608
110608
  const jellyCmd = cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} --max-old-space-size=${options.memoryLimitInMB}
110609
110609
  ${ToolPathResolver.jellyPath} --basedir ${mainProjectRoot} --modules-only --reparse
110610
110610
  ${includePackages.length ? ["--include-packages", ...includePackages] : ["--ignore-dependencies"]}
@@ -110622,7 +110622,7 @@ async function runJellyImportReachabilityAnalysis(mainProjectRoot, projectRoot,
110622
110622
  }
110623
110623
  function getExcludes(mainProjectRoot, projectRoot, options) {
110624
110624
  if (options.excludeDirs?.length) {
110625
- const excludeDirsRelativeToProjectRoot = options.excludeDirs.map((d) => relative7(projectRoot, resolve14(mainProjectRoot, d)));
110625
+ const excludeDirsRelativeToProjectRoot = options.excludeDirs.map((d) => relative6(projectRoot, resolve13(mainProjectRoot, d)));
110626
110626
  const excludeDirsRelativeToProjectRootWithWildcards = excludeDirsRelativeToProjectRoot.map((d) => `${d}/**`);
110627
110627
  return [...excludeDirsRelativeToProjectRoot, ...excludeDirsRelativeToProjectRootWithWildcards];
110628
110628
  }
@@ -110632,7 +110632,7 @@ function relativizeSourceLocations(projectDir, paths) {
110632
110632
  ...paths,
110633
110633
  stacks: paths.stacks.map((stack) => stack.map((s2) => ({
110634
110634
  ...s2,
110635
- sourceLocation: { ...s2.sourceLocation, filename: relative7(projectDir, s2.sourceLocation.filename) }
110635
+ sourceLocation: { ...s2.sourceLocation, filename: relative6(projectDir, s2.sourceLocation.filename) }
110636
110636
  })))
110637
110637
  };
110638
110638
  }
@@ -110817,7 +110817,7 @@ import assert5 from "assert";
110817
110817
  import { existsSync as existsSync10, createReadStream as createReadStream2, createWriteStream as createWriteStream3 } from "fs";
110818
110818
  import { readFile as readFile9, rm as rm4, cp as cp6 } from "fs/promises";
110819
110819
  import zlib2 from "zlib";
110820
- import { join as join15, resolve as resolve15, sep as sep3 } from "path";
110820
+ import { join as join15, resolve as resolve14, sep as sep3 } from "path";
110821
110821
 
110822
110822
  // dist/whole-program-code-aware-vulnerability-scanner/go/heuristics.js
110823
110823
  var GoanaHeuristics = {
@@ -110924,7 +110924,7 @@ ${stderr}`);
110924
110924
  const projectDir = await createTmpDirectory("go-run-on-dependency-chain-");
110925
110925
  try {
110926
110926
  await cp6(Dir, projectDir, { recursive: true });
110927
- const projGoMod = resolve15(projectDir, "go.mod");
110927
+ const projGoMod = resolve14(projectDir, "go.mod");
110928
110928
  if (!existsSync10(projGoMod))
110929
110929
  await cp6(GoMod, projGoMod);
110930
110930
  await exec2(cmdt`chmod --recursive +w ${projectDir}`);
@@ -110993,7 +110993,7 @@ ${stderr}`);
110993
110993
  var import_lodash12 = __toESM(require_lodash(), 1);
110994
110994
  import { existsSync as existsSync11 } from "node:fs";
110995
110995
  import { readFile as readFile10, writeFile as writeFile8 } from "node:fs/promises";
110996
- import { basename as basename10, dirname as dirname14, resolve as resolve16 } from "node:path";
110996
+ import { basename as basename10, dirname as dirname14, resolve as resolve15 } from "node:path";
110997
110997
 
110998
110998
  // dist/whole-program-code-aware-vulnerability-scanner/rust/heuristics.js
110999
110999
  var RusticaHeuristics = {
@@ -111087,8 +111087,8 @@ var RustCodeAwareVulnerabilityScanner = class _RustCodeAwareVulnerabilityScanner
111087
111087
  artifactNameToId.set(artifact.name, artifact.id);
111088
111088
  }
111089
111089
  }
111090
- const cargoTomlRelativePath = resolve16(workspacePath, "Cargo.toml");
111091
- const cargoTomlPath = resolve16(subprojectDir, cargoTomlRelativePath);
111090
+ const cargoTomlRelativePath = resolve15(workspacePath, "Cargo.toml");
111091
+ const cargoTomlPath = resolve15(subprojectDir, cargoTomlRelativePath);
111092
111092
  let appCrateName;
111093
111093
  const appSrc = [];
111094
111094
  const dependencies = {};
@@ -111105,7 +111105,7 @@ var RustCodeAwareVulnerabilityScanner = class _RustCodeAwareVulnerabilityScanner
111105
111105
  }
111106
111106
  }
111107
111107
  } else {
111108
- appSrc.push(resolve16(subprojectDir, workspacePath, "src"));
111108
+ appSrc.push(resolve15(subprojectDir, workspacePath, "src"));
111109
111109
  appCrateName = randomUUID3();
111110
111110
  const directDepArtifacts = cargoTomlToArtifacts.get(cargoTomlRelativePath) ?? [];
111111
111111
  for (const artifact of directDepArtifacts) {
@@ -111203,7 +111203,7 @@ var RustCodeAwareVulnerabilityScanner = class _RustCodeAwareVulnerabilityScanner
111203
111203
  });
111204
111204
  const appDependencies = {};
111205
111205
  if (rustDependencyChain[0].src && rustDependencyChain[0].src.length > 0) {
111206
- const appCargoTomlPath = resolve16(rustDependencyChain[0].src[0], "..", "Cargo.toml");
111206
+ const appCargoTomlPath = resolve15(rustDependencyChain[0].src[0], "..", "Cargo.toml");
111207
111207
  if (existsSync11(appCargoTomlPath)) {
111208
111208
  const cargoTomlDeps = await extractDependenciesFromCargoToml(appCargoTomlPath);
111209
111209
  for (const [packageName, names] of cargoTomlDeps.entries()) {
@@ -111230,7 +111230,7 @@ var RustCodeAwareVulnerabilityScanner = class _RustCodeAwareVulnerabilityScanner
111230
111230
  depIdToPurl.set(packageId, getCargoPurl(dep.packageName, dep.version ?? void 0));
111231
111231
  const dependencies = {};
111232
111232
  if (dep.src && dep.src.length > 0) {
111233
- const depCargoTomlPath = resolve16(dep.src[0], "..", "Cargo.toml");
111233
+ const depCargoTomlPath = resolve15(dep.src[0], "..", "Cargo.toml");
111234
111234
  if (existsSync11(depCargoTomlPath)) {
111235
111235
  const cargoTomlDeps = await extractDependenciesFromCargoToml(depCargoTomlPath);
111236
111236
  for (const [packageName, names] of cargoTomlDeps.entries()) {
@@ -111269,8 +111269,8 @@ var RustCodeAwareVulnerabilityScanner = class _RustCodeAwareVulnerabilityScanner
111269
111269
  deps: this.deps,
111270
111270
  timeoutInSeconds
111271
111271
  };
111272
- const inputFile = resolve16(tmpDir, "input.json");
111273
- const outputFile = resolve16(tmpDir, "output.json");
111272
+ const inputFile = resolve15(tmpDir, "input.json");
111273
+ const outputFile = resolve15(tmpDir, "output.json");
111274
111274
  await writeFile8(inputFile, JSON.stringify(options));
111275
111275
  const timeoutMs = Math.max(timeoutInSeconds * 1.5, timeoutInSeconds + 30) * 1e3;
111276
111276
  const result = await execNeverFail2(cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} ${getClassGraphAnalysisCliPath()} runRustDirectDependencyAnalysis -i ${inputFile} -o ${outputFile} --tree-sitter-rust ${getTreeSitterRustPath()}`, void 0, { timeout: timeoutMs, killSignal: "SIGKILL" });
@@ -111305,8 +111305,8 @@ var RustCodeAwareVulnerabilityScanner = class _RustCodeAwareVulnerabilityScanner
111305
111305
  vulnerableClasses: uniq6(vulnerabilityAccessPaths?.map((vulnFunction) => vulnFunction.slice(1).split(": ")[0])),
111306
111306
  timeoutInSeconds: effectiveTimeout
111307
111307
  };
111308
- const inputFile = resolve16(tmpDir, "input.json");
111309
- const outputFile = resolve16(tmpDir, "output.json");
111308
+ const inputFile = resolve15(tmpDir, "input.json");
111309
+ const outputFile = resolve15(tmpDir, "output.json");
111310
111310
  await writeFile8(inputFile, JSON.stringify(options));
111311
111311
  const timeoutMs = Math.max(effectiveTimeout * 1.5, effectiveTimeout + 30) * 1e3;
111312
111312
  const result = await execNeverFail2(cmdt`${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} ${getClassGraphAnalysisCliPath()} runRustReachabilityAnalysis -i ${inputFile} -o ${outputFile} --tree-sitter-rust ${getTreeSitterRustPath()}`, void 0, { timeout: timeoutMs, killSignal: "SIGKILL" });
@@ -111383,14 +111383,14 @@ async function convertDependencyChain3(dependencyChain, tmpDir) {
111383
111383
  }
111384
111384
  function getCargoLocalRepositoryPaths() {
111385
111385
  const home = process.env.HOME ?? "~";
111386
- const cargoHome = process.env.CARGO_HOME ?? resolve16(home, ".cargo");
111386
+ const cargoHome = process.env.CARGO_HOME ?? resolve15(home, ".cargo");
111387
111387
  const repositories = [
111388
111388
  // Cargo registry source (extracted crates)
111389
- { path: resolve16(cargoHome, "registry", "src"), type: "src" },
111389
+ { path: resolve15(cargoHome, "registry", "src"), type: "src" },
111390
111390
  // Cargo registry cache (downloaded .crate files)
111391
- { path: resolve16(cargoHome, "registry", "cache"), type: "crate" },
111391
+ { path: resolve15(cargoHome, "registry", "cache"), type: "crate" },
111392
111392
  // Cargo git dependencies
111393
- { path: resolve16(cargoHome, "git", "checkouts"), type: "git" }
111393
+ { path: resolve15(cargoHome, "git", "checkouts"), type: "git" }
111394
111394
  ];
111395
111395
  return repositories.filter((repo) => existsSync11(repo.path));
111396
111396
  }
@@ -111431,10 +111431,10 @@ async function findCargoPackageInLocalRepo(repo, packageName, version3, tmpDir)
111431
111431
  return void 0;
111432
111432
  }
111433
111433
  async function extractCargoCrate(crateFilePath, packageName, version3, tmpDir) {
111434
- const packageDir = resolve16(tmpDir, `${packageName}-${version3}`);
111434
+ const packageDir = resolve15(tmpDir, `${packageName}-${version3}`);
111435
111435
  if (existsSync11(packageDir)) {
111436
111436
  try {
111437
- const cargoTomlPath = resolve16(packageDir, "Cargo.toml");
111437
+ const cargoTomlPath = resolve15(packageDir, "Cargo.toml");
111438
111438
  if (existsSync11(cargoTomlPath)) {
111439
111439
  const depCrateInfo = await getCrateInfo(cargoTomlPath);
111440
111440
  return [depCrateInfo.lib];
@@ -111445,7 +111445,7 @@ async function extractCargoCrate(crateFilePath, packageName, version3, tmpDir) {
111445
111445
  }
111446
111446
  try {
111447
111447
  await execAndLogOnFailure2(["tar", "-xzf", crateFilePath], tmpDir);
111448
- const cargoTomlPath = resolve16(packageDir, "Cargo.toml");
111448
+ const cargoTomlPath = resolve15(packageDir, "Cargo.toml");
111449
111449
  const depCrateInfo = await getCrateInfo(cargoTomlPath);
111450
111450
  return [depCrateInfo.lib];
111451
111451
  } catch (e) {
@@ -111454,7 +111454,7 @@ async function extractCargoCrate(crateFilePath, packageName, version3, tmpDir) {
111454
111454
  }
111455
111455
  }
111456
111456
  async function downloadAndExtractCargoCrate(packageName, version3, tmpDir) {
111457
- const packageFile = resolve16(tmpDir, `${packageName}-${version3}.crate`);
111457
+ const packageFile = resolve15(tmpDir, `${packageName}-${version3}.crate`);
111458
111458
  if (!existsSync11(packageFile)) {
111459
111459
  const packageUrl = getUrlForCrate(packageName, version3);
111460
111460
  const success = await downloadFile(packageUrl, packageFile);
@@ -111487,7 +111487,7 @@ async function convertSocketArtifacts3(artifacts, tmpDir, artifactNameToId) {
111487
111487
  depIdToPurl.set(artifact.id, getPurlFromSocketFactArtifact(artifact));
111488
111488
  const dependencies = {};
111489
111489
  if (src && src.length > 0) {
111490
- const cargoTomlPath = resolve16(dirname14(src[0]), "Cargo.toml");
111490
+ const cargoTomlPath = resolve15(dirname14(src[0]), "Cargo.toml");
111491
111491
  if (existsSync11(cargoTomlPath)) {
111492
111492
  const cargoTomlDeps = await extractDependenciesFromCargoToml(cargoTomlPath);
111493
111493
  for (const [packageName, names] of cargoTomlDeps.entries()) {
@@ -111561,7 +111561,7 @@ async function getCrateInfo(cargoTomlPath) {
111561
111561
  const content = await readFile10(cargoTomlPath, "utf-8");
111562
111562
  const parsed = parseTOML2(content);
111563
111563
  if (!parsed) {
111564
- lib = resolve16(dirname14(cargoTomlPath), "src");
111564
+ lib = resolve15(dirname14(cargoTomlPath), "src");
111565
111565
  return { name: name2, version: version3, lib, examples, tests };
111566
111566
  }
111567
111567
  const packageSection = getNestedValue(parsed, "package");
@@ -111579,7 +111579,7 @@ async function getCrateInfo(cargoTomlPath) {
111579
111579
  if (libSection instanceof TOMLTable) {
111580
111580
  const libPath = libSection.path;
111581
111581
  if (libPath instanceof TOMLScalar && typeof libPath[value] === "string") {
111582
- lib = dirname14(resolve16(cargoTomlDir, libPath[value]));
111582
+ lib = dirname14(resolve15(cargoTomlDir, libPath[value]));
111583
111583
  }
111584
111584
  }
111585
111585
  const exampleSection = parsed.example;
@@ -111589,7 +111589,7 @@ async function getCrateInfo(cargoTomlPath) {
111589
111589
  if (example instanceof TOMLTable) {
111590
111590
  const examplePath = example.path;
111591
111591
  if (examplePath instanceof TOMLScalar && typeof examplePath[value] === "string") {
111592
- examples?.push(dirname14(resolve16(cargoTomlDir, examplePath[value])));
111592
+ examples?.push(dirname14(resolve15(cargoTomlDir, examplePath[value])));
111593
111593
  }
111594
111594
  }
111595
111595
  });
@@ -111601,12 +111601,12 @@ async function getCrateInfo(cargoTomlPath) {
111601
111601
  if (test3 instanceof TOMLTable) {
111602
111602
  const testPath = test3.path;
111603
111603
  if (testPath instanceof TOMLScalar && typeof testPath[value] === "string") {
111604
- tests?.push(dirname14(resolve16(cargoTomlDir, testPath[value])));
111604
+ tests?.push(dirname14(resolve15(cargoTomlDir, testPath[value])));
111605
111605
  }
111606
111606
  }
111607
111607
  });
111608
111608
  }
111609
- lib ??= resolve16(dirname14(cargoTomlPath), "src");
111609
+ lib ??= resolve15(dirname14(cargoTomlPath), "src");
111610
111610
  return { name: name2, version: version3, lib, examples, tests };
111611
111611
  }
111612
111612
 
@@ -111697,7 +111697,7 @@ async function runWithJSHeuristics(cb) {
111697
111697
  return result;
111698
111698
  }
111699
111699
  function getCurrentCommitHash(project) {
111700
- const headShaPath = resolve17(COANA_REPOS_PATH(), project, "HEAD_SHA");
111700
+ const headShaPath = resolve16(COANA_REPOS_PATH(), project, "HEAD_SHA");
111701
111701
  try {
111702
111702
  const content = readFileSync3(headShaPath, "utf-8").trim();
111703
111703
  const colonIndex = content.indexOf(":");
@@ -111984,7 +111984,7 @@ ${msg}`;
111984
111984
  }
111985
111985
  // public for testing only
111986
111986
  async tryUsingPreinstalledVirtualEnv(packages) {
111987
- const preinstallVirtualEnvPath = resolve18(this.projectDir, ".venv");
111987
+ const preinstallVirtualEnvPath = resolve17(this.projectDir, ".venv");
111988
111988
  if (!existsSync12(preinstallVirtualEnvPath))
111989
111989
  return false;
111990
111990
  logger.info(`Checking preinstalled virtual environment at ${preinstallVirtualEnvPath}`);
@@ -112249,7 +112249,7 @@ async function processVenv(venvDir) {
112249
112249
  const nodeToPackage = /* @__PURE__ */ new Map();
112250
112250
  const root3 = mkTrie();
112251
112251
  await asyncForEach(Object.entries(installedPackages), async ([packageName, { distInfoDir }]) => {
112252
- const record = resolve19(venvDir, distInfoDir, "RECORD");
112252
+ const record = resolve18(venvDir, distInfoDir, "RECORD");
112253
112253
  if (!await exists(record))
112254
112254
  return;
112255
112255
  const files = (await fs11.readFile(record, "utf-8")).split("\n").map((line) => line.split(",", 1)[0]);
@@ -112348,7 +112348,7 @@ var PipAnalyzer = class {
112348
112348
  } else if (workspaceData.type === "socket") {
112349
112349
  declaredDeps = new Set(workspaceData.data.artifacts.map((a2) => normalizePackageName(a2.name ?? "")));
112350
112350
  }
112351
- return (await findDirectDependencies(resolve20(subprojectDir, workspacePath), resolve20(info.virtualEnvFolder, ".venv"))).filter((d) => !declaredDeps.has(d));
112351
+ return (await findDirectDependencies(resolve19(subprojectDir, workspacePath), resolve19(info.virtualEnvFolder, ".venv"))).filter((d) => !declaredDeps.has(d));
112352
112352
  }
112353
112353
  async runReachabilityAnalysis(vulns, analysisMetadataCollector, statusUpdater) {
112354
112354
  const wrappedCollector = (metadata) => {
@@ -112450,7 +112450,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112450
112450
  let analysisNumber = 0;
112451
112451
  const newAnalysisRunListener = () => statusUpdater?.(`Static analysis run number ${++analysisNumber} in progress...`);
112452
112452
  const ecosystem = vulnerabilities[0].ecosystem ?? "NPM";
112453
- const expHeuristicName = process.env.ONLY_APPLICATION_SOURCE_FILES_FOR_KNOWN_LANGUAGES === "true" ? "ONLY_APPLICATION_SOURCE_FILES_FOR_KNOWN_LANGUAGES" : await getExperimentName(relative8(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, ecosystem, COANA_REPORT_ID, apiKey);
112453
+ const expHeuristicName = process.env.ONLY_APPLICATION_SOURCE_FILES_FOR_KNOWN_LANGUAGES === "true" ? "ONLY_APPLICATION_SOURCE_FILES_FOR_KNOWN_LANGUAGES" : await getExperimentName(relative7(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, ecosystem, COANA_REPORT_ID, apiKey);
112454
112454
  let bucketsToAnalyze = state.otherAnalysisOptions.lightweightReachability ? void 0 : await getBucketsBasedOnPreviousResults();
112455
112455
  let useExperimentalHeuristic = Boolean(expHeuristicName && bucketsToAnalyze);
112456
112456
  if (!bucketsToAnalyze)
@@ -112485,7 +112485,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112485
112485
  }
112486
112486
  async function analyzeWithExperimentalHeuristic(buckets) {
112487
112487
  try {
112488
- const previousAnalysisResults = await getPreviousAnalysisResults(relative8(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, COANA_REPORT_ID, apiKey);
112488
+ const previousAnalysisResults = await getPreviousAnalysisResults(relative7(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, COANA_REPORT_ID, apiKey);
112489
112489
  if (!expHeuristicName || !previousAnalysisResults)
112490
112490
  return;
112491
112491
  const experimentalRes = await analyzeAndAugmentVulns(buckets, void 0, true, expHeuristicName);
@@ -112520,7 +112520,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112520
112520
  } catch (e) {
112521
112521
  logger.warn("Error while running experimental heuristic - scan will continue in normal mode.", e);
112522
112522
  sendWarningToDashboard("Error while running experimental heuristic", {
112523
- subprojectPath: relative8(state.rootWorkingDir, state.subprojectDir) || ".",
112523
+ subprojectPath: relative7(state.rootWorkingDir, state.subprojectDir) || ".",
112524
112524
  workspacePath: state.workspacePath,
112525
112525
  errorMessage: e.message,
112526
112526
  errorStack: e.stack
@@ -112531,7 +112531,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112531
112531
  async function getBucketsBasedOnPreviousResults() {
112532
112532
  if (state.otherAnalysisOptions.skipCacheUsage || !SOCKET_MODE && (!COANA_REPORT_ID || apiKey.type === "missing"))
112533
112533
  return void 0;
112534
- const bucketsFromLastAnalysisAndCliVersion = await dashboardAPI.getBucketsForLastReport(relative8(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, vulnerabilities[0].ecosystem ?? "NPM", COANA_REPORT_ID, apiKey);
112534
+ const bucketsFromLastAnalysisAndCliVersion = await dashboardAPI.getBucketsForLastReport(relative7(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, vulnerabilities[0].ecosystem ?? "NPM", COANA_REPORT_ID, apiKey);
112535
112535
  if (!bucketsFromLastAnalysisAndCliVersion)
112536
112536
  return void 0;
112537
112537
  const { cliVersion: cliVersion2, buckets: bucketsFromLastAnalysis } = bucketsFromLastAnalysisAndCliVersion;
@@ -112546,7 +112546,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112546
112546
  const duplicateUrls = findDuplicateVulnsInBuckets(bucketsFromLastAnalysis);
112547
112547
  if (duplicateUrls.length > 0) {
112548
112548
  sendWarningToDashboard(`Assertion error: Detected bucket(s) with non-unique vulnerability URLs. Non-unique URLs: ${duplicateUrls.join(" ")}.`, {
112549
- subprojectPath: relative8(state.rootWorkingDir, state.subprojectDir) || ".",
112549
+ subprojectPath: relative7(state.rootWorkingDir, state.subprojectDir) || ".",
112550
112550
  workspacePath: state.workspacePath
112551
112551
  }, bucketsFromLastAnalysisAndCliVersion, COANA_REPORT_ID, apiKey);
112552
112552
  return void 0;
@@ -112687,7 +112687,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112687
112687
  const oldMd = oldAnalysisMetadata.find((oldMd2) => newMd.vulnUrls.some((vulnUrl) => oldMd2.vulnUrls.includes(vulnUrl)));
112688
112688
  if (!oldMd) {
112689
112689
  await sendWarningToDashboard("Could not find corresponding analysis metadata to compare time regressions with", {
112690
- subprojectPath: relative8(state.rootWorkingDir, state.subprojectDir) || ".",
112690
+ subprojectPath: relative7(state.rootWorkingDir, state.subprojectDir) || ".",
112691
112691
  workspacePath: state.workspacePath
112692
112692
  }, void 0, COANA_REPORT_ID, apiKey);
112693
112693
  continue;
@@ -112713,7 +112713,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112713
112713
  }
112714
112714
  if (regressions.length === 0)
112715
112715
  return;
112716
- await sendRegressionsToDashboard(regressions, relative8(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, COANA_REPORT_ID, apiKey);
112716
+ await sendRegressionsToDashboard(regressions, relative7(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, COANA_REPORT_ID, apiKey);
112717
112717
  }
112718
112718
  async function sendReachabilityRegressionsToDashboard(heuristicName, experimentName, origRes, experimentRes) {
112719
112719
  const regressions = Object.entries(origRes).filter(([vulnUrl, oRes]) => experimentRes[vulnUrl] && oRes.reachability !== experimentRes[vulnUrl].reachability).map(([vulnUrl, originalResult]) => ({
@@ -112725,7 +112725,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
112725
112725
  originalResult,
112726
112726
  experimentResult: experimentRes[vulnUrl]
112727
112727
  }));
112728
- await sendRegressionsToDashboard(regressions, relative8(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, COANA_REPORT_ID, apiKey);
112728
+ await sendRegressionsToDashboard(regressions, relative7(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, COANA_REPORT_ID, apiKey);
112729
112729
  }
112730
112730
  }
112731
112731
  function getHeuristicFromName(state, heuristicName, ecosystem) {
@@ -112962,7 +112962,7 @@ var import_lodash19 = __toESM(require_lodash(), 1);
112962
112962
  var import_picomatch4 = __toESM(require_picomatch2(), 1);
112963
112963
  import { existsSync as existsSync13 } from "fs";
112964
112964
  import { rm as rm6 } from "fs/promises";
112965
- import { resolve as resolve21 } from "path";
112965
+ import { resolve as resolve20 } from "path";
112966
112966
 
112967
112967
  // ../web-compat-utils/src/pluralize.ts
112968
112968
  function pluralize(count, word) {
@@ -112994,7 +112994,7 @@ var NpmAnalyzer = class {
112994
112994
  }
112995
112995
  async runReachabilityAnalysis(vulns, analysisMetadataCollector, statusUpdater) {
112996
112996
  const heuristicsInOrder = this.state.otherAnalysisOptions.lightweightReachability ? [heuristics.IGNORE_DEPENDENCIES_AND_MAX_ROUNDS_3] : [heuristics.ONLY_VULN_PATH_PACKAGES_EXCEPT_VULNERABLE_PACKAGE];
112997
- const nodeModulesAlreadyExisted = existsSync13(resolve21(this.state.subprojectDir, "node_modules"));
112997
+ const nodeModulesAlreadyExisted = existsSync13(resolve20(this.state.subprojectDir, "node_modules"));
112998
112998
  this.preinstalledDependencies = nodeModulesAlreadyExisted ? "YES" : "NO";
112999
112999
  const wrappedCollector = (metadata) => {
113000
113000
  const jellyDiagnostics = metadata.analysisDiagnostics;
@@ -113087,10 +113087,10 @@ var NpmAnalyzer = class {
113087
113087
  return res;
113088
113088
  } finally {
113089
113089
  if (!nodeModulesAlreadyExisted) {
113090
- if (existsSync13(resolve21(this.state.subprojectDir, "node_modules")))
113091
- await rm6(resolve21(this.state.subprojectDir, "node_modules"), { recursive: true });
113092
- if (existsSync13(resolve21(this.projectDir, "node_modules")))
113093
- await rm6(resolve21(this.projectDir, "node_modules"), { recursive: true });
113090
+ if (existsSync13(resolve20(this.state.subprojectDir, "node_modules")))
113091
+ await rm6(resolve20(this.state.subprojectDir, "node_modules"), { recursive: true });
113092
+ if (existsSync13(resolve20(this.projectDir, "node_modules")))
113093
+ await rm6(resolve20(this.projectDir, "node_modules"), { recursive: true });
113094
113094
  }
113095
113095
  }
113096
113096
  }
@@ -113177,7 +113177,7 @@ var NugetAnalyzer = class {
113177
113177
  // dist/analyzers/ruby-analyzer.js
113178
113178
  var import_lodash21 = __toESM(require_lodash(), 1);
113179
113179
  import { existsSync as existsSync15 } from "fs";
113180
- import { resolve as resolve22 } from "path";
113180
+ import { resolve as resolve21 } from "path";
113181
113181
 
113182
113182
  // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/bind.js
113183
113183
  function bind2(fn, thisArg) {
@@ -114416,10 +114416,10 @@ utils_default2.inherits(CanceledError3, AxiosError_default2, {
114416
114416
  var CanceledError_default2 = CanceledError3;
114417
114417
 
114418
114418
  // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/settle.js
114419
- function settle2(resolve24, reject, response) {
114419
+ function settle2(resolve23, reject, response) {
114420
114420
  const validateStatus3 = response.config.validateStatus;
114421
114421
  if (!response.status || !validateStatus3 || validateStatus3(response.status)) {
114422
- resolve24(response);
114422
+ resolve23(response);
114423
114423
  } else {
114424
114424
  reject(new AxiosError_default2(
114425
114425
  "Request failed with status code " + response.status,
@@ -114920,7 +114920,7 @@ function setProxy2(options, configProxy, location) {
114920
114920
  }
114921
114921
  var isHttpAdapterSupported2 = typeof process !== "undefined" && utils_default2.kindOf(process) === "process";
114922
114922
  var wrapAsync2 = (asyncExecutor) => {
114923
- return new Promise((resolve24, reject) => {
114923
+ return new Promise((resolve23, reject) => {
114924
114924
  let onDone;
114925
114925
  let isDone;
114926
114926
  const done = (value2, isRejected) => {
@@ -114930,7 +114930,7 @@ var wrapAsync2 = (asyncExecutor) => {
114930
114930
  };
114931
114931
  const _resolve = (value2) => {
114932
114932
  done(value2);
114933
- resolve24(value2);
114933
+ resolve23(value2);
114934
114934
  };
114935
114935
  const _reject = (reason) => {
114936
114936
  done(reason, true);
@@ -114950,7 +114950,7 @@ var resolveFamily2 = ({ address, family }) => {
114950
114950
  };
114951
114951
  var buildAddressEntry2 = (address, family) => resolveFamily2(utils_default2.isObject(address) ? address : { address, family });
114952
114952
  var http_default2 = isHttpAdapterSupported2 && function httpAdapter2(config2) {
114953
- return wrapAsync2(async function dispatchHttpRequest(resolve24, reject, onDone) {
114953
+ return wrapAsync2(async function dispatchHttpRequest(resolve23, reject, onDone) {
114954
114954
  let { data: data2, lookup, family } = config2;
114955
114955
  const { responseType, responseEncoding } = config2;
114956
114956
  const method = config2.method.toUpperCase();
@@ -115002,7 +115002,7 @@ var http_default2 = isHttpAdapterSupported2 && function httpAdapter2(config2) {
115002
115002
  if (protocol === "data:") {
115003
115003
  let convertedData;
115004
115004
  if (method !== "GET") {
115005
- return settle2(resolve24, reject, {
115005
+ return settle2(resolve23, reject, {
115006
115006
  status: 405,
115007
115007
  statusText: "method not allowed",
115008
115008
  headers: {},
@@ -115024,7 +115024,7 @@ var http_default2 = isHttpAdapterSupported2 && function httpAdapter2(config2) {
115024
115024
  } else if (responseType === "stream") {
115025
115025
  convertedData = stream7.Readable.from(convertedData);
115026
115026
  }
115027
- return settle2(resolve24, reject, {
115027
+ return settle2(resolve23, reject, {
115028
115028
  data: convertedData,
115029
115029
  status: 200,
115030
115030
  statusText: "OK",
@@ -115242,7 +115242,7 @@ var http_default2 = isHttpAdapterSupported2 && function httpAdapter2(config2) {
115242
115242
  };
115243
115243
  if (responseType === "stream") {
115244
115244
  response.data = responseStream;
115245
- settle2(resolve24, reject, response);
115245
+ settle2(resolve23, reject, response);
115246
115246
  } else {
115247
115247
  const responseBuffer = [];
115248
115248
  let totalResponseBytes = 0;
@@ -115290,7 +115290,7 @@ var http_default2 = isHttpAdapterSupported2 && function httpAdapter2(config2) {
115290
115290
  } catch (err) {
115291
115291
  return reject(AxiosError_default2.from(err, null, config2, response.request, response));
115292
115292
  }
115293
- settle2(resolve24, reject, response);
115293
+ settle2(resolve23, reject, response);
115294
115294
  });
115295
115295
  }
115296
115296
  emitter.once("abort", (err) => {
@@ -115517,7 +115517,7 @@ var resolveConfig_default2 = (config2) => {
115517
115517
  // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/xhr.js
115518
115518
  var isXHRAdapterSupported2 = typeof XMLHttpRequest !== "undefined";
115519
115519
  var xhr_default2 = isXHRAdapterSupported2 && function(config2) {
115520
- return new Promise(function dispatchXhrRequest(resolve24, reject) {
115520
+ return new Promise(function dispatchXhrRequest(resolve23, reject) {
115521
115521
  const _config = resolveConfig_default2(config2);
115522
115522
  let requestData = _config.data;
115523
115523
  const requestHeaders = AxiosHeaders_default2.from(_config.headers).normalize();
@@ -115551,7 +115551,7 @@ var xhr_default2 = isXHRAdapterSupported2 && function(config2) {
115551
115551
  request
115552
115552
  };
115553
115553
  settle2(function _resolve(value2) {
115554
- resolve24(value2);
115554
+ resolve23(value2);
115555
115555
  done();
115556
115556
  }, function _reject(err) {
115557
115557
  reject(err);
@@ -115894,8 +115894,8 @@ var fetch_default2 = isFetchSupported2 && (async (config2) => {
115894
115894
  responseType = responseType || "text";
115895
115895
  let responseData = await resolvers2[utils_default2.findKey(resolvers2, responseType) || "text"](response, config2);
115896
115896
  !isStreamResponse && unsubscribe && unsubscribe();
115897
- return await new Promise((resolve24, reject) => {
115898
- settle2(resolve24, reject, {
115897
+ return await new Promise((resolve23, reject) => {
115898
+ settle2(resolve23, reject, {
115899
115899
  data: responseData,
115900
115900
  headers: AxiosHeaders_default2.from(response.headers),
115901
115901
  status: response.status,
@@ -116261,8 +116261,8 @@ var CancelToken3 = class _CancelToken {
116261
116261
  throw new TypeError("executor must be a function.");
116262
116262
  }
116263
116263
  let resolvePromise;
116264
- this.promise = new Promise(function promiseExecutor(resolve24) {
116265
- resolvePromise = resolve24;
116264
+ this.promise = new Promise(function promiseExecutor(resolve23) {
116265
+ resolvePromise = resolve23;
116266
116266
  });
116267
116267
  const token = this;
116268
116268
  this.promise.then((cancel) => {
@@ -116275,9 +116275,9 @@ var CancelToken3 = class _CancelToken {
116275
116275
  });
116276
116276
  this.promise.then = (onfulfilled) => {
116277
116277
  let _resolve;
116278
- const promise = new Promise((resolve24) => {
116279
- token.subscribe(resolve24);
116280
- _resolve = resolve24;
116278
+ const promise = new Promise((resolve23) => {
116279
+ token.subscribe(resolve23);
116280
+ _resolve = resolve23;
116281
116281
  }).then(onfulfilled);
116282
116282
  promise.cancel = function reject() {
116283
116283
  token.unsubscribe(_resolve);
@@ -116492,7 +116492,7 @@ var {
116492
116492
  var import_lodash20 = __toESM(require_lodash(), 1);
116493
116493
  import { createWriteStream as createWriteStream4, existsSync as existsSync14 } from "fs";
116494
116494
  import { mkdir as mkdir9, readdir as readdir5, readFile as readFile12, rm as rm7 } from "fs/promises";
116495
- import { join as join17, relative as relative9 } from "path";
116495
+ import { join as join17, relative as relative8 } from "path";
116496
116496
  import { pipeline as pipeline3 } from "stream/promises";
116497
116497
  var PRINT_ANALYSIS_COMMAND = false;
116498
116498
  var { uniqBy: uniqBy2, sortedUniq: sortedUniq2 } = import_lodash20.default;
@@ -116582,7 +116582,7 @@ var RubyCodeAwareVulnerabilityScanner = class {
116582
116582
  killSignal: "SIGKILL"
116583
116583
  });
116584
116584
  const result = JSON.parse(await readFile12(vulnsOutputFile, "utf-8"));
116585
- const relativeLoadPathsToPackageNames = new Map([...loadPathsToPackageNames.entries()].map(([k, v]) => [join17("vendor", relative9(this.vendorDir, k)), v]));
116585
+ const relativeLoadPathsToPackageNames = new Map([...loadPathsToPackageNames.entries()].map(([k, v]) => [join17("vendor", relative8(this.vendorDir, k)), v]));
116586
116586
  const { timedOut, ...diagnostics } = JSON.parse(await readFile12(diagnosticsOutputFile, "utf-8"));
116587
116587
  const reachedPackages = JSON.parse(await readFile12(reachedPackagesOutputFile, "utf-8"));
116588
116588
  logger.debug("Reached packages: %O", reachedPackages);
@@ -116745,7 +116745,7 @@ var RubyGemsAnalyzer = class {
116745
116745
  }
116746
116746
  analysisMetadataCollector?.(metadata);
116747
116747
  };
116748
- this.preinstalledDependencies = existsSync15(resolve22(this.projectDir, "vendor")) ? "YES" : "NO";
116748
+ this.preinstalledDependencies = existsSync15(resolve21(this.projectDir, "vendor")) ? "YES" : "NO";
116749
116749
  try {
116750
116750
  return await analyzeWithHeuristics(this.state, vulns, [RubyHeuristics.ONLY_VULN_PATH_PACKAGES], false, await this.prepareScanner(), wrappedCollector, statusUpdater);
116751
116751
  } finally {
@@ -116863,16 +116863,16 @@ var ecosystemAnalyzer = {
116863
116863
  var apiKey2 = COANA_API_KEY ? { type: "present", value: COANA_API_KEY } : { type: "missing" };
116864
116864
  var dashboardAPI2 = new DashboardAPI(process.env.SOCKET_MODE === "true", process.env.DISABLE_ANALYTICS_SHARING === "true");
116865
116865
  async function runReachabilityAnalysis(state) {
116866
- const projectDir = resolve23(state.subprojectDir, state.workspacePath);
116866
+ const projectDir = resolve22(state.subprojectDir, state.workspacePath);
116867
116867
  const ecosystem = state.workspaceData.data.type;
116868
- logger.info(`Preparing to run reachability analysis for project at "${relative10(state.rootWorkingDir, projectDir) || "."}" (${ecosystem})`);
116868
+ logger.info(`Preparing to run reachability analysis for project at "${relative9(state.rootWorkingDir, projectDir) || "."}" (${ecosystem})`);
116869
116869
  const constructor = ecosystemAnalyzer[ecosystem];
116870
116870
  if (!constructor)
116871
116871
  throw Error(`No analyzer associated with ecosystem ${ecosystem}`);
116872
116872
  const analyzer = new constructor(state, projectDir);
116873
116873
  const [vulnerabilitiesWithPrecomputedResults, vulnerabilitiesWithoutPrecomputedResults] = partition4(state.vulnerabilities, (v) => "results" in v);
116874
116874
  const augmentedVulnerabilities = await runWholeProgramCodeAwareVulnerabilityScanner(analyzer, vulnerabilitiesWithoutPrecomputedResults, async (amd) => {
116875
- await dashboardAPI2.registerAnalysisMetadata(relative10(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, state.workspaceData.data.type, amd, COANA_REPORT_ID, apiKey2);
116875
+ await dashboardAPI2.registerAnalysisMetadata(relative9(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, state.workspaceData.data.type, amd, COANA_REPORT_ID, apiKey2);
116876
116876
  });
116877
116877
  const diagnostics = await analyzer.getWorkspaceDiagnostics();
116878
116878
  return {