@hypertestco/node-sdk-v3 0.0.1-21 → 0.0.1-22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -49528,13 +49528,13 @@ var require_B3MultiPropagator = __commonJS({
49528
49528
  return "";
49529
49529
  }
49530
49530
  function getDebug(carrier, getter) {
49531
- const debug22 = getHeaderValue(carrier, getter, constants_1.X_B3_FLAGS);
49532
- return debug22 === "1" ? "1" : void 0;
49531
+ const debug23 = getHeaderValue(carrier, getter, constants_1.X_B3_FLAGS);
49532
+ return debug23 === "1" ? "1" : void 0;
49533
49533
  }
49534
49534
  function getTraceFlags(carrier, getter) {
49535
49535
  const traceFlags = getHeaderValue(carrier, getter, constants_1.X_B3_SAMPLED);
49536
- const debug22 = getDebug(carrier, getter);
49537
- if (debug22 === "1" || VALID_SAMPLED_VALUES.has(traceFlags)) {
49536
+ const debug23 = getDebug(carrier, getter);
49537
+ if (debug23 === "1" || VALID_SAMPLED_VALUES.has(traceFlags)) {
49538
49538
  return api_1.TraceFlags.SAMPLED;
49539
49539
  }
49540
49540
  if (traceFlags === void 0 || VALID_UNSAMPLED_VALUES.has(traceFlags)) {
@@ -49547,11 +49547,11 @@ var require_B3MultiPropagator = __commonJS({
49547
49547
  const spanContext = api_1.trace.getSpanContext(context53);
49548
49548
  if (!spanContext || !(0, api_1.isSpanContextValid)(spanContext) || (0, core_1.isTracingSuppressed)(context53))
49549
49549
  return;
49550
- const debug22 = context53.getValue(common_1.B3_DEBUG_FLAG_KEY);
49550
+ const debug23 = context53.getValue(common_1.B3_DEBUG_FLAG_KEY);
49551
49551
  setter.set(carrier, constants_1.X_B3_TRACE_ID, spanContext.traceId);
49552
49552
  setter.set(carrier, constants_1.X_B3_SPAN_ID, spanContext.spanId);
49553
- if (debug22 === "1") {
49554
- setter.set(carrier, constants_1.X_B3_FLAGS, debug22);
49553
+ if (debug23 === "1") {
49554
+ setter.set(carrier, constants_1.X_B3_FLAGS, debug23);
49555
49555
  } else if (spanContext.traceFlags !== void 0) {
49556
49556
  setter.set(carrier, constants_1.X_B3_SAMPLED, (api_1.TraceFlags.SAMPLED & spanContext.traceFlags) === api_1.TraceFlags.SAMPLED ? "1" : "0");
49557
49557
  }
@@ -49560,9 +49560,9 @@ var require_B3MultiPropagator = __commonJS({
49560
49560
  const traceId = getTraceId(carrier, getter);
49561
49561
  const spanId = getSpanId(carrier, getter);
49562
49562
  const traceFlags = getTraceFlags(carrier, getter);
49563
- const debug22 = getDebug(carrier, getter);
49563
+ const debug23 = getDebug(carrier, getter);
49564
49564
  if ((0, api_1.isValidTraceId)(traceId) && (0, api_1.isValidSpanId)(spanId) && isValidSampledValue(traceFlags)) {
49565
- context53 = context53.setValue(common_1.B3_DEBUG_FLAG_KEY, debug22);
49565
+ context53 = context53.setValue(common_1.B3_DEBUG_FLAG_KEY, debug23);
49566
49566
  return api_1.trace.setSpanContext(context53, {
49567
49567
  traceId,
49568
49568
  spanId,
@@ -51169,9 +51169,9 @@ var require_constants4 = __commonJS({
51169
51169
  // ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js
51170
51170
  var require_debug = __commonJS({
51171
51171
  "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js"(exports2, module2) {
51172
- var debug22 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
51172
+ var debug23 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
51173
51173
  };
51174
- module2.exports = debug22;
51174
+ module2.exports = debug23;
51175
51175
  }
51176
51176
  });
51177
51177
 
@@ -51183,7 +51183,7 @@ var require_re = __commonJS({
51183
51183
  MAX_SAFE_BUILD_LENGTH,
51184
51184
  MAX_LENGTH
51185
51185
  } = require_constants4();
51186
- var debug22 = require_debug();
51186
+ var debug23 = require_debug();
51187
51187
  exports2 = module2.exports = {};
51188
51188
  var re2 = exports2.re = [];
51189
51189
  var safeRe = exports2.safeRe = [];
@@ -51206,7 +51206,7 @@ var require_re = __commonJS({
51206
51206
  var createToken = (name, value, isGlobal) => {
51207
51207
  const safe = makeSafeRegex(value);
51208
51208
  const index = R2++;
51209
- debug22(name, index, value);
51209
+ debug23(name, index, value);
51210
51210
  t[name] = index;
51211
51211
  src[index] = value;
51212
51212
  safeSrc[index] = safe;
@@ -51304,7 +51304,7 @@ var require_identifiers = __commonJS({
51304
51304
  // ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js
51305
51305
  var require_semver2 = __commonJS({
51306
51306
  "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js"(exports2, module2) {
51307
- var debug22 = require_debug();
51307
+ var debug23 = require_debug();
51308
51308
  var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2 } = require_constants4();
51309
51309
  var { safeRe: re2, safeSrc: src, t } = require_re();
51310
51310
  var parseOptions = require_parse_options();
@@ -51326,7 +51326,7 @@ var require_semver2 = __commonJS({
51326
51326
  `version is longer than ${MAX_LENGTH} characters`
51327
51327
  );
51328
51328
  }
51329
- debug22("SemVer", version2, options);
51329
+ debug23("SemVer", version2, options);
51330
51330
  this.options = options;
51331
51331
  this.loose = !!options.loose;
51332
51332
  this.includePrerelease = !!options.includePrerelease;
@@ -51374,7 +51374,7 @@ var require_semver2 = __commonJS({
51374
51374
  return this.version;
51375
51375
  }
51376
51376
  compare(other) {
51377
- debug22("SemVer.compare", this.version, this.options, other);
51377
+ debug23("SemVer.compare", this.version, this.options, other);
51378
51378
  if (!(other instanceof _SemVer)) {
51379
51379
  if (typeof other === "string" && other === this.version) {
51380
51380
  return 0;
@@ -51407,7 +51407,7 @@ var require_semver2 = __commonJS({
51407
51407
  do {
51408
51408
  const a = this.prerelease[i];
51409
51409
  const b2 = other.prerelease[i];
51410
- debug22("prerelease compare", i, a, b2);
51410
+ debug23("prerelease compare", i, a, b2);
51411
51411
  if (a === void 0 && b2 === void 0) {
51412
51412
  return 0;
51413
51413
  } else if (b2 === void 0) {
@@ -51429,7 +51429,7 @@ var require_semver2 = __commonJS({
51429
51429
  do {
51430
51430
  const a = this.build[i];
51431
51431
  const b2 = other.build[i];
51432
- debug22("build compare", i, a, b2);
51432
+ debug23("build compare", i, a, b2);
51433
51433
  if (a === void 0 && b2 === void 0) {
51434
51434
  return 0;
51435
51435
  } else if (b2 === void 0) {
@@ -52033,21 +52033,21 @@ var require_range = __commonJS({
52033
52033
  const loose = this.options.loose;
52034
52034
  const hr2 = loose ? re2[t.HYPHENRANGELOOSE] : re2[t.HYPHENRANGE];
52035
52035
  range = range.replace(hr2, hyphenReplace(this.options.includePrerelease));
52036
- debug22("hyphen replace", range);
52036
+ debug23("hyphen replace", range);
52037
52037
  range = range.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace);
52038
- debug22("comparator trim", range);
52038
+ debug23("comparator trim", range);
52039
52039
  range = range.replace(re2[t.TILDETRIM], tildeTrimReplace);
52040
- debug22("tilde trim", range);
52040
+ debug23("tilde trim", range);
52041
52041
  range = range.replace(re2[t.CARETTRIM], caretTrimReplace);
52042
- debug22("caret trim", range);
52042
+ debug23("caret trim", range);
52043
52043
  let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
52044
52044
  if (loose) {
52045
52045
  rangeList = rangeList.filter((comp) => {
52046
- debug22("loose invalid filter", comp, this.options);
52046
+ debug23("loose invalid filter", comp, this.options);
52047
52047
  return !!comp.match(re2[t.COMPARATORLOOSE]);
52048
52048
  });
52049
52049
  }
52050
- debug22("range list", rangeList);
52050
+ debug23("range list", rangeList);
52051
52051
  const rangeMap = /* @__PURE__ */ new Map();
52052
52052
  const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
52053
52053
  for (const comp of comparators) {
@@ -52102,7 +52102,7 @@ var require_range = __commonJS({
52102
52102
  var cache2 = new LRU();
52103
52103
  var parseOptions = require_parse_options();
52104
52104
  var Comparator = require_comparator();
52105
- var debug22 = require_debug();
52105
+ var debug23 = require_debug();
52106
52106
  var SemVer = require_semver2();
52107
52107
  var {
52108
52108
  safeRe: re2,
@@ -52127,15 +52127,15 @@ var require_range = __commonJS({
52127
52127
  return result;
52128
52128
  };
52129
52129
  var parseComparator = (comp, options) => {
52130
- debug22("comp", comp, options);
52130
+ debug23("comp", comp, options);
52131
52131
  comp = replaceCarets(comp, options);
52132
- debug22("caret", comp);
52132
+ debug23("caret", comp);
52133
52133
  comp = replaceTildes(comp, options);
52134
- debug22("tildes", comp);
52134
+ debug23("tildes", comp);
52135
52135
  comp = replaceXRanges(comp, options);
52136
- debug22("xrange", comp);
52136
+ debug23("xrange", comp);
52137
52137
  comp = replaceStars(comp, options);
52138
- debug22("stars", comp);
52138
+ debug23("stars", comp);
52139
52139
  return comp;
52140
52140
  };
52141
52141
  var isX = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
@@ -52145,7 +52145,7 @@ var require_range = __commonJS({
52145
52145
  var replaceTilde = (comp, options) => {
52146
52146
  const r = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
52147
52147
  return comp.replace(r, (_, M2, m2, p, pr2) => {
52148
- debug22("tilde", comp, _, M2, m2, p, pr2);
52148
+ debug23("tilde", comp, _, M2, m2, p, pr2);
52149
52149
  let ret;
52150
52150
  if (isX(M2)) {
52151
52151
  ret = "";
@@ -52154,12 +52154,12 @@ var require_range = __commonJS({
52154
52154
  } else if (isX(p)) {
52155
52155
  ret = `>=${M2}.${m2}.0 <${M2}.${+m2 + 1}.0-0`;
52156
52156
  } else if (pr2) {
52157
- debug22("replaceTilde pr", pr2);
52157
+ debug23("replaceTilde pr", pr2);
52158
52158
  ret = `>=${M2}.${m2}.${p}-${pr2} <${M2}.${+m2 + 1}.0-0`;
52159
52159
  } else {
52160
52160
  ret = `>=${M2}.${m2}.${p} <${M2}.${+m2 + 1}.0-0`;
52161
52161
  }
52162
- debug22("tilde return", ret);
52162
+ debug23("tilde return", ret);
52163
52163
  return ret;
52164
52164
  });
52165
52165
  };
@@ -52167,11 +52167,11 @@ var require_range = __commonJS({
52167
52167
  return comp.trim().split(/\s+/).map((c2) => replaceCaret(c2, options)).join(" ");
52168
52168
  };
52169
52169
  var replaceCaret = (comp, options) => {
52170
- debug22("caret", comp, options);
52170
+ debug23("caret", comp, options);
52171
52171
  const r = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
52172
52172
  const z2 = options.includePrerelease ? "-0" : "";
52173
52173
  return comp.replace(r, (_, M2, m2, p, pr2) => {
52174
- debug22("caret", comp, _, M2, m2, p, pr2);
52174
+ debug23("caret", comp, _, M2, m2, p, pr2);
52175
52175
  let ret;
52176
52176
  if (isX(M2)) {
52177
52177
  ret = "";
@@ -52184,7 +52184,7 @@ var require_range = __commonJS({
52184
52184
  ret = `>=${M2}.${m2}.0${z2} <${+M2 + 1}.0.0-0`;
52185
52185
  }
52186
52186
  } else if (pr2) {
52187
- debug22("replaceCaret pr", pr2);
52187
+ debug23("replaceCaret pr", pr2);
52188
52188
  if (M2 === "0") {
52189
52189
  if (m2 === "0") {
52190
52190
  ret = `>=${M2}.${m2}.${p}-${pr2} <${M2}.${m2}.${+p + 1}-0`;
@@ -52195,7 +52195,7 @@ var require_range = __commonJS({
52195
52195
  ret = `>=${M2}.${m2}.${p}-${pr2} <${+M2 + 1}.0.0-0`;
52196
52196
  }
52197
52197
  } else {
52198
- debug22("no pr");
52198
+ debug23("no pr");
52199
52199
  if (M2 === "0") {
52200
52200
  if (m2 === "0") {
52201
52201
  ret = `>=${M2}.${m2}.${p}${z2} <${M2}.${m2}.${+p + 1}-0`;
@@ -52206,19 +52206,19 @@ var require_range = __commonJS({
52206
52206
  ret = `>=${M2}.${m2}.${p} <${+M2 + 1}.0.0-0`;
52207
52207
  }
52208
52208
  }
52209
- debug22("caret return", ret);
52209
+ debug23("caret return", ret);
52210
52210
  return ret;
52211
52211
  });
52212
52212
  };
52213
52213
  var replaceXRanges = (comp, options) => {
52214
- debug22("replaceXRanges", comp, options);
52214
+ debug23("replaceXRanges", comp, options);
52215
52215
  return comp.split(/\s+/).map((c2) => replaceXRange(c2, options)).join(" ");
52216
52216
  };
52217
52217
  var replaceXRange = (comp, options) => {
52218
52218
  comp = comp.trim();
52219
52219
  const r = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
52220
52220
  return comp.replace(r, (ret, gtlt, M2, m2, p, pr2) => {
52221
- debug22("xRange", comp, ret, gtlt, M2, m2, p, pr2);
52221
+ debug23("xRange", comp, ret, gtlt, M2, m2, p, pr2);
52222
52222
  const xM = isX(M2);
52223
52223
  const xm2 = xM || isX(m2);
52224
52224
  const xp2 = xm2 || isX(p);
@@ -52265,16 +52265,16 @@ var require_range = __commonJS({
52265
52265
  } else if (xp2) {
52266
52266
  ret = `>=${M2}.${m2}.0${pr2} <${M2}.${+m2 + 1}.0-0`;
52267
52267
  }
52268
- debug22("xRange return", ret);
52268
+ debug23("xRange return", ret);
52269
52269
  return ret;
52270
52270
  });
52271
52271
  };
52272
52272
  var replaceStars = (comp, options) => {
52273
- debug22("replaceStars", comp, options);
52273
+ debug23("replaceStars", comp, options);
52274
52274
  return comp.trim().replace(re2[t.STAR], "");
52275
52275
  };
52276
52276
  var replaceGTE0 = (comp, options) => {
52277
- debug22("replaceGTE0", comp, options);
52277
+ debug23("replaceGTE0", comp, options);
52278
52278
  return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
52279
52279
  };
52280
52280
  var hyphenReplace = (incPr) => ($0, from, fM, fm2, fp2, fpr, fb, to2, tM, tm2, tp2, tpr) => {
@@ -52312,7 +52312,7 @@ var require_range = __commonJS({
52312
52312
  }
52313
52313
  if (version2.prerelease.length && !options.includePrerelease) {
52314
52314
  for (let i = 0; i < set2.length; i++) {
52315
- debug22(set2[i].semver);
52315
+ debug23(set2[i].semver);
52316
52316
  if (set2[i].semver === Comparator.ANY) {
52317
52317
  continue;
52318
52318
  }
@@ -52348,7 +52348,7 @@ var require_comparator = __commonJS({
52348
52348
  }
52349
52349
  }
52350
52350
  comp = comp.trim().split(/\s+/).join(" ");
52351
- debug22("comparator", comp, options);
52351
+ debug23("comparator", comp, options);
52352
52352
  this.options = options;
52353
52353
  this.loose = !!options.loose;
52354
52354
  this.parse(comp);
@@ -52357,7 +52357,7 @@ var require_comparator = __commonJS({
52357
52357
  } else {
52358
52358
  this.value = this.operator + this.semver.version;
52359
52359
  }
52360
- debug22("comp", this);
52360
+ debug23("comp", this);
52361
52361
  }
52362
52362
  parse(comp) {
52363
52363
  const r = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
@@ -52379,7 +52379,7 @@ var require_comparator = __commonJS({
52379
52379
  return this.value;
52380
52380
  }
52381
52381
  test(version2) {
52382
- debug22("Comparator.test", version2, this.options.loose);
52382
+ debug23("Comparator.test", version2, this.options.loose);
52383
52383
  if (this.semver === ANY || version2 === ANY) {
52384
52384
  return true;
52385
52385
  }
@@ -52436,7 +52436,7 @@ var require_comparator = __commonJS({
52436
52436
  var parseOptions = require_parse_options();
52437
52437
  var { safeRe: re2, t } = require_re();
52438
52438
  var cmp = require_cmp();
52439
- var debug22 = require_debug();
52439
+ var debug23 = require_debug();
52440
52440
  var SemVer = require_semver2();
52441
52441
  var Range = require_range();
52442
52442
  }
@@ -54788,11 +54788,11 @@ var require_common3 = __commonJS({
54788
54788
  let enableOverride = null;
54789
54789
  let namespacesCache;
54790
54790
  let enabledCache;
54791
- function debug22(...args) {
54792
- if (!debug22.enabled) {
54791
+ function debug23(...args) {
54792
+ if (!debug23.enabled) {
54793
54793
  return;
54794
54794
  }
54795
- const self2 = debug22;
54795
+ const self2 = debug23;
54796
54796
  const curr = Number(/* @__PURE__ */ new Date());
54797
54797
  const ms = curr - (prevTime || curr);
54798
54798
  self2.diff = ms;
@@ -54822,12 +54822,12 @@ var require_common3 = __commonJS({
54822
54822
  const logFn = self2.log || createDebug.log;
54823
54823
  logFn.apply(self2, args);
54824
54824
  }
54825
- debug22.namespace = namespace;
54826
- debug22.useColors = createDebug.useColors();
54827
- debug22.color = createDebug.selectColor(namespace);
54828
- debug22.extend = extend2;
54829
- debug22.destroy = createDebug.destroy;
54830
- Object.defineProperty(debug22, "enabled", {
54825
+ debug23.namespace = namespace;
54826
+ debug23.useColors = createDebug.useColors();
54827
+ debug23.color = createDebug.selectColor(namespace);
54828
+ debug23.extend = extend2;
54829
+ debug23.destroy = createDebug.destroy;
54830
+ Object.defineProperty(debug23, "enabled", {
54831
54831
  enumerable: true,
54832
54832
  configurable: false,
54833
54833
  get: () => {
@@ -54845,9 +54845,9 @@ var require_common3 = __commonJS({
54845
54845
  }
54846
54846
  });
54847
54847
  if (typeof createDebug.init === "function") {
54848
- createDebug.init(debug22);
54848
+ createDebug.init(debug23);
54849
54849
  }
54850
- return debug22;
54850
+ return debug23;
54851
54851
  }
54852
54852
  function extend2(namespace, delimiter) {
54853
54853
  const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
@@ -55372,11 +55372,11 @@ var require_node8 = __commonJS({
55372
55372
  function load() {
55373
55373
  return process.env.DEBUG;
55374
55374
  }
55375
- function init(debug22) {
55376
- debug22.inspectOpts = {};
55375
+ function init(debug23) {
55376
+ debug23.inspectOpts = {};
55377
55377
  const keys = Object.keys(exports2.inspectOpts);
55378
55378
  for (let i = 0; i < keys.length; i++) {
55379
- debug22.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
55379
+ debug23.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
55380
55380
  }
55381
55381
  }
55382
55382
  module2.exports = require_common3()(exports2);
@@ -55496,7 +55496,7 @@ var require_require_in_the_middle = __commonJS({
55496
55496
  var path4 = require("path");
55497
55497
  var Module = require("module");
55498
55498
  var resolve = require_resolve();
55499
- var debug22 = require_src18()("require-in-the-middle");
55499
+ var debug23 = require_src18()("require-in-the-middle");
55500
55500
  var moduleDetailsFromPath = require_module_details_from_path();
55501
55501
  module2.exports = Hook2;
55502
55502
  module2.exports.Hook = Hook2;
@@ -55549,7 +55549,7 @@ var require_require_in_the_middle = __commonJS({
55549
55549
  } else if (filename in require.cache) {
55550
55550
  require.cache[filename][this._kRitmExports] = exports3;
55551
55551
  } else {
55552
- debug22('non-core module is unexpectedly not in require.cache: "%s"', filename);
55552
+ debug23('non-core module is unexpectedly not in require.cache: "%s"', filename);
55553
55553
  this._localCache.set(filename, exports3);
55554
55554
  }
55555
55555
  }
@@ -55576,10 +55576,10 @@ var require_require_in_the_middle = __commonJS({
55576
55576
  const patching = /* @__PURE__ */ new Set();
55577
55577
  const internals = options ? options.internals === true : false;
55578
55578
  const hasWhitelist = Array.isArray(modules);
55579
- debug22("registering require hook");
55579
+ debug23("registering require hook");
55580
55580
  this._require = Module.prototype.require = function(id2) {
55581
55581
  if (self2._unhooked === true) {
55582
- debug22("ignoring require call - module is soft-unhooked");
55582
+ debug23("ignoring require call - module is soft-unhooked");
55583
55583
  return self2._origRequire.apply(this, arguments);
55584
55584
  }
55585
55585
  return patchedRequire.call(this, arguments, false);
@@ -55588,7 +55588,7 @@ var require_require_in_the_middle = __commonJS({
55588
55588
  this._origGetBuiltinModule = process.getBuiltinModule;
55589
55589
  this._getBuiltinModule = process.getBuiltinModule = function(id2) {
55590
55590
  if (self2._unhooked === true) {
55591
- debug22("ignoring process.getBuiltinModule call - module is soft-unhooked");
55591
+ debug23("ignoring process.getBuiltinModule call - module is soft-unhooked");
55592
55592
  return self2._origGetBuiltinModule.apply(this, arguments);
55593
55593
  }
55594
55594
  return patchedRequire.call(this, arguments, true);
@@ -55607,20 +55607,20 @@ var require_require_in_the_middle = __commonJS({
55607
55607
  }
55608
55608
  }
55609
55609
  } else if (coreOnly) {
55610
- debug22("call to process.getBuiltinModule with unknown built-in id");
55610
+ debug23("call to process.getBuiltinModule with unknown built-in id");
55611
55611
  return self2._origGetBuiltinModule.apply(this, args);
55612
55612
  } else {
55613
55613
  try {
55614
55614
  filename = Module._resolveFilename(id2, this);
55615
55615
  } catch (resolveErr) {
55616
- debug22('Module._resolveFilename("%s") threw %j, calling original Module.require', id2, resolveErr.message);
55616
+ debug23('Module._resolveFilename("%s") threw %j, calling original Module.require', id2, resolveErr.message);
55617
55617
  return self2._origRequire.apply(this, args);
55618
55618
  }
55619
55619
  }
55620
55620
  let moduleName2, basedir;
55621
- debug22("processing %s module require('%s'): %s", core === true ? "core" : "non-core", id2, filename);
55621
+ debug23("processing %s module require('%s'): %s", core === true ? "core" : "non-core", id2, filename);
55622
55622
  if (self2._cache.has(filename, core) === true) {
55623
- debug22("returning already patched cached module: %s", filename);
55623
+ debug23("returning already patched cached module: %s", filename);
55624
55624
  return self2._cache.get(filename, core);
55625
55625
  }
55626
55626
  const isPatching = patching.has(filename);
@@ -55629,13 +55629,13 @@ var require_require_in_the_middle = __commonJS({
55629
55629
  }
55630
55630
  const exports3 = coreOnly ? self2._origGetBuiltinModule.apply(this, args) : self2._origRequire.apply(this, args);
55631
55631
  if (isPatching === true) {
55632
- debug22("module is in the process of being patched already - ignoring: %s", filename);
55632
+ debug23("module is in the process of being patched already - ignoring: %s", filename);
55633
55633
  return exports3;
55634
55634
  }
55635
55635
  patching.delete(filename);
55636
55636
  if (core === true) {
55637
55637
  if (hasWhitelist === true && modules.includes(filename) === false) {
55638
- debug22("ignoring core module not on whitelist: %s", filename);
55638
+ debug23("ignoring core module not on whitelist: %s", filename);
55639
55639
  return exports3;
55640
55640
  }
55641
55641
  moduleName2 = filename;
@@ -55646,13 +55646,13 @@ var require_require_in_the_middle = __commonJS({
55646
55646
  } else {
55647
55647
  const stat = moduleDetailsFromPath(filename);
55648
55648
  if (stat === void 0) {
55649
- debug22("could not parse filename: %s", filename);
55649
+ debug23("could not parse filename: %s", filename);
55650
55650
  return exports3;
55651
55651
  }
55652
55652
  moduleName2 = stat.name;
55653
55653
  basedir = stat.basedir;
55654
55654
  const fullModuleName = resolveModuleName(stat);
55655
- debug22("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)", moduleName2, id2, fullModuleName, basedir);
55655
+ debug23("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)", moduleName2, id2, fullModuleName, basedir);
55656
55656
  let matchFound = false;
55657
55657
  if (hasWhitelist) {
55658
55658
  if (!id2.startsWith(".") && modules.includes(id2)) {
@@ -55672,16 +55672,16 @@ var require_require_in_the_middle = __commonJS({
55672
55672
  try {
55673
55673
  res = resolve.sync(moduleName2, { basedir });
55674
55674
  } catch (e) {
55675
- debug22("could not resolve module: %s", moduleName2);
55675
+ debug23("could not resolve module: %s", moduleName2);
55676
55676
  self2._cache.set(filename, exports3, core);
55677
55677
  return exports3;
55678
55678
  }
55679
55679
  if (res !== filename) {
55680
55680
  if (internals === true) {
55681
55681
  moduleName2 = moduleName2 + path4.sep + path4.relative(basedir, filename);
55682
- debug22("preparing to process require of internal file: %s", moduleName2);
55682
+ debug23("preparing to process require of internal file: %s", moduleName2);
55683
55683
  } else {
55684
- debug22("ignoring require of non-main module file: %s", res);
55684
+ debug23("ignoring require of non-main module file: %s", res);
55685
55685
  self2._cache.set(filename, exports3, core);
55686
55686
  return exports3;
55687
55687
  }
@@ -55689,10 +55689,10 @@ var require_require_in_the_middle = __commonJS({
55689
55689
  }
55690
55690
  }
55691
55691
  self2._cache.set(filename, exports3, core);
55692
- debug22("calling require hook: %s", moduleName2);
55692
+ debug23("calling require hook: %s", moduleName2);
55693
55693
  const patchedExports = onrequire(exports3, moduleName2, basedir);
55694
55694
  self2._cache.set(filename, patchedExports, core);
55695
- debug22("returning module: %s", moduleName2);
55695
+ debug23("returning module: %s", moduleName2);
55696
55696
  return patchedExports;
55697
55697
  }
55698
55698
  }
@@ -55700,16 +55700,16 @@ var require_require_in_the_middle = __commonJS({
55700
55700
  this._unhooked = true;
55701
55701
  if (this._require === Module.prototype.require) {
55702
55702
  Module.prototype.require = this._origRequire;
55703
- debug22("require unhook successful");
55703
+ debug23("require unhook successful");
55704
55704
  } else {
55705
- debug22("require unhook unsuccessful");
55705
+ debug23("require unhook unsuccessful");
55706
55706
  }
55707
55707
  if (process.getBuiltinModule !== void 0) {
55708
55708
  if (this._getBuiltinModule === process.getBuiltinModule) {
55709
55709
  process.getBuiltinModule = this._origGetBuiltinModule;
55710
- debug22("process.getBuiltinModule unhook successful");
55710
+ debug23("process.getBuiltinModule unhook successful");
55711
55711
  } else {
55712
- debug22("process.getBuiltinModule unhook unsuccessful");
55712
+ debug23("process.getBuiltinModule unhook unsuccessful");
55713
55713
  }
55714
55714
  }
55715
55715
  };
@@ -80890,19 +80890,19 @@ var require_proxy_from_env = __commonJS({
80890
80890
  // ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.4.0/node_modules/follow-redirects/debug.js
80891
80891
  var require_debug2 = __commonJS({
80892
80892
  "../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.4.0/node_modules/follow-redirects/debug.js"(exports2, module2) {
80893
- var debug22;
80893
+ var debug23;
80894
80894
  module2.exports = function() {
80895
- if (!debug22) {
80895
+ if (!debug23) {
80896
80896
  try {
80897
- debug22 = require_src18()("follow-redirects");
80897
+ debug23 = require_src18()("follow-redirects");
80898
80898
  } catch (error) {
80899
80899
  }
80900
- if (typeof debug22 !== "function") {
80901
- debug22 = function() {
80900
+ if (typeof debug23 !== "function") {
80901
+ debug23 = function() {
80902
80902
  };
80903
80903
  }
80904
80904
  }
80905
- debug22.apply(null, arguments);
80905
+ debug23.apply(null, arguments);
80906
80906
  };
80907
80907
  }
80908
80908
  });
@@ -80916,7 +80916,7 @@ var require_follow_redirects = __commonJS({
80916
80916
  var https3 = require("https");
80917
80917
  var Writable = require("stream").Writable;
80918
80918
  var assert = require("assert");
80919
- var debug22 = require_debug2();
80919
+ var debug23 = require_debug2();
80920
80920
  var useNativeURL = false;
80921
80921
  try {
80922
80922
  assert(new URL4());
@@ -81225,7 +81225,7 @@ var require_follow_redirects = __commonJS({
81225
81225
  var currentHost = currentHostHeader || currentUrlParts.host;
81226
81226
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
81227
81227
  var redirectUrl = resolveUrl(location, currentUrl);
81228
- debug22("redirecting to", redirectUrl.href);
81228
+ debug23("redirecting to", redirectUrl.href);
81229
81229
  this._isRedirect = true;
81230
81230
  spreadUrlObject(redirectUrl, this._options);
81231
81231
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
@@ -81279,7 +81279,7 @@ var require_follow_redirects = __commonJS({
81279
81279
  options.hostname = "::1";
81280
81280
  }
81281
81281
  assert.equal(options.protocol, protocol, "protocol mismatch");
81282
- debug22("options", options);
81282
+ debug23("options", options);
81283
81283
  return new RedirectableRequest(options, callback);
81284
81284
  }
81285
81285
  function get2(input, options, callback) {
@@ -94312,7 +94312,7 @@ var require_transform_utils = __commonJS({
94312
94312
  var require_transformer = __commonJS({
94313
94313
  "../../node_modules/.pnpm/istanbul-lib-source-maps@4.0.1_patch_hash=64aa1ef477ab6d1b23b0de660c800e802db4887f5fbe3e34bf8563ccb4c86447/node_modules/istanbul-lib-source-maps/lib/transformer.js"(exports2, module2) {
94314
94314
  "use strict";
94315
- var debug22 = require_src18()("istanbuljs");
94315
+ var debug23 = require_src18()("istanbuljs");
94316
94316
  var libCoverage2 = require_istanbul_lib_coverage();
94317
94317
  var { MappedCoverage } = require_mapped();
94318
94318
  var getMapping = require_get_mapping();
@@ -94412,7 +94412,7 @@ var require_transformer = __commonJS({
94412
94412
  getMappedCoverage
94413
94413
  );
94414
94414
  if (!changed) {
94415
- debug22(`File [${file}] ignored, nothing could be mapped`);
94415
+ debug23(`File [${file}] ignored, nothing could be mapped`);
94416
94416
  }
94417
94417
  } else {
94418
94418
  uniqueFiles[getUniqueKey(file)] = {
@@ -94436,7 +94436,7 @@ var require_map_store = __commonJS({
94436
94436
  "use strict";
94437
94437
  var path4 = require("path");
94438
94438
  var fs3 = require("fs");
94439
- var debug22 = require_src18()("istanbuljs");
94439
+ var debug23 = require_src18()("istanbuljs");
94440
94440
  var { SourceMapConsumer } = require_source_map();
94441
94441
  var pathutils = require_pathutils();
94442
94442
  var { SourceMapTransformer } = require_transformer();
@@ -94485,7 +94485,7 @@ var require_map_store = __commonJS({
94485
94485
  data: sourceMapUrl.substring(pos + b64.length)
94486
94486
  };
94487
94487
  } else {
94488
- debug22(`Unable to interpret source map URL: ${sourceMapUrl}`);
94488
+ debug23(`Unable to interpret source map URL: ${sourceMapUrl}`);
94489
94489
  }
94490
94490
  return;
94491
94491
  }
@@ -94506,7 +94506,7 @@ var require_map_store = __commonJS({
94506
94506
  data: sourceMap
94507
94507
  };
94508
94508
  } else {
94509
- debug22(
94509
+ debug23(
94510
94510
  "Invalid source map object: " + JSON.stringify(sourceMap, null, 2)
94511
94511
  );
94512
94512
  }
@@ -94532,8 +94532,8 @@ var require_map_store = __commonJS({
94532
94532
  ...d.data
94533
94533
  };
94534
94534
  } catch (error) {
94535
- debug22("Error returning source map for " + filePath);
94536
- debug22(error.stack);
94535
+ debug23("Error returning source map for " + filePath);
94536
+ debug23(error.stack);
94537
94537
  return;
94538
94538
  }
94539
94539
  }
@@ -94600,8 +94600,8 @@ var require_map_store = __commonJS({
94600
94600
  });
94601
94601
  return smc;
94602
94602
  } catch (error) {
94603
- debug22("Error returning source map for " + filePath);
94604
- debug22(error.stack);
94603
+ debug23("Error returning source map for " + filePath);
94604
+ debug23(error.stack);
94605
94605
  return null;
94606
94606
  }
94607
94607
  }
@@ -115461,9 +115461,9 @@ var require_debug3 = __commonJS({
115461
115461
  "../../node_modules/.pnpm/avvio@8.3.2/node_modules/avvio/lib/debug.js"(exports2, module2) {
115462
115462
  "use strict";
115463
115463
  var { debuglog } = require("util");
115464
- var debug22 = debuglog("avvio");
115464
+ var debug23 = debuglog("avvio");
115465
115465
  module2.exports = {
115466
- debug: debug22
115466
+ debug: debug23
115467
115467
  };
115468
115468
  }
115469
115469
  });
@@ -115533,7 +115533,7 @@ var require_plugin = __commonJS({
115533
115533
  "use strict";
115534
115534
  var { EventEmitter: EventEmitter14 } = require("events");
115535
115535
  var { inherits: inherits2 } = require("util");
115536
- var { debug: debug22 } = require_debug3();
115536
+ var { debug: debug23 } = require_debug3();
115537
115537
  var { createPromise } = require_create_promise();
115538
115538
  var { AVV_ERR_PLUGIN_EXEC_TIMEOUT } = require_errors();
115539
115539
  var { getPluginName } = require_get_plugin_name();
@@ -115554,7 +115554,7 @@ var require_plugin = __commonJS({
115554
115554
  }
115555
115555
  inherits2(Plugin, EventEmitter14);
115556
115556
  Plugin.prototype.exec = function(server, callback) {
115557
- debug22("exec", this.name);
115557
+ debug23("exec", this.name);
115558
115558
  this.server = server;
115559
115559
  const func = this.func;
115560
115560
  const name = this.name;
@@ -115563,14 +115563,14 @@ var require_plugin = __commonJS({
115563
115563
  let timer = null;
115564
115564
  const done = (execErr) => {
115565
115565
  if (completed) {
115566
- debug22("loading complete", name);
115566
+ debug23("loading complete", name);
115567
115567
  return;
115568
115568
  }
115569
115569
  this._error = execErr;
115570
115570
  if (execErr) {
115571
- debug22("exec errored", name);
115571
+ debug23("exec errored", name);
115572
115572
  } else {
115573
- debug22("exec completed", name);
115573
+ debug23("exec completed", name);
115574
115574
  }
115575
115575
  completed = true;
115576
115576
  if (timer) {
@@ -115579,9 +115579,9 @@ var require_plugin = __commonJS({
115579
115579
  callback(execErr);
115580
115580
  };
115581
115581
  if (this.timeout > 0) {
115582
- debug22("setting up timeout", name, this.timeout);
115582
+ debug23("setting up timeout", name, this.timeout);
115583
115583
  timer = setTimeout(function() {
115584
- debug22("timed out", name);
115584
+ debug23("timed out", name);
115585
115585
  timer = null;
115586
115586
  const readyTimeoutErr = new AVV_ERR_PLUGIN_EXEC_TIMEOUT(name);
115587
115587
  readyTimeoutErr.fn = func;
@@ -115593,7 +115593,7 @@ var require_plugin = __commonJS({
115593
115593
  this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
115594
115594
  const maybePromiseLike = func(this.server, this.options, done);
115595
115595
  if (isPromiseLike(maybePromiseLike)) {
115596
- debug22("exec: resolving promise", name);
115596
+ debug23("exec: resolving promise", name);
115597
115597
  maybePromiseLike.then(
115598
115598
  () => process.nextTick(done),
115599
115599
  (e) => process.nextTick(done, e)
@@ -115601,7 +115601,7 @@ var require_plugin = __commonJS({
115601
115601
  }
115602
115602
  };
115603
115603
  Plugin.prototype.loadedSoFar = function() {
115604
- debug22("loadedSoFar", this.name);
115604
+ debug23("loadedSoFar", this.name);
115605
115605
  if (this.loaded) {
115606
115606
  return Promise.resolve();
115607
115607
  }
@@ -115611,10 +115611,10 @@ var require_plugin = __commonJS({
115611
115611
  this.queue.pause();
115612
115612
  if (this._promise) {
115613
115613
  if (afterErr) {
115614
- debug22("rejecting promise", this.name, afterErr);
115614
+ debug23("rejecting promise", this.name, afterErr);
115615
115615
  this._promise.reject(afterErr);
115616
115616
  } else {
115617
- debug22("resolving promise", this.name);
115617
+ debug23("resolving promise", this.name);
115618
115618
  this._promise.resolve();
115619
115619
  }
115620
115620
  this._promise = null;
@@ -115638,17 +115638,17 @@ var require_plugin = __commonJS({
115638
115638
  return res;
115639
115639
  };
115640
115640
  Plugin.prototype.enqueue = function(plugin, callback) {
115641
- debug22("enqueue", this.name, plugin.name);
115641
+ debug23("enqueue", this.name, plugin.name);
115642
115642
  this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now());
115643
115643
  this.queue.push(plugin, callback);
115644
115644
  };
115645
115645
  Plugin.prototype.finish = function(err, callback) {
115646
- debug22("finish", this.name, err);
115646
+ debug23("finish", this.name, err);
115647
115647
  const done = () => {
115648
115648
  if (this.loaded) {
115649
115649
  return;
115650
115650
  }
115651
- debug22("loaded", this.name);
115651
+ debug23("loaded", this.name);
115652
115652
  this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now());
115653
115653
  this.loaded = true;
115654
115654
  callback(err);
@@ -115662,11 +115662,11 @@ var require_plugin = __commonJS({
115662
115662
  return;
115663
115663
  }
115664
115664
  const check = () => {
115665
- debug22("check", this.name, this.queue.length(), this.queue.running(), this._promise);
115665
+ debug23("check", this.name, this.queue.length(), this.queue.running(), this._promise);
115666
115666
  if (this.queue.length() === 0 && this.queue.running() === 0) {
115667
115667
  if (this._promise) {
115668
115668
  const wrap2 = () => {
115669
- debug22("wrap");
115669
+ debug23("wrap");
115670
115670
  queueMicrotask(check);
115671
115671
  };
115672
115672
  this._promise.resolve();
@@ -115676,9 +115676,9 @@ var require_plugin = __commonJS({
115676
115676
  done();
115677
115677
  }
115678
115678
  } else {
115679
- debug22("delayed", this.name);
115679
+ debug23("delayed", this.name);
115680
115680
  this.queue.drain = () => {
115681
- debug22("drain", this.name);
115681
+ debug23("drain", this.name);
115682
115682
  this.queue.drain = noop2;
115683
115683
  queueMicrotask(check);
115684
115684
  };
@@ -115734,18 +115734,18 @@ var require_is_bundled_or_typescript_plugin = __commonJS({
115734
115734
  var require_thenify = __commonJS({
115735
115735
  "../../node_modules/.pnpm/avvio@8.3.2/node_modules/avvio/lib/thenify.js"(exports2, module2) {
115736
115736
  "use strict";
115737
- var { debug: debug22 } = require_debug3();
115737
+ var { debug: debug23 } = require_debug3();
115738
115738
  var { kThenifyDoNotWrap } = require_symbols();
115739
115739
  function thenify() {
115740
115740
  if (this.booted) {
115741
- debug22("thenify returning undefined because we are already booted");
115741
+ debug23("thenify returning undefined because we are already booted");
115742
115742
  return;
115743
115743
  }
115744
115744
  if (this[kThenifyDoNotWrap]) {
115745
115745
  this[kThenifyDoNotWrap] = false;
115746
115746
  return;
115747
115747
  }
115748
- debug22("thenify");
115748
+ debug23("thenify");
115749
115749
  return (resolve, reject) => {
115750
115750
  const p = this._loadRegistered();
115751
115751
  return p.then(() => {
@@ -115800,7 +115800,7 @@ var require_boot = __commonJS({
115800
115800
  } = require_symbols();
115801
115801
  var { TimeTree } = require_time_tree();
115802
115802
  var { Plugin } = require_plugin();
115803
- var { debug: debug22 } = require_debug3();
115803
+ var { debug: debug23 } = require_debug3();
115804
115804
  var { validatePlugin } = require_validate_plugin();
115805
115805
  var { isBundledOrTypescriptPlugin } = require_is_bundled_or_typescript_plugin();
115806
115806
  var { isPromiseLike } = require_is_promise_like();
@@ -115858,7 +115858,7 @@ var require_boot = __commonJS({
115858
115858
  }, opts, false, 0);
115859
115859
  this._trackPluginLoading(this._root);
115860
115860
  this._loadPlugin(this._root, (err) => {
115861
- debug22("root plugin ready");
115861
+ debug23("root plugin ready");
115862
115862
  try {
115863
115863
  this.emit("preReady");
115864
115864
  this._root = null;
@@ -116089,7 +116089,7 @@ var require_boot = __commonJS({
116089
116089
  const last = instance2._current[0];
116090
116090
  instance2._current.unshift(plugin);
116091
116091
  if (instance2._error && !plugin.isAfter) {
116092
- debug22("skipping loading of plugin as instance errored and it is not an after", plugin.name);
116092
+ debug23("skipping loading of plugin as instance errored and it is not an after", plugin.name);
116093
116093
  process.nextTick(execCallback);
116094
116094
  return;
116095
116095
  }
@@ -116098,7 +116098,7 @@ var require_boot = __commonJS({
116098
116098
  try {
116099
116099
  server = instance2.override(server, plugin.func, plugin.options);
116100
116100
  } catch (overrideErr) {
116101
- debug22("override errored", plugin.name);
116101
+ debug23("override errored", plugin.name);
116102
116102
  return execCallback(overrideErr);
116103
116103
  }
116104
116104
  }
@@ -116142,9 +116142,9 @@ var require_boot = __commonJS({
116142
116142
  }
116143
116143
  function timeoutCall(func, rootErr, context53, cb) {
116144
116144
  const name = func.name;
116145
- debug22("setting up ready timeout", name, this._opts.timeout);
116145
+ debug23("setting up ready timeout", name, this._opts.timeout);
116146
116146
  let timer = setTimeout(() => {
116147
- debug22("timed out", name);
116147
+ debug23("timed out", name);
116148
116148
  timer = null;
116149
116149
  const toutErr = new AVV_ERR_READY_TIMEOUT(name);
116150
116150
  toutErr.fn = func;
@@ -116176,7 +116176,7 @@ var require_boot = __commonJS({
116176
116176
  promise = func(this._error);
116177
116177
  }
116178
116178
  if (promise && typeof promise.then === "function") {
116179
- debug22("resolving close/onClose promise");
116179
+ debug23("resolving close/onClose promise");
116180
116180
  promise.then(
116181
116181
  () => process.nextTick(cb),
116182
116182
  (e) => process.nextTick(cb, e)
@@ -124626,9 +124626,9 @@ var require_constants7 = __commonJS({
124626
124626
  // ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js
124627
124627
  var require_debug4 = __commonJS({
124628
124628
  "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports2, module2) {
124629
- var debug22 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
124629
+ var debug23 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
124630
124630
  };
124631
- module2.exports = debug22;
124631
+ module2.exports = debug23;
124632
124632
  }
124633
124633
  });
124634
124634
 
@@ -124640,7 +124640,7 @@ var require_re2 = __commonJS({
124640
124640
  MAX_SAFE_BUILD_LENGTH,
124641
124641
  MAX_LENGTH
124642
124642
  } = require_constants7();
124643
- var debug22 = require_debug4();
124643
+ var debug23 = require_debug4();
124644
124644
  exports2 = module2.exports = {};
124645
124645
  var re2 = exports2.re = [];
124646
124646
  var safeRe = exports2.safeRe = [];
@@ -124662,7 +124662,7 @@ var require_re2 = __commonJS({
124662
124662
  var createToken = (name, value, isGlobal) => {
124663
124663
  const safe = makeSafeRegex(value);
124664
124664
  const index = R2++;
124665
- debug22(name, index, value);
124665
+ debug23(name, index, value);
124666
124666
  t[name] = index;
124667
124667
  src[index] = value;
124668
124668
  re2[index] = new RegExp(value, isGlobal ? "g" : void 0);
@@ -124759,7 +124759,7 @@ var require_identifiers2 = __commonJS({
124759
124759
  // ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
124760
124760
  var require_semver4 = __commonJS({
124761
124761
  "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports2, module2) {
124762
- var debug22 = require_debug4();
124762
+ var debug23 = require_debug4();
124763
124763
  var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2 } = require_constants7();
124764
124764
  var { safeRe: re2, t } = require_re2();
124765
124765
  var parseOptions = require_parse_options2();
@@ -124781,7 +124781,7 @@ var require_semver4 = __commonJS({
124781
124781
  `version is longer than ${MAX_LENGTH} characters`
124782
124782
  );
124783
124783
  }
124784
- debug22("SemVer", version2, options);
124784
+ debug23("SemVer", version2, options);
124785
124785
  this.options = options;
124786
124786
  this.loose = !!options.loose;
124787
124787
  this.includePrerelease = !!options.includePrerelease;
@@ -124829,7 +124829,7 @@ var require_semver4 = __commonJS({
124829
124829
  return this.version;
124830
124830
  }
124831
124831
  compare(other) {
124832
- debug22("SemVer.compare", this.version, this.options, other);
124832
+ debug23("SemVer.compare", this.version, this.options, other);
124833
124833
  if (!(other instanceof _SemVer)) {
124834
124834
  if (typeof other === "string" && other === this.version) {
124835
124835
  return 0;
@@ -124862,7 +124862,7 @@ var require_semver4 = __commonJS({
124862
124862
  do {
124863
124863
  const a = this.prerelease[i];
124864
124864
  const b2 = other.prerelease[i];
124865
- debug22("prerelease compare", i, a, b2);
124865
+ debug23("prerelease compare", i, a, b2);
124866
124866
  if (a === void 0 && b2 === void 0) {
124867
124867
  return 0;
124868
124868
  } else if (b2 === void 0) {
@@ -124884,7 +124884,7 @@ var require_semver4 = __commonJS({
124884
124884
  do {
124885
124885
  const a = this.build[i];
124886
124886
  const b2 = other.build[i];
124887
- debug22("build compare", i, a, b2);
124887
+ debug23("build compare", i, a, b2);
124888
124888
  if (a === void 0 && b2 === void 0) {
124889
124889
  return 0;
124890
124890
  } else if (b2 === void 0) {
@@ -125474,21 +125474,21 @@ var require_range3 = __commonJS({
125474
125474
  const loose = this.options.loose;
125475
125475
  const hr2 = loose ? re2[t.HYPHENRANGELOOSE] : re2[t.HYPHENRANGE];
125476
125476
  range = range.replace(hr2, hyphenReplace(this.options.includePrerelease));
125477
- debug22("hyphen replace", range);
125477
+ debug23("hyphen replace", range);
125478
125478
  range = range.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace);
125479
- debug22("comparator trim", range);
125479
+ debug23("comparator trim", range);
125480
125480
  range = range.replace(re2[t.TILDETRIM], tildeTrimReplace);
125481
- debug22("tilde trim", range);
125481
+ debug23("tilde trim", range);
125482
125482
  range = range.replace(re2[t.CARETTRIM], caretTrimReplace);
125483
- debug22("caret trim", range);
125483
+ debug23("caret trim", range);
125484
125484
  let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
125485
125485
  if (loose) {
125486
125486
  rangeList = rangeList.filter((comp) => {
125487
- debug22("loose invalid filter", comp, this.options);
125487
+ debug23("loose invalid filter", comp, this.options);
125488
125488
  return !!comp.match(re2[t.COMPARATORLOOSE]);
125489
125489
  });
125490
125490
  }
125491
- debug22("range list", rangeList);
125491
+ debug23("range list", rangeList);
125492
125492
  const rangeMap = /* @__PURE__ */ new Map();
125493
125493
  const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
125494
125494
  for (const comp of comparators) {
@@ -125543,7 +125543,7 @@ var require_range3 = __commonJS({
125543
125543
  var cache2 = new LRU();
125544
125544
  var parseOptions = require_parse_options2();
125545
125545
  var Comparator = require_comparator2();
125546
- var debug22 = require_debug4();
125546
+ var debug23 = require_debug4();
125547
125547
  var SemVer = require_semver4();
125548
125548
  var {
125549
125549
  safeRe: re2,
@@ -125568,15 +125568,15 @@ var require_range3 = __commonJS({
125568
125568
  return result;
125569
125569
  };
125570
125570
  var parseComparator = (comp, options) => {
125571
- debug22("comp", comp, options);
125571
+ debug23("comp", comp, options);
125572
125572
  comp = replaceCarets(comp, options);
125573
- debug22("caret", comp);
125573
+ debug23("caret", comp);
125574
125574
  comp = replaceTildes(comp, options);
125575
- debug22("tildes", comp);
125575
+ debug23("tildes", comp);
125576
125576
  comp = replaceXRanges(comp, options);
125577
- debug22("xrange", comp);
125577
+ debug23("xrange", comp);
125578
125578
  comp = replaceStars(comp, options);
125579
- debug22("stars", comp);
125579
+ debug23("stars", comp);
125580
125580
  return comp;
125581
125581
  };
125582
125582
  var isX = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
@@ -125586,7 +125586,7 @@ var require_range3 = __commonJS({
125586
125586
  var replaceTilde = (comp, options) => {
125587
125587
  const r = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
125588
125588
  return comp.replace(r, (_, M2, m2, p, pr2) => {
125589
- debug22("tilde", comp, _, M2, m2, p, pr2);
125589
+ debug23("tilde", comp, _, M2, m2, p, pr2);
125590
125590
  let ret;
125591
125591
  if (isX(M2)) {
125592
125592
  ret = "";
@@ -125595,12 +125595,12 @@ var require_range3 = __commonJS({
125595
125595
  } else if (isX(p)) {
125596
125596
  ret = `>=${M2}.${m2}.0 <${M2}.${+m2 + 1}.0-0`;
125597
125597
  } else if (pr2) {
125598
- debug22("replaceTilde pr", pr2);
125598
+ debug23("replaceTilde pr", pr2);
125599
125599
  ret = `>=${M2}.${m2}.${p}-${pr2} <${M2}.${+m2 + 1}.0-0`;
125600
125600
  } else {
125601
125601
  ret = `>=${M2}.${m2}.${p} <${M2}.${+m2 + 1}.0-0`;
125602
125602
  }
125603
- debug22("tilde return", ret);
125603
+ debug23("tilde return", ret);
125604
125604
  return ret;
125605
125605
  });
125606
125606
  };
@@ -125608,11 +125608,11 @@ var require_range3 = __commonJS({
125608
125608
  return comp.trim().split(/\s+/).map((c2) => replaceCaret(c2, options)).join(" ");
125609
125609
  };
125610
125610
  var replaceCaret = (comp, options) => {
125611
- debug22("caret", comp, options);
125611
+ debug23("caret", comp, options);
125612
125612
  const r = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
125613
125613
  const z2 = options.includePrerelease ? "-0" : "";
125614
125614
  return comp.replace(r, (_, M2, m2, p, pr2) => {
125615
- debug22("caret", comp, _, M2, m2, p, pr2);
125615
+ debug23("caret", comp, _, M2, m2, p, pr2);
125616
125616
  let ret;
125617
125617
  if (isX(M2)) {
125618
125618
  ret = "";
@@ -125625,7 +125625,7 @@ var require_range3 = __commonJS({
125625
125625
  ret = `>=${M2}.${m2}.0${z2} <${+M2 + 1}.0.0-0`;
125626
125626
  }
125627
125627
  } else if (pr2) {
125628
- debug22("replaceCaret pr", pr2);
125628
+ debug23("replaceCaret pr", pr2);
125629
125629
  if (M2 === "0") {
125630
125630
  if (m2 === "0") {
125631
125631
  ret = `>=${M2}.${m2}.${p}-${pr2} <${M2}.${m2}.${+p + 1}-0`;
@@ -125636,7 +125636,7 @@ var require_range3 = __commonJS({
125636
125636
  ret = `>=${M2}.${m2}.${p}-${pr2} <${+M2 + 1}.0.0-0`;
125637
125637
  }
125638
125638
  } else {
125639
- debug22("no pr");
125639
+ debug23("no pr");
125640
125640
  if (M2 === "0") {
125641
125641
  if (m2 === "0") {
125642
125642
  ret = `>=${M2}.${m2}.${p}${z2} <${M2}.${m2}.${+p + 1}-0`;
@@ -125647,19 +125647,19 @@ var require_range3 = __commonJS({
125647
125647
  ret = `>=${M2}.${m2}.${p} <${+M2 + 1}.0.0-0`;
125648
125648
  }
125649
125649
  }
125650
- debug22("caret return", ret);
125650
+ debug23("caret return", ret);
125651
125651
  return ret;
125652
125652
  });
125653
125653
  };
125654
125654
  var replaceXRanges = (comp, options) => {
125655
- debug22("replaceXRanges", comp, options);
125655
+ debug23("replaceXRanges", comp, options);
125656
125656
  return comp.split(/\s+/).map((c2) => replaceXRange(c2, options)).join(" ");
125657
125657
  };
125658
125658
  var replaceXRange = (comp, options) => {
125659
125659
  comp = comp.trim();
125660
125660
  const r = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
125661
125661
  return comp.replace(r, (ret, gtlt, M2, m2, p, pr2) => {
125662
- debug22("xRange", comp, ret, gtlt, M2, m2, p, pr2);
125662
+ debug23("xRange", comp, ret, gtlt, M2, m2, p, pr2);
125663
125663
  const xM = isX(M2);
125664
125664
  const xm2 = xM || isX(m2);
125665
125665
  const xp2 = xm2 || isX(p);
@@ -125706,16 +125706,16 @@ var require_range3 = __commonJS({
125706
125706
  } else if (xp2) {
125707
125707
  ret = `>=${M2}.${m2}.0${pr2} <${M2}.${+m2 + 1}.0-0`;
125708
125708
  }
125709
- debug22("xRange return", ret);
125709
+ debug23("xRange return", ret);
125710
125710
  return ret;
125711
125711
  });
125712
125712
  };
125713
125713
  var replaceStars = (comp, options) => {
125714
- debug22("replaceStars", comp, options);
125714
+ debug23("replaceStars", comp, options);
125715
125715
  return comp.trim().replace(re2[t.STAR], "");
125716
125716
  };
125717
125717
  var replaceGTE0 = (comp, options) => {
125718
- debug22("replaceGTE0", comp, options);
125718
+ debug23("replaceGTE0", comp, options);
125719
125719
  return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
125720
125720
  };
125721
125721
  var hyphenReplace = (incPr) => ($0, from, fM, fm2, fp2, fpr, fb, to2, tM, tm2, tp2, tpr) => {
@@ -125753,7 +125753,7 @@ var require_range3 = __commonJS({
125753
125753
  }
125754
125754
  if (version2.prerelease.length && !options.includePrerelease) {
125755
125755
  for (let i = 0; i < set2.length; i++) {
125756
- debug22(set2[i].semver);
125756
+ debug23(set2[i].semver);
125757
125757
  if (set2[i].semver === Comparator.ANY) {
125758
125758
  continue;
125759
125759
  }
@@ -125789,7 +125789,7 @@ var require_comparator2 = __commonJS({
125789
125789
  }
125790
125790
  }
125791
125791
  comp = comp.trim().split(/\s+/).join(" ");
125792
- debug22("comparator", comp, options);
125792
+ debug23("comparator", comp, options);
125793
125793
  this.options = options;
125794
125794
  this.loose = !!options.loose;
125795
125795
  this.parse(comp);
@@ -125798,7 +125798,7 @@ var require_comparator2 = __commonJS({
125798
125798
  } else {
125799
125799
  this.value = this.operator + this.semver.version;
125800
125800
  }
125801
- debug22("comp", this);
125801
+ debug23("comp", this);
125802
125802
  }
125803
125803
  parse(comp) {
125804
125804
  const r = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
@@ -125820,7 +125820,7 @@ var require_comparator2 = __commonJS({
125820
125820
  return this.value;
125821
125821
  }
125822
125822
  test(version2) {
125823
- debug22("Comparator.test", version2, this.options.loose);
125823
+ debug23("Comparator.test", version2, this.options.loose);
125824
125824
  if (this.semver === ANY || version2 === ANY) {
125825
125825
  return true;
125826
125826
  }
@@ -125877,7 +125877,7 @@ var require_comparator2 = __commonJS({
125877
125877
  var parseOptions = require_parse_options2();
125878
125878
  var { safeRe: re2, t } = require_re2();
125879
125879
  var cmp = require_cmp2();
125880
- var debug22 = require_debug4();
125880
+ var debug23 = require_debug4();
125881
125881
  var SemVer = require_semver4();
125882
125882
  var Range = require_range3();
125883
125883
  }
@@ -147438,7 +147438,7 @@ var opentelemetry = __toESM(require_src30());
147438
147438
  var import_register = __toESM(require_register());
147439
147439
 
147440
147440
  // ../../package.json
147441
- var version = "0.0.1-21";
147441
+ var version = "0.0.1-22";
147442
147442
 
147443
147443
  // ../utils/syncSleep/index.ts
147444
147444
  function synchronousBlock(seconds) {
@@ -147508,6 +147508,13 @@ var DEFAULT_SERVER_HOST_LISTEN_ON_ALL_INTERFACES = "::";
147508
147508
  var DEFAULT_TRANSACTION_TIMEOUT_MS = 30 * 1e3;
147509
147509
  var NODE_SQL_PARSER_TIMEOUT = 5e3;
147510
147510
  var HT_SDK_PLATFORM_HEADER = "ht-sdk-platform-header";
147511
+ var GIT_DIFF_IGNORED_FILES = [
147512
+ "package.json",
147513
+ "package-lock.json",
147514
+ "yarn.lock",
147515
+ "pnpm-lock.yaml",
147516
+ "bun.lockb"
147517
+ ];
147511
147518
  var CURRENT_REPLAY_RESULT_MOCK_SCHEMA_MAP_VERSION = "v2";
147512
147519
 
147513
147520
  // ../utils/types/index.ts
@@ -161597,6 +161604,61 @@ var manualRequest = {
161597
161604
  create
161598
161605
  };
161599
161606
 
161607
+ // src/helpers/getUncommittedChanges.ts
161608
+ var import_child_process6 = require("child_process");
161609
+ var debug8 = debug_default("ht-node-sdk::getUncommittedChanges");
161610
+ function getUncommittedChanges() {
161611
+ const projectRoot2 = getProjectRoot();
161612
+ let command = "git diff HEAD";
161613
+ if (GIT_DIFF_IGNORED_FILES.length > 0) {
161614
+ const excludeArgs = GIT_DIFF_IGNORED_FILES.map((pattern) => `':!${pattern}'`).join(" ");
161615
+ command += ` -- . ':!.*' ${excludeArgs}`;
161616
+ }
161617
+ debug8(`Executing: ${command}`);
161618
+ return (0, import_child_process6.execSync)(command, { cwd: projectRoot2 }).toString();
161619
+ }
161620
+
161621
+ // src/helpers/isCurrentFolderAGitRepo.ts
161622
+ var import_child_process7 = require("child_process");
161623
+ function isCurrentFolderInGitRepoFn() {
161624
+ try {
161625
+ (0, import_child_process7.execSync)("git rev-parse HEAD");
161626
+ } catch (_err) {
161627
+ return false;
161628
+ }
161629
+ return true;
161630
+ }
161631
+
161632
+ // src/helpers/isHavingUncommittedChanges.ts
161633
+ var import_child_process8 = require("child_process");
161634
+ function isHavingUncommittedChangesFn() {
161635
+ const projectRoot2 = getProjectRoot();
161636
+ const pathspecs = [":!.*"];
161637
+ pathspecs.push(...GIT_DIFF_IGNORED_FILES.map((file) => `:!${file}`));
161638
+ const pathspecArgs = pathspecs.join(" ");
161639
+ try {
161640
+ (0, import_child_process8.execSync)(
161641
+ `git diff --ignore-submodules --quiet --exit-code -- ${pathspecArgs}`,
161642
+ {
161643
+ cwd: projectRoot2
161644
+ }
161645
+ );
161646
+ } catch (_err) {
161647
+ return true;
161648
+ }
161649
+ try {
161650
+ (0, import_child_process8.execSync)(
161651
+ `git diff --ignore-submodules --quiet --exit-code --staged -- ${pathspecArgs}`,
161652
+ {
161653
+ cwd: projectRoot2
161654
+ }
161655
+ );
161656
+ } catch (_err) {
161657
+ return true;
161658
+ }
161659
+ return false;
161660
+ }
161661
+
161600
161662
  // src/instrumentation/core/types/ExperimentalFlagEnums.ts
161601
161663
  var ExperimentalFlags = /* @__PURE__ */ ((ExperimentalFlags2) => {
161602
161664
  ExperimentalFlags2["EnableSqlite3Instrumentation"] = "enableSqlite3Instrumentation";
@@ -161737,7 +161799,7 @@ var isContinuousCoverageActive = async (backendBaseUrl, serviceIdentifier) => {
161737
161799
  };
161738
161800
 
161739
161801
  // src/instrumentation/helpers/measureContinuousCoverage.ts
161740
- var debug8 = debug_default("ht::node-sdk::measureContinuosCoverage");
161802
+ var debug9 = debug_default("ht::node-sdk::measureContinuosCoverage");
161741
161803
  async function calculateContinuousCoverage({
161742
161804
  serviceIdentifier,
161743
161805
  buildId,
@@ -161746,7 +161808,7 @@ async function calculateContinuousCoverage({
161746
161808
  if (!("__coverage__" in global)) {
161747
161809
  return;
161748
161810
  }
161749
- debug8("Calculating continuous coverage...");
161811
+ debug9("Calculating continuous coverage...");
161750
161812
  const globalCoverage = global.__coverage__;
161751
161813
  const latestCoverage = {};
161752
161814
  const filePaths = Object.keys(globalCoverage);
@@ -161775,7 +161837,7 @@ async function calculateContinuousCoverage({
161775
161837
  commitHash: getGitCommitHash(),
161776
161838
  coverage: latestCoverage
161777
161839
  });
161778
- debug8("Calculated continuous coverage.");
161840
+ debug9("Calculated continuous coverage.");
161779
161841
  } catch (e) {
161780
161842
  console.error("Error in updating coverage.", e);
161781
161843
  }
@@ -161807,7 +161869,7 @@ var measureContinuousCoverage = ({
161807
161869
  return;
161808
161870
  }
161809
161871
  if (!("__coverage__" in global)) {
161810
- debug8("__coverage__ not found in global");
161872
+ debug9("__coverage__ not found in global");
161811
161873
  console.error(
161812
161874
  "App not started with nyc. Not measuring continuous coverage."
161813
161875
  );
@@ -161824,10 +161886,10 @@ var measureContinuousCoverage = ({
161824
161886
  serviceId
161825
161887
  );
161826
161888
  if (!isActive) {
161827
- debug8(`Continuous coverage is not active for service '${serviceId}'.`);
161889
+ debug9(`Continuous coverage is not active for service '${serviceId}'.`);
161828
161890
  return;
161829
161891
  }
161830
- debug8(`Continuous coverage is active for service '${serviceId}'.`);
161892
+ debug9(`Continuous coverage is active for service '${serviceId}'.`);
161831
161893
  await calculateContinuousCoverage({
161832
161894
  serviceIdentifier: serviceId,
161833
161895
  instanceJobId,
@@ -162388,7 +162450,7 @@ var import_semver = __toESM(require_semver3());
162388
162450
  // src/instrumentation/core/helpers/shimmer.ts
162389
162451
  var import_api27 = __toESM(require_src());
162390
162452
  var logger = console.error.bind(console);
162391
- var debug9 = debug_default("debug-ht-node-sdk:shimmer");
162453
+ var debug10 = debug_default("debug-ht-node-sdk:shimmer");
162392
162454
  function defineProperty(obj, name, value) {
162393
162455
  Object.defineProperty(obj, name, {
162394
162456
  configurable: true,
@@ -162407,7 +162469,7 @@ function wrap(nodule, name, wrapper) {
162407
162469
  logger(`no original function ${name.description} to wrap`);
162408
162470
  return;
162409
162471
  }
162410
- debug9(`no original function ${name} to wrap`);
162472
+ debug10(`no original function ${name} to wrap`);
162411
162473
  return;
162412
162474
  }
162413
162475
  if (!wrapper) {
@@ -162424,7 +162486,7 @@ function wrap(nodule, name, wrapper) {
162424
162486
  const wrapped = function(...args) {
162425
162487
  const isDate2 = nodule === global && name === "Date";
162426
162488
  if (!isDate2) {
162427
- debug9(
162489
+ debug10(
162428
162490
  `Inside meta wrapper for ${typeof name === "string" ? name : name.description} method, ${internalWrapper.name} patch function`
162429
162491
  );
162430
162492
  }
@@ -187065,7 +187127,7 @@ var import_mysql = __toESM(require_mysql());
187065
187127
  var import_vm = require("vm");
187066
187128
  var import_rfdc8 = __toESM(require_rfdc());
187067
187129
  var clone2 = (0, import_rfdc8.default)();
187068
- var debug10 = debug_default("ht-sql-parser");
187130
+ var debug11 = debug_default("ht-sql-parser");
187069
187131
  function removeValueField(obj) {
187070
187132
  if (typeof obj !== "object" || obj === null) {
187071
187133
  return;
@@ -187121,8 +187183,8 @@ var SqlParser = class {
187121
187183
  dialect: this.dialect
187122
187184
  }
187123
187185
  };
187124
- debug10(`Error parsing sql query - ${sql}, parser - ${this.dialect}`);
187125
- debug10(e);
187186
+ debug11(`Error parsing sql query - ${sql}, parser - ${this.dialect}`);
187187
+ debug11(e);
187126
187188
  if (e.message.includes("Script execution timed out")) {
187127
187189
  sqlErrorPayload.event = "sql_parser_timeout";
187128
187190
  console.error(
@@ -187163,7 +187225,7 @@ var SqlParser = class {
187163
187225
  const startTime = Date.now();
187164
187226
  const sql = this.parser.sqlify(ast);
187165
187227
  const interval = Date.now() - startTime;
187166
- debug10(
187228
+ debug11(
187167
187229
  `Time taken to sqlify ast - ${interval / 1e3} seconds, by parser - ${this.dialect}`
187168
187230
  );
187169
187231
  return sql;
@@ -202991,7 +203053,7 @@ var GraphqlServerRequestMock = class extends HtServerMockAbstract {
202991
203053
 
202992
203054
  // src/instrumentation/libraries/graphql/utils.ts
202993
203055
  var import_api50 = __toESM(require_src());
202994
- var debug11 = debug_default("ht-instrumentation-graphql::utils");
203056
+ var debug12 = debug_default("ht-instrumentation-graphql::utils");
202995
203057
  var getTypeString = (typeNode) => {
202996
203058
  if (typeNode.kind === "NonNullType") {
202997
203059
  return `${getTypeString(typeNode.type)}!`;
@@ -203091,7 +203153,7 @@ var getVariablesUsed = (currentSelection) => {
203091
203153
  }
203092
203154
  }
203093
203155
  } else {
203094
- debug11(`unhandled arg ${arg.kind} - ${arg.value.kind}`);
203156
+ debug12(`unhandled arg ${arg.kind} - ${arg.value.kind}`);
203095
203157
  sendPostHogEvent(
203096
203158
  "graphql_unhandled_arg_parsing_error",
203097
203159
  arg,
@@ -203481,7 +203543,7 @@ var addSamplingModeHeader = (requestHeaders) => {
203481
203543
  };
203482
203544
 
203483
203545
  // src/instrumentation/libraries/graphql/instrumentation.ts
203484
- var debug12 = debug_default("ht-instrumentation-graphql" /* HtGraphqlInstrumentation */);
203546
+ var debug13 = debug_default("ht-instrumentation-graphql" /* HtGraphqlInstrumentation */);
203485
203547
  var HtGraphqlInstrumentation = class extends HtInstrumentationBase {
203486
203548
  _Original_ApolloServer;
203487
203549
  _HT_Patched_ApolloServer;
@@ -203879,7 +203941,7 @@ var HtGraphqlInstrumentation = class extends HtInstrumentationBase {
203879
203941
  }
203880
203942
  if (plugin.IS_REPLAY_MODE) {
203881
203943
  const graphqlReqId = import_api51.context.active().getValue(HT_REQUEST_ID);
203882
- debug12(`received graphql req with htRequestId - ${graphqlReqId}`);
203944
+ debug13(`received graphql req with htRequestId - ${graphqlReqId}`);
203883
203945
  const storeInstance5 = MemoryStore.getInstance();
203884
203946
  const selectionSet = storeInstance5.getSelectionSet(graphqlReqId);
203885
203947
  const shouldInstrumentDate = shouldInstrumentDateInGraphqlRequest({
@@ -204266,7 +204328,7 @@ var HtGraphqlInstrumentation = class extends HtInstrumentationBase {
204266
204328
  }
204267
204329
  if (plugin.IS_REPLAY_MODE) {
204268
204330
  const graphqlReqId = import_api51.context.active().getValue(HT_REQUEST_ID);
204269
- debug12(`received graphql req with htRequestId - ${graphqlReqId}`);
204331
+ debug13(`received graphql req with htRequestId - ${graphqlReqId}`);
204270
204332
  const storeInstance5 = MemoryStore.getInstance();
204271
204333
  const selectionSet = storeInstance5.getSelectionSet(graphqlReqId);
204272
204334
  const shouldInstrumentDate = shouldInstrumentDateInGraphqlRequest({
@@ -205970,7 +206032,7 @@ var generateClusterPath_default = generateClusterPath;
205970
206032
 
205971
206033
  // src/instrumentation/libraries/http/helpers/decodeBody.ts
205972
206034
  var zlib3 = __toESM(require("zlib"));
205973
- var debug13 = debug_default(
206035
+ var debug14 = debug_default(
205974
206036
  `${"ht-instrumentation-http" /* HtHttpInstrumentation */}-bodyDecoder`
205975
206037
  );
205976
206038
  var encodingFunctionMap = {
@@ -205990,7 +206052,7 @@ var decodeBody = async (buffer, encoding) => {
205990
206052
  });
205991
206053
  });
205992
206054
  }
205993
- debug13(`Unknown encoding: ${encoding} - skipping decoding.`);
206055
+ debug14(`Unknown encoding: ${encoding} - skipping decoding.`);
205994
206056
  return Promise.resolve(buffer);
205995
206057
  };
205996
206058
 
@@ -205999,7 +206061,7 @@ var import_stream9 = require("stream");
205999
206061
  var import_busboy = __toESM(require_lib5());
206000
206062
  var import_qs4 = __toESM(require_lib4());
206001
206063
  var MULTIPART_FORM_DATA_HEADER = "multipart/form-data";
206002
- var debug14 = debug_default("ht-instrumentation-http" /* HtHttpInstrumentation */);
206064
+ var debug15 = debug_default("ht-instrumentation-http" /* HtHttpInstrumentation */);
206003
206065
  function busboyMultipartParserAsync(buffer, contentType) {
206004
206066
  return new Promise((resolve, reject) => {
206005
206067
  const boundary = contentType.split("boundary=")[1];
@@ -206116,7 +206178,7 @@ var htHttpBodyParserMultipart = async (bodyBuffer, contentType) => {
206116
206178
  jsonBody = { fields, filesMetaData };
206117
206179
  multipartFiles = filesBodyArr;
206118
206180
  } catch (_err) {
206119
- debug14("Error occurred while parsing body");
206181
+ debug15("Error occurred while parsing body");
206120
206182
  bodyType = HtHttpBodyType.RAW;
206121
206183
  bodyParsingError = true;
206122
206184
  const { bufferStr, encoding } = bufferToString(bodyBuffer);
@@ -206158,14 +206220,14 @@ var htHttpBodyParserSync = (bodyBuffer, contentType) => {
206158
206220
  rawBody = bufferStr;
206159
206221
  rawBodyEncoding = encoding;
206160
206222
  } else if (bodyBuffer.length > 0) {
206161
- debug14("contentType not found in htHttpBodyParser");
206223
+ debug15("contentType not found in htHttpBodyParser");
206162
206224
  bodyType = HtHttpBodyType.UNSPECIFIED;
206163
206225
  const { bufferStr, encoding } = bufferToString(bodyBuffer);
206164
206226
  rawBody = bufferStr;
206165
206227
  rawBodyEncoding = encoding;
206166
206228
  }
206167
206229
  } catch (_err) {
206168
- debug14("Error occurred while parsing body");
206230
+ debug15("Error occurred while parsing body");
206169
206231
  bodyType = HtHttpBodyType.RAW;
206170
206232
  bodyParsingError = true;
206171
206233
  const { bufferStr, encoding } = bufferToString(bodyBuffer);
@@ -206190,7 +206252,7 @@ var htHttpBodyParser = async (bodyBuffer, contentType) => {
206190
206252
  };
206191
206253
 
206192
206254
  // src/instrumentation/libraries/http/httpHooks.ts
206193
- var debug15 = debug_default("ht-instrumentation-http" /* HtHttpInstrumentation */);
206255
+ var debug16 = debug_default("ht-instrumentation-http" /* HtHttpInstrumentation */);
206194
206256
  var CONTENT_ENCODING_LOWER_CASE = "content-encoding";
206195
206257
  var httpReqObjWeakMap = /* @__PURE__ */ new WeakMap();
206196
206258
  var parseHeaders = (headers) => {
@@ -206294,12 +206356,12 @@ var parseAndStoreFetchHttpRequest = async ({
206294
206356
  const { httpMeta, ...readableInput } = fetchReqInputObj;
206295
206357
  mock.setReadableInput(readableInput, httpMeta || {});
206296
206358
  } catch (e) {
206297
- debug15(e);
206298
- debug15("Error occurred while setting client request body.");
206359
+ debug16(e);
206360
+ debug16("Error occurred while setting client request body.");
206299
206361
  }
206300
206362
  }).catch(async (err) => {
206301
- debug15(err);
206302
- debug15(
206363
+ debug16(err);
206364
+ debug16(
206303
206365
  `Error occurred while decoding "${encoding}" client request payload.`
206304
206366
  );
206305
206367
  try {
@@ -206310,8 +206372,8 @@ var parseAndStoreFetchHttpRequest = async ({
206310
206372
  const { httpMeta, ...readableInput } = fetchReqInputObj;
206311
206373
  mock.setReadableInput(readableInput, httpMeta || {});
206312
206374
  } catch (e) {
206313
- debug15(e);
206314
- debug15("Error occurred while setting client request body.");
206375
+ debug16(e);
206376
+ debug16("Error occurred while setting client request body.");
206315
206377
  }
206316
206378
  });
206317
206379
  } else {
@@ -206323,8 +206385,8 @@ var parseAndStoreFetchHttpRequest = async ({
206323
206385
  const { httpMeta, ...readableInput } = fetchReqInputObj;
206324
206386
  mock.setReadableInput(readableInput, httpMeta || {});
206325
206387
  } catch (e) {
206326
- debug15(e);
206327
- debug15("Error occurred while setting client request body.");
206388
+ debug16(e);
206389
+ debug16("Error occurred while setting client request body.");
206328
206390
  }
206329
206391
  }
206330
206392
  } else {
@@ -206522,8 +206584,8 @@ var httpServerRequestHookRecordMode = (req, mock) => {
206522
206584
  try {
206523
206585
  decodedBody = await decodeBody(bodyBuffer, encoding);
206524
206586
  } catch (err) {
206525
- debug15(err);
206526
- debug15(
206587
+ debug16(err);
206588
+ debug16(
206527
206589
  `Error occurred while decoding "${encoding}" incoming request payload`
206528
206590
  );
206529
206591
  }
@@ -206536,8 +206598,8 @@ var httpServerRequestHookRecordMode = (req, mock) => {
206536
206598
  bodyBuffer: decodedBody
206537
206599
  });
206538
206600
  } catch (e) {
206539
- debug15(e);
206540
- debug15("Error occurred while setting server request body.");
206601
+ debug16(e);
206602
+ debug16("Error occurred while setting server request body.");
206541
206603
  }
206542
206604
  });
206543
206605
  });
@@ -206591,12 +206653,12 @@ var httpServerResponseHookRecordMode = (res, mock) => {
206591
206653
  mock,
206592
206654
  bodyBuffer: decodedBuffer
206593
206655
  }).catch((e) => {
206594
- debug15(e);
206595
- debug15("Error occurred while setting server response. #HH-01");
206656
+ debug16(e);
206657
+ debug16("Error occurred while setting server response. #HH-01");
206596
206658
  });
206597
206659
  }).catch((err) => {
206598
- debug15(err);
206599
- debug15(
206660
+ debug16(err);
206661
+ debug16(
206600
206662
  `Error occurred while decoding "${encoding}" server response. #HH-02`
206601
206663
  );
206602
206664
  parseAndSetServerResponseRecordMode({
@@ -206605,8 +206667,8 @@ var httpServerResponseHookRecordMode = (res, mock) => {
206605
206667
  mock,
206606
206668
  bodyBuffer: buffer
206607
206669
  }).catch((e) => {
206608
- debug15(e);
206609
- debug15("Error occurred while setting server response. #HH-03");
206670
+ debug16(e);
206671
+ debug16("Error occurred while setting server response. #HH-03");
206610
206672
  });
206611
206673
  });
206612
206674
  } else {
@@ -206616,8 +206678,8 @@ var httpServerResponseHookRecordMode = (res, mock) => {
206616
206678
  mock,
206617
206679
  bodyBuffer: buffer
206618
206680
  }).catch((e) => {
206619
- debug15(e);
206620
- debug15("Error occurred while setting server response. #HH-04");
206681
+ debug16(e);
206682
+ debug16("Error occurred while setting server response. #HH-04");
206621
206683
  });
206622
206684
  }
206623
206685
  const cTraceId = getCurrTraceId();
@@ -206694,7 +206756,7 @@ var httpClientRequestHookRecordMode = (req, _mock) => {
206694
206756
  );
206695
206757
  }
206696
206758
  }
206697
- debug15(`Outbound request hook trace id: ${currTraceId}`);
206759
+ debug16(`Outbound request hook trace id: ${currTraceId}`);
206698
206760
  const oldEnd = req.end;
206699
206761
  const outgoingChunks = [];
206700
206762
  req.write = function write(...args) {
@@ -206716,12 +206778,12 @@ var httpClientRequestHookRecordMode = (req, _mock) => {
206716
206778
  htHttReqWithoutBody,
206717
206779
  bodyBuffer: decodedBuffer
206718
206780
  }).catch((e) => {
206719
- debug15(e);
206720
- debug15("Error occurred while setting client request body.");
206781
+ debug16(e);
206782
+ debug16("Error occurred while setting client request body.");
206721
206783
  });
206722
206784
  }).catch((err) => {
206723
- debug15(err);
206724
- debug15(
206785
+ debug16(err);
206786
+ debug16(
206725
206787
  `Error occurred while decoding "${encoding}" client request payload.`
206726
206788
  );
206727
206789
  parseAndSetClientRequestRecordMode({
@@ -206729,8 +206791,8 @@ var httpClientRequestHookRecordMode = (req, _mock) => {
206729
206791
  htHttReqWithoutBody,
206730
206792
  bodyBuffer
206731
206793
  }).catch((e) => {
206732
- debug15(e);
206733
- debug15("Error occurred while setting client request body.");
206794
+ debug16(e);
206795
+ debug16("Error occurred while setting client request body.");
206734
206796
  });
206735
206797
  });
206736
206798
  } else {
@@ -206739,8 +206801,8 @@ var httpClientRequestHookRecordMode = (req, _mock) => {
206739
206801
  htHttReqWithoutBody,
206740
206802
  bodyBuffer
206741
206803
  }).catch((e) => {
206742
- debug15(e);
206743
- debug15("Error occurred while setting client request body.");
206804
+ debug16(e);
206805
+ debug16("Error occurred while setting client request body.");
206744
206806
  });
206745
206807
  }
206746
206808
  return oldEnd.apply(req, args);
@@ -206813,8 +206875,8 @@ var httpClientResponseHookRecordMode = (req, res, mock) => {
206813
206875
  try {
206814
206876
  decodedBody = await decodeBody(buffer, encoding);
206815
206877
  } catch (err) {
206816
- debug15(err);
206817
- debug15(
206878
+ debug16(err);
206879
+ debug16(
206818
206880
  `Error occurred while decoding "${encoding}" client request's response body.`
206819
206881
  );
206820
206882
  }
@@ -206827,8 +206889,8 @@ var httpClientResponseHookRecordMode = (req, res, mock) => {
206827
206889
  bodyBuffer: decodedBody
206828
206890
  });
206829
206891
  } catch (e) {
206830
- debug15(e);
206831
- debug15("Error occurred while setting server request body.");
206892
+ debug16(e);
206893
+ debug16("Error occurred while setting server request body.");
206832
206894
  }
206833
206895
  });
206834
206896
  };
@@ -206934,12 +206996,12 @@ var httpServerResponseHookReplayMode = (res, req, mock) => {
206934
206996
  bodyBuffer: decodedBuffer
206935
206997
  });
206936
206998
  } catch (e) {
206937
- debug15(e);
206938
- debug15("Error occurred while setting server response for replay");
206999
+ debug16(e);
207000
+ debug16("Error occurred while setting server response for replay");
206939
207001
  }
206940
207002
  }).catch((err) => {
206941
- debug15(err);
206942
- debug15("Error occurred while decoding server response for replay");
207003
+ debug16(err);
207004
+ debug16("Error occurred while decoding server response for replay");
206943
207005
  try {
206944
207006
  parseAndSetServerResponseReplayMode({
206945
207007
  res,
@@ -206950,8 +207012,8 @@ var httpServerResponseHookReplayMode = (res, req, mock) => {
206950
207012
  bodyBuffer: buffer
206951
207013
  });
206952
207014
  } catch (e) {
206953
- debug15(e);
206954
- debug15("Error occurred while setting server response for replay");
207015
+ debug16(e);
207016
+ debug16("Error occurred while setting server response for replay");
206955
207017
  }
206956
207018
  });
206957
207019
  } else {
@@ -206965,8 +207027,8 @@ var httpServerResponseHookReplayMode = (res, req, mock) => {
206965
207027
  bodyBuffer: buffer
206966
207028
  });
206967
207029
  } catch (e) {
206968
- debug15(e);
206969
- debug15("Error occurred while setting server response for replay");
207030
+ debug16(e);
207031
+ debug16("Error occurred while setting server response for replay");
206970
207032
  }
206971
207033
  }
206972
207034
  }
@@ -207406,7 +207468,7 @@ var HttpClientRequestMock = class _HttpClientRequestMock extends HtInstrumentati
207406
207468
  };
207407
207469
 
207408
207470
  // src/instrumentation/libraries/http/HtMockClientRequest.ts
207409
- var debug16 = debug_default(
207471
+ var debug17 = debug_default(
207410
207472
  `${"ht-instrumentation-http" /* HtHttpInstrumentation */}-HtMockClientRequest`
207411
207473
  );
207412
207474
  var CONTENT_ENCODING_LOWER_CASE2 = "content-encoding";
@@ -207609,8 +207671,8 @@ var HtMockClientRequest = class {
207609
207671
  contentEncoding
207610
207672
  );
207611
207673
  } catch (e) {
207612
- debug16(e);
207613
- debug16("Error occurred while decoding the client request body.");
207674
+ debug17(e);
207675
+ debug17("Error occurred while decoding the client request body.");
207614
207676
  }
207615
207677
  }
207616
207678
  const reqContentType = req.getHeader(CONTENT_TYPE_LOWER_CASE) ?? req.getHeader(CONTENT_TYPE_PASCAL_CASE);
@@ -207657,8 +207719,8 @@ var HtMockClientRequest = class {
207657
207719
  try {
207658
207720
  mockObj = mock.getReplayValue();
207659
207721
  } catch (e) {
207660
- debug16(e);
207661
- debug16("Error in getting http client mock replay value");
207722
+ debug17(e);
207723
+ debug17("Error in getting http client mock replay value");
207662
207724
  if (process.env.SHOULD_EMIT_ERROR_IN_HTTP_OUTBOUND === "true") {
207663
207725
  this.emit("error", e);
207664
207726
  return;
@@ -207838,7 +207900,7 @@ function getClusterPathHelper(path4) {
207838
207900
  }
207839
207901
 
207840
207902
  // src/instrumentation/libraries/http/instrumentation.ts
207841
- var debug17 = debug_default("ht-instrumentation-http" /* HtHttpInstrumentation */);
207903
+ var debug18 = debug_default("ht-instrumentation-http" /* HtHttpInstrumentation */);
207842
207904
  var requestMakerFn = (component, args, plugin) => {
207843
207905
  const req = component === "http" ? plugin.htHttpRequestFn(...args) : plugin.htHttpsRequestFn(...args);
207844
207906
  return req;
@@ -207912,7 +207974,7 @@ var HtHttpInstrumentation = class extends HtInstrumentationBase {
207912
207974
  }));
207913
207975
  }
207914
207976
  } catch (e) {
207915
- debug17(
207977
+ debug18(
207916
207978
  "Error occurred while setting 'cache-control' header for outgoing fetch request : ",
207917
207979
  e
207918
207980
  );
@@ -207928,8 +207990,8 @@ var HtHttpInstrumentation = class extends HtInstrumentationBase {
207928
207990
  header: HTTP_PARENT_REQUEST_HEADER
207929
207991
  }));
207930
207992
  } catch (e) {
207931
- debug17(e);
207932
- debug17(
207993
+ debug18(e);
207994
+ debug18(
207933
207995
  "Error occurred while setting http parent request header for outgoing fetch http call."
207934
207996
  );
207935
207997
  }
@@ -207943,8 +208005,8 @@ var HtHttpInstrumentation = class extends HtInstrumentationBase {
207943
208005
  header: HYPERTEST_SAMPLING_MODE_HEADER
207944
208006
  }));
207945
208007
  } catch (e) {
207946
- debug17(e);
207947
- debug17(
208008
+ debug18(e);
208009
+ debug18(
207948
208010
  "Error occurred while setting sampling mode header for outgoing fetch http call."
207949
208011
  );
207950
208012
  }
@@ -208208,7 +208270,7 @@ var HtHttpInstrumentation = class extends HtInstrumentationBase {
208208
208270
  incomingRequestPath: parsedUrl.pathname
208209
208271
  });
208210
208272
  const htRequestId = request3.headers["x-ht-request-id"];
208211
- debug17(`received req with htRequestId ${htRequestId}`);
208273
+ debug18(`received req with htRequestId ${htRequestId}`);
208212
208274
  const ctxWithRootTraceKeyAndRequestId = import_api58.context.active().setValue(IS_ROOT_TRACE_KEY, false).setValue(HT_REQUEST_ID, htRequestId).setValue(SHOULD_INSTRUMENT_DATE, shouldInstrumentDate);
208213
208275
  return import_api58.context.with(ctxWithRootTraceKeyAndRequestId, () => {
208214
208276
  const mock = new HttpServerRequestMock({
@@ -208227,11 +208289,11 @@ var HtHttpInstrumentation = class extends HtInstrumentationBase {
208227
208289
  import_api58.context.bind(import_api58.context.active(), response);
208228
208290
  const isHtSdkGraphqlReq = isHtSdkGraphqlReqFn(request3);
208229
208291
  if (isHtSdkGraphqlReq) {
208230
- debug17(
208292
+ debug18(
208231
208293
  `received a graphql request with htRequestId - ${htRequestId}`
208232
208294
  );
208233
208295
  } else {
208234
- debug17(
208296
+ debug18(
208235
208297
  `received a http request with htRequestId - ${htRequestId}`
208236
208298
  );
208237
208299
  httpServerResponseHookReplayMode(response, request3, mock);
@@ -209700,7 +209762,7 @@ var MockCursor = class extends import_stream10.Readable {
209700
209762
  };
209701
209763
 
209702
209764
  // src/instrumentation/libraries/mongoose/mongooseHelpers/processPayloadHelpers.ts
209703
- var debug18 = debug_default("ht-mongoose-process-payload-helpers");
209765
+ var debug19 = debug_default("ht-mongoose-process-payload-helpers");
209704
209766
  function isObjectIdInstance2(payload) {
209705
209767
  var _a4, _b2;
209706
209768
  return typeof payload === "object" && (((_a4 = payload.constructor) == null ? void 0 : _a4.name) === "ObjectId" || ((_b2 = payload.constructor) == null ? void 0 : _b2.name) === "ObjectID") && (payload._bsontype === "ObjectId" || payload._bsontype === "ObjectID");
@@ -209830,7 +209892,7 @@ var convertSanitizedPayloadToRealPayload3 = (sanitizedPayload, meta, version2) =
209830
209892
  try {
209831
209893
  obj[key] = new ObjectConstructor(obj[key]);
209832
209894
  } catch (_e2) {
209833
- debug18("Error converting sanitized payload to real payload", key);
209895
+ debug19("Error converting sanitized payload to real payload", key);
209834
209896
  }
209835
209897
  }
209836
209898
  };
@@ -212209,7 +212271,7 @@ var HtNodemailerInstrumentation = class extends HtInstrumentationBase {
212209
212271
  };
212210
212272
 
212211
212273
  // src/instrumentation/libraries/opossum/instrumentation.ts
212212
- var debug19 = debug_default("ht-instrumentation-opossum" /* HtOpossumInstrumentation */);
212274
+ var debug20 = debug_default("ht-instrumentation-opossum" /* HtOpossumInstrumentation */);
212213
212275
  var HtOpossumInstrumentation = class extends HtInstrumentationBase {
212214
212276
  _Original_CircuitBreaker;
212215
212277
  _HT_Patched_CircuitBreaker;
@@ -212262,15 +212324,15 @@ var HtOpossumInstrumentation = class extends HtInstrumentationBase {
212262
212324
  super(...args);
212263
212325
  if (process.env.HT_MODE === "RECORD") {
212264
212326
  this.on("reject", (err) => {
212265
- debug19("This request is discarded as reject event is emitted", err);
212327
+ debug20("This request is discarded as reject event is emitted", err);
212266
212328
  discardRequest();
212267
212329
  });
212268
212330
  this.on("failure", (err) => {
212269
- debug19("This request is discarded as failure event is emitted", err);
212331
+ debug20("This request is discarded as failure event is emitted", err);
212270
212332
  discardRequest();
212271
212333
  });
212272
212334
  this.on("timeout", (err) => {
212273
- debug19("This request is discarded as timeout event is emitted", err);
212335
+ debug20("This request is discarded as timeout event is emitted", err);
212274
212336
  discardRequest();
212275
212337
  });
212276
212338
  }
@@ -223071,7 +223133,7 @@ var zGenerateReadableInputFromProcessedInputPayload = z.object({
223071
223133
  });
223072
223134
 
223073
223135
  // src/server/index.ts
223074
- var debug20 = debug_default("ht-sdk::server");
223136
+ var debug21 = debug_default("ht-sdk::server");
223075
223137
  var ONE_MB_IN_BYTES2 = 1048576;
223076
223138
  var FASTIFY_REQ_PAYLOAD_LIMIT_BYTES = ONE_MB_IN_BYTES2 * 500;
223077
223139
  var app = (0, import_fastify.default)({
@@ -223919,12 +223981,12 @@ app.route({
223919
223981
  method: "GET",
223920
223982
  url: "/isSdkReadyForTest",
223921
223983
  handler(_req, reply) {
223922
- debug20("/isSdkReadyForTest called");
223984
+ debug21("/isSdkReadyForTest called");
223923
223985
  const memoryStoreInst = MemoryStore.getInstance();
223924
223986
  const retVal = {
223925
223987
  isReady: memoryStoreInst.isRootMockUpdated()
223926
223988
  };
223927
- debug20(`/isSdkReadyForTest responding with: ${JSON.stringify(retVal)}`);
223989
+ debug21(`/isSdkReadyForTest responding with: ${JSON.stringify(retVal)}`);
223928
223990
  reply.send(retVal);
223929
223991
  }
223930
223992
  });
@@ -223932,14 +223994,14 @@ app.route({
223932
223994
  method: "GET",
223933
223995
  url: "/isAppReadyForTest",
223934
223996
  handler(_req, reply) {
223935
- debug20("/isAppReadyForTest called");
223997
+ debug21("/isAppReadyForTest called");
223936
223998
  const memoryStoreInst = MemoryStore.getInstance();
223937
223999
  const retVal = {
223938
224000
  isReady: memoryStoreInst.getAppHealthStatus() === "UP",
223939
224001
  PID: process.pid,
223940
224002
  PPID: process.ppid
223941
224003
  };
223942
- debug20(`/isAppReadyForTest responding with: ${JSON.stringify(retVal)}`);
224004
+ debug21(`/isAppReadyForTest responding with: ${JSON.stringify(retVal)}`);
223943
224005
  reply.send(retVal);
223944
224006
  }
223945
224007
  });
@@ -224101,7 +224163,7 @@ if (typeof fetch === "undefined") {
224101
224163
  global.Response = import_node_fetch.Response;
224102
224164
  global.Request = import_node_fetch.Request;
224103
224165
  }
224104
- var debug21 = debug_default("ht-sdk::index");
224166
+ var debug22 = debug_default("ht-sdk::index");
224105
224167
  var MARK_APP_AS_READY_NOT_CALLED = "[WARNING] markAppAsReady has not been called, please call markAppAsReady after your app boots because tests will not execute without it in REPLAY mode";
224106
224168
  var deprecatedAutoInstrumentation = () => {
224107
224169
  console.error(
@@ -224246,6 +224308,20 @@ var initialiseNormally = (htConfig) => {
224246
224308
  if (!hasHttp2) {
224247
224309
  process.env.DD_TRACE_DISABLED_PLUGINS = current === "" ? "http2" : `${current},http2`;
224248
224310
  }
224311
+ const isCurrentFolderInGitRepo = isCurrentFolderInGitRepoFn();
224312
+ if (isCurrentFolderInGitRepo && isHavingUncommittedChangesFn()) {
224313
+ const gitDiff = getUncommittedChanges();
224314
+ console.log(
224315
+ "The following are the uncommitted changes in your repository."
224316
+ );
224317
+ console.log(`
224318
+ ${gitDiff}
224319
+ `);
224320
+ console.error(
224321
+ "Your repository contains uncommitted changes, please commit them or remove from git tracking and add them to .gitignore before recording requests with hypertest."
224322
+ );
224323
+ process.exit(1);
224324
+ }
224249
224325
  }
224250
224326
  const packageNames = alreadyRequiredModules();
224251
224327
  if (packageNames.size > 0 && process.env.HT_ENV === "prod" && IS_RECORD_MODE) {
@@ -224397,7 +224473,7 @@ function alreadyRequiredModules() {
224397
224473
  async function monitorOtelCollectorStatus(exporterUrl) {
224398
224474
  const { accessible } = await pingOtelCollector(exporterUrl);
224399
224475
  if (accessible) {
224400
- debug21("Hypertest otel collector is accessible");
224476
+ debug22("Hypertest otel collector is accessible");
224401
224477
  } else {
224402
224478
  console.error(`
224403
224479
  ERROR: Hypertest otel collector is not accessible.