hot-updater 0.12.4 → 0.12.6

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/index.cjs CHANGED
@@ -1188,7 +1188,7 @@ var __webpack_modules__ = {
1188
1188
  const { ignoreList } = map;
1189
1189
  if (null == ignoreList) return false;
1190
1190
  const index = sourceIndex(map, source);
1191
- return -1 !== index && ignoreList.includes(index);
1191
+ return -1 === index ? false : ignoreList.includes(index);
1192
1192
  }
1193
1193
  function presortedDecodedMap(map, mapUrl) {
1194
1194
  const tracer = new TraceMap(clone(map, []), mapUrl);
@@ -2339,7 +2339,7 @@ var __webpack_modules__ = {
2339
2339
  exports1.inspectOpts = Object.keys(process.env).filter((key)=>/^debug_/i.test(key)).reduce((obj, key)=>{
2340
2340
  const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k)=>k.toUpperCase());
2341
2341
  let val = process.env[key];
2342
- val = !!/^(yes|on|true|enabled)$/i.test(val) || !/^(no|off|false|disabled)$/i.test(val) && ('null' === val ? null : Number(val));
2342
+ val = /^(yes|on|true|enabled)$/i.test(val) ? true : /^(no|off|false|disabled)$/i.test(val) ? false : 'null' === val ? null : Number(val);
2343
2343
  obj[prop] = val;
2344
2344
  return obj;
2345
2345
  }, {});
@@ -2964,8 +2964,7 @@ var __webpack_modules__ = {
2964
2964
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
2965
2965
  __webpack_require__("fs");
2966
2966
  var core;
2967
- if ('win32' === process.platform || global.TESTING_WINDOWS) core = __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js");
2968
- else core = __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
2967
+ core = 'win32' === process.platform || global.TESTING_WINDOWS ? __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
2969
2968
  module.exports = isexe;
2970
2969
  isexe.sync = sync;
2971
2970
  function isexe(path, options, cb) {
@@ -3007,7 +3006,7 @@ var __webpack_modules__ = {
3007
3006
  var fs = __webpack_require__("fs");
3008
3007
  function isexe(path, options, cb) {
3009
3008
  fs.stat(path, function(er, stat) {
3010
- cb(er, !er && checkStat(stat, options));
3009
+ cb(er, er ? false : checkStat(stat, options));
3011
3010
  });
3012
3011
  }
3013
3012
  function sync(path, options) {
@@ -3051,7 +3050,7 @@ var __webpack_modules__ = {
3051
3050
  }
3052
3051
  function isexe(path, options, cb) {
3053
3052
  fs.stat(path, function(er, stat) {
3054
- cb(er, !er && checkStat(stat, path, options));
3053
+ cb(er, er ? false : checkStat(stat, path, options));
3055
3054
  });
3056
3055
  }
3057
3056
  function sync(path, options) {
@@ -5235,7 +5234,7 @@ var __webpack_modules__ = {
5235
5234
  this.unixPermissions = null;
5236
5235
  this.dosPermissions = null;
5237
5236
  var madeBy = this.versionMadeBy >> 8;
5238
- this.dir = !!(0x0010 & this.externalFileAttributes) || false;
5237
+ this.dir = !!(0x0010 & this.externalFileAttributes);
5239
5238
  if (madeBy === MADE_BY_DOS) this.dosPermissions = 0x3F & this.externalFileAttributes;
5240
5239
  if (madeBy === MADE_BY_UNIX) this.unixPermissions = this.externalFileAttributes >> 16 & 0xFFFF;
5241
5240
  if (!this.dir && "/" === this.fileNameStr.slice(-1)) this.dir = true;
@@ -5696,8 +5695,8 @@ var __webpack_modules__ = {
5696
5695
  }
5697
5696
  },
5698
5697
  "../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/fixer.js": function(module, __unused_webpack_exports, __webpack_require__) {
5699
- var isValidSemver = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js");
5700
- var cleanSemver = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js");
5698
+ var isValidSemver = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js");
5699
+ var cleanSemver = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js");
5701
5700
  var validateLicense = __webpack_require__("../../node_modules/.pnpm/validate-npm-package-license@3.0.4/node_modules/validate-npm-package-license/index.js");
5702
5701
  var hostedGitInfo = __webpack_require__("../../node_modules/.pnpm/hosted-git-info@7.0.2/node_modules/hosted-git-info/lib/index.js");
5703
5702
  var moduleBuiltin = __webpack_require__("node:module");
@@ -7188,7 +7187,7 @@ var __webpack_modules__ = {
7188
7187
  s.lit_bufsize = 1 << memLevel + 6;
7189
7188
  s.pending_buf_size = 4 * s.lit_bufsize;
7190
7189
  s.pending_buf = new utils.Buf8(s.pending_buf_size);
7191
- s.d_buf = 1 * s.lit_bufsize;
7190
+ s.d_buf = +s.lit_bufsize;
7192
7191
  s.l_buf = 3 * s.lit_bufsize;
7193
7192
  s.level = level;
7194
7193
  s.strategy = strategy;
@@ -11710,14 +11709,6 @@ var __webpack_modules__ = {
11710
11709
  }
11711
11710
  module.exports = SemVer;
11712
11711
  },
11713
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js": function(module, __unused_webpack_exports, __webpack_require__) {
11714
- const parse = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
11715
- const clean = (version, options)=>{
11716
- const s = parse(version.trim().replace(/^[=v]+/, ''), options);
11717
- return s ? s.version : null;
11718
- };
11719
- module.exports = clean;
11720
- },
11721
11712
  "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js": function(module, __unused_webpack_exports, __webpack_require__) {
11722
11713
  const eq = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js");
11723
11714
  const neq = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js");
@@ -11790,27 +11781,6 @@ var __webpack_modules__ = {
11790
11781
  const neq = (a, b, loose)=>0 !== compare(a, b, loose);
11791
11782
  module.exports = neq;
11792
11783
  },
11793
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
11794
- const SemVer = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
11795
- const parse = (version, options, throwErrors = false)=>{
11796
- if (version instanceof SemVer) return version;
11797
- try {
11798
- return new SemVer(version, options);
11799
- } catch (er) {
11800
- if (!throwErrors) return null;
11801
- throw er;
11802
- }
11803
- };
11804
- module.exports = parse;
11805
- },
11806
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js": function(module, __unused_webpack_exports, __webpack_require__) {
11807
- const parse = __webpack_require__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
11808
- const valid = (version, options)=>{
11809
- const v = parse(version, options);
11810
- return v ? v.version : null;
11811
- };
11812
- module.exports = valid;
11813
- },
11814
11784
  "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js": function(module) {
11815
11785
  const SEMVER_SPEC_VERSION = '2.0.0';
11816
11786
  const MAX_LENGTH = 256;
@@ -11847,8 +11817,8 @@ var __webpack_modules__ = {
11847
11817
  const anum = numeric.test(a);
11848
11818
  const bnum = numeric.test(b);
11849
11819
  if (anum && bnum) {
11850
- a = +a;
11851
- b = +b;
11820
+ a *= 1;
11821
+ b *= 1;
11852
11822
  }
11853
11823
  return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
11854
11824
  };
@@ -11995,6 +11965,362 @@ var __webpack_modules__ = {
11995
11965
  };
11996
11966
  module.exports = validRange;
11997
11967
  },
11968
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js": function(module, __unused_webpack_exports, __webpack_require__) {
11969
+ const debug = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js");
11970
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js");
11971
+ const { safeRe: re, safeSrc: src, t } = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js");
11972
+ const parseOptions = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js");
11973
+ const { compareIdentifiers } = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js");
11974
+ class SemVer {
11975
+ constructor(version, options){
11976
+ options = parseOptions(options);
11977
+ if (version instanceof SemVer) {
11978
+ if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
11979
+ version = version.version;
11980
+ } else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
11981
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
11982
+ debug('SemVer', version, options);
11983
+ this.options = options;
11984
+ this.loose = !!options.loose;
11985
+ this.includePrerelease = !!options.includePrerelease;
11986
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
11987
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
11988
+ this.raw = version;
11989
+ this.major = +m[1];
11990
+ this.minor = +m[2];
11991
+ this.patch = +m[3];
11992
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError('Invalid major version');
11993
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError('Invalid minor version');
11994
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError('Invalid patch version');
11995
+ if (m[4]) this.prerelease = m[4].split('.').map((id)=>{
11996
+ if (/^[0-9]+$/.test(id)) {
11997
+ const num = +id;
11998
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
11999
+ }
12000
+ return id;
12001
+ });
12002
+ else this.prerelease = [];
12003
+ this.build = m[5] ? m[5].split('.') : [];
12004
+ this.format();
12005
+ }
12006
+ format() {
12007
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
12008
+ if (this.prerelease.length) this.version += `-${this.prerelease.join('.')}`;
12009
+ return this.version;
12010
+ }
12011
+ toString() {
12012
+ return this.version;
12013
+ }
12014
+ compare(other) {
12015
+ debug('SemVer.compare', this.version, this.options, other);
12016
+ if (!(other instanceof SemVer)) {
12017
+ if ('string' == typeof other && other === this.version) return 0;
12018
+ other = new SemVer(other, this.options);
12019
+ }
12020
+ if (other.version === this.version) return 0;
12021
+ return this.compareMain(other) || this.comparePre(other);
12022
+ }
12023
+ compareMain(other) {
12024
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
12025
+ return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
12026
+ }
12027
+ comparePre(other) {
12028
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
12029
+ if (this.prerelease.length && !other.prerelease.length) return -1;
12030
+ if (!this.prerelease.length && other.prerelease.length) return 1;
12031
+ if (!this.prerelease.length && !other.prerelease.length) return 0;
12032
+ let i = 0;
12033
+ do {
12034
+ const a = this.prerelease[i];
12035
+ const b = other.prerelease[i];
12036
+ debug('prerelease compare', i, a, b);
12037
+ if (void 0 === a && void 0 === b) return 0;
12038
+ if (void 0 === b) return 1;
12039
+ if (void 0 === a) return -1;
12040
+ else if (a === b) continue;
12041
+ else return compareIdentifiers(a, b);
12042
+ }while (++i);
12043
+ }
12044
+ compareBuild(other) {
12045
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
12046
+ let i = 0;
12047
+ do {
12048
+ const a = this.build[i];
12049
+ const b = other.build[i];
12050
+ debug('build compare', i, a, b);
12051
+ if (void 0 === a && void 0 === b) return 0;
12052
+ if (void 0 === b) return 1;
12053
+ if (void 0 === a) return -1;
12054
+ else if (a === b) continue;
12055
+ else return compareIdentifiers(a, b);
12056
+ }while (++i);
12057
+ }
12058
+ inc(release, identifier, identifierBase) {
12059
+ if (release.startsWith('pre')) {
12060
+ if (!identifier && false === identifierBase) throw new Error('invalid increment argument: identifier is empty');
12061
+ if (identifier) {
12062
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
12063
+ const match = `-${identifier}`.match(r);
12064
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
12065
+ }
12066
+ }
12067
+ switch(release){
12068
+ case 'premajor':
12069
+ this.prerelease.length = 0;
12070
+ this.patch = 0;
12071
+ this.minor = 0;
12072
+ this.major++;
12073
+ this.inc('pre', identifier, identifierBase);
12074
+ break;
12075
+ case 'preminor':
12076
+ this.prerelease.length = 0;
12077
+ this.patch = 0;
12078
+ this.minor++;
12079
+ this.inc('pre', identifier, identifierBase);
12080
+ break;
12081
+ case 'prepatch':
12082
+ this.prerelease.length = 0;
12083
+ this.inc('patch', identifier, identifierBase);
12084
+ this.inc('pre', identifier, identifierBase);
12085
+ break;
12086
+ case 'prerelease':
12087
+ if (0 === this.prerelease.length) this.inc('patch', identifier, identifierBase);
12088
+ this.inc('pre', identifier, identifierBase);
12089
+ break;
12090
+ case 'release':
12091
+ if (0 === this.prerelease.length) throw new Error(`version ${this.raw} is not a prerelease`);
12092
+ this.prerelease.length = 0;
12093
+ break;
12094
+ case 'major':
12095
+ if (0 !== this.minor || 0 !== this.patch || 0 === this.prerelease.length) this.major++;
12096
+ this.minor = 0;
12097
+ this.patch = 0;
12098
+ this.prerelease = [];
12099
+ break;
12100
+ case 'minor':
12101
+ if (0 !== this.patch || 0 === this.prerelease.length) this.minor++;
12102
+ this.patch = 0;
12103
+ this.prerelease = [];
12104
+ break;
12105
+ case 'patch':
12106
+ if (0 === this.prerelease.length) this.patch++;
12107
+ this.prerelease = [];
12108
+ break;
12109
+ case 'pre':
12110
+ {
12111
+ const base = Number(identifierBase) ? 1 : 0;
12112
+ if (0 === this.prerelease.length) this.prerelease = [
12113
+ base
12114
+ ];
12115
+ else {
12116
+ let i = this.prerelease.length;
12117
+ while(--i >= 0)if ('number' == typeof this.prerelease[i]) {
12118
+ this.prerelease[i]++;
12119
+ i = -2;
12120
+ }
12121
+ if (-1 === i) {
12122
+ if (identifier === this.prerelease.join('.') && false === identifierBase) throw new Error('invalid increment argument: identifier already exists');
12123
+ this.prerelease.push(base);
12124
+ }
12125
+ }
12126
+ if (identifier) {
12127
+ let prerelease = [
12128
+ identifier,
12129
+ base
12130
+ ];
12131
+ if (false === identifierBase) prerelease = [
12132
+ identifier
12133
+ ];
12134
+ if (0 === compareIdentifiers(this.prerelease[0], identifier)) {
12135
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
12136
+ } else this.prerelease = prerelease;
12137
+ }
12138
+ break;
12139
+ }
12140
+ default:
12141
+ throw new Error(`invalid increment argument: ${release}`);
12142
+ }
12143
+ this.raw = this.format();
12144
+ if (this.build.length) this.raw += `+${this.build.join('.')}`;
12145
+ return this;
12146
+ }
12147
+ }
12148
+ module.exports = SemVer;
12149
+ },
12150
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js": function(module, __unused_webpack_exports, __webpack_require__) {
12151
+ const parse = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js");
12152
+ const clean = (version, options)=>{
12153
+ const s = parse(version.trim().replace(/^[=v]+/, ''), options);
12154
+ return s ? s.version : null;
12155
+ };
12156
+ module.exports = clean;
12157
+ },
12158
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
12159
+ const SemVer = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js");
12160
+ const parse = (version, options, throwErrors = false)=>{
12161
+ if (version instanceof SemVer) return version;
12162
+ try {
12163
+ return new SemVer(version, options);
12164
+ } catch (er) {
12165
+ if (!throwErrors) return null;
12166
+ throw er;
12167
+ }
12168
+ };
12169
+ module.exports = parse;
12170
+ },
12171
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js": function(module, __unused_webpack_exports, __webpack_require__) {
12172
+ const parse = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js");
12173
+ const valid = (version, options)=>{
12174
+ const v = parse(version, options);
12175
+ return v ? v.version : null;
12176
+ };
12177
+ module.exports = valid;
12178
+ },
12179
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js": function(module) {
12180
+ const SEMVER_SPEC_VERSION = '2.0.0';
12181
+ const MAX_LENGTH = 256;
12182
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
12183
+ const MAX_SAFE_COMPONENT_LENGTH = 16;
12184
+ const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
12185
+ const RELEASE_TYPES = [
12186
+ 'major',
12187
+ 'premajor',
12188
+ 'minor',
12189
+ 'preminor',
12190
+ 'patch',
12191
+ 'prepatch',
12192
+ 'prerelease'
12193
+ ];
12194
+ module.exports = {
12195
+ MAX_LENGTH,
12196
+ MAX_SAFE_COMPONENT_LENGTH,
12197
+ MAX_SAFE_BUILD_LENGTH,
12198
+ MAX_SAFE_INTEGER,
12199
+ RELEASE_TYPES,
12200
+ SEMVER_SPEC_VERSION,
12201
+ FLAG_INCLUDE_PRERELEASE: 1,
12202
+ FLAG_LOOSE: 2
12203
+ };
12204
+ },
12205
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js": function(module) {
12206
+ const debug = 'object' == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error('SEMVER', ...args) : ()=>{};
12207
+ module.exports = debug;
12208
+ },
12209
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js": function(module) {
12210
+ const numeric = /^[0-9]+$/;
12211
+ const compareIdentifiers = (a, b)=>{
12212
+ const anum = numeric.test(a);
12213
+ const bnum = numeric.test(b);
12214
+ if (anum && bnum) {
12215
+ a *= 1;
12216
+ b *= 1;
12217
+ }
12218
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
12219
+ };
12220
+ const rcompareIdentifiers = (a, b)=>compareIdentifiers(b, a);
12221
+ module.exports = {
12222
+ compareIdentifiers,
12223
+ rcompareIdentifiers
12224
+ };
12225
+ },
12226
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js": function(module) {
12227
+ const looseOption = Object.freeze({
12228
+ loose: true
12229
+ });
12230
+ const emptyOpts = Object.freeze({});
12231
+ const parseOptions = (options)=>{
12232
+ if (!options) return emptyOpts;
12233
+ if ('object' != typeof options) return looseOption;
12234
+ return options;
12235
+ };
12236
+ module.exports = parseOptions;
12237
+ },
12238
+ "../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js": function(module, exports1, __webpack_require__) {
12239
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js");
12240
+ const debug = __webpack_require__("../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js");
12241
+ exports1 = module.exports = {};
12242
+ const re = exports1.re = [];
12243
+ const safeRe = exports1.safeRe = [];
12244
+ const src = exports1.src = [];
12245
+ const safeSrc = exports1.safeSrc = [];
12246
+ const t = exports1.t = {};
12247
+ let R = 0;
12248
+ const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
12249
+ const safeRegexReplacements = [
12250
+ [
12251
+ '\\s',
12252
+ 1
12253
+ ],
12254
+ [
12255
+ '\\d',
12256
+ MAX_LENGTH
12257
+ ],
12258
+ [
12259
+ LETTERDASHNUMBER,
12260
+ MAX_SAFE_BUILD_LENGTH
12261
+ ]
12262
+ ];
12263
+ const makeSafeRegex = (value1)=>{
12264
+ for (const [token, max] of safeRegexReplacements)value1 = value1.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
12265
+ return value1;
12266
+ };
12267
+ const createToken = (name, value1, isGlobal)=>{
12268
+ const safe = makeSafeRegex(value1);
12269
+ const index = R++;
12270
+ debug(name, index, value1);
12271
+ t[name] = index;
12272
+ src[index] = value1;
12273
+ safeSrc[index] = safe;
12274
+ re[index] = new RegExp(value1, isGlobal ? 'g' : void 0);
12275
+ safeRe[index] = new RegExp(safe, isGlobal ? 'g' : void 0);
12276
+ };
12277
+ createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
12278
+ createToken('NUMERICIDENTIFIERLOOSE', '\\d+');
12279
+ createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
12280
+ createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
12281
+ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
12282
+ createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
12283
+ createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
12284
+ createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
12285
+ createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
12286
+ createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`);
12287
+ createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
12288
+ createToken('FULLPLAIN', `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
12289
+ createToken('FULL', `^${src[t.FULLPLAIN]}$`);
12290
+ createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
12291
+ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`);
12292
+ createToken('GTLT', '((?:<|>)?=?)');
12293
+ createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
12294
+ createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
12295
+ createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
12296
+ createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
12297
+ createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
12298
+ createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
12299
+ createToken('COERCEPLAIN', `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
12300
+ createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
12301
+ createToken('COERCEFULL', src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + "(?:$|[^\\d])");
12302
+ createToken('COERCERTL', src[t.COERCE], true);
12303
+ createToken('COERCERTLFULL', src[t.COERCEFULL], true);
12304
+ createToken('LONETILDE', '(?:~>?)');
12305
+ createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
12306
+ exports1.tildeTrimReplace = '$1~';
12307
+ createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
12308
+ createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
12309
+ createToken('LONECARET', '(?:\\^)');
12310
+ createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
12311
+ exports1.caretTrimReplace = '$1^';
12312
+ createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
12313
+ createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
12314
+ createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
12315
+ createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
12316
+ createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
12317
+ exports1.comparatorTrimReplace = '$1$2$3';
12318
+ createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*\$`);
12319
+ createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*\$`);
12320
+ createToken('STAR', '(<|>)?=?\\s*\\*');
12321
+ createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$');
12322
+ createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$');
12323
+ },
11998
12324
  "../../node_modules/.pnpm/setimmediate@1.0.5/node_modules/setimmediate/setImmediate.js": function() {
11999
12325
  (function(global1, undefined) {
12000
12326
  "use strict";
@@ -12562,7 +12888,7 @@ var __webpack_modules__ = {
12562
12888
  };
12563
12889
  module.exports = function(identifier, options) {
12564
12890
  options = options || {};
12565
- var upgrade = void 0 === options.upgrade || !!options.upgrade;
12891
+ var upgrade = void 0 === options.upgrade ? true : !!options.upgrade;
12566
12892
  function postprocess(value1) {
12567
12893
  return upgrade ? upgradeGPLs(value1) : value1;
12568
12894
  }
@@ -13357,7 +13683,7 @@ var __webpack_modules__ = {
13357
13683
  var jsTokens = __webpack_require__("../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js");
13358
13684
  var helperValidatorIdentifier = __webpack_require__("../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js");
13359
13685
  function isColorSupported() {
13360
- return ("object" != typeof process || "0" !== process.env.FORCE_COLOR && "false" !== process.env.FORCE_COLOR) && picocolors.isColorSupported;
13686
+ return "object" == typeof process && ("0" === process.env.FORCE_COLOR || "false" === process.env.FORCE_COLOR) ? false : picocolors.isColorSupported;
13361
13687
  }
13362
13688
  const compose = (f, g)=>(v)=>f(g(v));
13363
13689
  function buildDefs(colors) {
@@ -16647,7 +16973,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
16647
16973
  function TSEnumBody(node) {
16648
16974
  printBraced(this, node, ()=>{
16649
16975
  var _this$shouldPrintTrai;
16650
- return this.printList(node.members, null == (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) || _this$shouldPrintTrai, true, true);
16976
+ return this.printList(node.members, null != (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) ? _this$shouldPrintTrai : true, true, true);
16651
16977
  });
16652
16978
  }
16653
16979
  function TSEnumMember(node) {
@@ -17894,7 +18220,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
17894
18220
  this._indentInnerComments = false;
17895
18221
  }
17896
18222
  printSequence(nodes, indent, trailingCommentsLineOffset, addNewlines) {
17897
- this.printJoin(nodes, true, null != indent && indent, void 0, void 0, addNewlines, void 0, trailingCommentsLineOffset);
18223
+ this.printJoin(nodes, true, null != indent ? indent : false, void 0, void 0, addNewlines, void 0, trailingCommentsLineOffset);
17898
18224
  }
17899
18225
  printList(items, printTrailingSeparator, statement, indent, separator, iterator) {
17900
18226
  this.printJoin(items, statement, indent, null != separator ? separator : commaSeparator, printTrailingSeparator, void 0, iterator);
@@ -20376,9 +20702,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
20376
20702
  ++tokenTypeCounter;
20377
20703
  tokenLabels.push(name);
20378
20704
  tokenBinops.push(null != (_options$binop = options.binop) ? _options$binop : -1);
20379
- tokenBeforeExprs.push(null != (_options$beforeExpr = options.beforeExpr) && _options$beforeExpr);
20380
- tokenStartsExprs.push(null != (_options$startsExpr = options.startsExpr) && _options$startsExpr);
20381
- tokenPrefixes.push(null != (_options$prefix = options.prefix) && _options$prefix);
20705
+ tokenBeforeExprs.push(null != (_options$beforeExpr = options.beforeExpr) ? _options$beforeExpr : false);
20706
+ tokenStartsExprs.push(null != (_options$startsExpr = options.startsExpr) ? _options$startsExpr : false);
20707
+ tokenPrefixes.push(null != (_options$prefix = options.prefix) ? _options$prefix : false);
20382
20708
  tokenTypes.push(new ExportedTokenType(name, options));
20383
20709
  return tokenTypeCounter;
20384
20710
  }
@@ -20388,9 +20714,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
20388
20714
  keywords$1.set(name, tokenTypeCounter);
20389
20715
  tokenLabels.push(name);
20390
20716
  tokenBinops.push(null != (_options$binop2 = options.binop) ? _options$binop2 : -1);
20391
- tokenBeforeExprs.push(null != (_options$beforeExpr2 = options.beforeExpr) && _options$beforeExpr2);
20392
- tokenStartsExprs.push(null != (_options$startsExpr2 = options.startsExpr) && _options$startsExpr2);
20393
- tokenPrefixes.push(null != (_options$prefix2 = options.prefix) && _options$prefix2);
20717
+ tokenBeforeExprs.push(null != (_options$beforeExpr2 = options.beforeExpr) ? _options$beforeExpr2 : false);
20718
+ tokenStartsExprs.push(null != (_options$startsExpr2 = options.startsExpr) ? _options$startsExpr2 : false);
20719
+ tokenPrefixes.push(null != (_options$prefix2 = options.prefix) ? _options$prefix2 : false);
20394
20720
  tokenTypes.push(new ExportedTokenType("name", options));
20395
20721
  return tokenTypeCounter;
20396
20722
  }
@@ -22339,7 +22665,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
22339
22665
  else this.flags &= -2;
22340
22666
  }
22341
22667
  init({ strictMode, sourceType, startIndex, startLine, startColumn }) {
22342
- this.strict = false !== strictMode && (true === strictMode || "module" === sourceType);
22668
+ this.strict = false === strictMode ? false : true === strictMode ? true : "module" === sourceType;
22343
22669
  this.startIndex = startIndex;
22344
22670
  this.curLine = startLine;
22345
22671
  this.lineStart = -startColumn;
@@ -26306,7 +26632,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
26306
26632
  UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"
26307
26633
  });
26308
26634
  function isFragment(object) {
26309
- return !!object && ("JSXOpeningFragment" === object.type || "JSXClosingFragment" === object.type);
26635
+ return object ? "JSXOpeningFragment" === object.type || "JSXClosingFragment" === object.type : false;
26310
26636
  }
26311
26637
  function getQualifiedJSXName(object) {
26312
26638
  if ("JSXIdentifier" === object.type) return object.name;
@@ -69714,12 +70040,8 @@ function __webpack_require__(moduleId) {
69714
70040
  return module.exports;
69715
70041
  }
69716
70042
  (()=>{
69717
- __webpack_require__.n = function(module) {
69718
- var getter = module && module.__esModule ? function() {
69719
- return module['default'];
69720
- } : function() {
69721
- return module;
69722
- };
70043
+ __webpack_require__.n = (module)=>{
70044
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
69723
70045
  __webpack_require__.d(getter, {
69724
70046
  a: getter
69725
70047
  });
@@ -69727,7 +70049,7 @@ function __webpack_require__(moduleId) {
69727
70049
  };
69728
70050
  })();
69729
70051
  (()=>{
69730
- __webpack_require__.d = function(exports1, definition) {
70052
+ __webpack_require__.d = (exports1, definition)=>{
69731
70053
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
69732
70054
  enumerable: true,
69733
70055
  get: definition[key]
@@ -69735,9 +70057,7 @@ function __webpack_require__(moduleId) {
69735
70057
  };
69736
70058
  })();
69737
70059
  (()=>{
69738
- __webpack_require__.o = function(obj, prop) {
69739
- return Object.prototype.hasOwnProperty.call(obj, prop);
69740
- };
70060
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
69741
70061
  })();
69742
70062
  var __webpack_exports__ = {};
69743
70063
  (()=>{
@@ -70191,7 +70511,7 @@ var __webpack_exports__ = {};
70191
70511
  return true;
70192
70512
  }
70193
70513
  try {
70194
- return !!external_node_fs_namespaceObject.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft') && !isInsideContainer();
70514
+ return external_node_fs_namespaceObject.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft') ? !isInsideContainer() : false;
70195
70515
  } catch {
70196
70516
  return false;
70197
70517
  }
@@ -71506,7 +71826,7 @@ var __webpack_exports__ = {};
71506
71826
  let isLastLastCharPreserved = false;
71507
71827
  for(let index = 0; index < string.length; index++){
71508
71828
  const character = string[index];
71509
- isLastLastCharPreserved = !(index > 2) || '-' === string[index - 3];
71829
+ isLastLastCharPreserved = index > 2 ? '-' === string[index - 3] : true;
71510
71830
  if (isLastCharLower && UPPERCASE.test(character)) {
71511
71831
  string = string.slice(0, index) + '-' + string.slice(index);
71512
71832
  isLastCharLower = false;
@@ -72999,8 +73319,8 @@ Please set the "stdio" option to ensure that file descriptor exists.`);
72999
73319
  ...specialFallbackSymbols
73000
73320
  };
73001
73321
  const shouldUseMain = isUnicodeSupported();
73002
- const figures_figures = shouldUseMain ? mainSymbols : fallbackSymbols;
73003
- const figures = figures_figures;
73322
+ const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
73323
+ const node_modules_figures = figures;
73004
73324
  Object.entries(specialMainSymbols);
73005
73325
  const hasColors = external_node_tty_namespaceObject?.WriteStream?.prototype?.hasColors?.() ?? false;
73006
73326
  const format = (open, close)=>{
@@ -73078,8 +73398,8 @@ Please set the "stdio" option to ensure that file descriptor exists.`);
73078
73398
  const serializeTimestamp = (timestamp)=>`${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
73079
73399
  const padField = (field, padding)=>String(field).padStart(padding, '0');
73080
73400
  const getFinalIcon = ({ failed, reject })=>{
73081
- if (!failed) return figures.tick;
73082
- return reject ? figures.cross : figures.warning;
73401
+ if (!failed) return node_modules_figures.tick;
73402
+ return reject ? node_modules_figures.cross : node_modules_figures.warning;
73083
73403
  };
73084
73404
  const ICONS = {
73085
73405
  command: ({ piped })=>piped ? '|' : '$',
@@ -73926,7 +74246,7 @@ Please set this option with "pipe" instead.`;
73926
74246
  if (incomingMessages.length > 1) return;
73927
74247
  while(incomingMessages.length > 0){
73928
74248
  await waitForOutgoingMessages(anyProcess, ipcEmitter, wrappedMessage);
73929
- await external_node_timers_promises_namespaceObject.scheduler.yield();
74249
+ await external_node_timers_promises_namespaceObject.scheduler["yield"]();
73930
74250
  const message = await handleStrictRequest({
73931
74251
  wrappedMessage: incomingMessages[0],
73932
74252
  anyProcess,
@@ -74195,7 +74515,7 @@ Please set this option with "pipe" instead.`;
74195
74515
  return;
74196
74516
  }
74197
74517
  getIpcEmitter(anyProcess, channel, isSubprocess);
74198
- await external_node_timers_promises_namespaceObject.scheduler.yield();
74518
+ await external_node_timers_promises_namespaceObject.scheduler["yield"]();
74199
74519
  };
74200
74520
  let cancelListening = false;
74201
74521
  const handleAbort = (wrappedMessage)=>{
@@ -79527,8 +79847,8 @@ export default HotUpdater.wrap({
79527
79847
  cwd
79528
79848
  ]
79529
79849
  });
79530
- const workerDir = external_path_default().dirname(workerPath);
79531
- const { tmpDir, removeTmpDir } = await (0, plugin_core_namespaceObject.copyDirToTmp)(workerDir);
79850
+ const wranglerTemplateDir = external_path_default().dirname(workerPath);
79851
+ const { tmpDir, removeTmpDir } = await (0, plugin_core_namespaceObject.copyDirToTmp)(wranglerTemplateDir);
79532
79852
  try {
79533
79853
  const { createWrangler } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "@hot-updater/cloudflare/utils"));
79534
79854
  const wranglerConfig = JSON.parse(await promises_default().readFile(external_path_default().join(tmpDir, "wrangler.json"), "utf-8"));