@parcel/utils 2.0.0-dev.1426 → 2.0.0-dev.1429

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.
Files changed (2) hide show
  1. package/lib/index.js +166 -166
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -1,24 +1,24 @@
1
- var $7DY2f$path = require("path");
2
- var $7DY2f$stream = require("stream");
3
- var $7DY2f$parcelsourcemap = require("@parcel/source-map");
4
- var $7DY2f$parcellogger = require("@parcel/logger");
5
- var $7DY2f$crypto = require("crypto");
6
- var $7DY2f$os = require("os");
7
- var $7DY2f$util = require("util");
8
- var $7DY2f$events = require("events");
9
- var $7DY2f$fs = require("fs");
10
- var $7DY2f$parcelcodeframe = require("@parcel/codeframe");
11
- var $7DY2f$parcelmarkdownansi = require("@parcel/markdown-ansi");
12
- var $7DY2f$chalk = require("chalk");
13
- var $7DY2f$tty = require("tty");
14
- var $7DY2f$assert = require("assert");
15
- var $7DY2f$parceldiagnostic = require("@parcel/diagnostic");
16
- var $7DY2f$url = require("url");
17
- var $7DY2f$child_process = require("child_process");
18
- var $7DY2f$buffer = require("buffer");
19
- var $7DY2f$parcelrust = require("@parcel/rust");
20
- var $7DY2f$http = require("http");
21
- var $7DY2f$https = require("https");
1
+ var $1boSe$path = require("path");
2
+ var $1boSe$stream = require("stream");
3
+ var $1boSe$parcelsourcemap = require("@parcel/source-map");
4
+ var $1boSe$parcellogger = require("@parcel/logger");
5
+ var $1boSe$crypto = require("crypto");
6
+ var $1boSe$os = require("os");
7
+ var $1boSe$util = require("util");
8
+ var $1boSe$events = require("events");
9
+ var $1boSe$fs = require("fs");
10
+ var $1boSe$parcelcodeframe = require("@parcel/codeframe");
11
+ var $1boSe$parcelmarkdownansi = require("@parcel/markdown-ansi");
12
+ var $1boSe$chalk = require("chalk");
13
+ var $1boSe$tty = require("tty");
14
+ var $1boSe$assert = require("assert");
15
+ var $1boSe$parceldiagnostic = require("@parcel/diagnostic");
16
+ var $1boSe$url = require("url");
17
+ var $1boSe$child_process = require("child_process");
18
+ var $1boSe$buffer = require("buffer");
19
+ var $1boSe$parcelrust = require("@parcel/rust");
20
+ var $1boSe$http = require("http");
21
+ var $1boSe$https = require("https");
22
22
 
23
23
 
24
24
  function $parcel$export(e, n, v, s) {
@@ -237,7 +237,7 @@ const $2339166297dafc82$var$isObject = (val)=>val && typeof val === "object" &&
237
237
  * @api public
238
238
  */ $2339166297dafc82$var$picomatch.matchBase = (input, glob, options, posix = $hup42.isWindows(options))=>{
239
239
  const regex = glob instanceof RegExp ? glob : $2339166297dafc82$var$picomatch.makeRe(glob, options);
240
- return regex.test($7DY2f$path.basename(input));
240
+ return regex.test($1boSe$path.basename(input));
241
241
  };
242
242
  /**
243
243
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -734,7 +734,7 @@ $cbb8ae3a8a3f6787$export$bcf709e5e3483cdb = ()=>{
734
734
  };
735
735
  $cbb8ae3a8a3f6787$export$f993c945890e93ba = (options)=>{
736
736
  if (options && typeof options.windows === "boolean") return options.windows;
737
- return $cbb8ae3a8a3f6787$var$win32 === true || $7DY2f$path.sep === "\\";
737
+ return $cbb8ae3a8a3f6787$var$win32 === true || $1boSe$path.sep === "\\";
738
738
  };
739
739
  $cbb8ae3a8a3f6787$export$13d0f4185f159c8 = (input, char, lastIdx)=>{
740
740
  const idx = input.lastIndexOf(char, lastIdx);
@@ -894,7 +894,7 @@ module.exports = {
894
894
  /* \t */ CHAR_UNDERSCORE: 95,
895
895
  /* _ */ CHAR_VERTICAL_LINE: 124,
896
896
  /* | */ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
897
- /* \uFEFF */ SEP: $7DY2f$path.sep,
897
+ /* \uFEFF */ SEP: $1boSe$path.sep,
898
898
  /**
899
899
  * Create EXTGLOB_CHARS
900
900
  */ extglobChars (chars) {
@@ -3159,7 +3159,7 @@ function $c7bd0dee40e8fcc4$var$parseReadable(stm) {
3159
3159
  }
3160
3160
  function $c7bd0dee40e8fcc4$var$parseTransform() {
3161
3161
  const parser = new $7Ea4e();
3162
- return new $7DY2f$stream.Transform({
3162
+ return new $1boSe$stream.Transform({
3163
3163
  objectMode: true,
3164
3164
  transform (chunk, encoding, cb) {
3165
3165
  try {
@@ -3517,11 +3517,11 @@ async function $cecf792028dcd894$var$getSourcemapSizes(filePath, fs, projectRoot
3517
3517
  let mapUrlData = await (0, $0079428852d28918$export$527a92fa675f5e93)(fs, filePath, bundleContents);
3518
3518
  if (!mapUrlData) return null;
3519
3519
  let rawMap = mapUrlData.map;
3520
- let sourceMap = new (0, ($parcel$interopDefault($7DY2f$parcelsourcemap)))(projectRoot);
3520
+ let sourceMap = new (0, ($parcel$interopDefault($1boSe$parcelsourcemap)))(projectRoot);
3521
3521
  sourceMap.addVLQMap(rawMap);
3522
3522
  let parsedMapData = sourceMap.getMap();
3523
3523
  if (parsedMapData.mappings.length > 2) {
3524
- let sources = parsedMapData.sources.map((s)=>(0, ($parcel$interopDefault($7DY2f$path))).normalize((0, ($parcel$interopDefault($7DY2f$path))).join(projectRoot, s)));
3524
+ let sources = parsedMapData.sources.map((s)=>(0, ($parcel$interopDefault($1boSe$path))).normalize((0, ($parcel$interopDefault($1boSe$path))).join(projectRoot, s)));
3525
3525
  let currLine = 1;
3526
3526
  let currColumn = 0;
3527
3527
  let currMappingIndex = 0;
@@ -3556,7 +3556,7 @@ async function $cecf792028dcd894$var$createBundleStats(bundle, fs, projectRoot)
3556
3556
  let sourcemapSizes = await $cecf792028dcd894$var$getSourcemapSizes(filePath, fs, projectRoot);
3557
3557
  let assets = new Map();
3558
3558
  bundle.traverseAssets((asset)=>{
3559
- let filePath = (0, ($parcel$interopDefault($7DY2f$path))).normalize(asset.filePath);
3559
+ let filePath = (0, ($parcel$interopDefault($1boSe$path))).normalize(asset.filePath);
3560
3560
  assets.set(filePath, {
3561
3561
  filePath: filePath,
3562
3562
  size: asset.stats.size,
@@ -11255,7 +11255,7 @@ parcelRequire("i5hTS");
11255
11255
  var $232744761c41a28f$var$pkcs5 = $gam1B.pkcs5 = $gam1B.pkcs5 || {};
11256
11256
  var $232744761c41a28f$var$crypto;
11257
11257
 
11258
- if ($gam1B.util.isNodejs && !$gam1B.options.usePureJavaScript) $232744761c41a28f$var$crypto = $7DY2f$crypto;
11258
+ if ($gam1B.util.isNodejs && !$gam1B.options.usePureJavaScript) $232744761c41a28f$var$crypto = $1boSe$crypto;
11259
11259
  /**
11260
11260
  * Derives a key from a password.
11261
11261
  *
@@ -11757,7 +11757,7 @@ var $gam1B = parcelRequire("gam1B");
11757
11757
 
11758
11758
  var $5454c069d1d27bc5$var$_crypto = null;
11759
11759
 
11760
- if ($gam1B.util.isNodejs && !$gam1B.options.usePureJavaScript && !process.versions["node-webkit"]) $5454c069d1d27bc5$var$_crypto = $7DY2f$crypto;
11760
+ if ($gam1B.util.isNodejs && !$gam1B.options.usePureJavaScript && !process.versions["node-webkit"]) $5454c069d1d27bc5$var$_crypto = $1boSe$crypto;
11761
11761
  /* PRNG API */ var $5454c069d1d27bc5$var$prng = $5454c069d1d27bc5$exports = $gam1B.prng = $gam1B.prng || {};
11762
11762
  /**
11763
11763
  * Creates a new PRNG context.
@@ -15034,7 +15034,7 @@ var $gam1B = parcelRequire("gam1B");
15034
15034
 
15035
15035
  if (typeof $3e6aaae04f703828$var$BigInteger === "undefined") var $3e6aaae04f703828$var$BigInteger = $gam1B.jsbn.BigInteger;
15036
15036
 
15037
- var $3e6aaae04f703828$var$_crypto = $gam1B.util.isNodejs ? $7DY2f$crypto : null;
15037
+ var $3e6aaae04f703828$var$_crypto = $gam1B.util.isNodejs ? $1boSe$crypto : null;
15038
15038
  // shortcut for asn.1 API
15039
15039
  var $3e6aaae04f703828$var$asn1 = $gam1B.asn1;
15040
15040
  // shortcut for util API
@@ -29478,15 +29478,15 @@ var $9941f757a109c76e$var$ssh = $9941f757a109c76e$exports = $gam1B.ssh = $gam1B.
29478
29478
 
29479
29479
  async function $2b89577602fde4c5$export$2e2bcd8739ae039(fs, cacheDir, host) {
29480
29480
  let certDirectory = cacheDir;
29481
- const privateKeyPath = (0, ($parcel$interopDefault($7DY2f$path))).join(certDirectory, "private.pem");
29482
- const certPath = (0, ($parcel$interopDefault($7DY2f$path))).join(certDirectory, "primary.crt");
29481
+ const privateKeyPath = (0, ($parcel$interopDefault($1boSe$path))).join(certDirectory, "private.pem");
29482
+ const certPath = (0, ($parcel$interopDefault($1boSe$path))).join(certDirectory, "primary.crt");
29483
29483
  const cachedKey = await fs.exists(privateKeyPath) && await fs.readFile(privateKeyPath);
29484
29484
  const cachedCert = await fs.exists(certPath) && await fs.readFile(certPath);
29485
29485
  if (cachedKey && cachedCert) return {
29486
29486
  key: cachedKey,
29487
29487
  cert: cachedCert
29488
29488
  };
29489
- (0, ($parcel$interopDefault($7DY2f$parcellogger))).progress("Generating SSL Certificate...");
29489
+ (0, ($parcel$interopDefault($1boSe$parcellogger))).progress("Generating SSL Certificate...");
29490
29490
  const pki = (0, (/*@__PURE__*/$parcel$interopDefault($55c31dde1007c4ee$exports))).pki;
29491
29491
  const keys = pki.rsa.generateKeyPair(2048);
29492
29492
  const cert = pki.createCertificate();
@@ -29617,20 +29617,20 @@ function $f1f019519322bc82$export$16778b798ae8e49d(filePath) {
29617
29617
  return filePath.replace($f1f019519322bc82$var$SEPARATOR_REGEX, "/");
29618
29618
  }
29619
29619
  function $f1f019519322bc82$export$6af368f973c74c5(filePath, leadingDotSlash = true) {
29620
- if (leadingDotSlash && (filePath[0] !== "." || filePath[1] !== "." && filePath[1] !== "/" && filePath[1] !== "\\") && !(0, ($parcel$interopDefault($7DY2f$path))).isAbsolute(filePath)) return $f1f019519322bc82$export$16778b798ae8e49d("./" + filePath);
29620
+ if (leadingDotSlash && (filePath[0] !== "." || filePath[1] !== "." && filePath[1] !== "/" && filePath[1] !== "\\") && !(0, ($parcel$interopDefault($1boSe$path))).isAbsolute(filePath)) return $f1f019519322bc82$export$16778b798ae8e49d("./" + filePath);
29621
29621
  else return $f1f019519322bc82$export$16778b798ae8e49d(filePath);
29622
29622
  }
29623
29623
  function $f1f019519322bc82$export$7413eea5ad243d4(from, to, leadingDotSlash = true) {
29624
29624
  // Fast path
29625
29625
  if (to.startsWith(from + "/")) return (leadingDotSlash ? "./" : "") + to.slice(from.length + 1);
29626
- return $f1f019519322bc82$export$6af368f973c74c5((0, ($parcel$interopDefault($7DY2f$path))).relative(from, to), leadingDotSlash);
29626
+ return $f1f019519322bc82$export$6af368f973c74c5((0, ($parcel$interopDefault($1boSe$path))).relative(from, to), leadingDotSlash);
29627
29627
  }
29628
29628
 
29629
29629
 
29630
29630
  function $1c807f41efb220b5$export$2e2bcd8739ae039(_name) {
29631
- let name = (0, ($parcel$interopDefault($7DY2f$path))).normalize(_name);
29632
- let splitOn = name.indexOf((0, ($parcel$interopDefault($7DY2f$path))).sep);
29633
- if (name.charAt(0) === "@") splitOn = name.indexOf((0, ($parcel$interopDefault($7DY2f$path))).sep, splitOn + 1);
29631
+ let name = (0, ($parcel$interopDefault($1boSe$path))).normalize(_name);
29632
+ let splitOn = name.indexOf((0, ($parcel$interopDefault($1boSe$path))).sep);
29633
+ if (name.charAt(0) === "@") splitOn = name.indexOf((0, ($parcel$interopDefault($1boSe$path))).sep, splitOn + 1);
29634
29634
  if (splitOn < 0) return [
29635
29635
  (0, $f1f019519322bc82$export$16778b798ae8e49d)(name),
29636
29636
  undefined
@@ -29847,7 +29847,7 @@ const $a84c9bf09b53d115$var$UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[
29847
29847
  }
29848
29848
  $a84c9bf09b53d115$exports.unixify = $a84c9bf09b53d115$var$unixify;
29849
29849
  function $a84c9bf09b53d115$var$makeAbsolute(cwd, filepath) {
29850
- return $7DY2f$path.resolve(cwd, filepath);
29850
+ return $1boSe$path.resolve(cwd, filepath);
29851
29851
  }
29852
29852
  $a84c9bf09b53d115$exports.makeAbsolute = $a84c9bf09b53d115$var$makeAbsolute;
29853
29853
  function $a84c9bf09b53d115$var$escape(pattern) {
@@ -29878,9 +29878,9 @@ var $075b876233d277d3$exports = {};
29878
29878
  "use strict";
29879
29879
 
29880
29880
 
29881
- var $075b876233d277d3$var$pathPosixDirname = $7DY2f$path.posix.dirname;
29881
+ var $075b876233d277d3$var$pathPosixDirname = $1boSe$path.posix.dirname;
29882
29882
 
29883
- var $075b876233d277d3$var$isWin32 = $7DY2f$os.platform() === "win32";
29883
+ var $075b876233d277d3$var$isWin32 = $1boSe$os.platform() === "win32";
29884
29884
  var $075b876233d277d3$var$slash = "/";
29885
29885
  var $075b876233d277d3$var$backslash = /\\/g;
29886
29886
  var $075b876233d277d3$var$enclosure = /[\{\[].*[\}\]]$/;
@@ -30329,7 +30329,7 @@ const $df08c0d22e320d97$var$toRegex = (start, end, options)=>{
30329
30329
  return $cddcbb0c1cb9d04e$exports(start, end, options);
30330
30330
  };
30331
30331
  const $df08c0d22e320d97$var$rangeError = (...args)=>{
30332
- return new RangeError("Invalid range arguments: " + $7DY2f$util.inspect(...args));
30332
+ return new RangeError("Invalid range arguments: " + $1boSe$util.inspect(...args));
30333
30333
  };
30334
30334
  const $df08c0d22e320d97$var$invalidRange = (start, end, options)=>{
30335
30335
  if (options.strictRanges === true) throw $df08c0d22e320d97$var$rangeError([
@@ -31175,7 +31175,7 @@ const $749f4f1a082ca43f$var$isEmptyString = (val)=>val === "" || val === "./";
31175
31175
  * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
31176
31176
  * @api public
31177
31177
  */ $749f4f1a082ca43f$var$micromatch.contains = (str, pattern, options)=>{
31178
- if (typeof str !== "string") throw new TypeError(`Expected a string: "${$7DY2f$util.inspect(str)}"`);
31178
+ if (typeof str !== "string") throw new TypeError(`Expected a string: "${$1boSe$util.inspect(str)}"`);
31179
31179
  if (Array.isArray(pattern)) return pattern.some((p)=>$749f4f1a082ca43f$var$micromatch.contains(str, p, options));
31180
31180
  if (typeof pattern === "string") {
31181
31181
  if ($749f4f1a082ca43f$var$isEmptyString(str) || $749f4f1a082ca43f$var$isEmptyString(pattern)) return false;
@@ -31292,7 +31292,7 @@ const $749f4f1a082ca43f$var$isEmptyString = (val)=>val === "" || val === "./";
31292
31292
  * @return {Boolean} Returns true if any patterns match `str`
31293
31293
  * @api public
31294
31294
  */ $749f4f1a082ca43f$var$micromatch.all = (str, patterns, options)=>{
31295
- if (typeof str !== "string") throw new TypeError(`Expected a string: "${$7DY2f$util.inspect(str)}"`);
31295
+ if (typeof str !== "string") throw new TypeError(`Expected a string: "${$1boSe$util.inspect(str)}"`);
31296
31296
  return [].concat(patterns).every((p)=>$723819d4e067859f$exports(p, options)(str));
31297
31297
  };
31298
31298
  /**
@@ -31500,7 +31500,7 @@ function $563fc7c31f9146ce$var$endsWithSlashGlobStar(pattern) {
31500
31500
  }
31501
31501
  $563fc7c31f9146ce$exports.endsWithSlashGlobStar = $563fc7c31f9146ce$var$endsWithSlashGlobStar;
31502
31502
  function $563fc7c31f9146ce$var$isAffectDepthOfReadingPattern(pattern) {
31503
- const basename = $7DY2f$path.basename(pattern);
31503
+ const basename = $1boSe$path.basename(pattern);
31504
31504
  return $563fc7c31f9146ce$var$endsWithSlashGlobStar(pattern) || $563fc7c31f9146ce$var$isStaticPattern(basename);
31505
31505
  }
31506
31506
  $563fc7c31f9146ce$exports.isAffectDepthOfReadingPattern = $563fc7c31f9146ce$var$isAffectDepthOfReadingPattern;
@@ -31561,7 +31561,7 @@ $aa77cc96fdc9220a$exports.merge = void 0;
31561
31561
  var $7748fb10a1912688$exports = {};
31562
31562
  "use strict";
31563
31563
 
31564
- const $7748fb10a1912688$var$PassThrough = $7DY2f$stream.PassThrough;
31564
+ const $7748fb10a1912688$var$PassThrough = $1boSe$stream.PassThrough;
31565
31565
  const $7748fb10a1912688$var$slice = Array.prototype.slice;
31566
31566
  $7748fb10a1912688$exports = $7748fb10a1912688$var$merge2;
31567
31567
  function $7748fb10a1912688$var$merge2() {
@@ -31895,10 +31895,10 @@ Object.defineProperty($6f6fbe477668c63e$exports, "__esModule", {
31895
31895
  $6f6fbe477668c63e$exports.createFileSystemAdapter = $6f6fbe477668c63e$exports.FILE_SYSTEM_ADAPTER = void 0;
31896
31896
 
31897
31897
  $6f6fbe477668c63e$exports.FILE_SYSTEM_ADAPTER = {
31898
- lstat: $7DY2f$fs.lstat,
31899
- stat: $7DY2f$fs.stat,
31900
- lstatSync: $7DY2f$fs.lstatSync,
31901
- statSync: $7DY2f$fs.statSync
31898
+ lstat: $1boSe$fs.lstat,
31899
+ stat: $1boSe$fs.stat,
31900
+ lstatSync: $1boSe$fs.lstatSync,
31901
+ statSync: $1boSe$fs.statSync
31902
31902
  };
31903
31903
  function $6f6fbe477668c63e$var$createFileSystemAdapter(fsMethods) {
31904
31904
  if (fsMethods === undefined) return $6f6fbe477668c63e$exports.FILE_SYSTEM_ADAPTER;
@@ -32206,12 +32206,12 @@ Object.defineProperty($34f9d9952c9868e1$exports, "__esModule", {
32206
32206
  $34f9d9952c9868e1$exports.createFileSystemAdapter = $34f9d9952c9868e1$exports.FILE_SYSTEM_ADAPTER = void 0;
32207
32207
 
32208
32208
  $34f9d9952c9868e1$exports.FILE_SYSTEM_ADAPTER = {
32209
- lstat: $7DY2f$fs.lstat,
32210
- stat: $7DY2f$fs.stat,
32211
- lstatSync: $7DY2f$fs.lstatSync,
32212
- statSync: $7DY2f$fs.statSync,
32213
- readdir: $7DY2f$fs.readdir,
32214
- readdirSync: $7DY2f$fs.readdirSync
32209
+ lstat: $1boSe$fs.lstat,
32210
+ stat: $1boSe$fs.stat,
32211
+ lstatSync: $1boSe$fs.lstatSync,
32212
+ statSync: $1boSe$fs.statSync,
32213
+ readdir: $1boSe$fs.readdir,
32214
+ readdirSync: $1boSe$fs.readdirSync
32215
32215
  };
32216
32216
  function $34f9d9952c9868e1$var$createFileSystemAdapter(fsMethods) {
32217
32217
  if (fsMethods === undefined) return $34f9d9952c9868e1$exports.FILE_SYSTEM_ADAPTER;
@@ -32225,7 +32225,7 @@ class $d2dc56a0ced42ac8$var$Settings {
32225
32225
  this._options = _options;
32226
32226
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
32227
32227
  this.fs = $34f9d9952c9868e1$exports.createFileSystemAdapter(this._options.fs);
32228
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, $7DY2f$path.sep);
32228
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, $1boSe$path.sep);
32229
32229
  this.stats = this._getValue(this._options.stats, false);
32230
32230
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
32231
32231
  this.fsStatSettings = new $2930d02c61c6958f$exports.Settings({
@@ -32477,7 +32477,7 @@ class $d28442e74301eb43$var$AsyncReader extends $733c3ded8d952298$exports.defaul
32477
32477
  super(_root, _settings);
32478
32478
  this._settings = _settings;
32479
32479
  this._scandir = $c9004ebcdcaac815$exports.scandir;
32480
- this._emitter = new $7DY2f$events.EventEmitter();
32480
+ this._emitter = new $1boSe$events.EventEmitter();
32481
32481
  this._queue = $50a275b07510a707$exports(this._worker.bind(this), this._settings.concurrency);
32482
32482
  this._isFatalError = false;
32483
32483
  this._isDestroyed = false;
@@ -32590,7 +32590,7 @@ class $d734e2f865bfee00$var$StreamProvider {
32590
32590
  this._root = _root;
32591
32591
  this._settings = _settings;
32592
32592
  this._reader = new $d28442e74301eb43$exports.default(this._root, this._settings);
32593
- this._stream = new $7DY2f$stream.Readable({
32593
+ this._stream = new $1boSe$stream.Readable({
32594
32594
  objectMode: true,
32595
32595
  read: ()=>{},
32596
32596
  destroy: ()=>{
@@ -32702,7 +32702,7 @@ class $dbe5302f8922b279$var$Settings {
32702
32702
  this.deepFilter = this._getValue(this._options.deepFilter, null);
32703
32703
  this.entryFilter = this._getValue(this._options.entryFilter, null);
32704
32704
  this.errorFilter = this._getValue(this._options.errorFilter, null);
32705
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, $7DY2f$path.sep);
32705
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, $1boSe$path.sep);
32706
32706
  this.fsScandirSettings = new $c9004ebcdcaac815$exports.Settings({
32707
32707
  followSymbolicLinks: this._options.followSymbolicLinks,
32708
32708
  fs: this._options.fs,
@@ -32763,7 +32763,7 @@ class $d68a995060b8527b$var$Reader {
32763
32763
  });
32764
32764
  }
32765
32765
  _getFullEntryPath(filepath) {
32766
- return $7DY2f$path.resolve(this._settings.cwd, filepath);
32766
+ return $1boSe$path.resolve(this._settings.cwd, filepath);
32767
32767
  }
32768
32768
  _makeEntry(stats, pattern) {
32769
32769
  const entry = {
@@ -32801,7 +32801,7 @@ class $f9f02c3da4a8da82$var$ReaderStream extends $d68a995060b8527b$exports.defau
32801
32801
  }
32802
32802
  static(patterns, options) {
32803
32803
  const filepaths = patterns.map(this._getFullEntryPath, this);
32804
- const stream = new $7DY2f$stream.PassThrough({
32804
+ const stream = new $1boSe$stream.PassThrough({
32805
32805
  objectMode: true
32806
32806
  });
32807
32807
  stream._write = (index, _enc, done)=>{
@@ -33120,7 +33120,7 @@ class $19d26a3d4dd4f37e$var$Provider {
33120
33120
  this.entryTransformer = new $a97ca4a392ab9e0e$exports.default(this._settings);
33121
33121
  }
33122
33122
  _getRootDirectory(task) {
33123
- return $7DY2f$path.resolve(this._settings.cwd, task.base);
33123
+ return $1boSe$path.resolve(this._settings.cwd, task.base);
33124
33124
  }
33125
33125
  _getReaderOptions(task) {
33126
33126
  const basePath = task.base === "." ? "" : task.base;
@@ -33190,7 +33190,7 @@ class $454d97eef64e510c$var$ProviderStream extends $19d26a3d4dd4f37e$exports.def
33190
33190
  const root = this._getRootDirectory(task);
33191
33191
  const options = this._getReaderOptions(task);
33192
33192
  const source = this.api(root, task, options);
33193
- const destination = new $7DY2f$stream.Readable({
33193
+ const destination = new $1boSe$stream.Readable({
33194
33194
  objectMode: true,
33195
33195
  read: ()=>{}
33196
33196
  });
@@ -33285,14 +33285,14 @@ $4a01bec791c9f5c3$exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
33285
33285
  /**
33286
33286
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
33287
33287
  * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
33288
- */ const $4a01bec791c9f5c3$var$CPU_COUNT = Math.max($7DY2f$os.cpus().length, 1);
33288
+ */ const $4a01bec791c9f5c3$var$CPU_COUNT = Math.max($1boSe$os.cpus().length, 1);
33289
33289
  $4a01bec791c9f5c3$exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
33290
- lstat: $7DY2f$fs.lstat,
33291
- lstatSync: $7DY2f$fs.lstatSync,
33292
- stat: $7DY2f$fs.stat,
33293
- statSync: $7DY2f$fs.statSync,
33294
- readdir: $7DY2f$fs.readdir,
33295
- readdirSync: $7DY2f$fs.readdirSync
33290
+ lstat: $1boSe$fs.lstat,
33291
+ lstatSync: $1boSe$fs.lstatSync,
33292
+ stat: $1boSe$fs.stat,
33293
+ statSync: $1boSe$fs.statSync,
33294
+ readdir: $1boSe$fs.readdir,
33295
+ readdirSync: $1boSe$fs.readdirSync
33296
33296
  };
33297
33297
  class $4a01bec791c9f5c3$var$Settings {
33298
33298
  constructor(_options = {}){
@@ -33471,7 +33471,7 @@ function $c0d925a839212d91$export$442f1a04865e4790(p, fs, options) {
33471
33471
  function $f35ba8ca594ebef9$export$2e2bcd8739ae039(files) {
33472
33472
  let cur = null;
33473
33473
  for (let file of files){
33474
- let parsed = (0, ($parcel$interopDefault($7DY2f$path))).parse(file);
33474
+ let parsed = (0, ($parcel$interopDefault($1boSe$path))).parse(file);
33475
33475
  parsed.dir = $f35ba8ca594ebef9$var$findGlobRoot(parsed.dir);
33476
33476
  if (!cur) cur = parsed;
33477
33477
  else if (parsed.root !== cur.root) // bail out. there is no common root.
@@ -33479,29 +33479,29 @@ function $f35ba8ca594ebef9$export$2e2bcd8739ae039(files) {
33479
33479
  return process.cwd();
33480
33480
  else {
33481
33481
  // find the common path parts.
33482
- let curParts = cur.dir.split((0, ($parcel$interopDefault($7DY2f$path))).sep);
33483
- let newParts = parsed.dir.split((0, ($parcel$interopDefault($7DY2f$path))).sep);
33482
+ let curParts = cur.dir.split((0, ($parcel$interopDefault($1boSe$path))).sep);
33483
+ let newParts = parsed.dir.split((0, ($parcel$interopDefault($1boSe$path))).sep);
33484
33484
  let len = Math.min(curParts.length, newParts.length);
33485
33485
  let i = 0;
33486
33486
  while(i < len && curParts[i] === newParts[i])i++;
33487
- cur.dir = i > 1 ? curParts.slice(0, i).join((0, ($parcel$interopDefault($7DY2f$path))).sep) : cur.root;
33487
+ cur.dir = i > 1 ? curParts.slice(0, i).join((0, ($parcel$interopDefault($1boSe$path))).sep) : cur.root;
33488
33488
  }
33489
33489
  }
33490
33490
  return cur ? cur.dir : process.cwd();
33491
33491
  }
33492
33492
  // Transforms a path like `packages/*/src/index.js` to the root of the glob, `packages/`
33493
33493
  function $f35ba8ca594ebef9$var$findGlobRoot(dir) {
33494
- let parts = dir.split((0, ($parcel$interopDefault($7DY2f$path))).sep);
33494
+ let parts = dir.split((0, ($parcel$interopDefault($1boSe$path))).sep);
33495
33495
  let last = parts.length;
33496
33496
  for(let i = parts.length - 1; i >= 0; i--)if ((0, $c0d925a839212d91$export$f3a2344a73dbdd42)(parts[i])) last = i;
33497
- return parts.slice(0, last).join((0, ($parcel$interopDefault($7DY2f$path))).sep);
33497
+ return parts.slice(0, last).join((0, ($parcel$interopDefault($1boSe$path))).sep);
33498
33498
  }
33499
33499
 
33500
33500
 
33501
33501
 
33502
33502
  function $c053e26fdb427ce2$export$2e2bcd8739ae039(child, parent) {
33503
- const relative = (0, ($parcel$interopDefault($7DY2f$path))).relative(parent, child);
33504
- return !relative.startsWith("..") && !(0, ($parcel$interopDefault($7DY2f$path))).isAbsolute(relative);
33503
+ const relative = (0, ($parcel$interopDefault($1boSe$path))).relative(parent, child);
33504
+ return !relative.startsWith("..") && !(0, ($parcel$interopDefault($1boSe$path))).isAbsolute(relative);
33505
33505
  }
33506
33506
 
33507
33507
 
@@ -33543,7 +33543,7 @@ function $6de9255612f949a8$export$2e2bcd8739ae039(url) {
33543
33543
 
33544
33544
 
33545
33545
  function $ae479d9f82cb2105$export$2e2bcd8739ae039(object) {
33546
- let hash = (0, ($parcel$interopDefault($7DY2f$crypto))).createHash("md5");
33546
+ let hash = (0, ($parcel$interopDefault($1boSe$crypto))).createHash("md5");
33547
33547
  for (let key of Object.keys(object).sort()){
33548
33548
  let val = object[key];
33549
33549
  if (typeof val === "object" && val) hash.update(key + $ae479d9f82cb2105$export$2e2bcd8739ae039(val));
@@ -33712,7 +33712,7 @@ function $496d7b6567191dae$var$supportsColor(haveStream, streamIsTTY) {
33712
33712
  if (process.platform === "win32") {
33713
33713
  // Windows 10 build 10586 is the first Windows release that supports 256 colors.
33714
33714
  // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
33715
- const osRelease = $7DY2f$os.release().split(".");
33715
+ const osRelease = $1boSe$os.release().split(".");
33716
33716
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
33717
33717
  return 1;
33718
33718
  }
@@ -33749,8 +33749,8 @@ function $496d7b6567191dae$var$getSupportLevel(stream) {
33749
33749
  }
33750
33750
  $496d7b6567191dae$exports = {
33751
33751
  supportsColor: $496d7b6567191dae$var$getSupportLevel,
33752
- stdout: $496d7b6567191dae$var$translateLevel($496d7b6567191dae$var$supportsColor(true, $7DY2f$tty.isatty(1))),
33753
- stderr: $496d7b6567191dae$var$translateLevel($496d7b6567191dae$var$supportsColor(true, $7DY2f$tty.isatty(2)))
33752
+ stdout: $496d7b6567191dae$var$translateLevel($496d7b6567191dae$var$supportsColor(true, $1boSe$tty.isatty(1))),
33753
+ stderr: $496d7b6567191dae$var$translateLevel($496d7b6567191dae$var$supportsColor(true, $1boSe$tty.isatty(2)))
33754
33754
  };
33755
33755
 
33756
33756
 
@@ -33876,10 +33876,10 @@ function $7f1a437902559f46$export$2e2bcd8739ae039(a, c) {
33876
33876
 
33877
33877
  async function $1274e8c2255a7b70$export$2e2bcd8739ae039(diagnostic, options, terminalWidth, format = "ansi") {
33878
33878
  let { origin: origin, message: message, stack: stack, codeFrames: codeFrames, hints: hints, skipFormatting: skipFormatting, documentationURL: documentationURL } = diagnostic;
33879
- const md = format === "ansi" ? (0, ($parcel$interopDefault($7DY2f$parcelmarkdownansi))) : (0, $7f1a437902559f46$export$2e2bcd8739ae039);
33879
+ const md = format === "ansi" ? (0, ($parcel$interopDefault($1boSe$parcelmarkdownansi))) : (0, $7f1a437902559f46$export$2e2bcd8739ae039);
33880
33880
  const terminalLink = format === "ansi" ? (0, (/*@__PURE__*/$parcel$interopDefault($b9b4ae7e24caba10$exports))) : // eslint-disable-next-line no-unused-vars
33881
33881
  (text, url)=>`<a href="${url}">${text}</a>`;
33882
- const chalk = format === "ansi" ? (0, ($parcel$interopDefault($7DY2f$chalk))) : {
33882
+ const chalk = format === "ansi" ? (0, ($parcel$interopDefault($1boSe$chalk))) : {
33883
33883
  gray: {
33884
33884
  underline: (v)=>`<span style="color: grey; text-decoration: underline;">${v}</span>`
33885
33885
  }
@@ -33894,16 +33894,16 @@ async function $1274e8c2255a7b70$export$2e2bcd8739ae039(diagnostic, options, ter
33894
33894
  };
33895
33895
  if (codeFrames != null) for (let codeFrame of codeFrames){
33896
33896
  let filePath = codeFrame.filePath;
33897
- if (filePath != null && options && !(0, ($parcel$interopDefault($7DY2f$path))).isAbsolute(filePath)) filePath = (0, ($parcel$interopDefault($7DY2f$path))).join(options.projectRoot, filePath);
33897
+ if (filePath != null && options && !(0, ($parcel$interopDefault($1boSe$path))).isAbsolute(filePath)) filePath = (0, ($parcel$interopDefault($1boSe$path))).join(options.projectRoot, filePath);
33898
33898
  let highlights = codeFrame.codeHighlights;
33899
33899
  let code = codeFrame.code;
33900
33900
  if (code == null && options && filePath != null) code = await options.inputFS.readFile(filePath, "utf8");
33901
33901
  let formattedCodeFrame = "";
33902
- if (code != null) formattedCodeFrame = (0, ($parcel$interopDefault($7DY2f$parcelcodeframe)))(code, highlights, {
33902
+ if (code != null) formattedCodeFrame = (0, ($parcel$interopDefault($1boSe$parcelcodeframe)))(code, highlights, {
33903
33903
  useColor: true,
33904
33904
  syntaxHighlighting: true,
33905
33905
  language: // $FlowFixMe sketchy null checks do not matter here...
33906
- codeFrame.language || (filePath != null ? (0, ($parcel$interopDefault($7DY2f$path))).extname(filePath).substr(1) : undefined),
33906
+ codeFrame.language || (filePath != null ? (0, ($parcel$interopDefault($1boSe$path))).extname(filePath).substr(1) : undefined),
33907
33907
  terminalWidth: terminalWidth
33908
33908
  });
33909
33909
  let location;
@@ -33939,7 +33939,7 @@ function $494306fc43fcab63$export$93f345b3f0dd27e7() {
33939
33939
  };
33940
33940
  });
33941
33941
  // Promise constructor callback executes synchronously, so this is defined
33942
- (0, ($parcel$interopDefault($7DY2f$assert)))(deferred != null);
33942
+ (0, ($parcel$interopDefault($1boSe$assert)))(deferred != null);
33943
33943
  return {
33944
33944
  deferred: deferred,
33945
33945
  promise: promise
@@ -34224,7 +34224,7 @@ function $1c91fe84fcea6f60$var$validateSchema(schema, data) {
34224
34224
  invalidProps = schemaNode.__forbiddenProperties.filter((val)=>keys.includes(val));
34225
34225
  results.push(...invalidProps.map((k)=>({
34226
34226
  type: "forbidden-prop",
34227
- dataPath: dataPath + "/" + (0, $7DY2f$parceldiagnostic.encodeJSONKeyComponent)(k),
34227
+ dataPath: dataPath + "/" + (0, $1boSe$parceldiagnostic.encodeJSONKeyComponent)(k),
34228
34228
  dataType: "key",
34229
34229
  prop: k,
34230
34230
  expectedProps: Object.keys(schemaNode.properties),
@@ -34255,14 +34255,14 @@ function $1c91fe84fcea6f60$var$validateSchema(schema, data) {
34255
34255
  let result = walk([
34256
34256
  schemaNode.properties[k]
34257
34257
  ].concat(schemaAncestors), // $FlowFixMe type was already checked
34258
- dataNode[k], dataPath + "/" + (0, $7DY2f$parceldiagnostic.encodeJSONKeyComponent)(k));
34258
+ dataNode[k], dataPath + "/" + (0, $1boSe$parceldiagnostic.encodeJSONKeyComponent)(k));
34259
34259
  if (result) results.push(result);
34260
34260
  } else {
34261
34261
  if (typeof additionalProperties === "boolean") {
34262
34262
  if (!additionalProperties) results.push({
34263
34263
  type: "enum",
34264
34264
  dataType: "key",
34265
- dataPath: dataPath + "/" + (0, $7DY2f$parceldiagnostic.encodeJSONKeyComponent)(k),
34265
+ dataPath: dataPath + "/" + (0, $1boSe$parceldiagnostic.encodeJSONKeyComponent)(k),
34266
34266
  expectedValues: Object.keys(schemaNode.properties).filter(// $FlowFixMe type was already checked
34267
34267
  (p)=>!(p in dataNode)),
34268
34268
  actualValue: k,
@@ -34273,7 +34273,7 @@ function $1c91fe84fcea6f60$var$validateSchema(schema, data) {
34273
34273
  let result = walk([
34274
34274
  additionalProperties
34275
34275
  ].concat(schemaAncestors), // $FlowFixMe type was already checked
34276
- dataNode[k], dataPath + "/" + (0, $7DY2f$parceldiagnostic.encodeJSONKeyComponent)(k));
34276
+ dataNode[k], dataPath + "/" + (0, $1boSe$parceldiagnostic.encodeJSONKeyComponent)(k));
34277
34277
  if (result) results.push(result);
34278
34278
  }
34279
34279
  }
@@ -34398,17 +34398,17 @@ $1c91fe84fcea6f60$var$validateSchema.diagnostic = function(schema, data, origin,
34398
34398
  filePath: (_data_filePath = data.filePath) !== null && _data_filePath !== void 0 ? _data_filePath : undefined,
34399
34399
  language: "json",
34400
34400
  code: code,
34401
- codeHighlights: (0, $7DY2f$parceldiagnostic.generateJSONCodeHighlights)(map, keys.map(({ key: key, type: type, message: message })=>{
34401
+ codeHighlights: (0, $1boSe$parceldiagnostic.generateJSONCodeHighlights)(map, keys.map(({ key: key, type: type, message: message })=>{
34402
34402
  var _data_prependKey;
34403
34403
  return {
34404
34404
  key: ((_data_prependKey = data.prependKey) !== null && _data_prependKey !== void 0 ? _data_prependKey : "") + key,
34405
34405
  type: type,
34406
- message: message != null ? (0, $7DY2f$parceldiagnostic.escapeMarkdown)(message) : message
34406
+ message: message != null ? (0, $1boSe$parceldiagnostic.escapeMarkdown)(message) : message
34407
34407
  };
34408
34408
  }))
34409
34409
  }
34410
34410
  ];
34411
- throw new (0, ($parcel$interopDefault($7DY2f$parceldiagnostic)))({
34411
+ throw new (0, ($parcel$interopDefault($1boSe$parceldiagnostic)))({
34412
34412
  diagnostic: {
34413
34413
  message: message,
34414
34414
  origin: origin,
@@ -34420,7 +34420,7 @@ $1c91fe84fcea6f60$var$validateSchema.diagnostic = function(schema, data, origin,
34420
34420
 
34421
34421
 
34422
34422
 
34423
- class $7ea5935b6d3252d4$export$2e2bcd8739ae039 extends (0, $7DY2f$stream.Transform) {
34423
+ class $7ea5935b6d3252d4$export$2e2bcd8739ae039 extends (0, $1boSe$stream.Transform) {
34424
34424
  constructor(tap, options){
34425
34425
  super({
34426
34426
  ...options
@@ -34441,21 +34441,21 @@ class $7ea5935b6d3252d4$export$2e2bcd8739ae039 extends (0, $7DY2f$stream.Transfo
34441
34441
 
34442
34442
 
34443
34443
  function $35ec38a8f9f7a1c2$export$2e2bcd8739ae039(publicURL, assetPath) {
34444
- const url = (0, ($parcel$interopDefault($7DY2f$url))).parse(publicURL, false, true);
34444
+ const url = (0, ($parcel$interopDefault($1boSe$url))).parse(publicURL, false, true);
34445
34445
  // Leading / ensures that paths with colons are not parsed as a protocol.
34446
34446
  let p = assetPath.startsWith("/") ? assetPath : "/" + assetPath;
34447
- const assetUrl = (0, ($parcel$interopDefault($7DY2f$url))).parse(p);
34448
- url.pathname = (0, ($parcel$interopDefault($7DY2f$path))).posix.join(url.pathname, assetUrl.pathname);
34447
+ const assetUrl = (0, ($parcel$interopDefault($1boSe$url))).parse(p);
34448
+ url.pathname = (0, ($parcel$interopDefault($1boSe$path))).posix.join(url.pathname, assetUrl.pathname);
34449
34449
  url.search = assetUrl.search;
34450
34450
  url.hash = assetUrl.hash;
34451
- return (0, ($parcel$interopDefault($7DY2f$url))).format(url);
34451
+ return (0, ($parcel$interopDefault($1boSe$url))).format(url);
34452
34452
  }
34453
34453
 
34454
34454
 
34455
34455
 
34456
34456
 
34457
34457
  function $527549cdb5223539$export$2e2bcd8739ae039(from, to) {
34458
- return (0, ($parcel$interopDefault($7DY2f$url))).format((0, ($parcel$interopDefault($7DY2f$url))).parse((0, ($parcel$interopDefault($7DY2f$path))).relative(from, to)));
34458
+ return (0, ($parcel$interopDefault($1boSe$url))).format((0, ($parcel$interopDefault($1boSe$url))).parse((0, ($parcel$interopDefault($1boSe$path))).relative(from, to)));
34459
34459
  }
34460
34460
 
34461
34461
 
@@ -34500,10 +34500,10 @@ function $10fee5be23f949b1$export$2e2bcd8739ae039(fn, delay) {
34500
34500
 
34501
34501
  var $562a0f20155aeb0c$exports = {};
34502
34502
 
34503
- var $562a0f20155aeb0c$var$$parcel$__dirname = $7DY2f$path.resolve(__dirname, "../../../../node_modules/open");
34503
+ var $562a0f20155aeb0c$var$$parcel$__dirname = $1boSe$path.resolve(__dirname, "../../../../node_modules/open");
34504
34504
  "use strict";
34505
34505
 
34506
- var $562a0f20155aeb0c$require$promisify = $7DY2f$util.promisify;
34506
+ var $562a0f20155aeb0c$require$promisify = $1boSe$util.promisify;
34507
34507
 
34508
34508
 
34509
34509
 
@@ -34517,7 +34517,7 @@ var $2e019c5e8ccd52a8$exports = {};
34517
34517
  let $2e019c5e8ccd52a8$var$isDocker;
34518
34518
  function $2e019c5e8ccd52a8$var$hasDockerEnv() {
34519
34519
  try {
34520
- $7DY2f$fs.statSync("/.dockerenv");
34520
+ $1boSe$fs.statSync("/.dockerenv");
34521
34521
  return true;
34522
34522
  } catch (_) {
34523
34523
  return false;
@@ -34525,7 +34525,7 @@ function $2e019c5e8ccd52a8$var$hasDockerEnv() {
34525
34525
  }
34526
34526
  function $2e019c5e8ccd52a8$var$hasDockerCGroup() {
34527
34527
  try {
34528
- return $7DY2f$fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
34528
+ return $1boSe$fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
34529
34529
  } catch (_) {
34530
34530
  return false;
34531
34531
  }
@@ -34538,12 +34538,12 @@ $2e019c5e8ccd52a8$exports = ()=>{
34538
34538
 
34539
34539
  const $d67071b1f2345f51$var$isWsl = ()=>{
34540
34540
  if (process.platform !== "linux") return false;
34541
- if ($7DY2f$os.release().toLowerCase().includes("microsoft")) {
34541
+ if ($1boSe$os.release().toLowerCase().includes("microsoft")) {
34542
34542
  if ($2e019c5e8ccd52a8$exports()) return false;
34543
34543
  return true;
34544
34544
  }
34545
34545
  try {
34546
- return $7DY2f$fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !$2e019c5e8ccd52a8$exports() : false;
34546
+ return $1boSe$fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !$2e019c5e8ccd52a8$exports() : false;
34547
34547
  } catch (_) {
34548
34548
  return false;
34549
34549
  }
@@ -34553,10 +34553,10 @@ else $d67071b1f2345f51$exports = $d67071b1f2345f51$var$isWsl();
34553
34553
 
34554
34554
 
34555
34555
 
34556
- const $562a0f20155aeb0c$var$pAccess = $562a0f20155aeb0c$require$promisify($7DY2f$fs.access);
34557
- const $562a0f20155aeb0c$var$pReadFile = $562a0f20155aeb0c$require$promisify($7DY2f$fs.readFile);
34556
+ const $562a0f20155aeb0c$var$pAccess = $562a0f20155aeb0c$require$promisify($1boSe$fs.access);
34557
+ const $562a0f20155aeb0c$var$pReadFile = $562a0f20155aeb0c$require$promisify($1boSe$fs.readFile);
34558
34558
  // Path to included `xdg-open`.
34559
- const $562a0f20155aeb0c$var$localXdgOpenPath = $7DY2f$path.join($562a0f20155aeb0c$var$$parcel$__dirname, "xdg-open");
34559
+ const $562a0f20155aeb0c$var$localXdgOpenPath = $1boSe$path.join($562a0f20155aeb0c$var$$parcel$__dirname, "xdg-open");
34560
34560
  /**
34561
34561
  Get the mount point for fixed drives in WSL.
34562
34562
 
@@ -34573,7 +34573,7 @@ Get the mount point for fixed drives in WSL.
34573
34573
  const configFilePath = "/etc/wsl.conf";
34574
34574
  let isConfigFileExists = false;
34575
34575
  try {
34576
- await $562a0f20155aeb0c$var$pAccess(configFilePath, $7DY2f$fs.constants.F_OK);
34576
+ await $562a0f20155aeb0c$var$pAccess(configFilePath, $1boSe$fs.constants.F_OK);
34577
34577
  isConfigFileExists = true;
34578
34578
  } catch (_) {}
34579
34579
  if (!isConfigFileExists) return defaultMountPoint;
@@ -34638,7 +34638,7 @@ $562a0f20155aeb0c$exports = async (target, options)=>{
34638
34638
  // Check if local `xdg-open` exists and is executable.
34639
34639
  let exeLocalXdgOpen = false;
34640
34640
  try {
34641
- await $562a0f20155aeb0c$var$pAccess($562a0f20155aeb0c$var$localXdgOpenPath, $7DY2f$fs.constants.X_OK);
34641
+ await $562a0f20155aeb0c$var$pAccess($562a0f20155aeb0c$var$localXdgOpenPath, $1boSe$fs.constants.X_OK);
34642
34642
  exeLocalXdgOpen = true;
34643
34643
  } catch (_) {}
34644
34644
  const useSystemXdgOpen = process.versions.electron || process.platform === "android" || isBundled || !exeLocalXdgOpen;
@@ -34654,7 +34654,7 @@ $562a0f20155aeb0c$exports = async (target, options)=>{
34654
34654
  }
34655
34655
  cliArguments.push(target);
34656
34656
  if (process.platform === "darwin" && appArguments.length > 0) cliArguments.push("--args", ...appArguments);
34657
- const subprocess = $7DY2f$child_process.spawn(command, cliArguments, childProcessOptions);
34657
+ const subprocess = $1boSe$child_process.spawn(command, cliArguments, childProcessOptions);
34658
34658
  if (options.wait) return new Promise((resolve, reject)=>{
34659
34659
  subprocess.once("error", reject);
34660
34660
  subprocess.once("close", (exitCode)=>{
@@ -34690,7 +34690,7 @@ function $656718b2da48fc0b$var$getChromeAppName() {
34690
34690
  }
34691
34691
  function $656718b2da48fc0b$var$commandExistsUnixSync(commandName) {
34692
34692
  try {
34693
- const stdout = (0, $7DY2f$child_process.execSync)(`command -v ${commandName} 2>/dev/null` + ` && { echo >&1 '${commandName} found'; exit 0; }`);
34693
+ const stdout = (0, $1boSe$child_process.execSync)(`command -v ${commandName} 2>/dev/null` + ` && { echo >&1 '${commandName} found'; exit 0; }`);
34694
34694
  return !!stdout;
34695
34695
  } catch (error) {
34696
34696
  return false;
@@ -34716,8 +34716,8 @@ async function $656718b2da48fc0b$export$2e2bcd8739ae039(url, browser) {
34716
34716
  } : undefined;
34717
34717
  await (0, (/*@__PURE__*/$parcel$interopDefault($562a0f20155aeb0c$exports)))(url, options);
34718
34718
  } catch (err) {
34719
- (0, ($parcel$interopDefault($7DY2f$parcellogger))).error(`Unexpected error while opening in browser: ${browser}`, "@parcel/utils");
34720
- (0, ($parcel$interopDefault($7DY2f$parcellogger))).error(err, "@parcel/utils");
34719
+ (0, ($parcel$interopDefault($1boSe$parcellogger))).error(`Unexpected error while opening in browser: ${browser}`, "@parcel/utils");
34720
+ (0, ($parcel$interopDefault($1boSe$parcellogger))).error(err, "@parcel/utils");
34721
34721
  }
34722
34722
  }
34723
34723
 
@@ -36480,15 +36480,15 @@ const $b3c31055179d6c8d$var$resolveCache = new Map();
36480
36480
  function $b3c31055179d6c8d$export$7eca4ea16d4c8343(fs, filepath, filenames, projectRoot) {
36481
36481
  // Cache the result of resolving config for this directory.
36482
36482
  // This is automatically invalidated at the end of the current build.
36483
- let key = (0, ($parcel$interopDefault($7DY2f$path))).dirname(filepath) + filenames.join(",");
36483
+ let key = (0, ($parcel$interopDefault($1boSe$path))).dirname(filepath) + filenames.join(",");
36484
36484
  let cached = $b3c31055179d6c8d$var$resolveCache.get(key);
36485
36485
  if (cached !== undefined) return Promise.resolve(cached);
36486
- let resolved = fs.findAncestorFile(filenames, (0, ($parcel$interopDefault($7DY2f$path))).dirname(filepath), projectRoot);
36486
+ let resolved = fs.findAncestorFile(filenames, (0, ($parcel$interopDefault($1boSe$path))).dirname(filepath), projectRoot);
36487
36487
  $b3c31055179d6c8d$var$resolveCache.set(key, resolved);
36488
36488
  return Promise.resolve(resolved);
36489
36489
  }
36490
36490
  function $b3c31055179d6c8d$export$d175e66e9fcd7b75(fs, filepath, filenames, projectRoot) {
36491
- return fs.findAncestorFile(filenames, (0, ($parcel$interopDefault($7DY2f$path))).dirname(filepath), projectRoot);
36491
+ return fs.findAncestorFile(filenames, (0, ($parcel$interopDefault($1boSe$path))).dirname(filepath), projectRoot);
36492
36492
  }
36493
36493
  async function $b3c31055179d6c8d$export$c1a4367d4847eb06(fs, filepath, filenames, projectRoot, opts) {
36494
36494
  var _opts_parse;
@@ -36498,7 +36498,7 @@ async function $b3c31055179d6c8d$export$c1a4367d4847eb06(fs, filepath, filenames
36498
36498
  let cachedOutput = $b3c31055179d6c8d$var$configCache.get(String(parse) + configFile);
36499
36499
  if (cachedOutput) return cachedOutput;
36500
36500
  try {
36501
- let extname = (0, ($parcel$interopDefault($7DY2f$path))).extname(configFile).slice(1);
36501
+ let extname = (0, ($parcel$interopDefault($1boSe$path))).extname(configFile).slice(1);
36502
36502
  if (extname === "js" || extname === "cjs") {
36503
36503
  let output = {
36504
36504
  // $FlowFixMe
@@ -36534,7 +36534,7 @@ async function $b3c31055179d6c8d$export$f5327b421858c8cd(fs, configFile, opts) {
36534
36534
  let config;
36535
36535
  if (parse === false) config = configContent;
36536
36536
  else {
36537
- let extname = (0, ($parcel$interopDefault($7DY2f$path))).extname(configFile).slice(1);
36537
+ let extname = (0, ($parcel$interopDefault($1boSe$path))).extname(configFile).slice(1);
36538
36538
  var _opts_parser;
36539
36539
  let parse = (_opts_parser = opts === null || opts === void 0 ? void 0 : opts.parser) !== null && _opts_parser !== void 0 ? _opts_parser : $b3c31055179d6c8d$var$getParser(extname);
36540
36540
  try {
@@ -36545,9 +36545,9 @@ async function $b3c31055179d6c8d$export$f5327b421858c8cd(fs, configFile, opts) {
36545
36545
  line: e.lineNumber,
36546
36546
  column: e.columnNumber
36547
36547
  };
36548
- throw new (0, ($parcel$interopDefault($7DY2f$parceldiagnostic)))({
36548
+ throw new (0, ($parcel$interopDefault($1boSe$parceldiagnostic)))({
36549
36549
  diagnostic: {
36550
- message: `Failed to parse ${(0, ($parcel$interopDefault($7DY2f$path))).basename(configFile)}`,
36550
+ message: `Failed to parse ${(0, ($parcel$interopDefault($1boSe$path))).basename(configFile)}`,
36551
36551
  origin: "@parcel/utils",
36552
36552
  codeFrames: [
36553
36553
  {
@@ -36595,13 +36595,13 @@ function $b3c31055179d6c8d$var$getParser(extname) {
36595
36595
 
36596
36596
  async function $1626ca40225d35ed$export$6643be4f4e63e994(fs, moduleName, dir) {
36597
36597
  let potentialModules = [];
36598
- let root = (0, ($parcel$interopDefault($7DY2f$path))).parse(dir).root;
36598
+ let root = (0, ($parcel$interopDefault($1boSe$path))).parse(dir).root;
36599
36599
  let isOrganisationModule = moduleName.startsWith("@");
36600
36600
  while(dir !== root){
36601
36601
  // Skip node_modules directories
36602
- if ((0, ($parcel$interopDefault($7DY2f$path))).basename(dir) === "node_modules") dir = (0, ($parcel$interopDefault($7DY2f$path))).dirname(dir);
36602
+ if ((0, ($parcel$interopDefault($1boSe$path))).basename(dir) === "node_modules") dir = (0, ($parcel$interopDefault($1boSe$path))).dirname(dir);
36603
36603
  try {
36604
- let modulesDir = (0, ($parcel$interopDefault($7DY2f$path))).join(dir, "node_modules");
36604
+ let modulesDir = (0, ($parcel$interopDefault($1boSe$path))).join(dir, "node_modules");
36605
36605
  let stats = await fs.stat(modulesDir);
36606
36606
  if (stats.isDirectory()) {
36607
36607
  let dirContent = (await fs.readdir(modulesDir)).sort();
@@ -36609,7 +36609,7 @@ async function $1626ca40225d35ed$export$6643be4f4e63e994(fs, moduleName, dir) {
36609
36609
  let modules = dirContent.filter((i)=>isOrganisationModule ? i.startsWith("@") : !i.startsWith("@"));
36610
36610
  // If it's an organisation module, loop through all the modules of that organisation
36611
36611
  if (isOrganisationModule) await Promise.all(modules.map(async (item)=>{
36612
- let orgDirPath = (0, ($parcel$interopDefault($7DY2f$path))).join(modulesDir, item);
36612
+ let orgDirPath = (0, ($parcel$interopDefault($1boSe$path))).join(modulesDir, item);
36613
36613
  let orgDirContent = (await fs.readdir(orgDirPath)).sort();
36614
36614
  // Add all org packages
36615
36615
  potentialModules.push(...orgDirContent.map((i)=>`${item}/${i}`));
@@ -36620,14 +36620,14 @@ async function $1626ca40225d35ed$export$6643be4f4e63e994(fs, moduleName, dir) {
36620
36620
  // ignore
36621
36621
  }
36622
36622
  // Move up a directory
36623
- dir = (0, ($parcel$interopDefault($7DY2f$path))).dirname(dir);
36623
+ dir = (0, ($parcel$interopDefault($1boSe$path))).dirname(dir);
36624
36624
  }
36625
36625
  return (0, $1c91fe84fcea6f60$export$2115c2c0a84eef61)(potentialModules.sort(), moduleName).slice(0, 2);
36626
36626
  }
36627
36627
  async function $1626ca40225d35ed$var$findAllFilesUp({ fs: fs, dir: dir, root: root, basedir: basedir, maxlength: maxlength, collected: collected, leadingDotSlash: leadingDotSlash = true, includeDirectories: includeDirectories = true }) {
36628
36628
  let dirContent = (await fs.readdir(dir)).sort();
36629
36629
  return Promise.all(dirContent.map(async (item)=>{
36630
- let fullPath = (0, ($parcel$interopDefault($7DY2f$path))).join(dir, item);
36630
+ let fullPath = (0, ($parcel$interopDefault($1boSe$path))).join(dir, item);
36631
36631
  let relativeFilePath = (0, $f1f019519322bc82$export$7413eea5ad243d4)(basedir, fullPath, leadingDotSlash);
36632
36632
  if (relativeFilePath.length < maxlength) {
36633
36633
  let stats = await fs.stat(fullPath);
@@ -36648,10 +36648,10 @@ async function $1626ca40225d35ed$var$findAllFilesUp({ fs: fs, dir: dir, root: ro
36648
36648
  async function $1626ca40225d35ed$export$4eeb1b3271a29661(fs, fileSpecifier, dir, projectRoot, leadingDotSlash = true, includeDirectories = true, includeExtension = false) {
36649
36649
  let potentialFiles = [];
36650
36650
  // Find our root, we won't recommend files above the package root as that's bad practise
36651
- let pkg = await (0, $b3c31055179d6c8d$export$7eca4ea16d4c8343)(fs, (0, ($parcel$interopDefault($7DY2f$path))).join(dir, "index"), [
36651
+ let pkg = await (0, $b3c31055179d6c8d$export$7eca4ea16d4c8343)(fs, (0, ($parcel$interopDefault($1boSe$path))).join(dir, "index"), [
36652
36652
  "package.json"
36653
36653
  ], projectRoot);
36654
- let pkgRoot = pkg ? (0, ($parcel$interopDefault($7DY2f$path))).dirname(pkg) : projectRoot;
36654
+ let pkgRoot = pkg ? (0, ($parcel$interopDefault($1boSe$path))).dirname(pkg) : projectRoot;
36655
36655
  await $1626ca40225d35ed$var$findAllFilesUp({
36656
36656
  fs: fs,
36657
36657
  dir: pkgRoot,
@@ -36662,8 +36662,8 @@ async function $1626ca40225d35ed$export$4eeb1b3271a29661(fs, fileSpecifier, dir,
36662
36662
  leadingDotSlash: leadingDotSlash,
36663
36663
  includeDirectories: includeDirectories
36664
36664
  });
36665
- if ((0, ($parcel$interopDefault($7DY2f$path))).extname(fileSpecifier) === "" && !includeExtension) potentialFiles = potentialFiles.map((p)=>{
36666
- let ext = (0, ($parcel$interopDefault($7DY2f$path))).extname(p);
36665
+ if ((0, ($parcel$interopDefault($1boSe$path))).extname(fileSpecifier) === "" && !includeExtension) potentialFiles = potentialFiles.map((p)=>{
36666
+ let ext = (0, ($parcel$interopDefault($1boSe$path))).extname(p);
36667
36667
  return ext.length > 0 ? p.slice(0, -ext.length) : p;
36668
36668
  });
36669
36669
  return (0, $1c91fe84fcea6f60$export$2115c2c0a84eef61)(potentialFiles, fileSpecifier).slice(0, 2);
@@ -36674,13 +36674,13 @@ async function $1626ca40225d35ed$export$4eeb1b3271a29661(fs, fileSpecifier, dir,
36674
36674
 
36675
36675
 
36676
36676
  function $d27baaa63820ac60$export$e234f0a8b913b7b9(blob) {
36677
- if (blob instanceof (0, $7DY2f$stream.Readable)) return (0, $2e2d3a08238595a3$export$f109d1c79a5ae5a1)(blob);
36678
- else if (blob instanceof (0, $7DY2f$buffer.Buffer)) return Promise.resolve((0, $7DY2f$buffer.Buffer).from(blob));
36679
- else return Promise.resolve((0, $7DY2f$buffer.Buffer).from(blob, "utf8"));
36677
+ if (blob instanceof (0, $1boSe$stream.Readable)) return (0, $2e2d3a08238595a3$export$f109d1c79a5ae5a1)(blob);
36678
+ else if (blob instanceof (0, $1boSe$buffer.Buffer)) return Promise.resolve((0, $1boSe$buffer.Buffer).from(blob));
36679
+ else return Promise.resolve((0, $1boSe$buffer.Buffer).from(blob, "utf8"));
36680
36680
  }
36681
36681
  async function $d27baaa63820ac60$export$c6adc95df13c8b9e(blob) {
36682
- if (blob instanceof (0, $7DY2f$stream.Readable)) return (await (0, $2e2d3a08238595a3$export$f109d1c79a5ae5a1)(blob)).toString();
36683
- else if (blob instanceof (0, $7DY2f$buffer.Buffer)) return blob.toString();
36682
+ if (blob instanceof (0, $1boSe$stream.Readable)) return (await (0, $2e2d3a08238595a3$export$f109d1c79a5ae5a1)(blob)).toString();
36683
+ else if (blob instanceof (0, $1boSe$buffer.Buffer)) return blob.toString();
36684
36684
  else return blob;
36685
36685
  }
36686
36686
 
@@ -36767,7 +36767,7 @@ class $900f0549d0a46943$export$4924f7ffab2ae440 extends WeakMap {
36767
36767
  function $643c161de0b2ea86$export$d28945a2f2ba5e30(event) {
36768
36768
  switch(event.phase){
36769
36769
  case "transforming":
36770
- return `Building ${(0, ($parcel$interopDefault($7DY2f$path))).basename(event.filePath)}...`;
36770
+ return `Building ${(0, ($parcel$interopDefault($1boSe$path))).basename(event.filePath)}...`;
36771
36771
  case "bundling":
36772
36772
  return "Bundling...";
36773
36773
  case "packaging":
@@ -36783,7 +36783,7 @@ function $643c161de0b2ea86$export$d28945a2f2ba5e30(event) {
36783
36783
 
36784
36784
 
36785
36785
  function $eb9fd991dd774e4e$export$8a9ede1a78d6a1fe(stream) {
36786
- let hash = new (0, $7DY2f$parcelrust.Hash)();
36786
+ let hash = new (0, $1boSe$parcelrust.Hash)();
36787
36787
  return new Promise((resolve, reject)=>{
36788
36788
  stream.on("error", (err)=>{
36789
36789
  reject(err);
@@ -36798,7 +36798,7 @@ function $eb9fd991dd774e4e$export$8a9ede1a78d6a1fe(stream) {
36798
36798
  });
36799
36799
  }
36800
36800
  function $eb9fd991dd774e4e$export$3477f9615e12f61d(obj) {
36801
- return (0, $7DY2f$parcelrust.hashString)(JSON.stringify((0, $647e015226d0e91b$export$1a9b883158ac407c)(obj)));
36801
+ return (0, $1boSe$parcelrust.hashString)(JSON.stringify((0, $647e015226d0e91b$export$1a9b883158ac407c)(obj)));
36802
36802
  }
36803
36803
  let $eb9fd991dd774e4e$var$testCache = {
36804
36804
  };
@@ -36833,16 +36833,16 @@ if (process.browser) {
36833
36833
 
36834
36834
  async function $4813a080ec4cc1bf$export$3b1983e9896f988b(options) {
36835
36835
  let server;
36836
- if (!options.https) server = (0, ($parcel$interopDefault($7DY2f$http))).createServer(options.listener);
36836
+ if (!options.https) server = (0, ($parcel$interopDefault($1boSe$http))).createServer(options.listener);
36837
36837
  else if (options.https === true) {
36838
36838
  let { cert: cert, key: key } = await (0, $2b89577602fde4c5$export$2e2bcd8739ae039)(options.outputFS, options.cacheDir, options.host);
36839
- server = (0, ($parcel$interopDefault($7DY2f$https))).createServer({
36839
+ server = (0, ($parcel$interopDefault($1boSe$https))).createServer({
36840
36840
  cert: cert,
36841
36841
  key: key
36842
36842
  }, options.listener);
36843
36843
  } else {
36844
36844
  let { cert: cert, key: key } = await (0, $7aa8d3b2f158cb07$export$2e2bcd8739ae039)(options.inputFS, options.https);
36845
- server = (0, ($parcel$interopDefault($7DY2f$https))).createServer({
36845
+ server = (0, ($parcel$interopDefault($1boSe$https))).createServer({
36846
36846
  cert: cert,
36847
36847
  key: key
36848
36848
  }, options.listener);
@@ -36894,7 +36894,7 @@ function $93d0d9f03b6417a0$export$d0d0105f44defc19({ bundle: bundle, bundleGraph
36894
36894
  if (dependency.specifierType !== "url") continue;
36895
36895
  var _dependency_meta_placeholder;
36896
36896
  let placeholder = (_dependency_meta_placeholder = (_dependency_meta = dependency.meta) === null || _dependency_meta === void 0 ? void 0 : _dependency_meta.placeholder) !== null && _dependency_meta_placeholder !== void 0 ? _dependency_meta_placeholder : dependency.id;
36897
- (0, ($parcel$interopDefault($7DY2f$assert)))(typeof placeholder === "string");
36897
+ (0, ($parcel$interopDefault($1boSe$assert)))(typeof placeholder === "string");
36898
36898
  let resolved = bundleGraph.getReferencedBundle(dependency, bundle);
36899
36899
  if (resolved == null) {
36900
36900
  replacements.set(placeholder, {
@@ -36924,13 +36924,13 @@ async function $93d0d9f03b6417a0$export$f074a8f9bef628fd({ bundle: bundle, bundl
36924
36924
  let entryBundle = bundleGraph.getReferencedBundle(dependency, bundle);
36925
36925
  if ((entryBundle === null || entryBundle === void 0 ? void 0 : entryBundle.bundleBehavior) !== "inline") continue;
36926
36926
  let packagedBundle = await getInlineBundleContents(entryBundle, bundleGraph);
36927
- let packagedContents = (packagedBundle.contents instanceof (0, $7DY2f$stream.Readable) ? await (0, $2e2d3a08238595a3$export$f109d1c79a5ae5a1)(packagedBundle.contents) : packagedBundle.contents).toString();
36927
+ let packagedContents = (packagedBundle.contents instanceof (0, $1boSe$stream.Readable) ? await (0, $2e2d3a08238595a3$export$f109d1c79a5ae5a1)(packagedBundle.contents) : packagedBundle.contents).toString();
36928
36928
  let inlineType = (0, (/*@__PURE__*/$parcel$interopDefault($646209af861dbed4$exports)))(entryBundle.getMainEntry()).meta.inlineType;
36929
36929
  if (inlineType == null || inlineType === "string") {
36930
36930
  var _dependency_meta;
36931
36931
  var _dependency_meta_placeholder;
36932
36932
  let placeholder = (_dependency_meta_placeholder = (_dependency_meta = dependency.meta) === null || _dependency_meta === void 0 ? void 0 : _dependency_meta.placeholder) !== null && _dependency_meta_placeholder !== void 0 ? _dependency_meta_placeholder : dependency.id;
36933
- (0, ($parcel$interopDefault($7DY2f$assert)))(typeof placeholder === "string");
36933
+ (0, ($parcel$interopDefault($1boSe$assert)))(typeof placeholder === "string");
36934
36934
  replacements.set(placeholder, getInlineReplacement(dependency, inlineType, packagedContents));
36935
36935
  }
36936
36936
  }
@@ -36939,9 +36939,9 @@ async function $93d0d9f03b6417a0$export$f074a8f9bef628fd({ bundle: bundle, bundl
36939
36939
  function $93d0d9f03b6417a0$export$a22ef0cbdf8abc95({ dependency: dependency, fromBundle: fromBundle, toBundle: toBundle, relative: relative, getReplacement: getReplacement }) {
36940
36940
  var _dependency_meta;
36941
36941
  let to;
36942
- let orig = (0, ($parcel$interopDefault($7DY2f$url))).parse(dependency.specifier);
36942
+ let orig = (0, ($parcel$interopDefault($1boSe$url))).parse(dependency.specifier);
36943
36943
  if (relative) {
36944
- to = (0, ($parcel$interopDefault($7DY2f$url))).format({
36944
+ to = (0, ($parcel$interopDefault($1boSe$url))).format({
36945
36945
  pathname: (0, $0a7acf3ce1a80e25$export$402b5a120b1183b3)(fromBundle, toBundle, {
36946
36946
  leadingDotSlash: false
36947
36947
  }),
@@ -36950,13 +36950,13 @@ function $93d0d9f03b6417a0$export$a22ef0cbdf8abc95({ dependency: dependency, fro
36950
36950
  // If the resulting path includes a colon character and doesn't start with a ./ or ../
36951
36951
  // we need to add one so that the first part before the colon isn't parsed as a URL protocol.
36952
36952
  if (to.includes(":") && !to.startsWith("./") && !to.startsWith("../")) to = "./" + to;
36953
- } else to = (0, $35ec38a8f9f7a1c2$export$2e2bcd8739ae039)(toBundle.target.publicUrl, (0, ($parcel$interopDefault($7DY2f$url))).format({
36953
+ } else to = (0, $35ec38a8f9f7a1c2$export$2e2bcd8739ae039)(toBundle.target.publicUrl, (0, ($parcel$interopDefault($1boSe$url))).format({
36954
36954
  pathname: (0, (/*@__PURE__*/$parcel$interopDefault($646209af861dbed4$exports)))(toBundle.name),
36955
36955
  hash: orig.hash
36956
36956
  }));
36957
36957
  var _dependency_meta_placeholder;
36958
36958
  let placeholder = (_dependency_meta_placeholder = (_dependency_meta = dependency.meta) === null || _dependency_meta === void 0 ? void 0 : _dependency_meta.placeholder) !== null && _dependency_meta_placeholder !== void 0 ? _dependency_meta_placeholder : dependency.id;
36959
- (0, ($parcel$interopDefault($7DY2f$assert)))(typeof placeholder === "string");
36959
+ (0, ($parcel$interopDefault($1boSe$assert)))(typeof placeholder === "string");
36960
36960
  return {
36961
36961
  from: placeholder,
36962
36962
  to: getReplacement ? getReplacement(to) : to
@@ -36987,7 +36987,7 @@ function $2e2d3a08238595a3$export$457f03b1bf37ec1a(stream) {
36987
36987
  }
36988
36988
  function $2e2d3a08238595a3$export$dc30d0b81ccad9c7(str) {
36989
36989
  // https://stackoverflow.com/questions/12755997/how-to-create-streams-from-string-in-node-js
36990
- const stream = new (0, $7DY2f$stream.Readable)();
36990
+ const stream = new (0, $1boSe$stream.Readable)();
36991
36991
  stream.push(str);
36992
36992
  stream.push(null);
36993
36993
  return stream;
@@ -37008,19 +37008,19 @@ function $2e2d3a08238595a3$export$f109d1c79a5ae5a1(stream) {
37008
37008
  });
37009
37009
  }
37010
37010
  function $2e2d3a08238595a3$export$5ba0b0e7e2e9ae7a(blob) {
37011
- if (blob instanceof (0, $7DY2f$stream.Readable)) return blob;
37011
+ if (blob instanceof (0, $1boSe$stream.Readable)) return blob;
37012
37012
  return $2e2d3a08238595a3$export$dc30d0b81ccad9c7(blob);
37013
37013
  }
37014
37014
  function $2e2d3a08238595a3$export$7ebca75e1135fcd6(promise) {
37015
- const stream = new (0, $7DY2f$stream.PassThrough)();
37015
+ const stream = new (0, $1boSe$stream.PassThrough)();
37016
37016
  promise.then((blob)=>{
37017
- if (blob instanceof (0, $7DY2f$stream.Readable)) blob.pipe(stream);
37017
+ if (blob instanceof (0, $1boSe$stream.Readable)) blob.pipe(stream);
37018
37018
  else stream.end(blob);
37019
37019
  });
37020
37020
  return stream;
37021
37021
  }
37022
37022
  function $2e2d3a08238595a3$export$68f6769cfac79897(stream, fallback) {
37023
- const res = new (0, $7DY2f$stream.PassThrough)();
37023
+ const res = new (0, $1boSe$stream.PassThrough)();
37024
37024
  stream.on("error", (err)=>{
37025
37025
  if (err.code === "ENOENT") fallback().pipe(res);
37026
37026
  else res.emit("error", err);
@@ -37035,9 +37035,9 @@ function $2e2d3a08238595a3$export$68f6769cfac79897(stream, fallback) {
37035
37035
  function $0a7acf3ce1a80e25$export$402b5a120b1183b3(from, to, opts = {
37036
37036
  leadingDotSlash: true
37037
37037
  }) {
37038
- let fromPath = (0, ($parcel$interopDefault($7DY2f$path))).join(from.target.distDir, from.name);
37039
- let toPath = (0, ($parcel$interopDefault($7DY2f$path))).join(to.target.distDir, to.name);
37040
- return (0, $f1f019519322bc82$export$7413eea5ad243d4)((0, ($parcel$interopDefault($7DY2f$path))).dirname(fromPath), toPath, opts.leadingDotSlash);
37038
+ let fromPath = (0, ($parcel$interopDefault($1boSe$path))).join(from.target.distDir, from.name);
37039
+ let toPath = (0, ($parcel$interopDefault($1boSe$path))).join(to.target.distDir, to.name);
37040
+ return (0, $f1f019519322bc82$export$7413eea5ad243d4)((0, ($parcel$interopDefault($1boSe$path))).dirname(fromPath), toPath, opts.leadingDotSlash);
37041
37041
  }
37042
37042
 
37043
37043
 
@@ -37254,7 +37254,7 @@ async function $0079428852d28918$export$527a92fa675f5e93(fs, filename, contents)
37254
37254
  if (dataURLMatch) mapFilePath = filename;
37255
37255
  else {
37256
37256
  mapFilePath = url.replace(/^file:\/\//, "");
37257
- mapFilePath = (0, $f1f019519322bc82$export$e434c7255acda994)(mapFilePath) ? mapFilePath : (0, ($parcel$interopDefault($7DY2f$path))).join((0, ($parcel$interopDefault($7DY2f$path))).dirname(filename), mapFilePath);
37257
+ mapFilePath = (0, $f1f019519322bc82$export$e434c7255acda994)(mapFilePath) ? mapFilePath : (0, ($parcel$interopDefault($1boSe$path))).join((0, ($parcel$interopDefault($1boSe$path))).dirname(filename), mapFilePath);
37258
37258
  }
37259
37259
  return {
37260
37260
  url: url,
@@ -37266,13 +37266,13 @@ async function $0079428852d28918$export$527a92fa675f5e93(fs, filename, contents)
37266
37266
  async function $0079428852d28918$export$c500fecaca54de65(filename, contents, options) {
37267
37267
  let foundMap = await $0079428852d28918$export$527a92fa675f5e93(options.fs, filename, contents);
37268
37268
  if (foundMap) {
37269
- let mapSourceRoot = (0, ($parcel$interopDefault($7DY2f$path))).dirname(filename);
37270
- if (foundMap.map.sourceRoot && !(0, $f1f019519322bc82$export$16778b798ae8e49d)(foundMap.map.sourceRoot).startsWith("/")) mapSourceRoot = (0, ($parcel$interopDefault($7DY2f$path))).join(mapSourceRoot, foundMap.map.sourceRoot);
37271
- let sourcemapInstance = new (0, ($parcel$interopDefault($7DY2f$parcelsourcemap)))(options.projectRoot);
37269
+ let mapSourceRoot = (0, ($parcel$interopDefault($1boSe$path))).dirname(filename);
37270
+ if (foundMap.map.sourceRoot && !(0, $f1f019519322bc82$export$16778b798ae8e49d)(foundMap.map.sourceRoot).startsWith("/")) mapSourceRoot = (0, ($parcel$interopDefault($1boSe$path))).join(mapSourceRoot, foundMap.map.sourceRoot);
37271
+ let sourcemapInstance = new (0, ($parcel$interopDefault($1boSe$parcelsourcemap)))(options.projectRoot);
37272
37272
  sourcemapInstance.addVLQMap({
37273
37273
  ...foundMap.map,
37274
37274
  sources: foundMap.map.sources.map((s)=>{
37275
- return (0, ($parcel$interopDefault($7DY2f$path))).join(mapSourceRoot, s);
37275
+ return (0, ($parcel$interopDefault($1boSe$path))).join(mapSourceRoot, s);
37276
37276
  })
37277
37277
  });
37278
37278
  return sourcemapInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/utils",
3
- "version": "2.0.0-dev.1426+2369415b7",
3
+ "version": "2.0.0-dev.1429+82cfd6d30",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@parcel/codeframe": "2.0.0-dev.1426+2369415b7",
37
- "@parcel/diagnostic": "2.0.0-dev.1426+2369415b7",
38
- "@parcel/logger": "2.0.0-dev.1426+2369415b7",
39
- "@parcel/markdown-ansi": "2.0.0-dev.1426+2369415b7",
40
- "@parcel/rust": "2.12.1-dev.3263+2369415b7",
36
+ "@parcel/codeframe": "2.0.0-dev.1429+82cfd6d30",
37
+ "@parcel/diagnostic": "2.0.0-dev.1429+82cfd6d30",
38
+ "@parcel/logger": "2.0.0-dev.1429+82cfd6d30",
39
+ "@parcel/markdown-ansi": "2.0.0-dev.1429+82cfd6d30",
40
+ "@parcel/rust": "2.12.1-dev.3266+82cfd6d30",
41
41
  "@parcel/source-map": "^2.1.1",
42
42
  "chalk": "^4.1.0",
43
43
  "nullthrows": "^1.1.1"
@@ -67,5 +67,5 @@
67
67
  "./src/openInBrowser.js": false,
68
68
  "@parcel/markdown-ansi": false
69
69
  },
70
- "gitHead": "2369415b703a85196b2e76d18cf748bad349932b"
70
+ "gitHead": "82cfd6d30693f4ade081fa7bcb2a52d233d3affe"
71
71
  }