@jujulego/jill 3.0.9 → 3.0.10

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/dist/main.js CHANGED
@@ -1,12 +1,12 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"jill@3.0.9"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bfa80f19-f695-4bc1-b1d8-5744e3e8229e",e._sentryDebugIdIdentifier="sentry-dbid-bfa80f19-f695-4bc1-b1d8-5744e3e8229e");}catch(e){}}();import { startSpan, startInactiveSpan, getActiveSpan, updateSpanName, getRootSpan, captureException, flush } from '@sentry/node';
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"jill@3.0.10"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7882a0f5-8203-4cef-9f9d-9c4fbd769110",e._sentryDebugIdIdentifier="sentry-dbid-7882a0f5-8203-4cef-9f9d-9c4fbd769110");}catch(e){}}();import { startSpan, startInactiveSpan, getActiveSpan, updateSpanName, getRootSpan, captureException, flush } from '@sentry/node';
2
2
  import process$1 from 'node:process';
3
3
  import { hideBin } from 'yargs/helpers';
4
4
  import path, { win32, posix } from 'node:path';
5
5
  import { _ as _$1 } from '@swc/helpers/_/_apply_decs_2203_r';
6
6
  import * as fs$1 from 'node:fs';
7
7
  import fs__default from 'node:fs';
8
- import require$$0$1, { fileURLToPath } from 'node:url';
9
- import require$$0$3, { realpathSync as realpathSync$1, readlinkSync, readdirSync, readdir as readdir$1, lstatSync } from 'fs';
8
+ import require$$0, { fileURLToPath } from 'node:url';
9
+ import require$$0$2, { realpathSync as realpathSync$1, readlinkSync, readdirSync, readdir as readdir$1, lstatSync } from 'fs';
10
10
  import { realpath, readlink, readdir, lstat } from 'node:fs/promises';
11
11
  import { EventEmitter } from 'node:events';
12
12
  import Stream, { PassThrough, Writable } from 'node:stream';
@@ -14,16 +14,16 @@ import { StringDecoder } from 'node:string_decoder';
14
14
  import assert$1 from 'assert';
15
15
  import { AsyncLocalStorage } from 'node:async_hooks';
16
16
  import os$1 from 'node:os';
17
- import require$$0 from 'url';
18
17
  import require$$5 from 'node:module';
19
- import require$$0$2 from 'util';
18
+ import require$$0$1 from 'util';
20
19
  import { execFile, spawn } from 'node:child_process';
21
20
  import { randomUUID } from 'node:crypto';
22
21
  import { text } from 'node:stream/consumers';
23
22
  import tty from 'node:tty';
24
23
  import yargs from 'yargs';
25
24
  import require$$1$4 from 'fs/promises';
26
- import require$$0$4 from 'path';
25
+ import require$$0$3 from 'path';
26
+ import require$$3$1 from 'url';
27
27
  import require$$4 from 'crypto';
28
28
  import require$$1$3 from 'module';
29
29
  import require$$8 from 'typescript';
@@ -8841,16 +8841,16 @@ var hasRequiredRe;
8841
8841
  function requireRe() {
8842
8842
  if (hasRequiredRe) return re.exports;
8843
8843
  hasRequiredRe = 1;
8844
- (function(module, exports$1) {
8844
+ (function(module, exports) {
8845
8845
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = requireConstants();
8846
8846
  const debug = requireDebug();
8847
- exports$1 = module.exports = {};
8847
+ exports = module.exports = {};
8848
8848
  // The actual regexps go on exports.re
8849
- const re = exports$1.re = [];
8850
- const safeRe = exports$1.safeRe = [];
8851
- const src = exports$1.src = [];
8852
- const safeSrc = exports$1.safeSrc = [];
8853
- const t = exports$1.t = {};
8849
+ const re = exports.re = [];
8850
+ const safeRe = exports.safeRe = [];
8851
+ const src = exports.src = [];
8852
+ const safeSrc = exports.safeSrc = [];
8853
+ const t = exports.t = {};
8854
8854
  let R = 0;
8855
8855
  const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
8856
8856
  // Replace some greedy regex tokens to prevent regex dos issues. These regex are
@@ -8937,7 +8937,7 @@ function requireRe() {
8937
8937
  createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`);
8938
8938
  createToken('GTLT', '((?:<|>)?=?)');
8939
8939
  // Something like "2.*" or "1.2.x".
8940
- // Note that "x.x" is a valid xRange identifer, meaning "any version"
8940
+ // Note that "x.x" is a valid xRange identifier, meaning "any version"
8941
8941
  // Only the first item is strictly required.
8942
8942
  createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
8943
8943
  createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
@@ -8956,14 +8956,14 @@ function requireRe() {
8956
8956
  // Meaning is "reasonably at or greater than"
8957
8957
  createToken('LONETILDE', '(?:~>?)');
8958
8958
  createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
8959
- exports$1.tildeTrimReplace = '$1~';
8959
+ exports.tildeTrimReplace = '$1~';
8960
8960
  createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
8961
8961
  createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
8962
8962
  // Caret ranges.
8963
8963
  // Meaning is "at least and backwards compatible with"
8964
8964
  createToken('LONECARET', '(?:\\^)');
8965
8965
  createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
8966
- exports$1.caretTrimReplace = '$1^';
8966
+ exports.caretTrimReplace = '$1^';
8967
8967
  createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
8968
8968
  createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
8969
8969
  // A simple gt/lt/eq thing, or just "" to indicate "any version"
@@ -8972,7 +8972,7 @@ function requireRe() {
8972
8972
  // An expression to strip any whitespace between the gtlt and the thing
8973
8973
  // it modifies, so that `> 1.2.3` ==> `>1.2.3`
8974
8974
  createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
8975
- exports$1.comparatorTrimReplace = '$1$2$3';
8975
+ exports.comparatorTrimReplace = '$1$2$3';
8976
8976
  // Something like `1.2.3 - 1.2.4`
8977
8977
  // Note that these all use the loose form, because they'll be
8978
8978
  // checked against either the strict or loose comparator form
@@ -9047,6 +9047,18 @@ function requireSemver$1() {
9047
9047
  const { safeRe: re, t } = requireRe();
9048
9048
  const parseOptions = requireParseOptions();
9049
9049
  const { compareIdentifiers } = requireIdentifiers();
9050
+ const isPrereleaseIdentifier = (prerelease, identifier)=>{
9051
+ const identifiers = identifier.split('.');
9052
+ if (identifiers.length > prerelease.length) {
9053
+ return false;
9054
+ }
9055
+ for(let i = 0; i < identifiers.length; i++){
9056
+ if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
9057
+ return false;
9058
+ }
9059
+ }
9060
+ return true;
9061
+ };
9050
9062
  class SemVer {
9051
9063
  constructor(version, options){
9052
9064
  options = parseOptions(options);
@@ -9323,8 +9335,9 @@ function requireSemver$1() {
9323
9335
  identifier
9324
9336
  ];
9325
9337
  }
9326
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
9327
- if (isNaN(this.prerelease[1])) {
9338
+ if (isPrereleaseIdentifier(this.prerelease, identifier)) {
9339
+ const prereleaseBase = this.prerelease[identifier.split('.').length];
9340
+ if (isNaN(prereleaseBase)) {
9328
9341
  this.prerelease = prerelease;
9329
9342
  }
9330
9343
  } else {
@@ -11833,7 +11846,7 @@ function requireHosts() {
11833
11846
  treepath: 'tree',
11834
11847
  blobpath: 'tree',
11835
11848
  editpath: '-/edit',
11836
- tarballtemplate: ({ domain, user, project, committish })=>`https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish || 'HEAD')}`,
11849
+ tarballtemplate: ({ domain, user, project, committish })=>`https://${domain}/api/v4/projects/${maybeEncode(user + '/' + project)}/repository/archive.tar.gz?sha=${maybeEncode(committish || 'HEAD')}`,
11837
11850
  extract: (url)=>{
11838
11851
  const path = url.pathname.slice(1);
11839
11852
  if (path.includes('/-/') || path.includes('/archive.tar.gz')) {
@@ -11913,7 +11926,7 @@ function requireHosts() {
11913
11926
  treepath: 'tree',
11914
11927
  blobpath: 'tree',
11915
11928
  filetemplate: ({ domain, user, project, committish, path })=>`https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'HEAD'}/${path}`,
11916
- httpstemplate: ({ domain, user, project, committish })=>`https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
11929
+ httpstemplate: ({ domain, user, project, committish })=>`https://${domain}/${user}/${project}${maybeJoin('#', committish)}`,
11917
11930
  tarballtemplate: ({ domain, user, project, committish })=>`https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'HEAD'}.tar.gz`,
11918
11931
  bugstemplate: ()=>null,
11919
11932
  extract: (url)=>{
@@ -11949,14 +11962,13 @@ var hasRequiredParseUrl;
11949
11962
  function requireParseUrl() {
11950
11963
  if (hasRequiredParseUrl) return parseUrl;
11951
11964
  hasRequiredParseUrl = 1;
11952
- const url = require$$0;
11953
11965
  const lastIndexOfBefore = (str, char, beforeChar)=>{
11954
11966
  const startPosition = str.indexOf(beforeChar);
11955
11967
  return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
11956
11968
  };
11957
11969
  const safeUrl = (u)=>{
11958
11970
  try {
11959
- return new url.URL(u);
11971
+ return new URL(u);
11960
11972
  } catch {
11961
11973
  // this fn should never throw
11962
11974
  }
@@ -12435,7 +12447,7 @@ var hasRequiredFixer;
12435
12447
  function requireFixer() {
12436
12448
  if (hasRequiredFixer) return fixer;
12437
12449
  hasRequiredFixer = 1;
12438
- var { URL } = require$$0$1;
12450
+ var { URL } = require$$0;
12439
12451
  var isValidSemver = requireValid$1();
12440
12452
  var cleanSemver = requireClean();
12441
12453
  var validateLicense = requireValidateNpmPackageLicense();
@@ -12809,10 +12821,11 @@ function requireFixer() {
12809
12821
  return name + wrappedEmail + wrappedUrl;
12810
12822
  }
12811
12823
  function parsePerson(person) {
12824
+ /* node:coverage disable */ // not possible in normal flow
12812
12825
  if (typeof person !== 'string') {
12813
12826
  return person;
12814
12827
  }
12815
- var matchedName = person.match(/^([^(<]+)/);
12828
+ /* node:coverage enable */ var matchedName = person.match(/^([^(<]+)/);
12816
12829
  var matchedUrl = person.match(/\(([^()]+)\)/);
12817
12830
  var matchedEmail = person.match(/<([^<>]+)>/);
12818
12831
  var obj = {};
@@ -12839,10 +12852,11 @@ function requireFixer() {
12839
12852
  data.dependencies = d;
12840
12853
  }
12841
12854
  function depObjectify(deps, type, warn) {
12855
+ /* node:coverage disable */ // not possible in normal flow
12842
12856
  if (!deps) {
12843
12857
  return {};
12844
12858
  }
12845
- if (typeof deps === 'string') {
12859
+ /* node:coverage enable */ if (typeof deps === 'string') {
12846
12860
  deps = deps.trim().split(/[\n\r\s\t ,]+/);
12847
12861
  }
12848
12862
  if (!Array.isArray(deps)) {
@@ -12871,10 +12885,11 @@ function requireFixer() {
12871
12885
  });
12872
12886
  }
12873
12887
  function bugsTypos(bugs, warn) {
12888
+ /* node:coverage disable */ // not possible in normal flow
12874
12889
  if (!bugs) {
12875
12890
  return;
12876
12891
  }
12877
- Object.keys(bugs).forEach(function(k) {
12892
+ /* node:coverage enable */ Object.keys(bugs).forEach(function(k) {
12878
12893
  if (typos.bugs[k]) {
12879
12894
  warn('typo', k, typos.bugs[k], 'bugs');
12880
12895
  bugs[typos.bugs[k]] = bugs[k];
@@ -12949,7 +12964,7 @@ var hasRequiredMake_warning;
12949
12964
  function requireMake_warning() {
12950
12965
  if (hasRequiredMake_warning) return make_warning;
12951
12966
  hasRequiredMake_warning = 1;
12952
- var util = require$$0$2;
12967
+ var util = require$$0$1;
12953
12968
  var messages = require$$1;
12954
12969
  make_warning = function() {
12955
12970
  var args = Array.prototype.slice.call(arguments, 0);
@@ -13434,6 +13449,48 @@ function requireCoerce() {
13434
13449
  return coerce_1;
13435
13450
  }
13436
13451
 
13452
+ var truncate_1;
13453
+ var hasRequiredTruncate;
13454
+ function requireTruncate() {
13455
+ if (hasRequiredTruncate) return truncate_1;
13456
+ hasRequiredTruncate = 1;
13457
+ const parse = requireParse$1();
13458
+ const constants = requireConstants();
13459
+ const SemVer = requireSemver$1();
13460
+ const truncate = (version, truncation, options)=>{
13461
+ if (!constants.RELEASE_TYPES.includes(truncation)) {
13462
+ return null;
13463
+ }
13464
+ const clonedVersion = cloneInputVersion(version, options);
13465
+ return clonedVersion && doTruncation(clonedVersion, truncation);
13466
+ };
13467
+ const cloneInputVersion = (version, options)=>{
13468
+ const versionStringToParse = version instanceof SemVer ? version.version : version;
13469
+ return parse(versionStringToParse, options);
13470
+ };
13471
+ const doTruncation = (version, truncation)=>{
13472
+ if (isPrerelease(truncation)) {
13473
+ return version.version;
13474
+ }
13475
+ version.prerelease = [];
13476
+ switch(truncation){
13477
+ case 'major':
13478
+ version.minor = 0;
13479
+ version.patch = 0;
13480
+ break;
13481
+ case 'minor':
13482
+ version.patch = 0;
13483
+ break;
13484
+ }
13485
+ return version.format();
13486
+ };
13487
+ const isPrerelease = (type)=>{
13488
+ return type.startsWith('pre');
13489
+ };
13490
+ truncate_1 = truncate;
13491
+ return truncate_1;
13492
+ }
13493
+
13437
13494
  var lrucache;
13438
13495
  var hasRequiredLrucache;
13439
13496
  function requireLrucache() {
@@ -13567,6 +13624,8 @@ function requireRange() {
13567
13624
  return this.range;
13568
13625
  }
13569
13626
  parseRange(range) {
13627
+ // strip build metadata so it can't bleed into the version
13628
+ range = range.replace(BUILDSTRIPRE, '');
13570
13629
  // memoize range parsing for performance.
13571
13630
  // this is a very hot path, and fully deterministic.
13572
13631
  const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
@@ -13664,8 +13723,10 @@ function requireRange() {
13664
13723
  const Comparator = requireComparator();
13665
13724
  const debug = requireDebug();
13666
13725
  const SemVer = requireSemver$1();
13667
- const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = requireRe();
13726
+ const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = requireRe();
13668
13727
  const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = requireConstants();
13728
+ // unbounded global build-metadata stripper used by parseRange
13729
+ const BUILDSTRIPRE = new RegExp(src[t.BUILD], 'g');
13669
13730
  const isNullSet = (c)=>c.value === '<0.0.0-0';
13670
13731
  const isAny = (c)=>c.value === '';
13671
13732
  // take a set of comparators and determine whether there
@@ -14560,7 +14621,7 @@ function requireSubset() {
14560
14621
  if (higher === c && higher !== gt) {
14561
14622
  return false;
14562
14623
  }
14563
- } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
14624
+ } else if (gt.operator === '>=' && !c.test(gt.semver)) {
14564
14625
  return false;
14565
14626
  }
14566
14627
  }
@@ -14575,7 +14636,7 @@ function requireSubset() {
14575
14636
  if (lower === c && lower !== lt) {
14576
14637
  return false;
14577
14638
  }
14578
- } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
14639
+ } else if (lt.operator === '<=' && !c.test(lt.semver)) {
14579
14640
  return false;
14580
14641
  }
14581
14642
  }
@@ -14653,6 +14714,7 @@ function requireSemver() {
14653
14714
  const lte = requireLte();
14654
14715
  const cmp = requireCmp();
14655
14716
  const coerce = requireCoerce();
14717
+ const truncate = requireTruncate();
14656
14718
  const Comparator = requireComparator();
14657
14719
  const Range = requireRange();
14658
14720
  const satisfies = requireSatisfies();
@@ -14691,6 +14753,7 @@ function requireSemver() {
14691
14753
  lte,
14692
14754
  cmp,
14693
14755
  coerce,
14756
+ truncate,
14694
14757
  Comparator,
14695
14758
  Range,
14696
14759
  satisfies,
@@ -17204,7 +17267,7 @@ var hasRequiredSlugify;
17204
17267
  function requireSlugify() {
17205
17268
  if (hasRequiredSlugify) return slugify$2.exports;
17206
17269
  hasRequiredSlugify = 1;
17207
- (function(module, exports$1) {
17270
+ (function(module, exports) {
17208
17271
  (function(name, root, factory) {
17209
17272
  {
17210
17273
  module.exports = factory();
@@ -17523,7 +17586,7 @@ const command$1 = {
17523
17586
  }
17524
17587
  };
17525
17588
 
17526
- var version = "3.0.9";
17589
+ var version = "3.0.10";
17527
17590
 
17528
17591
  var ajv = {exports: {}};
17529
17592
 
@@ -17543,20 +17606,20 @@ var hasRequiredCode$1;
17543
17606
  function requireCode$1() {
17544
17607
  if (hasRequiredCode$1) return code$1;
17545
17608
  hasRequiredCode$1 = 1;
17546
- (function(exports$1) {
17547
- Object.defineProperty(exports$1, "__esModule", {
17609
+ (function(exports) {
17610
+ Object.defineProperty(exports, "__esModule", {
17548
17611
  value: true
17549
17612
  });
17550
- exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
17613
+ exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
17551
17614
  // eslint-disable-next-line @typescript-eslint/no-extraneous-class
17552
17615
  class _CodeOrName {
17553
17616
  }
17554
- exports$1._CodeOrName = _CodeOrName;
17555
- exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
17617
+ exports._CodeOrName = _CodeOrName;
17618
+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
17556
17619
  class Name extends _CodeOrName {
17557
17620
  constructor(s){
17558
17621
  super();
17559
- if (!exports$1.IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier");
17622
+ if (!exports.IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier");
17560
17623
  this.str = s;
17561
17624
  }
17562
17625
  toString() {
@@ -17571,7 +17634,7 @@ function requireCode$1() {
17571
17634
  };
17572
17635
  }
17573
17636
  }
17574
- exports$1.Name = Name;
17637
+ exports.Name = Name;
17575
17638
  class _Code extends _CodeOrName {
17576
17639
  constructor(code){
17577
17640
  super();
@@ -17599,8 +17662,8 @@ function requireCode$1() {
17599
17662
  }, {});
17600
17663
  }
17601
17664
  }
17602
- exports$1._Code = _Code;
17603
- exports$1.nil = new _Code("");
17665
+ exports._Code = _Code;
17666
+ exports.nil = new _Code("");
17604
17667
  function _(strs, ...args) {
17605
17668
  const code = [
17606
17669
  strs[0]
@@ -17612,7 +17675,7 @@ function requireCode$1() {
17612
17675
  }
17613
17676
  return new _Code(code);
17614
17677
  }
17615
- exports$1._ = _;
17678
+ exports._ = _;
17616
17679
  const plus = new _Code("+");
17617
17680
  function str(strs, ...args) {
17618
17681
  const expr = [
@@ -17627,13 +17690,13 @@ function requireCode$1() {
17627
17690
  optimize(expr);
17628
17691
  return new _Code(expr);
17629
17692
  }
17630
- exports$1.str = str;
17693
+ exports.str = str;
17631
17694
  function addCodeArg(code, arg) {
17632
17695
  if (arg instanceof _Code) code.push(...arg._items);
17633
17696
  else if (arg instanceof Name) code.push(arg);
17634
17697
  else code.push(interpolate(arg));
17635
17698
  }
17636
- exports$1.addCodeArg = addCodeArg;
17699
+ exports.addCodeArg = addCodeArg;
17637
17700
  function optimize(expr) {
17638
17701
  let i = 1;
17639
17702
  while(i < expr.length - 1){
@@ -17663,7 +17726,7 @@ function requireCode$1() {
17663
17726
  function strConcat(c1, c2) {
17664
17727
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
17665
17728
  }
17666
- exports$1.strConcat = strConcat;
17729
+ exports.strConcat = strConcat;
17667
17730
  // TODO do not allow arrays here
17668
17731
  function interpolate(x) {
17669
17732
  return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
@@ -17671,27 +17734,27 @@ function requireCode$1() {
17671
17734
  function stringify(x) {
17672
17735
  return new _Code(safeStringify(x));
17673
17736
  }
17674
- exports$1.stringify = stringify;
17737
+ exports.stringify = stringify;
17675
17738
  function safeStringify(x) {
17676
17739
  return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
17677
17740
  }
17678
- exports$1.safeStringify = safeStringify;
17741
+ exports.safeStringify = safeStringify;
17679
17742
  function getProperty(key) {
17680
- return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
17743
+ return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
17681
17744
  }
17682
- exports$1.getProperty = getProperty;
17745
+ exports.getProperty = getProperty;
17683
17746
  //Does best effort to format the name properly
17684
17747
  function getEsmExportName(key) {
17685
- if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
17748
+ if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
17686
17749
  return new _Code(`${key}`);
17687
17750
  }
17688
17751
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
17689
17752
  }
17690
- exports$1.getEsmExportName = getEsmExportName;
17753
+ exports.getEsmExportName = getEsmExportName;
17691
17754
  function regexpCode(rx) {
17692
17755
  return new _Code(rx.toString());
17693
17756
  }
17694
- exports$1.regexpCode = regexpCode;
17757
+ exports.regexpCode = regexpCode;
17695
17758
 
17696
17759
  })(code$1);
17697
17760
  return code$1;
@@ -17703,11 +17766,11 @@ var hasRequiredScope;
17703
17766
  function requireScope() {
17704
17767
  if (hasRequiredScope) return scope;
17705
17768
  hasRequiredScope = 1;
17706
- (function(exports$1) {
17707
- Object.defineProperty(exports$1, "__esModule", {
17769
+ (function(exports) {
17770
+ Object.defineProperty(exports, "__esModule", {
17708
17771
  value: true
17709
17772
  });
17710
- exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
17773
+ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
17711
17774
  const code_1 = /*@__PURE__*/ requireCode$1();
17712
17775
  class ValueError extends Error {
17713
17776
  constructor(name){
@@ -17719,8 +17782,8 @@ function requireScope() {
17719
17782
  (function(UsedValueState) {
17720
17783
  UsedValueState[UsedValueState["Started"] = 0] = "Started";
17721
17784
  UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
17722
- })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
17723
- exports$1.varKinds = {
17785
+ })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
17786
+ exports.varKinds = {
17724
17787
  const: new code_1.Name("const"),
17725
17788
  let: new code_1.Name("let"),
17726
17789
  var: new code_1.Name("var")
@@ -17752,7 +17815,7 @@ function requireScope() {
17752
17815
  };
17753
17816
  }
17754
17817
  }
17755
- exports$1.Scope = Scope;
17818
+ exports.Scope = Scope;
17756
17819
  class ValueScopeName extends code_1.Name {
17757
17820
  constructor(prefix, nameStr){
17758
17821
  super(nameStr);
@@ -17763,7 +17826,7 @@ function requireScope() {
17763
17826
  this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
17764
17827
  }
17765
17828
  }
17766
- exports$1.ValueScopeName = ValueScopeName;
17829
+ exports.ValueScopeName = ValueScopeName;
17767
17830
  const line = (0, code_1._)`\n`;
17768
17831
  class ValueScope extends Scope {
17769
17832
  constructor(opts){
@@ -17832,7 +17895,7 @@ function requireScope() {
17832
17895
  nameSet.set(name, UsedValueState.Started);
17833
17896
  let c = valueCode(name);
17834
17897
  if (c) {
17835
- const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
17898
+ const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
17836
17899
  code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
17837
17900
  } else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
17838
17901
  code = (0, code_1._)`${code}${c}${this.opts._n}`;
@@ -17845,7 +17908,7 @@ function requireScope() {
17845
17908
  return code;
17846
17909
  }
17847
17910
  }
17848
- exports$1.ValueScope = ValueScope;
17911
+ exports.ValueScope = ValueScope;
17849
17912
 
17850
17913
  })(scope);
17851
17914
  return scope;
@@ -17855,88 +17918,88 @@ var hasRequiredCodegen;
17855
17918
  function requireCodegen() {
17856
17919
  if (hasRequiredCodegen) return codegen;
17857
17920
  hasRequiredCodegen = 1;
17858
- (function(exports$1) {
17859
- Object.defineProperty(exports$1, "__esModule", {
17921
+ (function(exports) {
17922
+ Object.defineProperty(exports, "__esModule", {
17860
17923
  value: true
17861
17924
  });
17862
- exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
17925
+ exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
17863
17926
  const code_1 = /*@__PURE__*/ requireCode$1();
17864
17927
  const scope_1 = /*@__PURE__*/ requireScope();
17865
17928
  var code_2 = /*@__PURE__*/ requireCode$1();
17866
- Object.defineProperty(exports$1, "_", {
17929
+ Object.defineProperty(exports, "_", {
17867
17930
  enumerable: true,
17868
17931
  get: function() {
17869
17932
  return code_2._;
17870
17933
  }
17871
17934
  });
17872
- Object.defineProperty(exports$1, "str", {
17935
+ Object.defineProperty(exports, "str", {
17873
17936
  enumerable: true,
17874
17937
  get: function() {
17875
17938
  return code_2.str;
17876
17939
  }
17877
17940
  });
17878
- Object.defineProperty(exports$1, "strConcat", {
17941
+ Object.defineProperty(exports, "strConcat", {
17879
17942
  enumerable: true,
17880
17943
  get: function() {
17881
17944
  return code_2.strConcat;
17882
17945
  }
17883
17946
  });
17884
- Object.defineProperty(exports$1, "nil", {
17947
+ Object.defineProperty(exports, "nil", {
17885
17948
  enumerable: true,
17886
17949
  get: function() {
17887
17950
  return code_2.nil;
17888
17951
  }
17889
17952
  });
17890
- Object.defineProperty(exports$1, "getProperty", {
17953
+ Object.defineProperty(exports, "getProperty", {
17891
17954
  enumerable: true,
17892
17955
  get: function() {
17893
17956
  return code_2.getProperty;
17894
17957
  }
17895
17958
  });
17896
- Object.defineProperty(exports$1, "stringify", {
17959
+ Object.defineProperty(exports, "stringify", {
17897
17960
  enumerable: true,
17898
17961
  get: function() {
17899
17962
  return code_2.stringify;
17900
17963
  }
17901
17964
  });
17902
- Object.defineProperty(exports$1, "regexpCode", {
17965
+ Object.defineProperty(exports, "regexpCode", {
17903
17966
  enumerable: true,
17904
17967
  get: function() {
17905
17968
  return code_2.regexpCode;
17906
17969
  }
17907
17970
  });
17908
- Object.defineProperty(exports$1, "Name", {
17971
+ Object.defineProperty(exports, "Name", {
17909
17972
  enumerable: true,
17910
17973
  get: function() {
17911
17974
  return code_2.Name;
17912
17975
  }
17913
17976
  });
17914
17977
  var scope_2 = /*@__PURE__*/ requireScope();
17915
- Object.defineProperty(exports$1, "Scope", {
17978
+ Object.defineProperty(exports, "Scope", {
17916
17979
  enumerable: true,
17917
17980
  get: function() {
17918
17981
  return scope_2.Scope;
17919
17982
  }
17920
17983
  });
17921
- Object.defineProperty(exports$1, "ValueScope", {
17984
+ Object.defineProperty(exports, "ValueScope", {
17922
17985
  enumerable: true,
17923
17986
  get: function() {
17924
17987
  return scope_2.ValueScope;
17925
17988
  }
17926
17989
  });
17927
- Object.defineProperty(exports$1, "ValueScopeName", {
17990
+ Object.defineProperty(exports, "ValueScopeName", {
17928
17991
  enumerable: true,
17929
17992
  get: function() {
17930
17993
  return scope_2.ValueScopeName;
17931
17994
  }
17932
17995
  });
17933
- Object.defineProperty(exports$1, "varKinds", {
17996
+ Object.defineProperty(exports, "varKinds", {
17934
17997
  enumerable: true,
17935
17998
  get: function() {
17936
17999
  return scope_2.varKinds;
17937
18000
  }
17938
18001
  });
17939
- exports$1.operators = {
18002
+ exports.operators = {
17940
18003
  GT: new code_1._Code(">"),
17941
18004
  GTE: new code_1._Code(">="),
17942
18005
  LT: new code_1._Code("<"),
@@ -18340,7 +18403,7 @@ function requireCodegen() {
18340
18403
  }
18341
18404
  // `+=` code
18342
18405
  add(lhs, rhs) {
18343
- return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
18406
+ return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
18344
18407
  }
18345
18408
  // appends passed SafeExpr to code or executes Block
18346
18409
  code(c) {
@@ -18533,7 +18596,7 @@ function requireCodegen() {
18533
18596
  ns[ns.length - 1] = node;
18534
18597
  }
18535
18598
  }
18536
- exports$1.CodeGen = CodeGen;
18599
+ exports.CodeGen = CodeGen;
18537
18600
  function addNames(names, from) {
18538
18601
  for(const n in from)names[n] = (names[n] || 0) + (from[n] || 0);
18539
18602
  return names;
@@ -18566,19 +18629,19 @@ function requireCodegen() {
18566
18629
  function not(x) {
18567
18630
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
18568
18631
  }
18569
- exports$1.not = not;
18570
- const andCode = mappend(exports$1.operators.AND);
18632
+ exports.not = not;
18633
+ const andCode = mappend(exports.operators.AND);
18571
18634
  // boolean AND (&&) expression with the passed arguments
18572
18635
  function and(...args) {
18573
18636
  return args.reduce(andCode);
18574
18637
  }
18575
- exports$1.and = and;
18576
- const orCode = mappend(exports$1.operators.OR);
18638
+ exports.and = and;
18639
+ const orCode = mappend(exports.operators.OR);
18577
18640
  // boolean OR (||) expression with the passed arguments
18578
18641
  function or(...args) {
18579
18642
  return args.reduce(orCode);
18580
18643
  }
18581
- exports$1.or = or;
18644
+ exports.or = or;
18582
18645
  function mappend(op) {
18583
18646
  return (x, y)=>x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
18584
18647
  }
@@ -18789,21 +18852,21 @@ var hasRequiredErrors;
18789
18852
  function requireErrors() {
18790
18853
  if (hasRequiredErrors) return errors;
18791
18854
  hasRequiredErrors = 1;
18792
- (function(exports$1) {
18793
- Object.defineProperty(exports$1, "__esModule", {
18855
+ (function(exports) {
18856
+ Object.defineProperty(exports, "__esModule", {
18794
18857
  value: true
18795
18858
  });
18796
- exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
18859
+ exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
18797
18860
  const codegen_1 = /*@__PURE__*/ requireCodegen();
18798
18861
  const util_1 = /*@__PURE__*/ requireUtil$1();
18799
18862
  const names_1 = /*@__PURE__*/ requireNames();
18800
- exports$1.keywordError = {
18863
+ exports.keywordError = {
18801
18864
  message: ({ keyword })=>(0, codegen_1.str)`must pass "${keyword}" keyword validation`
18802
18865
  };
18803
- exports$1.keyword$DataError = {
18866
+ exports.keyword$DataError = {
18804
18867
  message: ({ keyword, schemaType })=>schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
18805
18868
  };
18806
- function reportError(cxt, error = exports$1.keywordError, errorPaths, overrideAllErrors) {
18869
+ function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
18807
18870
  const { it } = cxt;
18808
18871
  const { gen, compositeRule, allErrors } = it;
18809
18872
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -18813,8 +18876,8 @@ function requireErrors() {
18813
18876
  returnErrors(it, (0, codegen_1._)`[${errObj}]`);
18814
18877
  }
18815
18878
  }
18816
- exports$1.reportError = reportError;
18817
- function reportExtraError(cxt, error = exports$1.keywordError, errorPaths) {
18879
+ exports.reportError = reportError;
18880
+ function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
18818
18881
  const { it } = cxt;
18819
18882
  const { gen, compositeRule, allErrors } = it;
18820
18883
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -18823,12 +18886,12 @@ function requireErrors() {
18823
18886
  returnErrors(it, names_1.default.vErrors);
18824
18887
  }
18825
18888
  }
18826
- exports$1.reportExtraError = reportExtraError;
18889
+ exports.reportExtraError = reportExtraError;
18827
18890
  function resetErrorsCount(gen, errsCount) {
18828
18891
  gen.assign(names_1.default.errors, errsCount);
18829
18892
  gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, ()=>gen.if(errsCount, ()=>gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), ()=>gen.assign(names_1.default.vErrors, null)));
18830
18893
  }
18831
- exports$1.resetErrorsCount = resetErrorsCount;
18894
+ exports.resetErrorsCount = resetErrorsCount;
18832
18895
  function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
18833
18896
  /* istanbul ignore if */ if (errsCount === undefined) throw new Error("ajv implementation error");
18834
18897
  const err = gen.name("err");
@@ -18842,7 +18905,7 @@ function requireErrors() {
18842
18905
  }
18843
18906
  });
18844
18907
  }
18845
- exports$1.extendErrors = extendErrors;
18908
+ exports.extendErrors = extendErrors;
18846
18909
  function addError(gen, errObj) {
18847
18910
  const err = gen.const("err", errObj);
18848
18911
  gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, ()=>gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
@@ -21645,50 +21708,50 @@ var hasRequiredCore$2;
21645
21708
  function requireCore$2() {
21646
21709
  if (hasRequiredCore$2) return core$2;
21647
21710
  hasRequiredCore$2 = 1;
21648
- (function(exports$1) {
21649
- Object.defineProperty(exports$1, "__esModule", {
21711
+ (function(exports) {
21712
+ Object.defineProperty(exports, "__esModule", {
21650
21713
  value: true
21651
21714
  });
21652
- exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
21715
+ exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
21653
21716
  var validate_1 = /*@__PURE__*/ requireValidate();
21654
- Object.defineProperty(exports$1, "KeywordCxt", {
21717
+ Object.defineProperty(exports, "KeywordCxt", {
21655
21718
  enumerable: true,
21656
21719
  get: function() {
21657
21720
  return validate_1.KeywordCxt;
21658
21721
  }
21659
21722
  });
21660
21723
  var codegen_1 = /*@__PURE__*/ requireCodegen();
21661
- Object.defineProperty(exports$1, "_", {
21724
+ Object.defineProperty(exports, "_", {
21662
21725
  enumerable: true,
21663
21726
  get: function() {
21664
21727
  return codegen_1._;
21665
21728
  }
21666
21729
  });
21667
- Object.defineProperty(exports$1, "str", {
21730
+ Object.defineProperty(exports, "str", {
21668
21731
  enumerable: true,
21669
21732
  get: function() {
21670
21733
  return codegen_1.str;
21671
21734
  }
21672
21735
  });
21673
- Object.defineProperty(exports$1, "stringify", {
21736
+ Object.defineProperty(exports, "stringify", {
21674
21737
  enumerable: true,
21675
21738
  get: function() {
21676
21739
  return codegen_1.stringify;
21677
21740
  }
21678
21741
  });
21679
- Object.defineProperty(exports$1, "nil", {
21742
+ Object.defineProperty(exports, "nil", {
21680
21743
  enumerable: true,
21681
21744
  get: function() {
21682
21745
  return codegen_1.nil;
21683
21746
  }
21684
21747
  });
21685
- Object.defineProperty(exports$1, "Name", {
21748
+ Object.defineProperty(exports, "Name", {
21686
21749
  enumerable: true,
21687
21750
  get: function() {
21688
21751
  return codegen_1.Name;
21689
21752
  }
21690
21753
  });
21691
- Object.defineProperty(exports$1, "CodeGen", {
21754
+ Object.defineProperty(exports, "CodeGen", {
21692
21755
  enumerable: true,
21693
21756
  get: function() {
21694
21757
  return codegen_1.CodeGen;
@@ -21789,7 +21852,7 @@ function requireCore$2() {
21789
21852
  constructor(opts = {}){
21790
21853
  this.schemas = {};
21791
21854
  this.refs = {};
21792
- this.formats = {};
21855
+ this.formats = Object.create(null);
21793
21856
  this._compilations = new Set();
21794
21857
  this._loading = {};
21795
21858
  this._cache = new Map();
@@ -22156,7 +22219,7 @@ function requireCore$2() {
22156
22219
  }
22157
22220
  Ajv.ValidationError = validation_error_1.default;
22158
22221
  Ajv.MissingRefError = ref_error_1.default;
22159
- exports$1.default = Ajv;
22222
+ exports.default = Ajv;
22160
22223
  function checkOptions(checkOpts, options, msg, log = "error") {
22161
22224
  for(const key in checkOpts){
22162
22225
  const opt = key;
@@ -23353,15 +23416,15 @@ var hasRequiredDependencies;
23353
23416
  function requireDependencies() {
23354
23417
  if (hasRequiredDependencies) return dependencies;
23355
23418
  hasRequiredDependencies = 1;
23356
- (function(exports$1) {
23357
- Object.defineProperty(exports$1, "__esModule", {
23419
+ (function(exports) {
23420
+ Object.defineProperty(exports, "__esModule", {
23358
23421
  value: true
23359
23422
  });
23360
- exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
23423
+ exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
23361
23424
  const codegen_1 = /*@__PURE__*/ requireCodegen();
23362
23425
  const util_1 = /*@__PURE__*/ requireUtil$1();
23363
23426
  const code_1 = /*@__PURE__*/ requireCode();
23364
- exports$1.error = {
23427
+ exports.error = {
23365
23428
  message: ({ params: { property, depsCount, deps } })=>{
23366
23429
  const property_ies = depsCount === 1 ? "property" : "properties";
23367
23430
  return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
@@ -23375,7 +23438,7 @@ function requireDependencies() {
23375
23438
  keyword: "dependencies",
23376
23439
  type: "object",
23377
23440
  schemaType: "object",
23378
- error: exports$1.error,
23441
+ error: exports.error,
23379
23442
  code (cxt) {
23380
23443
  const [propDeps, schDeps] = splitDependencies(cxt);
23381
23444
  validatePropertyDeps(cxt, propDeps);
@@ -23421,7 +23484,7 @@ function requireDependencies() {
23421
23484
  }
23422
23485
  }
23423
23486
  }
23424
- exports$1.validatePropertyDeps = validatePropertyDeps;
23487
+ exports.validatePropertyDeps = validatePropertyDeps;
23425
23488
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
23426
23489
  const { gen, data, keyword, it } = cxt;
23427
23490
  const valid = gen.name("valid");
@@ -23438,8 +23501,8 @@ function requireDependencies() {
23438
23501
  cxt.ok(valid);
23439
23502
  }
23440
23503
  }
23441
- exports$1.validateSchemaDeps = validateSchemaDeps;
23442
- exports$1.default = def;
23504
+ exports.validateSchemaDeps = validateSchemaDeps;
23505
+ exports.default = def;
23443
23506
 
23444
23507
  })(dependencies);
23445
23508
  return dependencies;
@@ -24636,11 +24699,11 @@ var hasRequiredAjv;
24636
24699
  function requireAjv() {
24637
24700
  if (hasRequiredAjv) return ajv.exports;
24638
24701
  hasRequiredAjv = 1;
24639
- (function(module, exports$1) {
24640
- Object.defineProperty(exports$1, "__esModule", {
24702
+ (function(module, exports) {
24703
+ Object.defineProperty(exports, "__esModule", {
24641
24704
  value: true
24642
24705
  });
24643
- exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
24706
+ exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
24644
24707
  const core_1 = /*@__PURE__*/ requireCore$2();
24645
24708
  const draft7_1 = /*@__PURE__*/ requireDraft7();
24646
24709
  const discriminator_1 = /*@__PURE__*/ requireDiscriminator();
@@ -24666,66 +24729,66 @@ function requireAjv() {
24666
24729
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined);
24667
24730
  }
24668
24731
  }
24669
- exports$1.Ajv = Ajv;
24670
- module.exports = exports$1 = Ajv;
24732
+ exports.Ajv = Ajv;
24733
+ module.exports = exports = Ajv;
24671
24734
  module.exports.Ajv = Ajv;
24672
- Object.defineProperty(exports$1, "__esModule", {
24735
+ Object.defineProperty(exports, "__esModule", {
24673
24736
  value: true
24674
24737
  });
24675
- exports$1.default = Ajv;
24738
+ exports.default = Ajv;
24676
24739
  var validate_1 = /*@__PURE__*/ requireValidate();
24677
- Object.defineProperty(exports$1, "KeywordCxt", {
24740
+ Object.defineProperty(exports, "KeywordCxt", {
24678
24741
  enumerable: true,
24679
24742
  get: function() {
24680
24743
  return validate_1.KeywordCxt;
24681
24744
  }
24682
24745
  });
24683
24746
  var codegen_1 = /*@__PURE__*/ requireCodegen();
24684
- Object.defineProperty(exports$1, "_", {
24747
+ Object.defineProperty(exports, "_", {
24685
24748
  enumerable: true,
24686
24749
  get: function() {
24687
24750
  return codegen_1._;
24688
24751
  }
24689
24752
  });
24690
- Object.defineProperty(exports$1, "str", {
24753
+ Object.defineProperty(exports, "str", {
24691
24754
  enumerable: true,
24692
24755
  get: function() {
24693
24756
  return codegen_1.str;
24694
24757
  }
24695
24758
  });
24696
- Object.defineProperty(exports$1, "stringify", {
24759
+ Object.defineProperty(exports, "stringify", {
24697
24760
  enumerable: true,
24698
24761
  get: function() {
24699
24762
  return codegen_1.stringify;
24700
24763
  }
24701
24764
  });
24702
- Object.defineProperty(exports$1, "nil", {
24765
+ Object.defineProperty(exports, "nil", {
24703
24766
  enumerable: true,
24704
24767
  get: function() {
24705
24768
  return codegen_1.nil;
24706
24769
  }
24707
24770
  });
24708
- Object.defineProperty(exports$1, "Name", {
24771
+ Object.defineProperty(exports, "Name", {
24709
24772
  enumerable: true,
24710
24773
  get: function() {
24711
24774
  return codegen_1.Name;
24712
24775
  }
24713
24776
  });
24714
- Object.defineProperty(exports$1, "CodeGen", {
24777
+ Object.defineProperty(exports, "CodeGen", {
24715
24778
  enumerable: true,
24716
24779
  get: function() {
24717
24780
  return codegen_1.CodeGen;
24718
24781
  }
24719
24782
  });
24720
24783
  var validation_error_1 = /*@__PURE__*/ requireValidation_error();
24721
- Object.defineProperty(exports$1, "ValidationError", {
24784
+ Object.defineProperty(exports, "ValidationError", {
24722
24785
  enumerable: true,
24723
24786
  get: function() {
24724
24787
  return validation_error_1.default;
24725
24788
  }
24726
24789
  });
24727
24790
  var ref_error_1 = /*@__PURE__*/ requireRef_error();
24728
- Object.defineProperty(exports$1, "MissingRefError", {
24791
+ Object.defineProperty(exports, "MissingRefError", {
24729
24792
  enumerable: true,
24730
24793
  get: function() {
24731
24794
  return ref_error_1.default;
@@ -24755,9 +24818,9 @@ var hasRequiredResolveFrom;
24755
24818
  function requireResolveFrom() {
24756
24819
  if (hasRequiredResolveFrom) return resolveFrom.exports;
24757
24820
  hasRequiredResolveFrom = 1;
24758
- const path = require$$0$4;
24821
+ const path = require$$0$3;
24759
24822
  const Module = require$$1$3;
24760
- const fs = require$$0$3;
24823
+ const fs = require$$0$2;
24761
24824
  const resolveFrom$1 = (fromDir, moduleId, silent)=>{
24762
24825
  if (typeof fromDir !== 'string') {
24763
24826
  throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
@@ -24855,7 +24918,7 @@ var hasRequiredImportFresh;
24855
24918
  function requireImportFresh() {
24856
24919
  if (hasRequiredImportFresh) return importFresh;
24857
24920
  hasRequiredImportFresh = 1;
24858
- const path = require$$0$4;
24921
+ const path = require$$0$3;
24859
24922
  const resolveFrom = requireResolveFrom();
24860
24923
  const parentModule = requireParentModule();
24861
24924
  importFresh = (moduleId)=>{
@@ -24902,7 +24965,7 @@ var hasRequiredErrorEx;
24902
24965
  function requireErrorEx() {
24903
24966
  if (hasRequiredErrorEx) return errorEx_1;
24904
24967
  hasRequiredErrorEx = 1;
24905
- var util = require$$0$2;
24968
+ var util = require$$0$1;
24906
24969
  var isArrayish = requireIsArrayish();
24907
24970
  var errorEx = function errorEx(name, properties) {
24908
24971
  if (!name || name.constructor !== String) {
@@ -25127,9 +25190,9 @@ var hasRequiredBuild;
25127
25190
  function requireBuild() {
25128
25191
  if (hasRequiredBuild) return build;
25129
25192
  hasRequiredBuild = 1;
25130
- (function(exports$1) {
25131
- exports$1.__esModule = true;
25132
- exports$1.LinesAndColumns = void 0;
25193
+ (function(exports) {
25194
+ exports.__esModule = true;
25195
+ exports.LinesAndColumns = void 0;
25133
25196
  var LF = '\n';
25134
25197
  var CR = '\r';
25135
25198
  var LinesAndColumns = /** @class */ function() {
@@ -25190,8 +25253,8 @@ function requireBuild() {
25190
25253
  };
25191
25254
  return LinesAndColumns;
25192
25255
  }();
25193
- exports$1.LinesAndColumns = LinesAndColumns;
25194
- exports$1["default"] = LinesAndColumns;
25256
+ exports.LinesAndColumns = LinesAndColumns;
25257
+ exports["default"] = LinesAndColumns;
25195
25258
  })(build);
25196
25259
  return build;
25197
25260
  }
@@ -26426,53 +26489,53 @@ var hasRequiredLib$1;
26426
26489
  function requireLib$1() {
26427
26490
  if (hasRequiredLib$1) return lib;
26428
26491
  hasRequiredLib$1 = 1;
26429
- (function(exports$1) {
26430
- Object.defineProperty(exports$1, "__esModule", {
26492
+ (function(exports) {
26493
+ Object.defineProperty(exports, "__esModule", {
26431
26494
  value: true
26432
26495
  });
26433
- Object.defineProperty(exports$1, "isIdentifierChar", {
26496
+ Object.defineProperty(exports, "isIdentifierChar", {
26434
26497
  enumerable: true,
26435
26498
  get: function() {
26436
26499
  return _identifier.isIdentifierChar;
26437
26500
  }
26438
26501
  });
26439
- Object.defineProperty(exports$1, "isIdentifierName", {
26502
+ Object.defineProperty(exports, "isIdentifierName", {
26440
26503
  enumerable: true,
26441
26504
  get: function() {
26442
26505
  return _identifier.isIdentifierName;
26443
26506
  }
26444
26507
  });
26445
- Object.defineProperty(exports$1, "isIdentifierStart", {
26508
+ Object.defineProperty(exports, "isIdentifierStart", {
26446
26509
  enumerable: true,
26447
26510
  get: function() {
26448
26511
  return _identifier.isIdentifierStart;
26449
26512
  }
26450
26513
  });
26451
- Object.defineProperty(exports$1, "isKeyword", {
26514
+ Object.defineProperty(exports, "isKeyword", {
26452
26515
  enumerable: true,
26453
26516
  get: function() {
26454
26517
  return _keyword.isKeyword;
26455
26518
  }
26456
26519
  });
26457
- Object.defineProperty(exports$1, "isReservedWord", {
26520
+ Object.defineProperty(exports, "isReservedWord", {
26458
26521
  enumerable: true,
26459
26522
  get: function() {
26460
26523
  return _keyword.isReservedWord;
26461
26524
  }
26462
26525
  });
26463
- Object.defineProperty(exports$1, "isStrictBindOnlyReservedWord", {
26526
+ Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
26464
26527
  enumerable: true,
26465
26528
  get: function() {
26466
26529
  return _keyword.isStrictBindOnlyReservedWord;
26467
26530
  }
26468
26531
  });
26469
- Object.defineProperty(exports$1, "isStrictBindReservedWord", {
26532
+ Object.defineProperty(exports, "isStrictBindReservedWord", {
26470
26533
  enumerable: true,
26471
26534
  get: function() {
26472
26535
  return _keyword.isStrictBindReservedWord;
26473
26536
  }
26474
26537
  });
26475
- Object.defineProperty(exports$1, "isStrictReservedWord", {
26538
+ Object.defineProperty(exports, "isStrictReservedWord", {
26476
26539
  enumerable: true,
26477
26540
  get: function() {
26478
26541
  return _keyword.isStrictReservedWord;
@@ -29824,20 +29887,20 @@ var hasRequiredLoaders;
29824
29887
  function requireLoaders() {
29825
29888
  if (hasRequiredLoaders) return loaders;
29826
29889
  hasRequiredLoaders = 1;
29827
- (function(exports$1) {
29890
+ (function(exports) {
29828
29891
  /* eslint-disable @typescript-eslint/no-require-imports */ var __importDefault = loaders && loaders.__importDefault || function(mod) {
29829
29892
  return mod && mod.__esModule ? mod : {
29830
29893
  "default": mod
29831
29894
  };
29832
29895
  };
29833
- Object.defineProperty(exports$1, "__esModule", {
29896
+ Object.defineProperty(exports, "__esModule", {
29834
29897
  value: true
29835
29898
  });
29836
- exports$1.loadTs = exports$1.loadTsSync = exports$1.loadYaml = exports$1.loadJson = exports$1.loadJs = exports$1.loadJsSync = void 0;
29837
- const fs_1 = require$$0$3;
29899
+ exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
29900
+ const fs_1 = require$$0$2;
29838
29901
  const promises_1 = require$$1$4;
29839
- const path_1 = __importDefault(require$$0$4);
29840
- const url_1 = require$$0;
29902
+ const path_1 = __importDefault(require$$0$3);
29903
+ const url_1 = require$$3$1;
29841
29904
  const crypto_1 = require$$4;
29842
29905
  let importFresh;
29843
29906
  const loadJsSync = function loadJsSync(filepath) {
@@ -29846,14 +29909,14 @@ function requireLoaders() {
29846
29909
  }
29847
29910
  return importFresh(filepath);
29848
29911
  };
29849
- exports$1.loadJsSync = loadJsSync;
29912
+ exports.loadJsSync = loadJsSync;
29850
29913
  const loadJs = async function loadJs(filepath) {
29851
29914
  try {
29852
29915
  const { href } = (0, url_1.pathToFileURL)(await (0, promises_1.realpath)(filepath));
29853
29916
  return (await import(href)).default;
29854
29917
  } catch (error) {
29855
29918
  try {
29856
- return (0, exports$1.loadJsSync)(filepath, '');
29919
+ return (0, exports.loadJsSync)(filepath, '');
29857
29920
  } catch (requireError) {
29858
29921
  /* istanbul ignore next -- @preserve */ if (requireError.code === 'ERR_REQUIRE_ESM' || requireError instanceof SyntaxError && requireError.toString().includes('Cannot use import statement outside a module')) {
29859
29922
  throw error;
@@ -29862,7 +29925,7 @@ function requireLoaders() {
29862
29925
  }
29863
29926
  }
29864
29927
  };
29865
- exports$1.loadJs = loadJs;
29928
+ exports.loadJs = loadJs;
29866
29929
  let parseJson;
29867
29930
  const loadJson = function loadJson(filepath, content) {
29868
29931
  if (parseJson === undefined) {
@@ -29875,7 +29938,7 @@ function requireLoaders() {
29875
29938
  throw error;
29876
29939
  }
29877
29940
  };
29878
- exports$1.loadJson = loadJson;
29941
+ exports.loadJson = loadJson;
29879
29942
  let yaml;
29880
29943
  const loadYaml = function loadYaml(filepath, content) {
29881
29944
  if (yaml === undefined) {
@@ -29888,7 +29951,7 @@ function requireLoaders() {
29888
29951
  throw error;
29889
29952
  }
29890
29953
  };
29891
- exports$1.loadYaml = loadYaml;
29954
+ exports.loadYaml = loadYaml;
29892
29955
  let typescript;
29893
29956
  const loadTsSync = function loadTsSync(filepath, content) {
29894
29957
  /* istanbul ignore next -- @preserve */ if (typescript === undefined) {
@@ -29906,7 +29969,7 @@ function requireLoaders() {
29906
29969
  };
29907
29970
  content = typescript.transpileModule(content, config).outputText;
29908
29971
  (0, fs_1.writeFileSync)(compiledFilepath, content);
29909
- return (0, exports$1.loadJsSync)(compiledFilepath, content).default;
29972
+ return (0, exports.loadJsSync)(compiledFilepath, content).default;
29910
29973
  } catch (error) {
29911
29974
  error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
29912
29975
  throw error;
@@ -29916,7 +29979,7 @@ function requireLoaders() {
29916
29979
  }
29917
29980
  }
29918
29981
  };
29919
- exports$1.loadTsSync = loadTsSync;
29982
+ exports.loadTsSync = loadTsSync;
29920
29983
  const loadTs = async function loadTs(filepath, content) {
29921
29984
  if (typescript === undefined) {
29922
29985
  typescript = (await import('typescript')).default;
@@ -29940,14 +30003,14 @@ function requireLoaders() {
29940
30003
  throw error;
29941
30004
  }
29942
30005
  // eslint-disable-next-line @typescript-eslint/return-await
29943
- return await (0, exports$1.loadJs)(compiledFilepath, transpiledContent);
30006
+ return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
29944
30007
  } finally{
29945
30008
  if ((0, fs_1.existsSync)(compiledFilepath)) {
29946
30009
  await (0, promises_1.rm)(compiledFilepath);
29947
30010
  }
29948
30011
  }
29949
30012
  };
29950
- exports$1.loadTs = loadTs;
30013
+ exports.loadTs = loadTs;
29951
30014
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
29952
30015
  function resolveTsConfig(directory) {
29953
30016
  const filePath = typescript.findConfigFile(directory, (fileName)=>{
@@ -29974,7 +30037,9 @@ function requireDefaults() {
29974
30037
  Object.defineProperty(defaults, "__esModule", {
29975
30038
  value: true
29976
30039
  });
29977
- defaults.defaultLoadersSync = defaults.defaultLoaders = defaults.metaSearchPlaces = defaults.globalConfigSearchPlacesSync = defaults.globalConfigSearchPlaces = defaults.getDefaultSearchPlacesSync = defaults.getDefaultSearchPlaces = void 0;
30040
+ defaults.defaultLoadersSync = defaults.defaultLoaders = defaults.metaSearchPlaces = defaults.globalConfigSearchPlacesSync = defaults.globalConfigSearchPlaces = void 0;
30041
+ defaults.getDefaultSearchPlaces = getDefaultSearchPlaces;
30042
+ defaults.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
29978
30043
  const loaders_1 = requireLoaders();
29979
30044
  function getDefaultSearchPlaces(moduleName) {
29980
30045
  return [
@@ -30001,7 +30066,6 @@ function requireDefaults() {
30001
30066
  `${moduleName}.config.mjs`
30002
30067
  ];
30003
30068
  }
30004
- defaults.getDefaultSearchPlaces = getDefaultSearchPlaces;
30005
30069
  function getDefaultSearchPlacesSync(moduleName) {
30006
30070
  return [
30007
30071
  'package.json',
@@ -30024,7 +30088,6 @@ function requireDefaults() {
30024
30088
  `${moduleName}.config.cjs`
30025
30089
  ];
30026
30090
  }
30027
- defaults.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
30028
30091
  defaults.globalConfigSearchPlaces = [
30029
30092
  'config',
30030
30093
  'config.json',
@@ -30090,7 +30153,7 @@ var hasRequiredEnvPaths;
30090
30153
  function requireEnvPaths() {
30091
30154
  if (hasRequiredEnvPaths) return envPaths.exports;
30092
30155
  hasRequiredEnvPaths = 1;
30093
- const path = require$$0$4;
30156
+ const path = require$$0$3;
30094
30157
  const os = require$$1$5;
30095
30158
  const homedir = os.homedir();
30096
30159
  const tmpdir = os.tmpdir();
@@ -30184,20 +30247,34 @@ function requireUtil() {
30184
30247
  } : function(o, v) {
30185
30248
  o["default"] = v;
30186
30249
  });
30187
- var __importStar = util && util.__importStar || function(mod) {
30188
- if (mod && mod.__esModule) return mod;
30189
- var result = {};
30190
- if (mod != null) {
30191
- for(var k in mod)if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30192
- }
30193
- __setModuleDefault(result, mod);
30194
- return result;
30195
- };
30250
+ var __importStar = util && util.__importStar || function() {
30251
+ var ownKeys = function(o) {
30252
+ ownKeys = Object.getOwnPropertyNames || function(o) {
30253
+ var ar = [];
30254
+ for(var k in o)if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
30255
+ return ar;
30256
+ };
30257
+ return ownKeys(o);
30258
+ };
30259
+ return function(mod) {
30260
+ if (mod && mod.__esModule) return mod;
30261
+ var result = {};
30262
+ if (mod != null) {
30263
+ for(var k = ownKeys(mod), i = 0; i < k.length; i++)if (k[i] !== "default") __createBinding(result, mod, k[i]);
30264
+ }
30265
+ __setModuleDefault(result, mod);
30266
+ return result;
30267
+ };
30268
+ }();
30196
30269
  Object.defineProperty(util, "__esModule", {
30197
30270
  value: true
30198
30271
  });
30199
- util.isDirectorySync = util.isDirectory = util.removeUndefinedValuesFromObject = util.getPropertyByPath = util.emplace = void 0;
30200
- const fs_1 = __importStar(require$$0$3);
30272
+ util.emplace = emplace;
30273
+ util.getPropertyByPath = getPropertyByPath;
30274
+ util.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
30275
+ util.isDirectory = isDirectory;
30276
+ util.isDirectorySync = isDirectorySync;
30277
+ const fs_1 = __importStar(require$$0$2);
30201
30278
  /**
30202
30279
  * @internal
30203
30280
  */ function emplace(map, key, fn) {
@@ -30209,7 +30286,6 @@ function requireUtil() {
30209
30286
  map.set(key, result);
30210
30287
  return result;
30211
30288
  }
30212
- util.emplace = emplace;
30213
30289
  // Resolves property names or property paths defined with period-delimited
30214
30290
  // strings or arrays of strings. Property names that are found on the source
30215
30291
  // object are used directly (even if they include a period).
@@ -30230,11 +30306,9 @@ function requireUtil() {
30230
30306
  return previous[key];
30231
30307
  }, source);
30232
30308
  }
30233
- util.getPropertyByPath = getPropertyByPath;
30234
30309
  /** @internal */ function removeUndefinedValuesFromObject(options) {
30235
30310
  return Object.fromEntries(Object.entries(options).filter(([, value])=>value !== undefined));
30236
30311
  }
30237
- util.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
30238
30312
  /** @internal */ /* istanbul ignore next -- @preserve */ async function isDirectory(path) {
30239
30313
  try {
30240
30314
  const stat = await fs_1.promises.stat(path);
@@ -30246,7 +30320,6 @@ function requireUtil() {
30246
30320
  throw e;
30247
30321
  }
30248
30322
  }
30249
- util.isDirectory = isDirectory;
30250
30323
  /** @internal */ /* istanbul ignore next -- @preserve */ function isDirectorySync(path) {
30251
30324
  try {
30252
30325
  const stat = fs_1.default.statSync(path);
@@ -30258,7 +30331,6 @@ function requireUtil() {
30258
30331
  throw e;
30259
30332
  }
30260
30333
  }
30261
- util.isDirectorySync = isDirectorySync;
30262
30334
 
30263
30335
  return util;
30264
30336
  }
@@ -30275,10 +30347,11 @@ function requireExplorerBase() {
30275
30347
  Object.defineProperty(ExplorerBase, "__esModule", {
30276
30348
  value: true
30277
30349
  });
30278
- ExplorerBase.getExtensionDescription = ExplorerBase.ExplorerBase = void 0;
30350
+ ExplorerBase.ExplorerBase = void 0;
30351
+ ExplorerBase.getExtensionDescription = getExtensionDescription;
30279
30352
  const env_paths_1 = __importDefault(requireEnvPaths());
30280
30353
  const os_1 = __importDefault(require$$1$5);
30281
- const path_1 = __importDefault(require$$0$4);
30354
+ const path_1 = __importDefault(require$$0$3);
30282
30355
  const util_js_1 = requireUtil();
30283
30356
  /**
30284
30357
  * @internal
@@ -30410,7 +30483,6 @@ ${[
30410
30483
  */ function getExtensionDescription(extension) {
30411
30484
  /* istanbul ignore next -- @preserve */ return extension ? `extension "${extension}"` : 'files without extensions';
30412
30485
  }
30413
- ExplorerBase.getExtensionDescription = getExtensionDescription;
30414
30486
 
30415
30487
  return ExplorerBase;
30416
30488
  }
@@ -30421,12 +30493,13 @@ var hasRequiredMerge;
30421
30493
  function requireMerge() {
30422
30494
  if (hasRequiredMerge) return merge;
30423
30495
  hasRequiredMerge = 1;
30424
- (function(exports$1) {
30425
- Object.defineProperty(exports$1, "__esModule", {
30496
+ (function(exports) {
30497
+ Object.defineProperty(exports, "__esModule", {
30426
30498
  value: true
30427
30499
  });
30428
- exports$1.mergeAll = exports$1.hasOwn = void 0;
30429
- /* eslint-disable @typescript-eslint/unbound-method */ exports$1.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
30500
+ exports.hasOwn = void 0;
30501
+ exports.mergeAll = mergeAll;
30502
+ /* eslint-disable @typescript-eslint/unbound-method */ exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
30430
30503
  const objToString = Function.prototype.call.bind(Object.prototype.toString);
30431
30504
  /* eslint-enable @typescript-eslint/unbound-method */ function isPlainObject(obj) {
30432
30505
  return objToString(obj) === '[object Object]';
@@ -30434,8 +30507,11 @@ function requireMerge() {
30434
30507
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
30435
30508
  function merge(target, source, options) {
30436
30509
  for (const key of Object.keys(source)){
30510
+ /* istanbul ignore next -- @preserve */ if (key === '__proto__' || key === 'constructor') {
30511
+ continue;
30512
+ }
30437
30513
  const newValue = source[key];
30438
- if ((0, exports$1.hasOwn)(target, key)) {
30514
+ if ((0, exports.hasOwn)(target, key)) {
30439
30515
  if (Array.isArray(target[key]) && Array.isArray(newValue)) {
30440
30516
  if (options.mergeArrays) {
30441
30517
  target[key].push(...newValue);
@@ -30456,7 +30532,6 @@ function requireMerge() {
30456
30532
  objects, options) {
30457
30533
  return objects.reduce((target, source)=>merge(target, source, options), {});
30458
30534
  }
30459
- exports$1.mergeAll = mergeAll;
30460
30535
 
30461
30536
  })(merge);
30462
30537
  return merge;
@@ -30476,7 +30551,7 @@ function requireExplorer() {
30476
30551
  });
30477
30552
  Explorer.Explorer = void 0;
30478
30553
  const promises_1 = __importDefault(require$$1$4);
30479
- const path_1 = __importDefault(require$$0$4);
30554
+ const path_1 = __importDefault(require$$0$3);
30480
30555
  const defaults_1 = requireDefaults();
30481
30556
  const ExplorerBase_js_1 = requireExplorerBase();
30482
30557
  const merge_1 = requireMerge();
@@ -30622,22 +30697,27 @@ function requireExplorer() {
30622
30697
  path: currentDir,
30623
30698
  isGlobalConfig: false
30624
30699
  };
30700
+ let foundPackageFile = false;
30625
30701
  for (const ext of [
30626
30702
  'json',
30627
30703
  'yaml'
30628
30704
  ]){
30629
30705
  const packageFile = path_1.default.join(currentDir, `package.${ext}`);
30630
30706
  if (await this.#fileExists(packageFile)) {
30707
+ foundPackageFile = true;
30631
30708
  break;
30632
30709
  }
30633
30710
  }
30711
+ if (foundPackageFile) {
30712
+ return;
30713
+ }
30634
30714
  const parentDir = path_1.default.dirname(currentDir);
30635
30715
  /* istanbul ignore if -- @preserve */ if (parentDir === currentDir) {
30636
- break;
30716
+ // we're probably at the root of the directory structure
30717
+ return;
30637
30718
  }
30638
30719
  currentDir = parentDir;
30639
30720
  }
30640
- return;
30641
30721
  }
30642
30722
  case 'global':
30643
30723
  {
@@ -30666,8 +30746,8 @@ function requireExplorerSync() {
30666
30746
  value: true
30667
30747
  });
30668
30748
  ExplorerSync.ExplorerSync = void 0;
30669
- const fs_1 = __importDefault(require$$0$3);
30670
- const path_1 = __importDefault(require$$0$4);
30749
+ const fs_1 = __importDefault(require$$0$2);
30750
+ const path_1 = __importDefault(require$$0$3);
30671
30751
  const defaults_1 = requireDefaults();
30672
30752
  const ExplorerBase_js_1 = requireExplorerBase();
30673
30753
  const merge_1 = requireMerge();
@@ -30811,22 +30891,27 @@ function requireExplorerSync() {
30811
30891
  path: currentDir,
30812
30892
  isGlobalConfig: false
30813
30893
  };
30894
+ let foundPackageFile = false;
30814
30895
  for (const ext of [
30815
30896
  'json',
30816
30897
  'yaml'
30817
30898
  ]){
30818
30899
  const packageFile = path_1.default.join(currentDir, `package.${ext}`);
30819
30900
  if (this.#fileExists(packageFile)) {
30901
+ foundPackageFile = true;
30820
30902
  break;
30821
30903
  }
30822
30904
  }
30905
+ if (foundPackageFile) {
30906
+ return;
30907
+ }
30823
30908
  const parentDir = path_1.default.dirname(currentDir);
30824
30909
  /* istanbul ignore if -- @preserve */ if (parentDir === currentDir) {
30825
- break;
30910
+ // we're probably at the root of the directory structure
30911
+ return;
30826
30912
  }
30827
30913
  currentDir = parentDir;
30828
30914
  }
30829
- return;
30830
30915
  }
30831
30916
  case 'global':
30832
30917
  {
@@ -30854,43 +30939,45 @@ var hasRequiredDist;
30854
30939
  function requireDist() {
30855
30940
  if (hasRequiredDist) return dist;
30856
30941
  hasRequiredDist = 1;
30857
- (function(exports$1) {
30858
- Object.defineProperty(exports$1, "__esModule", {
30942
+ (function(exports) {
30943
+ Object.defineProperty(exports, "__esModule", {
30859
30944
  value: true
30860
30945
  });
30861
- exports$1.defaultLoadersSync = exports$1.defaultLoaders = exports$1.globalConfigSearchPlacesSync = exports$1.globalConfigSearchPlaces = exports$1.getDefaultSearchPlacesSync = exports$1.getDefaultSearchPlaces = exports$1.cosmiconfigSync = exports$1.cosmiconfig = void 0;
30946
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
30947
+ exports.cosmiconfig = cosmiconfig;
30948
+ exports.cosmiconfigSync = cosmiconfigSync;
30862
30949
  const defaults_1 = requireDefaults();
30863
- Object.defineProperty(exports$1, "defaultLoaders", {
30950
+ Object.defineProperty(exports, "defaultLoaders", {
30864
30951
  enumerable: true,
30865
30952
  get: function() {
30866
30953
  return defaults_1.defaultLoaders;
30867
30954
  }
30868
30955
  });
30869
- Object.defineProperty(exports$1, "defaultLoadersSync", {
30956
+ Object.defineProperty(exports, "defaultLoadersSync", {
30870
30957
  enumerable: true,
30871
30958
  get: function() {
30872
30959
  return defaults_1.defaultLoadersSync;
30873
30960
  }
30874
30961
  });
30875
- Object.defineProperty(exports$1, "getDefaultSearchPlaces", {
30962
+ Object.defineProperty(exports, "getDefaultSearchPlaces", {
30876
30963
  enumerable: true,
30877
30964
  get: function() {
30878
30965
  return defaults_1.getDefaultSearchPlaces;
30879
30966
  }
30880
30967
  });
30881
- Object.defineProperty(exports$1, "getDefaultSearchPlacesSync", {
30968
+ Object.defineProperty(exports, "getDefaultSearchPlacesSync", {
30882
30969
  enumerable: true,
30883
30970
  get: function() {
30884
30971
  return defaults_1.getDefaultSearchPlacesSync;
30885
30972
  }
30886
30973
  });
30887
- Object.defineProperty(exports$1, "globalConfigSearchPlaces", {
30974
+ Object.defineProperty(exports, "globalConfigSearchPlaces", {
30888
30975
  enumerable: true,
30889
30976
  get: function() {
30890
30977
  return defaults_1.globalConfigSearchPlaces;
30891
30978
  }
30892
30979
  });
30893
- Object.defineProperty(exports$1, "globalConfigSearchPlacesSync", {
30980
+ Object.defineProperty(exports, "globalConfigSearchPlacesSync", {
30894
30981
  enumerable: true,
30895
30982
  get: function() {
30896
30983
  return defaults_1.globalConfigSearchPlacesSync;
@@ -31020,7 +31107,6 @@ function requireDist() {
31020
31107
  clearCaches: explorer.clearCaches.bind(explorer)
31021
31108
  };
31022
31109
  }
31023
- exports$1.cosmiconfig = cosmiconfig;
31024
31110
  function cosmiconfigSync(moduleName, options = {}) {
31025
31111
  const normalizedOptions = mergeOptionsSync(moduleName, options);
31026
31112
  const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
@@ -31032,7 +31118,6 @@ function requireDist() {
31032
31118
  clearCaches: explorerSync.clearCaches.bind(explorerSync)
31033
31119
  };
31034
31120
  }
31035
- exports$1.cosmiconfigSync = cosmiconfigSync;
31036
31121
 
31037
31122
  })(dist);
31038
31123
  return dist;