@vercel/go 3.2.1 → 3.2.3
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.js +256 -1107
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1890,12 +1890,16 @@ var require_end_of_stream = __commonJS({
|
|
|
1890
1890
|
}
|
|
1891
1891
|
});
|
|
1892
1892
|
|
|
1893
|
-
// ../../node_modules/.pnpm/pump@3.0.
|
|
1893
|
+
// ../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js
|
|
1894
1894
|
var require_pump = __commonJS({
|
|
1895
|
-
"../../node_modules/.pnpm/pump@3.0.
|
|
1895
|
+
"../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js"(exports, module2) {
|
|
1896
1896
|
var once2 = require_once();
|
|
1897
1897
|
var eos = require_end_of_stream();
|
|
1898
|
-
var fs
|
|
1898
|
+
var fs;
|
|
1899
|
+
try {
|
|
1900
|
+
fs = require("fs");
|
|
1901
|
+
} catch (e) {
|
|
1902
|
+
}
|
|
1899
1903
|
var noop = function() {
|
|
1900
1904
|
};
|
|
1901
1905
|
var ancient = /^v?\.0/.test(process.version);
|
|
@@ -2995,9 +2999,9 @@ var require_universalify = __commonJS({
|
|
|
2995
2999
|
}
|
|
2996
3000
|
});
|
|
2997
3001
|
|
|
2998
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3002
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
2999
3003
|
var require_polyfills = __commonJS({
|
|
3000
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3004
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
3001
3005
|
var constants = require("constants");
|
|
3002
3006
|
var origCwd = process.cwd;
|
|
3003
3007
|
var cwd = null;
|
|
@@ -3069,7 +3073,7 @@ var require_polyfills = __commonJS({
|
|
|
3069
3073
|
var start = Date.now();
|
|
3070
3074
|
var backoff = 0;
|
|
3071
3075
|
fs$rename(from, to, function CB(er) {
|
|
3072
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
3076
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
3073
3077
|
setTimeout(function() {
|
|
3074
3078
|
fs.stat(to, function(stater, st) {
|
|
3075
3079
|
if (stater && stater.code === "ENOENT")
|
|
@@ -3311,9 +3315,9 @@ var require_polyfills = __commonJS({
|
|
|
3311
3315
|
}
|
|
3312
3316
|
});
|
|
3313
3317
|
|
|
3314
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3318
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
3315
3319
|
var require_legacy_streams = __commonJS({
|
|
3316
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3320
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
3317
3321
|
var Stream = require("stream").Stream;
|
|
3318
3322
|
module2.exports = legacy;
|
|
3319
3323
|
function legacy(fs) {
|
|
@@ -3410,9 +3414,9 @@ var require_legacy_streams = __commonJS({
|
|
|
3410
3414
|
}
|
|
3411
3415
|
});
|
|
3412
3416
|
|
|
3413
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3417
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
3414
3418
|
var require_clone = __commonJS({
|
|
3415
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3419
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
3416
3420
|
"use strict";
|
|
3417
3421
|
module2.exports = clone;
|
|
3418
3422
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -3433,9 +3437,9 @@ var require_clone = __commonJS({
|
|
|
3433
3437
|
}
|
|
3434
3438
|
});
|
|
3435
3439
|
|
|
3436
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3440
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
3437
3441
|
var require_graceful_fs = __commonJS({
|
|
3438
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3442
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
3439
3443
|
var fs = require("fs");
|
|
3440
3444
|
var polyfills = require_polyfills();
|
|
3441
3445
|
var legacy = require_legacy_streams();
|
|
@@ -5057,988 +5061,180 @@ var require_symlink_paths = __commonJS({
|
|
|
5057
5061
|
err2.message = err2.message.replace("lstat", "ensureSymlink");
|
|
5058
5062
|
return callback(err2);
|
|
5059
5063
|
}
|
|
5060
|
-
return callback(null, {
|
|
5061
|
-
"toCwd": srcpath,
|
|
5062
|
-
"toDst": path.relative(dstdir, srcpath)
|
|
5063
|
-
});
|
|
5064
|
-
});
|
|
5065
|
-
}
|
|
5066
|
-
});
|
|
5067
|
-
}
|
|
5068
|
-
}
|
|
5069
|
-
function symlinkPathsSync(srcpath, dstpath) {
|
|
5070
|
-
let exists;
|
|
5071
|
-
if (path.isAbsolute(srcpath)) {
|
|
5072
|
-
exists = fs.existsSync(srcpath);
|
|
5073
|
-
if (!exists)
|
|
5074
|
-
throw new Error("absolute srcpath does not exist");
|
|
5075
|
-
return {
|
|
5076
|
-
"toCwd": srcpath,
|
|
5077
|
-
"toDst": srcpath
|
|
5078
|
-
};
|
|
5079
|
-
} else {
|
|
5080
|
-
const dstdir = path.dirname(dstpath);
|
|
5081
|
-
const relativeToDst = path.join(dstdir, srcpath);
|
|
5082
|
-
exists = fs.existsSync(relativeToDst);
|
|
5083
|
-
if (exists) {
|
|
5084
|
-
return {
|
|
5085
|
-
"toCwd": relativeToDst,
|
|
5086
|
-
"toDst": srcpath
|
|
5087
|
-
};
|
|
5088
|
-
} else {
|
|
5089
|
-
exists = fs.existsSync(srcpath);
|
|
5090
|
-
if (!exists)
|
|
5091
|
-
throw new Error("relative srcpath does not exist");
|
|
5092
|
-
return {
|
|
5093
|
-
"toCwd": srcpath,
|
|
5094
|
-
"toDst": path.relative(dstdir, srcpath)
|
|
5095
|
-
};
|
|
5096
|
-
}
|
|
5097
|
-
}
|
|
5098
|
-
}
|
|
5099
|
-
module2.exports = {
|
|
5100
|
-
symlinkPaths,
|
|
5101
|
-
symlinkPathsSync
|
|
5102
|
-
};
|
|
5103
|
-
}
|
|
5104
|
-
});
|
|
5105
|
-
|
|
5106
|
-
// ../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
5107
|
-
var require_symlink_type = __commonJS({
|
|
5108
|
-
"../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
|
|
5109
|
-
"use strict";
|
|
5110
|
-
var fs = require_graceful_fs();
|
|
5111
|
-
function symlinkType(srcpath, type, callback) {
|
|
5112
|
-
callback = typeof type === "function" ? type : callback;
|
|
5113
|
-
type = typeof type === "function" ? false : type;
|
|
5114
|
-
if (type)
|
|
5115
|
-
return callback(null, type);
|
|
5116
|
-
fs.lstat(srcpath, (err, stats) => {
|
|
5117
|
-
if (err)
|
|
5118
|
-
return callback(null, "file");
|
|
5119
|
-
type = stats && stats.isDirectory() ? "dir" : "file";
|
|
5120
|
-
callback(null, type);
|
|
5121
|
-
});
|
|
5122
|
-
}
|
|
5123
|
-
function symlinkTypeSync(srcpath, type) {
|
|
5124
|
-
let stats;
|
|
5125
|
-
if (type)
|
|
5126
|
-
return type;
|
|
5127
|
-
try {
|
|
5128
|
-
stats = fs.lstatSync(srcpath);
|
|
5129
|
-
} catch (e) {
|
|
5130
|
-
return "file";
|
|
5131
|
-
}
|
|
5132
|
-
return stats && stats.isDirectory() ? "dir" : "file";
|
|
5133
|
-
}
|
|
5134
|
-
module2.exports = {
|
|
5135
|
-
symlinkType,
|
|
5136
|
-
symlinkTypeSync
|
|
5137
|
-
};
|
|
5138
|
-
}
|
|
5139
|
-
});
|
|
5140
|
-
|
|
5141
|
-
// ../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink.js
|
|
5142
|
-
var require_symlink = __commonJS({
|
|
5143
|
-
"../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
5144
|
-
"use strict";
|
|
5145
|
-
var u = require_universalify().fromCallback;
|
|
5146
|
-
var path = require("path");
|
|
5147
|
-
var fs = require_graceful_fs();
|
|
5148
|
-
var _mkdirs = require_mkdirs2();
|
|
5149
|
-
var mkdirs = _mkdirs.mkdirs;
|
|
5150
|
-
var mkdirsSync = _mkdirs.mkdirsSync;
|
|
5151
|
-
var _symlinkPaths = require_symlink_paths();
|
|
5152
|
-
var symlinkPaths = _symlinkPaths.symlinkPaths;
|
|
5153
|
-
var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
|
|
5154
|
-
var _symlinkType = require_symlink_type();
|
|
5155
|
-
var symlinkType = _symlinkType.symlinkType;
|
|
5156
|
-
var symlinkTypeSync = _symlinkType.symlinkTypeSync;
|
|
5157
|
-
var pathExists3 = require_path_exists().pathExists;
|
|
5158
|
-
function createSymlink(srcpath, dstpath, type, callback) {
|
|
5159
|
-
callback = typeof type === "function" ? type : callback;
|
|
5160
|
-
type = typeof type === "function" ? false : type;
|
|
5161
|
-
pathExists3(dstpath, (err, destinationExists) => {
|
|
5162
|
-
if (err)
|
|
5163
|
-
return callback(err);
|
|
5164
|
-
if (destinationExists)
|
|
5165
|
-
return callback(null);
|
|
5166
|
-
symlinkPaths(srcpath, dstpath, (err2, relative2) => {
|
|
5167
|
-
if (err2)
|
|
5168
|
-
return callback(err2);
|
|
5169
|
-
srcpath = relative2.toDst;
|
|
5170
|
-
symlinkType(relative2.toCwd, type, (err3, type2) => {
|
|
5171
|
-
if (err3)
|
|
5172
|
-
return callback(err3);
|
|
5173
|
-
const dir = path.dirname(dstpath);
|
|
5174
|
-
pathExists3(dir, (err4, dirExists) => {
|
|
5175
|
-
if (err4)
|
|
5176
|
-
return callback(err4);
|
|
5177
|
-
if (dirExists)
|
|
5178
|
-
return fs.symlink(srcpath, dstpath, type2, callback);
|
|
5179
|
-
mkdirs(dir, (err5) => {
|
|
5180
|
-
if (err5)
|
|
5181
|
-
return callback(err5);
|
|
5182
|
-
fs.symlink(srcpath, dstpath, type2, callback);
|
|
5183
|
-
});
|
|
5184
|
-
});
|
|
5185
|
-
});
|
|
5186
|
-
});
|
|
5187
|
-
});
|
|
5188
|
-
}
|
|
5189
|
-
function createSymlinkSync(srcpath, dstpath, type) {
|
|
5190
|
-
const destinationExists = fs.existsSync(dstpath);
|
|
5191
|
-
if (destinationExists)
|
|
5192
|
-
return void 0;
|
|
5193
|
-
const relative2 = symlinkPathsSync(srcpath, dstpath);
|
|
5194
|
-
srcpath = relative2.toDst;
|
|
5195
|
-
type = symlinkTypeSync(relative2.toCwd, type);
|
|
5196
|
-
const dir = path.dirname(dstpath);
|
|
5197
|
-
const exists = fs.existsSync(dir);
|
|
5198
|
-
if (exists)
|
|
5199
|
-
return fs.symlinkSync(srcpath, dstpath, type);
|
|
5200
|
-
mkdirsSync(dir);
|
|
5201
|
-
return fs.symlinkSync(srcpath, dstpath, type);
|
|
5202
|
-
}
|
|
5203
|
-
module2.exports = {
|
|
5204
|
-
createSymlink: u(createSymlink),
|
|
5205
|
-
createSymlinkSync
|
|
5206
|
-
};
|
|
5207
|
-
}
|
|
5208
|
-
});
|
|
5209
|
-
|
|
5210
|
-
// ../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/index.js
|
|
5211
|
-
var require_ensure = __commonJS({
|
|
5212
|
-
"../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
|
|
5213
|
-
"use strict";
|
|
5214
|
-
var file = require_file();
|
|
5215
|
-
var link = require_link();
|
|
5216
|
-
var symlink2 = require_symlink();
|
|
5217
|
-
module2.exports = {
|
|
5218
|
-
// file
|
|
5219
|
-
createFile: file.createFile,
|
|
5220
|
-
createFileSync: file.createFileSync,
|
|
5221
|
-
ensureFile: file.createFile,
|
|
5222
|
-
ensureFileSync: file.createFileSync,
|
|
5223
|
-
// link
|
|
5224
|
-
createLink: link.createLink,
|
|
5225
|
-
createLinkSync: link.createLinkSync,
|
|
5226
|
-
ensureLink: link.createLink,
|
|
5227
|
-
ensureLinkSync: link.createLinkSync,
|
|
5228
|
-
// symlink
|
|
5229
|
-
createSymlink: symlink2.createSymlink,
|
|
5230
|
-
createSymlinkSync: symlink2.createSymlinkSync,
|
|
5231
|
-
ensureSymlink: symlink2.createSymlink,
|
|
5232
|
-
ensureSymlinkSync: symlink2.createSymlinkSync
|
|
5233
|
-
};
|
|
5234
|
-
}
|
|
5235
|
-
});
|
|
5236
|
-
|
|
5237
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
5238
|
-
var require_polyfills2 = __commonJS({
|
|
5239
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
5240
|
-
var constants = require("constants");
|
|
5241
|
-
var origCwd = process.cwd;
|
|
5242
|
-
var cwd = null;
|
|
5243
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
5244
|
-
process.cwd = function() {
|
|
5245
|
-
if (!cwd)
|
|
5246
|
-
cwd = origCwd.call(process);
|
|
5247
|
-
return cwd;
|
|
5248
|
-
};
|
|
5249
|
-
try {
|
|
5250
|
-
process.cwd();
|
|
5251
|
-
} catch (er) {
|
|
5252
|
-
}
|
|
5253
|
-
if (typeof process.chdir === "function") {
|
|
5254
|
-
chdir = process.chdir;
|
|
5255
|
-
process.chdir = function(d) {
|
|
5256
|
-
cwd = null;
|
|
5257
|
-
chdir.call(process, d);
|
|
5258
|
-
};
|
|
5259
|
-
if (Object.setPrototypeOf)
|
|
5260
|
-
Object.setPrototypeOf(process.chdir, chdir);
|
|
5261
|
-
}
|
|
5262
|
-
var chdir;
|
|
5263
|
-
module2.exports = patch;
|
|
5264
|
-
function patch(fs) {
|
|
5265
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
5266
|
-
patchLchmod(fs);
|
|
5267
|
-
}
|
|
5268
|
-
if (!fs.lutimes) {
|
|
5269
|
-
patchLutimes(fs);
|
|
5270
|
-
}
|
|
5271
|
-
fs.chown = chownFix(fs.chown);
|
|
5272
|
-
fs.fchown = chownFix(fs.fchown);
|
|
5273
|
-
fs.lchown = chownFix(fs.lchown);
|
|
5274
|
-
fs.chmod = chmodFix(fs.chmod);
|
|
5275
|
-
fs.fchmod = chmodFix(fs.fchmod);
|
|
5276
|
-
fs.lchmod = chmodFix(fs.lchmod);
|
|
5277
|
-
fs.chownSync = chownFixSync(fs.chownSync);
|
|
5278
|
-
fs.fchownSync = chownFixSync(fs.fchownSync);
|
|
5279
|
-
fs.lchownSync = chownFixSync(fs.lchownSync);
|
|
5280
|
-
fs.chmodSync = chmodFixSync(fs.chmodSync);
|
|
5281
|
-
fs.fchmodSync = chmodFixSync(fs.fchmodSync);
|
|
5282
|
-
fs.lchmodSync = chmodFixSync(fs.lchmodSync);
|
|
5283
|
-
fs.stat = statFix(fs.stat);
|
|
5284
|
-
fs.fstat = statFix(fs.fstat);
|
|
5285
|
-
fs.lstat = statFix(fs.lstat);
|
|
5286
|
-
fs.statSync = statFixSync(fs.statSync);
|
|
5287
|
-
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
5288
|
-
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
5289
|
-
if (fs.chmod && !fs.lchmod) {
|
|
5290
|
-
fs.lchmod = function(path, mode, cb) {
|
|
5291
|
-
if (cb)
|
|
5292
|
-
process.nextTick(cb);
|
|
5293
|
-
};
|
|
5294
|
-
fs.lchmodSync = function() {
|
|
5295
|
-
};
|
|
5296
|
-
}
|
|
5297
|
-
if (fs.chown && !fs.lchown) {
|
|
5298
|
-
fs.lchown = function(path, uid, gid, cb) {
|
|
5299
|
-
if (cb)
|
|
5300
|
-
process.nextTick(cb);
|
|
5301
|
-
};
|
|
5302
|
-
fs.lchownSync = function() {
|
|
5303
|
-
};
|
|
5304
|
-
}
|
|
5305
|
-
if (platform === "win32") {
|
|
5306
|
-
fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
|
|
5307
|
-
function rename(from, to, cb) {
|
|
5308
|
-
var start = Date.now();
|
|
5309
|
-
var backoff = 0;
|
|
5310
|
-
fs$rename(from, to, function CB(er) {
|
|
5311
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
5312
|
-
setTimeout(function() {
|
|
5313
|
-
fs.stat(to, function(stater, st) {
|
|
5314
|
-
if (stater && stater.code === "ENOENT")
|
|
5315
|
-
fs$rename(from, to, CB);
|
|
5316
|
-
else
|
|
5317
|
-
cb(er);
|
|
5318
|
-
});
|
|
5319
|
-
}, backoff);
|
|
5320
|
-
if (backoff < 100)
|
|
5321
|
-
backoff += 10;
|
|
5322
|
-
return;
|
|
5323
|
-
}
|
|
5324
|
-
if (cb)
|
|
5325
|
-
cb(er);
|
|
5326
|
-
});
|
|
5327
|
-
}
|
|
5328
|
-
if (Object.setPrototypeOf)
|
|
5329
|
-
Object.setPrototypeOf(rename, fs$rename);
|
|
5330
|
-
return rename;
|
|
5331
|
-
}(fs.rename);
|
|
5332
|
-
}
|
|
5333
|
-
fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) {
|
|
5334
|
-
function read(fd, buffer, offset, length, position, callback_) {
|
|
5335
|
-
var callback;
|
|
5336
|
-
if (callback_ && typeof callback_ === "function") {
|
|
5337
|
-
var eagCounter = 0;
|
|
5338
|
-
callback = function(er, _, __) {
|
|
5339
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
5340
|
-
eagCounter++;
|
|
5341
|
-
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
5342
|
-
}
|
|
5343
|
-
callback_.apply(this, arguments);
|
|
5344
|
-
};
|
|
5345
|
-
}
|
|
5346
|
-
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
5347
|
-
}
|
|
5348
|
-
if (Object.setPrototypeOf)
|
|
5349
|
-
Object.setPrototypeOf(read, fs$read);
|
|
5350
|
-
return read;
|
|
5351
|
-
}(fs.read);
|
|
5352
|
-
fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) {
|
|
5353
|
-
return function(fd, buffer, offset, length, position) {
|
|
5354
|
-
var eagCounter = 0;
|
|
5355
|
-
while (true) {
|
|
5356
|
-
try {
|
|
5357
|
-
return fs$readSync.call(fs, fd, buffer, offset, length, position);
|
|
5358
|
-
} catch (er) {
|
|
5359
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
5360
|
-
eagCounter++;
|
|
5361
|
-
continue;
|
|
5362
|
-
}
|
|
5363
|
-
throw er;
|
|
5364
|
-
}
|
|
5365
|
-
}
|
|
5366
|
-
};
|
|
5367
|
-
}(fs.readSync);
|
|
5368
|
-
function patchLchmod(fs2) {
|
|
5369
|
-
fs2.lchmod = function(path, mode, callback) {
|
|
5370
|
-
fs2.open(
|
|
5371
|
-
path,
|
|
5372
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
|
5373
|
-
mode,
|
|
5374
|
-
function(err, fd) {
|
|
5375
|
-
if (err) {
|
|
5376
|
-
if (callback)
|
|
5377
|
-
callback(err);
|
|
5378
|
-
return;
|
|
5379
|
-
}
|
|
5380
|
-
fs2.fchmod(fd, mode, function(err2) {
|
|
5381
|
-
fs2.close(fd, function(err22) {
|
|
5382
|
-
if (callback)
|
|
5383
|
-
callback(err2 || err22);
|
|
5384
|
-
});
|
|
5385
|
-
});
|
|
5386
|
-
}
|
|
5387
|
-
);
|
|
5388
|
-
};
|
|
5389
|
-
fs2.lchmodSync = function(path, mode) {
|
|
5390
|
-
var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
5391
|
-
var threw = true;
|
|
5392
|
-
var ret;
|
|
5393
|
-
try {
|
|
5394
|
-
ret = fs2.fchmodSync(fd, mode);
|
|
5395
|
-
threw = false;
|
|
5396
|
-
} finally {
|
|
5397
|
-
if (threw) {
|
|
5398
|
-
try {
|
|
5399
|
-
fs2.closeSync(fd);
|
|
5400
|
-
} catch (er) {
|
|
5401
|
-
}
|
|
5402
|
-
} else {
|
|
5403
|
-
fs2.closeSync(fd);
|
|
5404
|
-
}
|
|
5405
|
-
}
|
|
5406
|
-
return ret;
|
|
5407
|
-
};
|
|
5408
|
-
}
|
|
5409
|
-
function patchLutimes(fs2) {
|
|
5410
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
5411
|
-
fs2.lutimes = function(path, at, mt, cb) {
|
|
5412
|
-
fs2.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
5413
|
-
if (er) {
|
|
5414
|
-
if (cb)
|
|
5415
|
-
cb(er);
|
|
5416
|
-
return;
|
|
5417
|
-
}
|
|
5418
|
-
fs2.futimes(fd, at, mt, function(er2) {
|
|
5419
|
-
fs2.close(fd, function(er22) {
|
|
5420
|
-
if (cb)
|
|
5421
|
-
cb(er2 || er22);
|
|
5422
|
-
});
|
|
5423
|
-
});
|
|
5424
|
-
});
|
|
5425
|
-
};
|
|
5426
|
-
fs2.lutimesSync = function(path, at, mt) {
|
|
5427
|
-
var fd = fs2.openSync(path, constants.O_SYMLINK);
|
|
5428
|
-
var ret;
|
|
5429
|
-
var threw = true;
|
|
5430
|
-
try {
|
|
5431
|
-
ret = fs2.futimesSync(fd, at, mt);
|
|
5432
|
-
threw = false;
|
|
5433
|
-
} finally {
|
|
5434
|
-
if (threw) {
|
|
5435
|
-
try {
|
|
5436
|
-
fs2.closeSync(fd);
|
|
5437
|
-
} catch (er) {
|
|
5438
|
-
}
|
|
5439
|
-
} else {
|
|
5440
|
-
fs2.closeSync(fd);
|
|
5441
|
-
}
|
|
5442
|
-
}
|
|
5443
|
-
return ret;
|
|
5444
|
-
};
|
|
5445
|
-
} else if (fs2.futimes) {
|
|
5446
|
-
fs2.lutimes = function(_a, _b, _c, cb) {
|
|
5447
|
-
if (cb)
|
|
5448
|
-
process.nextTick(cb);
|
|
5449
|
-
};
|
|
5450
|
-
fs2.lutimesSync = function() {
|
|
5451
|
-
};
|
|
5452
|
-
}
|
|
5453
|
-
}
|
|
5454
|
-
function chmodFix(orig) {
|
|
5455
|
-
if (!orig)
|
|
5456
|
-
return orig;
|
|
5457
|
-
return function(target, mode, cb) {
|
|
5458
|
-
return orig.call(fs, target, mode, function(er) {
|
|
5459
|
-
if (chownErOk(er))
|
|
5460
|
-
er = null;
|
|
5461
|
-
if (cb)
|
|
5462
|
-
cb.apply(this, arguments);
|
|
5463
|
-
});
|
|
5464
|
-
};
|
|
5465
|
-
}
|
|
5466
|
-
function chmodFixSync(orig) {
|
|
5467
|
-
if (!orig)
|
|
5468
|
-
return orig;
|
|
5469
|
-
return function(target, mode) {
|
|
5470
|
-
try {
|
|
5471
|
-
return orig.call(fs, target, mode);
|
|
5472
|
-
} catch (er) {
|
|
5473
|
-
if (!chownErOk(er))
|
|
5474
|
-
throw er;
|
|
5475
|
-
}
|
|
5476
|
-
};
|
|
5477
|
-
}
|
|
5478
|
-
function chownFix(orig) {
|
|
5479
|
-
if (!orig)
|
|
5480
|
-
return orig;
|
|
5481
|
-
return function(target, uid, gid, cb) {
|
|
5482
|
-
return orig.call(fs, target, uid, gid, function(er) {
|
|
5483
|
-
if (chownErOk(er))
|
|
5484
|
-
er = null;
|
|
5485
|
-
if (cb)
|
|
5486
|
-
cb.apply(this, arguments);
|
|
5487
|
-
});
|
|
5488
|
-
};
|
|
5489
|
-
}
|
|
5490
|
-
function chownFixSync(orig) {
|
|
5491
|
-
if (!orig)
|
|
5492
|
-
return orig;
|
|
5493
|
-
return function(target, uid, gid) {
|
|
5494
|
-
try {
|
|
5495
|
-
return orig.call(fs, target, uid, gid);
|
|
5496
|
-
} catch (er) {
|
|
5497
|
-
if (!chownErOk(er))
|
|
5498
|
-
throw er;
|
|
5499
|
-
}
|
|
5500
|
-
};
|
|
5501
|
-
}
|
|
5502
|
-
function statFix(orig) {
|
|
5503
|
-
if (!orig)
|
|
5504
|
-
return orig;
|
|
5505
|
-
return function(target, options, cb) {
|
|
5506
|
-
if (typeof options === "function") {
|
|
5507
|
-
cb = options;
|
|
5508
|
-
options = null;
|
|
5509
|
-
}
|
|
5510
|
-
function callback(er, stats) {
|
|
5511
|
-
if (stats) {
|
|
5512
|
-
if (stats.uid < 0)
|
|
5513
|
-
stats.uid += 4294967296;
|
|
5514
|
-
if (stats.gid < 0)
|
|
5515
|
-
stats.gid += 4294967296;
|
|
5516
|
-
}
|
|
5517
|
-
if (cb)
|
|
5518
|
-
cb.apply(this, arguments);
|
|
5519
|
-
}
|
|
5520
|
-
return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
|
|
5521
|
-
};
|
|
5522
|
-
}
|
|
5523
|
-
function statFixSync(orig) {
|
|
5524
|
-
if (!orig)
|
|
5525
|
-
return orig;
|
|
5526
|
-
return function(target, options) {
|
|
5527
|
-
var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
|
|
5528
|
-
if (stats) {
|
|
5529
|
-
if (stats.uid < 0)
|
|
5530
|
-
stats.uid += 4294967296;
|
|
5531
|
-
if (stats.gid < 0)
|
|
5532
|
-
stats.gid += 4294967296;
|
|
5533
|
-
}
|
|
5534
|
-
return stats;
|
|
5535
|
-
};
|
|
5536
|
-
}
|
|
5537
|
-
function chownErOk(er) {
|
|
5538
|
-
if (!er)
|
|
5539
|
-
return true;
|
|
5540
|
-
if (er.code === "ENOSYS")
|
|
5541
|
-
return true;
|
|
5542
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
5543
|
-
if (nonroot) {
|
|
5544
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
5545
|
-
return true;
|
|
5546
|
-
}
|
|
5547
|
-
return false;
|
|
5548
|
-
}
|
|
5549
|
-
}
|
|
5550
|
-
}
|
|
5551
|
-
});
|
|
5552
|
-
|
|
5553
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
5554
|
-
var require_legacy_streams2 = __commonJS({
|
|
5555
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
5556
|
-
var Stream = require("stream").Stream;
|
|
5557
|
-
module2.exports = legacy;
|
|
5558
|
-
function legacy(fs) {
|
|
5559
|
-
return {
|
|
5560
|
-
ReadStream,
|
|
5561
|
-
WriteStream
|
|
5562
|
-
};
|
|
5563
|
-
function ReadStream(path, options) {
|
|
5564
|
-
if (!(this instanceof ReadStream))
|
|
5565
|
-
return new ReadStream(path, options);
|
|
5566
|
-
Stream.call(this);
|
|
5567
|
-
var self = this;
|
|
5568
|
-
this.path = path;
|
|
5569
|
-
this.fd = null;
|
|
5570
|
-
this.readable = true;
|
|
5571
|
-
this.paused = false;
|
|
5572
|
-
this.flags = "r";
|
|
5573
|
-
this.mode = 438;
|
|
5574
|
-
this.bufferSize = 64 * 1024;
|
|
5575
|
-
options = options || {};
|
|
5576
|
-
var keys = Object.keys(options);
|
|
5577
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
5578
|
-
var key = keys[index];
|
|
5579
|
-
this[key] = options[key];
|
|
5580
|
-
}
|
|
5581
|
-
if (this.encoding)
|
|
5582
|
-
this.setEncoding(this.encoding);
|
|
5583
|
-
if (this.start !== void 0) {
|
|
5584
|
-
if ("number" !== typeof this.start) {
|
|
5585
|
-
throw TypeError("start must be a Number");
|
|
5586
|
-
}
|
|
5587
|
-
if (this.end === void 0) {
|
|
5588
|
-
this.end = Infinity;
|
|
5589
|
-
} else if ("number" !== typeof this.end) {
|
|
5590
|
-
throw TypeError("end must be a Number");
|
|
5591
|
-
}
|
|
5592
|
-
if (this.start > this.end) {
|
|
5593
|
-
throw new Error("start must be <= end");
|
|
5594
|
-
}
|
|
5595
|
-
this.pos = this.start;
|
|
5596
|
-
}
|
|
5597
|
-
if (this.fd !== null) {
|
|
5598
|
-
process.nextTick(function() {
|
|
5599
|
-
self._read();
|
|
5600
|
-
});
|
|
5601
|
-
return;
|
|
5602
|
-
}
|
|
5603
|
-
fs.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
5604
|
-
if (err) {
|
|
5605
|
-
self.emit("error", err);
|
|
5606
|
-
self.readable = false;
|
|
5607
|
-
return;
|
|
5608
|
-
}
|
|
5609
|
-
self.fd = fd;
|
|
5610
|
-
self.emit("open", fd);
|
|
5611
|
-
self._read();
|
|
5612
|
-
});
|
|
5613
|
-
}
|
|
5614
|
-
function WriteStream(path, options) {
|
|
5615
|
-
if (!(this instanceof WriteStream))
|
|
5616
|
-
return new WriteStream(path, options);
|
|
5617
|
-
Stream.call(this);
|
|
5618
|
-
this.path = path;
|
|
5619
|
-
this.fd = null;
|
|
5620
|
-
this.writable = true;
|
|
5621
|
-
this.flags = "w";
|
|
5622
|
-
this.encoding = "binary";
|
|
5623
|
-
this.mode = 438;
|
|
5624
|
-
this.bytesWritten = 0;
|
|
5625
|
-
options = options || {};
|
|
5626
|
-
var keys = Object.keys(options);
|
|
5627
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
5628
|
-
var key = keys[index];
|
|
5629
|
-
this[key] = options[key];
|
|
5630
|
-
}
|
|
5631
|
-
if (this.start !== void 0) {
|
|
5632
|
-
if ("number" !== typeof this.start) {
|
|
5633
|
-
throw TypeError("start must be a Number");
|
|
5634
|
-
}
|
|
5635
|
-
if (this.start < 0) {
|
|
5636
|
-
throw new Error("start must be >= zero");
|
|
5637
|
-
}
|
|
5638
|
-
this.pos = this.start;
|
|
5639
|
-
}
|
|
5640
|
-
this.busy = false;
|
|
5641
|
-
this._queue = [];
|
|
5642
|
-
if (this.fd === null) {
|
|
5643
|
-
this._open = fs.open;
|
|
5644
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
5645
|
-
this.flush();
|
|
5646
|
-
}
|
|
5647
|
-
}
|
|
5648
|
-
}
|
|
5649
|
-
}
|
|
5650
|
-
});
|
|
5651
|
-
|
|
5652
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
5653
|
-
var require_clone2 = __commonJS({
|
|
5654
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
5655
|
-
"use strict";
|
|
5656
|
-
module2.exports = clone;
|
|
5657
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
5658
|
-
return obj.__proto__;
|
|
5659
|
-
};
|
|
5660
|
-
function clone(obj) {
|
|
5661
|
-
if (obj === null || typeof obj !== "object")
|
|
5662
|
-
return obj;
|
|
5663
|
-
if (obj instanceof Object)
|
|
5664
|
-
var copy2 = { __proto__: getPrototypeOf(obj) };
|
|
5665
|
-
else
|
|
5666
|
-
var copy2 = /* @__PURE__ */ Object.create(null);
|
|
5667
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
5668
|
-
Object.defineProperty(copy2, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
5669
|
-
});
|
|
5670
|
-
return copy2;
|
|
5671
|
-
}
|
|
5672
|
-
}
|
|
5673
|
-
});
|
|
5674
|
-
|
|
5675
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
5676
|
-
var require_graceful_fs2 = __commonJS({
|
|
5677
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
5678
|
-
var fs = require("fs");
|
|
5679
|
-
var polyfills = require_polyfills2();
|
|
5680
|
-
var legacy = require_legacy_streams2();
|
|
5681
|
-
var clone = require_clone2();
|
|
5682
|
-
var util = require("util");
|
|
5683
|
-
var gracefulQueue;
|
|
5684
|
-
var previousSymbol;
|
|
5685
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
5686
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
5687
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
5688
|
-
} else {
|
|
5689
|
-
gracefulQueue = "___graceful-fs.queue";
|
|
5690
|
-
previousSymbol = "___graceful-fs.previous";
|
|
5691
|
-
}
|
|
5692
|
-
function noop() {
|
|
5693
|
-
}
|
|
5694
|
-
function publishQueue(context, queue2) {
|
|
5695
|
-
Object.defineProperty(context, gracefulQueue, {
|
|
5696
|
-
get: function() {
|
|
5697
|
-
return queue2;
|
|
5698
|
-
}
|
|
5699
|
-
});
|
|
5700
|
-
}
|
|
5701
|
-
var debug3 = noop;
|
|
5702
|
-
if (util.debuglog)
|
|
5703
|
-
debug3 = util.debuglog("gfs4");
|
|
5704
|
-
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
5705
|
-
debug3 = function() {
|
|
5706
|
-
var m = util.format.apply(util, arguments);
|
|
5707
|
-
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
5708
|
-
console.error(m);
|
|
5709
|
-
};
|
|
5710
|
-
if (!fs[gracefulQueue]) {
|
|
5711
|
-
queue = global[gracefulQueue] || [];
|
|
5712
|
-
publishQueue(fs, queue);
|
|
5713
|
-
fs.close = function(fs$close) {
|
|
5714
|
-
function close(fd, cb) {
|
|
5715
|
-
return fs$close.call(fs, fd, function(err) {
|
|
5716
|
-
if (!err) {
|
|
5717
|
-
resetQueue();
|
|
5718
|
-
}
|
|
5719
|
-
if (typeof cb === "function")
|
|
5720
|
-
cb.apply(this, arguments);
|
|
5721
|
-
});
|
|
5722
|
-
}
|
|
5723
|
-
Object.defineProperty(close, previousSymbol, {
|
|
5724
|
-
value: fs$close
|
|
5725
|
-
});
|
|
5726
|
-
return close;
|
|
5727
|
-
}(fs.close);
|
|
5728
|
-
fs.closeSync = function(fs$closeSync) {
|
|
5729
|
-
function closeSync(fd) {
|
|
5730
|
-
fs$closeSync.apply(fs, arguments);
|
|
5731
|
-
resetQueue();
|
|
5732
|
-
}
|
|
5733
|
-
Object.defineProperty(closeSync, previousSymbol, {
|
|
5734
|
-
value: fs$closeSync
|
|
5735
|
-
});
|
|
5736
|
-
return closeSync;
|
|
5737
|
-
}(fs.closeSync);
|
|
5738
|
-
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
5739
|
-
process.on("exit", function() {
|
|
5740
|
-
debug3(fs[gracefulQueue]);
|
|
5741
|
-
require("assert").equal(fs[gracefulQueue].length, 0);
|
|
5742
|
-
});
|
|
5743
|
-
}
|
|
5744
|
-
}
|
|
5745
|
-
var queue;
|
|
5746
|
-
if (!global[gracefulQueue]) {
|
|
5747
|
-
publishQueue(global, fs[gracefulQueue]);
|
|
5748
|
-
}
|
|
5749
|
-
module2.exports = patch(clone(fs));
|
|
5750
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
5751
|
-
module2.exports = patch(fs);
|
|
5752
|
-
fs.__patched = true;
|
|
5753
|
-
}
|
|
5754
|
-
function patch(fs2) {
|
|
5755
|
-
polyfills(fs2);
|
|
5756
|
-
fs2.gracefulify = patch;
|
|
5757
|
-
fs2.createReadStream = createReadStream;
|
|
5758
|
-
fs2.createWriteStream = createWriteStream2;
|
|
5759
|
-
var fs$readFile = fs2.readFile;
|
|
5760
|
-
fs2.readFile = readFile3;
|
|
5761
|
-
function readFile3(path, options, cb) {
|
|
5762
|
-
if (typeof options === "function")
|
|
5763
|
-
cb = options, options = null;
|
|
5764
|
-
return go$readFile(path, options, cb);
|
|
5765
|
-
function go$readFile(path2, options2, cb2, startTime) {
|
|
5766
|
-
return fs$readFile(path2, options2, function(err) {
|
|
5767
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5768
|
-
enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5769
|
-
else {
|
|
5770
|
-
if (typeof cb2 === "function")
|
|
5771
|
-
cb2.apply(this, arguments);
|
|
5772
|
-
}
|
|
5773
|
-
});
|
|
5774
|
-
}
|
|
5775
|
-
}
|
|
5776
|
-
var fs$writeFile = fs2.writeFile;
|
|
5777
|
-
fs2.writeFile = writeFile2;
|
|
5778
|
-
function writeFile2(path, data, options, cb) {
|
|
5779
|
-
if (typeof options === "function")
|
|
5780
|
-
cb = options, options = null;
|
|
5781
|
-
return go$writeFile(path, data, options, cb);
|
|
5782
|
-
function go$writeFile(path2, data2, options2, cb2, startTime) {
|
|
5783
|
-
return fs$writeFile(path2, data2, options2, function(err) {
|
|
5784
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5785
|
-
enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5786
|
-
else {
|
|
5787
|
-
if (typeof cb2 === "function")
|
|
5788
|
-
cb2.apply(this, arguments);
|
|
5789
|
-
}
|
|
5790
|
-
});
|
|
5791
|
-
}
|
|
5792
|
-
}
|
|
5793
|
-
var fs$appendFile = fs2.appendFile;
|
|
5794
|
-
if (fs$appendFile)
|
|
5795
|
-
fs2.appendFile = appendFile;
|
|
5796
|
-
function appendFile(path, data, options, cb) {
|
|
5797
|
-
if (typeof options === "function")
|
|
5798
|
-
cb = options, options = null;
|
|
5799
|
-
return go$appendFile(path, data, options, cb);
|
|
5800
|
-
function go$appendFile(path2, data2, options2, cb2, startTime) {
|
|
5801
|
-
return fs$appendFile(path2, data2, options2, function(err) {
|
|
5802
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5803
|
-
enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5804
|
-
else {
|
|
5805
|
-
if (typeof cb2 === "function")
|
|
5806
|
-
cb2.apply(this, arguments);
|
|
5807
|
-
}
|
|
5808
|
-
});
|
|
5809
|
-
}
|
|
5810
|
-
}
|
|
5811
|
-
var fs$copyFile = fs2.copyFile;
|
|
5812
|
-
if (fs$copyFile)
|
|
5813
|
-
fs2.copyFile = copyFile;
|
|
5814
|
-
function copyFile(src, dest, flags, cb) {
|
|
5815
|
-
if (typeof flags === "function") {
|
|
5816
|
-
cb = flags;
|
|
5817
|
-
flags = 0;
|
|
5818
|
-
}
|
|
5819
|
-
return go$copyFile(src, dest, flags, cb);
|
|
5820
|
-
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
5821
|
-
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
5822
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5823
|
-
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5824
|
-
else {
|
|
5825
|
-
if (typeof cb2 === "function")
|
|
5826
|
-
cb2.apply(this, arguments);
|
|
5827
|
-
}
|
|
5828
|
-
});
|
|
5829
|
-
}
|
|
5830
|
-
}
|
|
5831
|
-
var fs$readdir = fs2.readdir;
|
|
5832
|
-
fs2.readdir = readdir2;
|
|
5833
|
-
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
5834
|
-
function readdir2(path, options, cb) {
|
|
5835
|
-
if (typeof options === "function")
|
|
5836
|
-
cb = options, options = null;
|
|
5837
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
|
|
5838
|
-
return fs$readdir(path2, fs$readdirCallback(
|
|
5839
|
-
path2,
|
|
5840
|
-
options2,
|
|
5841
|
-
cb2,
|
|
5842
|
-
startTime
|
|
5843
|
-
));
|
|
5844
|
-
} : function go$readdir2(path2, options2, cb2, startTime) {
|
|
5845
|
-
return fs$readdir(path2, options2, fs$readdirCallback(
|
|
5846
|
-
path2,
|
|
5847
|
-
options2,
|
|
5848
|
-
cb2,
|
|
5849
|
-
startTime
|
|
5850
|
-
));
|
|
5851
|
-
};
|
|
5852
|
-
return go$readdir(path, options, cb);
|
|
5853
|
-
function fs$readdirCallback(path2, options2, cb2, startTime) {
|
|
5854
|
-
return function(err, files) {
|
|
5855
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5856
|
-
enqueue([
|
|
5857
|
-
go$readdir,
|
|
5858
|
-
[path2, options2, cb2],
|
|
5859
|
-
err,
|
|
5860
|
-
startTime || Date.now(),
|
|
5861
|
-
Date.now()
|
|
5862
|
-
]);
|
|
5863
|
-
else {
|
|
5864
|
-
if (files && files.sort)
|
|
5865
|
-
files.sort();
|
|
5866
|
-
if (typeof cb2 === "function")
|
|
5867
|
-
cb2.call(this, err, files);
|
|
5868
|
-
}
|
|
5869
|
-
};
|
|
5870
|
-
}
|
|
5871
|
-
}
|
|
5872
|
-
if (process.version.substr(0, 4) === "v0.8") {
|
|
5873
|
-
var legStreams = legacy(fs2);
|
|
5874
|
-
ReadStream = legStreams.ReadStream;
|
|
5875
|
-
WriteStream = legStreams.WriteStream;
|
|
5876
|
-
}
|
|
5877
|
-
var fs$ReadStream = fs2.ReadStream;
|
|
5878
|
-
if (fs$ReadStream) {
|
|
5879
|
-
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
5880
|
-
ReadStream.prototype.open = ReadStream$open;
|
|
5881
|
-
}
|
|
5882
|
-
var fs$WriteStream = fs2.WriteStream;
|
|
5883
|
-
if (fs$WriteStream) {
|
|
5884
|
-
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
5885
|
-
WriteStream.prototype.open = WriteStream$open;
|
|
5886
|
-
}
|
|
5887
|
-
Object.defineProperty(fs2, "ReadStream", {
|
|
5888
|
-
get: function() {
|
|
5889
|
-
return ReadStream;
|
|
5890
|
-
},
|
|
5891
|
-
set: function(val) {
|
|
5892
|
-
ReadStream = val;
|
|
5893
|
-
},
|
|
5894
|
-
enumerable: true,
|
|
5895
|
-
configurable: true
|
|
5896
|
-
});
|
|
5897
|
-
Object.defineProperty(fs2, "WriteStream", {
|
|
5898
|
-
get: function() {
|
|
5899
|
-
return WriteStream;
|
|
5900
|
-
},
|
|
5901
|
-
set: function(val) {
|
|
5902
|
-
WriteStream = val;
|
|
5903
|
-
},
|
|
5904
|
-
enumerable: true,
|
|
5905
|
-
configurable: true
|
|
5906
|
-
});
|
|
5907
|
-
var FileReadStream = ReadStream;
|
|
5908
|
-
Object.defineProperty(fs2, "FileReadStream", {
|
|
5909
|
-
get: function() {
|
|
5910
|
-
return FileReadStream;
|
|
5911
|
-
},
|
|
5912
|
-
set: function(val) {
|
|
5913
|
-
FileReadStream = val;
|
|
5914
|
-
},
|
|
5915
|
-
enumerable: true,
|
|
5916
|
-
configurable: true
|
|
5917
|
-
});
|
|
5918
|
-
var FileWriteStream = WriteStream;
|
|
5919
|
-
Object.defineProperty(fs2, "FileWriteStream", {
|
|
5920
|
-
get: function() {
|
|
5921
|
-
return FileWriteStream;
|
|
5922
|
-
},
|
|
5923
|
-
set: function(val) {
|
|
5924
|
-
FileWriteStream = val;
|
|
5925
|
-
},
|
|
5926
|
-
enumerable: true,
|
|
5927
|
-
configurable: true
|
|
5928
|
-
});
|
|
5929
|
-
function ReadStream(path, options) {
|
|
5930
|
-
if (this instanceof ReadStream)
|
|
5931
|
-
return fs$ReadStream.apply(this, arguments), this;
|
|
5932
|
-
else
|
|
5933
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
5934
|
-
}
|
|
5935
|
-
function ReadStream$open() {
|
|
5936
|
-
var that = this;
|
|
5937
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
5938
|
-
if (err) {
|
|
5939
|
-
if (that.autoClose)
|
|
5940
|
-
that.destroy();
|
|
5941
|
-
that.emit("error", err);
|
|
5942
|
-
} else {
|
|
5943
|
-
that.fd = fd;
|
|
5944
|
-
that.emit("open", fd);
|
|
5945
|
-
that.read();
|
|
5946
|
-
}
|
|
5947
|
-
});
|
|
5948
|
-
}
|
|
5949
|
-
function WriteStream(path, options) {
|
|
5950
|
-
if (this instanceof WriteStream)
|
|
5951
|
-
return fs$WriteStream.apply(this, arguments), this;
|
|
5952
|
-
else
|
|
5953
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
5954
|
-
}
|
|
5955
|
-
function WriteStream$open() {
|
|
5956
|
-
var that = this;
|
|
5957
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
5958
|
-
if (err) {
|
|
5959
|
-
that.destroy();
|
|
5960
|
-
that.emit("error", err);
|
|
5961
|
-
} else {
|
|
5962
|
-
that.fd = fd;
|
|
5963
|
-
that.emit("open", fd);
|
|
5064
|
+
return callback(null, {
|
|
5065
|
+
"toCwd": srcpath,
|
|
5066
|
+
"toDst": path.relative(dstdir, srcpath)
|
|
5067
|
+
});
|
|
5068
|
+
});
|
|
5964
5069
|
}
|
|
5965
5070
|
});
|
|
5966
5071
|
}
|
|
5967
|
-
function createReadStream(path, options) {
|
|
5968
|
-
return new fs2.ReadStream(path, options);
|
|
5969
|
-
}
|
|
5970
|
-
function createWriteStream2(path, options) {
|
|
5971
|
-
return new fs2.WriteStream(path, options);
|
|
5972
|
-
}
|
|
5973
|
-
var fs$open = fs2.open;
|
|
5974
|
-
fs2.open = open;
|
|
5975
|
-
function open(path, flags, mode, cb) {
|
|
5976
|
-
if (typeof mode === "function")
|
|
5977
|
-
cb = mode, mode = null;
|
|
5978
|
-
return go$open(path, flags, mode, cb);
|
|
5979
|
-
function go$open(path2, flags2, mode2, cb2, startTime) {
|
|
5980
|
-
return fs$open(path2, flags2, mode2, function(err, fd) {
|
|
5981
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5982
|
-
enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5983
|
-
else {
|
|
5984
|
-
if (typeof cb2 === "function")
|
|
5985
|
-
cb2.apply(this, arguments);
|
|
5986
|
-
}
|
|
5987
|
-
});
|
|
5988
|
-
}
|
|
5989
|
-
}
|
|
5990
|
-
return fs2;
|
|
5991
|
-
}
|
|
5992
|
-
function enqueue(elem) {
|
|
5993
|
-
debug3("ENQUEUE", elem[0].name, elem[1]);
|
|
5994
|
-
fs[gracefulQueue].push(elem);
|
|
5995
|
-
retry2();
|
|
5996
|
-
}
|
|
5997
|
-
var retryTimer;
|
|
5998
|
-
function resetQueue() {
|
|
5999
|
-
var now = Date.now();
|
|
6000
|
-
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
6001
|
-
if (fs[gracefulQueue][i].length > 2) {
|
|
6002
|
-
fs[gracefulQueue][i][3] = now;
|
|
6003
|
-
fs[gracefulQueue][i][4] = now;
|
|
6004
|
-
}
|
|
6005
|
-
}
|
|
6006
|
-
retry2();
|
|
6007
5072
|
}
|
|
6008
|
-
function
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
var lastTime = elem[4];
|
|
6019
|
-
if (startTime === void 0) {
|
|
6020
|
-
debug3("RETRY", fn.name, args);
|
|
6021
|
-
fn.apply(null, args);
|
|
6022
|
-
} else if (Date.now() - startTime >= 6e4) {
|
|
6023
|
-
debug3("TIMEOUT", fn.name, args);
|
|
6024
|
-
var cb = args.pop();
|
|
6025
|
-
if (typeof cb === "function")
|
|
6026
|
-
cb.call(null, err);
|
|
5073
|
+
function symlinkPathsSync(srcpath, dstpath) {
|
|
5074
|
+
let exists;
|
|
5075
|
+
if (path.isAbsolute(srcpath)) {
|
|
5076
|
+
exists = fs.existsSync(srcpath);
|
|
5077
|
+
if (!exists)
|
|
5078
|
+
throw new Error("absolute srcpath does not exist");
|
|
5079
|
+
return {
|
|
5080
|
+
"toCwd": srcpath,
|
|
5081
|
+
"toDst": srcpath
|
|
5082
|
+
};
|
|
6027
5083
|
} else {
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
if (
|
|
6032
|
-
|
|
6033
|
-
|
|
5084
|
+
const dstdir = path.dirname(dstpath);
|
|
5085
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
5086
|
+
exists = fs.existsSync(relativeToDst);
|
|
5087
|
+
if (exists) {
|
|
5088
|
+
return {
|
|
5089
|
+
"toCwd": relativeToDst,
|
|
5090
|
+
"toDst": srcpath
|
|
5091
|
+
};
|
|
6034
5092
|
} else {
|
|
6035
|
-
fs
|
|
5093
|
+
exists = fs.existsSync(srcpath);
|
|
5094
|
+
if (!exists)
|
|
5095
|
+
throw new Error("relative srcpath does not exist");
|
|
5096
|
+
return {
|
|
5097
|
+
"toCwd": srcpath,
|
|
5098
|
+
"toDst": path.relative(dstdir, srcpath)
|
|
5099
|
+
};
|
|
6036
5100
|
}
|
|
6037
5101
|
}
|
|
6038
|
-
|
|
6039
|
-
|
|
5102
|
+
}
|
|
5103
|
+
module2.exports = {
|
|
5104
|
+
symlinkPaths,
|
|
5105
|
+
symlinkPathsSync
|
|
5106
|
+
};
|
|
5107
|
+
}
|
|
5108
|
+
});
|
|
5109
|
+
|
|
5110
|
+
// ../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
5111
|
+
var require_symlink_type = __commonJS({
|
|
5112
|
+
"../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
|
|
5113
|
+
"use strict";
|
|
5114
|
+
var fs = require_graceful_fs();
|
|
5115
|
+
function symlinkType(srcpath, type, callback) {
|
|
5116
|
+
callback = typeof type === "function" ? type : callback;
|
|
5117
|
+
type = typeof type === "function" ? false : type;
|
|
5118
|
+
if (type)
|
|
5119
|
+
return callback(null, type);
|
|
5120
|
+
fs.lstat(srcpath, (err, stats) => {
|
|
5121
|
+
if (err)
|
|
5122
|
+
return callback(null, "file");
|
|
5123
|
+
type = stats && stats.isDirectory() ? "dir" : "file";
|
|
5124
|
+
callback(null, type);
|
|
5125
|
+
});
|
|
5126
|
+
}
|
|
5127
|
+
function symlinkTypeSync(srcpath, type) {
|
|
5128
|
+
let stats;
|
|
5129
|
+
if (type)
|
|
5130
|
+
return type;
|
|
5131
|
+
try {
|
|
5132
|
+
stats = fs.lstatSync(srcpath);
|
|
5133
|
+
} catch (e) {
|
|
5134
|
+
return "file";
|
|
6040
5135
|
}
|
|
5136
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
5137
|
+
}
|
|
5138
|
+
module2.exports = {
|
|
5139
|
+
symlinkType,
|
|
5140
|
+
symlinkTypeSync
|
|
5141
|
+
};
|
|
5142
|
+
}
|
|
5143
|
+
});
|
|
5144
|
+
|
|
5145
|
+
// ../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink.js
|
|
5146
|
+
var require_symlink = __commonJS({
|
|
5147
|
+
"../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
5148
|
+
"use strict";
|
|
5149
|
+
var u = require_universalify().fromCallback;
|
|
5150
|
+
var path = require("path");
|
|
5151
|
+
var fs = require_graceful_fs();
|
|
5152
|
+
var _mkdirs = require_mkdirs2();
|
|
5153
|
+
var mkdirs = _mkdirs.mkdirs;
|
|
5154
|
+
var mkdirsSync = _mkdirs.mkdirsSync;
|
|
5155
|
+
var _symlinkPaths = require_symlink_paths();
|
|
5156
|
+
var symlinkPaths = _symlinkPaths.symlinkPaths;
|
|
5157
|
+
var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
|
|
5158
|
+
var _symlinkType = require_symlink_type();
|
|
5159
|
+
var symlinkType = _symlinkType.symlinkType;
|
|
5160
|
+
var symlinkTypeSync = _symlinkType.symlinkTypeSync;
|
|
5161
|
+
var pathExists3 = require_path_exists().pathExists;
|
|
5162
|
+
function createSymlink(srcpath, dstpath, type, callback) {
|
|
5163
|
+
callback = typeof type === "function" ? type : callback;
|
|
5164
|
+
type = typeof type === "function" ? false : type;
|
|
5165
|
+
pathExists3(dstpath, (err, destinationExists) => {
|
|
5166
|
+
if (err)
|
|
5167
|
+
return callback(err);
|
|
5168
|
+
if (destinationExists)
|
|
5169
|
+
return callback(null);
|
|
5170
|
+
symlinkPaths(srcpath, dstpath, (err2, relative2) => {
|
|
5171
|
+
if (err2)
|
|
5172
|
+
return callback(err2);
|
|
5173
|
+
srcpath = relative2.toDst;
|
|
5174
|
+
symlinkType(relative2.toCwd, type, (err3, type2) => {
|
|
5175
|
+
if (err3)
|
|
5176
|
+
return callback(err3);
|
|
5177
|
+
const dir = path.dirname(dstpath);
|
|
5178
|
+
pathExists3(dir, (err4, dirExists) => {
|
|
5179
|
+
if (err4)
|
|
5180
|
+
return callback(err4);
|
|
5181
|
+
if (dirExists)
|
|
5182
|
+
return fs.symlink(srcpath, dstpath, type2, callback);
|
|
5183
|
+
mkdirs(dir, (err5) => {
|
|
5184
|
+
if (err5)
|
|
5185
|
+
return callback(err5);
|
|
5186
|
+
fs.symlink(srcpath, dstpath, type2, callback);
|
|
5187
|
+
});
|
|
5188
|
+
});
|
|
5189
|
+
});
|
|
5190
|
+
});
|
|
5191
|
+
});
|
|
5192
|
+
}
|
|
5193
|
+
function createSymlinkSync(srcpath, dstpath, type) {
|
|
5194
|
+
const destinationExists = fs.existsSync(dstpath);
|
|
5195
|
+
if (destinationExists)
|
|
5196
|
+
return void 0;
|
|
5197
|
+
const relative2 = symlinkPathsSync(srcpath, dstpath);
|
|
5198
|
+
srcpath = relative2.toDst;
|
|
5199
|
+
type = symlinkTypeSync(relative2.toCwd, type);
|
|
5200
|
+
const dir = path.dirname(dstpath);
|
|
5201
|
+
const exists = fs.existsSync(dir);
|
|
5202
|
+
if (exists)
|
|
5203
|
+
return fs.symlinkSync(srcpath, dstpath, type);
|
|
5204
|
+
mkdirsSync(dir);
|
|
5205
|
+
return fs.symlinkSync(srcpath, dstpath, type);
|
|
6041
5206
|
}
|
|
5207
|
+
module2.exports = {
|
|
5208
|
+
createSymlink: u(createSymlink),
|
|
5209
|
+
createSymlinkSync
|
|
5210
|
+
};
|
|
5211
|
+
}
|
|
5212
|
+
});
|
|
5213
|
+
|
|
5214
|
+
// ../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/index.js
|
|
5215
|
+
var require_ensure = __commonJS({
|
|
5216
|
+
"../../node_modules/.pnpm/fs-extra@7.0.1/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
|
|
5217
|
+
"use strict";
|
|
5218
|
+
var file = require_file();
|
|
5219
|
+
var link = require_link();
|
|
5220
|
+
var symlink2 = require_symlink();
|
|
5221
|
+
module2.exports = {
|
|
5222
|
+
// file
|
|
5223
|
+
createFile: file.createFile,
|
|
5224
|
+
createFileSync: file.createFileSync,
|
|
5225
|
+
ensureFile: file.createFile,
|
|
5226
|
+
ensureFileSync: file.createFileSync,
|
|
5227
|
+
// link
|
|
5228
|
+
createLink: link.createLink,
|
|
5229
|
+
createLinkSync: link.createLinkSync,
|
|
5230
|
+
ensureLink: link.createLink,
|
|
5231
|
+
ensureLinkSync: link.createLinkSync,
|
|
5232
|
+
// symlink
|
|
5233
|
+
createSymlink: symlink2.createSymlink,
|
|
5234
|
+
createSymlinkSync: symlink2.createSymlinkSync,
|
|
5235
|
+
ensureSymlink: symlink2.createSymlink,
|
|
5236
|
+
ensureSymlinkSync: symlink2.createSymlinkSync
|
|
5237
|
+
};
|
|
6042
5238
|
}
|
|
6043
5239
|
});
|
|
6044
5240
|
|
|
@@ -6047,7 +5243,7 @@ var require_jsonfile = __commonJS({
|
|
|
6047
5243
|
"../../node_modules/.pnpm/jsonfile@4.0.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
6048
5244
|
var _fs;
|
|
6049
5245
|
try {
|
|
6050
|
-
_fs =
|
|
5246
|
+
_fs = require_graceful_fs();
|
|
6051
5247
|
} catch (_) {
|
|
6052
5248
|
_fs = require("fs");
|
|
6053
5249
|
}
|
|
@@ -6500,9 +5696,9 @@ var require_lib2 = __commonJS({
|
|
|
6500
5696
|
}
|
|
6501
5697
|
});
|
|
6502
5698
|
|
|
6503
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
5699
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/high-level-opt.js
|
|
6504
5700
|
var require_high_level_opt = __commonJS({
|
|
6505
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
5701
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/high-level-opt.js"(exports, module2) {
|
|
6506
5702
|
"use strict";
|
|
6507
5703
|
var argmap = /* @__PURE__ */ new Map([
|
|
6508
5704
|
["C", "cwd"],
|
|
@@ -8043,17 +7239,17 @@ var require_minizlib = __commonJS({
|
|
|
8043
7239
|
}
|
|
8044
7240
|
});
|
|
8045
7241
|
|
|
8046
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7242
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/normalize-windows-path.js
|
|
8047
7243
|
var require_normalize_windows_path = __commonJS({
|
|
8048
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7244
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/normalize-windows-path.js"(exports, module2) {
|
|
8049
7245
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
8050
7246
|
module2.exports = platform !== "win32" ? (p) => p : (p) => p && p.replace(/\\/g, "/");
|
|
8051
7247
|
}
|
|
8052
7248
|
});
|
|
8053
7249
|
|
|
8054
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7250
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/read-entry.js
|
|
8055
7251
|
var require_read_entry = __commonJS({
|
|
8056
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7252
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/read-entry.js"(exports, module2) {
|
|
8057
7253
|
"use strict";
|
|
8058
7254
|
var { Minipass } = require_minipass();
|
|
8059
7255
|
var normPath = require_normalize_windows_path();
|
|
@@ -8145,9 +7341,9 @@ var require_read_entry = __commonJS({
|
|
|
8145
7341
|
}
|
|
8146
7342
|
});
|
|
8147
7343
|
|
|
8148
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7344
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/types.js
|
|
8149
7345
|
var require_types = __commonJS({
|
|
8150
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7346
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/types.js"(exports) {
|
|
8151
7347
|
"use strict";
|
|
8152
7348
|
exports.name = /* @__PURE__ */ new Map([
|
|
8153
7349
|
["0", "File"],
|
|
@@ -8192,9 +7388,9 @@ var require_types = __commonJS({
|
|
|
8192
7388
|
}
|
|
8193
7389
|
});
|
|
8194
7390
|
|
|
8195
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7391
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/large-numbers.js
|
|
8196
7392
|
var require_large_numbers = __commonJS({
|
|
8197
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7393
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/large-numbers.js"(exports, module2) {
|
|
8198
7394
|
"use strict";
|
|
8199
7395
|
var encode = (num, buf) => {
|
|
8200
7396
|
if (!Number.isSafeInteger(num)) {
|
|
@@ -8282,9 +7478,9 @@ var require_large_numbers = __commonJS({
|
|
|
8282
7478
|
}
|
|
8283
7479
|
});
|
|
8284
7480
|
|
|
8285
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7481
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/header.js
|
|
8286
7482
|
var require_header = __commonJS({
|
|
8287
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7483
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/header.js"(exports, module2) {
|
|
8288
7484
|
"use strict";
|
|
8289
7485
|
var types = require_types();
|
|
8290
7486
|
var pathModule = require("path").posix;
|
|
@@ -8502,9 +7698,9 @@ var require_header = __commonJS({
|
|
|
8502
7698
|
}
|
|
8503
7699
|
});
|
|
8504
7700
|
|
|
8505
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7701
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pax.js
|
|
8506
7702
|
var require_pax = __commonJS({
|
|
8507
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7703
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pax.js"(exports, module2) {
|
|
8508
7704
|
"use strict";
|
|
8509
7705
|
var Header = require_header();
|
|
8510
7706
|
var path = require("path");
|
|
@@ -8603,9 +7799,9 @@ var require_pax = __commonJS({
|
|
|
8603
7799
|
}
|
|
8604
7800
|
});
|
|
8605
7801
|
|
|
8606
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7802
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-trailing-slashes.js
|
|
8607
7803
|
var require_strip_trailing_slashes = __commonJS({
|
|
8608
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7804
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-trailing-slashes.js"(exports, module2) {
|
|
8609
7805
|
module2.exports = (str) => {
|
|
8610
7806
|
let i = str.length - 1;
|
|
8611
7807
|
let slashesStart = -1;
|
|
@@ -8618,9 +7814,9 @@ var require_strip_trailing_slashes = __commonJS({
|
|
|
8618
7814
|
}
|
|
8619
7815
|
});
|
|
8620
7816
|
|
|
8621
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7817
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/warn-mixin.js
|
|
8622
7818
|
var require_warn_mixin = __commonJS({
|
|
8623
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7819
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/warn-mixin.js"(exports, module2) {
|
|
8624
7820
|
"use strict";
|
|
8625
7821
|
module2.exports = (Base) => class extends Base {
|
|
8626
7822
|
warn(code, message, data = {}) {
|
|
@@ -8648,9 +7844,9 @@ var require_warn_mixin = __commonJS({
|
|
|
8648
7844
|
}
|
|
8649
7845
|
});
|
|
8650
7846
|
|
|
8651
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7847
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/winchars.js
|
|
8652
7848
|
var require_winchars = __commonJS({
|
|
8653
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7849
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/winchars.js"(exports, module2) {
|
|
8654
7850
|
"use strict";
|
|
8655
7851
|
var raw = [
|
|
8656
7852
|
"|",
|
|
@@ -8669,9 +7865,9 @@ var require_winchars = __commonJS({
|
|
|
8669
7865
|
}
|
|
8670
7866
|
});
|
|
8671
7867
|
|
|
8672
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7868
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js
|
|
8673
7869
|
var require_strip_absolute_path = __commonJS({
|
|
8674
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7870
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports, module2) {
|
|
8675
7871
|
var { isAbsolute, parse } = require("path").win32;
|
|
8676
7872
|
module2.exports = (path) => {
|
|
8677
7873
|
let r = "";
|
|
@@ -8687,9 +7883,9 @@ var require_strip_absolute_path = __commonJS({
|
|
|
8687
7883
|
}
|
|
8688
7884
|
});
|
|
8689
7885
|
|
|
8690
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7886
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/mode-fix.js
|
|
8691
7887
|
var require_mode_fix = __commonJS({
|
|
8692
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7888
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/mode-fix.js"(exports, module2) {
|
|
8693
7889
|
"use strict";
|
|
8694
7890
|
module2.exports = (mode, isDir, portable) => {
|
|
8695
7891
|
mode &= 4095;
|
|
@@ -8712,9 +7908,9 @@ var require_mode_fix = __commonJS({
|
|
|
8712
7908
|
}
|
|
8713
7909
|
});
|
|
8714
7910
|
|
|
8715
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
7911
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/write-entry.js
|
|
8716
7912
|
var require_write_entry = __commonJS({
|
|
8717
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
7913
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/write-entry.js"(exports, module2) {
|
|
8718
7914
|
"use strict";
|
|
8719
7915
|
var { Minipass } = require_minipass();
|
|
8720
7916
|
var Pax = require_pax();
|
|
@@ -9560,9 +8756,9 @@ var require_yallist = __commonJS({
|
|
|
9560
8756
|
}
|
|
9561
8757
|
});
|
|
9562
8758
|
|
|
9563
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
8759
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pack.js
|
|
9564
8760
|
var require_pack = __commonJS({
|
|
9565
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
8761
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pack.js"(exports, module2) {
|
|
9566
8762
|
"use strict";
|
|
9567
8763
|
var PackJob = class {
|
|
9568
8764
|
constructor(path2, absolute) {
|
|
@@ -10304,9 +9500,9 @@ var require_fs_minipass = __commonJS({
|
|
|
10304
9500
|
}
|
|
10305
9501
|
});
|
|
10306
9502
|
|
|
10307
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
9503
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/parse.js
|
|
10308
9504
|
var require_parse2 = __commonJS({
|
|
10309
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
9505
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/parse.js"(exports, module2) {
|
|
10310
9506
|
"use strict";
|
|
10311
9507
|
var warner = require_warn_mixin();
|
|
10312
9508
|
var Header = require_header();
|
|
@@ -10728,9 +9924,9 @@ var require_parse2 = __commonJS({
|
|
|
10728
9924
|
}
|
|
10729
9925
|
});
|
|
10730
9926
|
|
|
10731
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
9927
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/list.js
|
|
10732
9928
|
var require_list = __commonJS({
|
|
10733
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
9929
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/list.js"(exports, module2) {
|
|
10734
9930
|
"use strict";
|
|
10735
9931
|
var hlo = require_high_level_opt();
|
|
10736
9932
|
var Parser = require_parse2();
|
|
@@ -10842,9 +10038,9 @@ var require_list = __commonJS({
|
|
|
10842
10038
|
}
|
|
10843
10039
|
});
|
|
10844
10040
|
|
|
10845
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
10041
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/create.js
|
|
10846
10042
|
var require_create = __commonJS({
|
|
10847
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
10043
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/create.js"(exports, module2) {
|
|
10848
10044
|
"use strict";
|
|
10849
10045
|
var hlo = require_high_level_opt();
|
|
10850
10046
|
var Pack = require_pack();
|
|
@@ -10936,9 +10132,9 @@ var require_create = __commonJS({
|
|
|
10936
10132
|
}
|
|
10937
10133
|
});
|
|
10938
10134
|
|
|
10939
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
10135
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/replace.js
|
|
10940
10136
|
var require_replace = __commonJS({
|
|
10941
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
10137
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/replace.js"(exports, module2) {
|
|
10942
10138
|
"use strict";
|
|
10943
10139
|
var hlo = require_high_level_opt();
|
|
10944
10140
|
var Pack = require_pack();
|
|
@@ -11152,9 +10348,9 @@ var require_replace = __commonJS({
|
|
|
11152
10348
|
}
|
|
11153
10349
|
});
|
|
11154
10350
|
|
|
11155
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
10351
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/update.js
|
|
11156
10352
|
var require_update = __commonJS({
|
|
11157
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
10353
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/update.js"(exports, module2) {
|
|
11158
10354
|
"use strict";
|
|
11159
10355
|
var hlo = require_high_level_opt();
|
|
11160
10356
|
var r = require_replace();
|
|
@@ -11539,9 +10735,9 @@ var require_chownr = __commonJS({
|
|
|
11539
10735
|
}
|
|
11540
10736
|
});
|
|
11541
10737
|
|
|
11542
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
10738
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/mkdir.js
|
|
11543
10739
|
var require_mkdir = __commonJS({
|
|
11544
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
10740
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/mkdir.js"(exports, module2) {
|
|
11545
10741
|
"use strict";
|
|
11546
10742
|
var mkdirp3 = require_mkdirp();
|
|
11547
10743
|
var fs = require("fs");
|
|
@@ -11731,9 +10927,9 @@ var require_mkdir = __commonJS({
|
|
|
11731
10927
|
}
|
|
11732
10928
|
});
|
|
11733
10929
|
|
|
11734
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
10930
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/normalize-unicode.js
|
|
11735
10931
|
var require_normalize_unicode = __commonJS({
|
|
11736
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
10932
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/normalize-unicode.js"(exports, module2) {
|
|
11737
10933
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
|
11738
10934
|
var { hasOwnProperty } = Object.prototype;
|
|
11739
10935
|
module2.exports = (s) => {
|
|
@@ -11745,9 +10941,9 @@ var require_normalize_unicode = __commonJS({
|
|
|
11745
10941
|
}
|
|
11746
10942
|
});
|
|
11747
10943
|
|
|
11748
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
10944
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js
|
|
11749
10945
|
var require_path_reservations = __commonJS({
|
|
11750
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
10946
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports, module2) {
|
|
11751
10947
|
var assert = require("assert");
|
|
11752
10948
|
var normalize2 = require_normalize_unicode();
|
|
11753
10949
|
var stripSlashes = require_strip_trailing_slashes();
|
|
@@ -11859,9 +11055,9 @@ var require_path_reservations = __commonJS({
|
|
|
11859
11055
|
}
|
|
11860
11056
|
});
|
|
11861
11057
|
|
|
11862
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
11058
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/get-write-flag.js
|
|
11863
11059
|
var require_get_write_flag = __commonJS({
|
|
11864
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
11060
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/get-write-flag.js"(exports, module2) {
|
|
11865
11061
|
var platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
11866
11062
|
var isWindows = platform === "win32";
|
|
11867
11063
|
var fs = global.__FAKE_TESTING_FS__ || require("fs");
|
|
@@ -11873,9 +11069,9 @@ var require_get_write_flag = __commonJS({
|
|
|
11873
11069
|
}
|
|
11874
11070
|
});
|
|
11875
11071
|
|
|
11876
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
11072
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js
|
|
11877
11073
|
var require_unpack = __commonJS({
|
|
11878
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
11074
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js"(exports, module2) {
|
|
11879
11075
|
"use strict";
|
|
11880
11076
|
var assert = require("assert");
|
|
11881
11077
|
var Parser = require_parse2();
|
|
@@ -11918,6 +11114,7 @@ var require_unpack = __commonJS({
|
|
|
11918
11114
|
var getFlag = require_get_write_flag();
|
|
11919
11115
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
11920
11116
|
var isWindows = platform === "win32";
|
|
11117
|
+
var DEFAULT_MAX_DEPTH = 1024;
|
|
11921
11118
|
var unlinkFile = (path2, cb) => {
|
|
11922
11119
|
if (!isWindows) {
|
|
11923
11120
|
return fs.unlink(path2, cb);
|
|
@@ -11996,6 +11193,7 @@ var require_unpack = __commonJS({
|
|
|
11996
11193
|
}
|
|
11997
11194
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
|
11998
11195
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
|
11196
|
+
this.maxDepth = typeof opt.maxDepth === "number" ? opt.maxDepth : DEFAULT_MAX_DEPTH;
|
|
11999
11197
|
this.forceChown = opt.forceChown === true;
|
|
12000
11198
|
this.win32 = !!opt.win32 || isWindows;
|
|
12001
11199
|
this.newer = !!opt.newer;
|
|
@@ -12028,12 +11226,12 @@ var require_unpack = __commonJS({
|
|
|
12028
11226
|
}
|
|
12029
11227
|
}
|
|
12030
11228
|
[CHECKPATH](entry) {
|
|
11229
|
+
const p = normPath(entry.path);
|
|
11230
|
+
const parts = p.split("/");
|
|
12031
11231
|
if (this.strip) {
|
|
12032
|
-
const parts = normPath(entry.path).split("/");
|
|
12033
11232
|
if (parts.length < this.strip) {
|
|
12034
11233
|
return false;
|
|
12035
11234
|
}
|
|
12036
|
-
entry.path = parts.slice(this.strip).join("/");
|
|
12037
11235
|
if (entry.type === "Link") {
|
|
12038
11236
|
const linkparts = normPath(entry.linkpath).split("/");
|
|
12039
11237
|
if (linkparts.length >= this.strip) {
|
|
@@ -12042,10 +11240,19 @@ var require_unpack = __commonJS({
|
|
|
12042
11240
|
return false;
|
|
12043
11241
|
}
|
|
12044
11242
|
}
|
|
11243
|
+
parts.splice(0, this.strip);
|
|
11244
|
+
entry.path = parts.join("/");
|
|
11245
|
+
}
|
|
11246
|
+
if (isFinite(this.maxDepth) && parts.length > this.maxDepth) {
|
|
11247
|
+
this.warn("TAR_ENTRY_ERROR", "path excessively deep", {
|
|
11248
|
+
entry,
|
|
11249
|
+
path: p,
|
|
11250
|
+
depth: parts.length,
|
|
11251
|
+
maxDepth: this.maxDepth
|
|
11252
|
+
});
|
|
11253
|
+
return false;
|
|
12045
11254
|
}
|
|
12046
11255
|
if (!this.preservePaths) {
|
|
12047
|
-
const p = normPath(entry.path);
|
|
12048
|
-
const parts = p.split("/");
|
|
12049
11256
|
if (parts.includes("..") || isWindows && /^[a-z]:\.\.$/i.test(parts[0])) {
|
|
12050
11257
|
this.warn("TAR_ENTRY_ERROR", `path contains '..'`, {
|
|
12051
11258
|
entry,
|
|
@@ -12555,9 +11762,9 @@ var require_unpack = __commonJS({
|
|
|
12555
11762
|
}
|
|
12556
11763
|
});
|
|
12557
11764
|
|
|
12558
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
11765
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/extract.js
|
|
12559
11766
|
var require_extract = __commonJS({
|
|
12560
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
11767
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/extract.js"(exports, module2) {
|
|
12561
11768
|
"use strict";
|
|
12562
11769
|
var hlo = require_high_level_opt();
|
|
12563
11770
|
var Unpack = require_unpack();
|
|
@@ -12640,9 +11847,9 @@ var require_extract = __commonJS({
|
|
|
12640
11847
|
}
|
|
12641
11848
|
});
|
|
12642
11849
|
|
|
12643
|
-
// ../../node_modules/.pnpm/tar@6.2.
|
|
11850
|
+
// ../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/index.js
|
|
12644
11851
|
var require_tar = __commonJS({
|
|
12645
|
-
"../../node_modules/.pnpm/tar@6.2.
|
|
11852
|
+
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/index.js"(exports) {
|
|
12646
11853
|
"use strict";
|
|
12647
11854
|
exports.c = exports.create = require_create();
|
|
12648
11855
|
exports.r = exports.replace = require_replace();
|
|
@@ -14435,9 +13642,9 @@ var require_public_api = __commonJS({
|
|
|
14435
13642
|
}
|
|
14436
13643
|
});
|
|
14437
13644
|
|
|
14438
|
-
// ../../node_modules/.pnpm/node-fetch@2.6.
|
|
13645
|
+
// ../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js
|
|
14439
13646
|
var require_lib4 = __commonJS({
|
|
14440
|
-
"../../node_modules/.pnpm/node-fetch@2.6.
|
|
13647
|
+
"../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js"(exports, module2) {
|
|
14441
13648
|
"use strict";
|
|
14442
13649
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14443
13650
|
function _interopDefault(ex) {
|
|
@@ -15432,11 +14639,6 @@ var require_lib4 = __commonJS({
|
|
|
15432
14639
|
const dest = new URL$1(destination).hostname;
|
|
15433
14640
|
return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
|
|
15434
14641
|
};
|
|
15435
|
-
var isSameProtocol = function isSameProtocol2(destination, original) {
|
|
15436
|
-
const orig = new URL$1(original).protocol;
|
|
15437
|
-
const dest = new URL$1(destination).protocol;
|
|
15438
|
-
return orig === dest;
|
|
15439
|
-
};
|
|
15440
14642
|
function fetch2(url, opts) {
|
|
15441
14643
|
if (!fetch2.Promise) {
|
|
15442
14644
|
throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
|
|
@@ -15452,7 +14654,7 @@ var require_lib4 = __commonJS({
|
|
|
15452
14654
|
let error = new AbortError("The user aborted a request.");
|
|
15453
14655
|
reject(error);
|
|
15454
14656
|
if (request.body && request.body instanceof Stream.Readable) {
|
|
15455
|
-
|
|
14657
|
+
request.body.destroy(error);
|
|
15456
14658
|
}
|
|
15457
14659
|
if (!response || !response.body)
|
|
15458
14660
|
return;
|
|
@@ -15487,29 +14689,8 @@ var require_lib4 = __commonJS({
|
|
|
15487
14689
|
}
|
|
15488
14690
|
req.on("error", function(err) {
|
|
15489
14691
|
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, "system", err));
|
|
15490
|
-
if (response && response.body) {
|
|
15491
|
-
destroyStream(response.body, err);
|
|
15492
|
-
}
|
|
15493
14692
|
finalize();
|
|
15494
14693
|
});
|
|
15495
|
-
fixResponseChunkedTransferBadEnding(req, function(err) {
|
|
15496
|
-
if (signal && signal.aborted) {
|
|
15497
|
-
return;
|
|
15498
|
-
}
|
|
15499
|
-
destroyStream(response.body, err);
|
|
15500
|
-
});
|
|
15501
|
-
if (parseInt(process.version.substring(1)) < 14) {
|
|
15502
|
-
req.on("socket", function(s) {
|
|
15503
|
-
s.addListener("close", function(hadError) {
|
|
15504
|
-
const hasDataListener = s.listenerCount("data") > 0;
|
|
15505
|
-
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
15506
|
-
const err = new Error("Premature close");
|
|
15507
|
-
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
15508
|
-
response.body.emit("error", err);
|
|
15509
|
-
}
|
|
15510
|
-
});
|
|
15511
|
-
});
|
|
15512
|
-
}
|
|
15513
14694
|
req.on("response", function(res) {
|
|
15514
14695
|
clearTimeout(reqTimeout);
|
|
15515
14696
|
const headers = createHeadersLenient(res.headers);
|
|
@@ -15560,7 +14741,7 @@ var require_lib4 = __commonJS({
|
|
|
15560
14741
|
timeout: request.timeout,
|
|
15561
14742
|
size: request.size
|
|
15562
14743
|
};
|
|
15563
|
-
if (!isDomainOrSubdomain(request.url, locationURL)
|
|
14744
|
+
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
|
15564
14745
|
for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) {
|
|
15565
14746
|
requestOpts.headers.delete(name);
|
|
15566
14747
|
}
|
|
@@ -15621,12 +14802,6 @@ var require_lib4 = __commonJS({
|
|
|
15621
14802
|
response = new Response(body, response_options);
|
|
15622
14803
|
resolve(response);
|
|
15623
14804
|
});
|
|
15624
|
-
raw.on("end", function() {
|
|
15625
|
-
if (!response) {
|
|
15626
|
-
response = new Response(body, response_options);
|
|
15627
|
-
resolve(response);
|
|
15628
|
-
}
|
|
15629
|
-
});
|
|
15630
14805
|
return;
|
|
15631
14806
|
}
|
|
15632
14807
|
if (codings == "br" && typeof zlib.createBrotliDecompress === "function") {
|
|
@@ -15641,33 +14816,6 @@ var require_lib4 = __commonJS({
|
|
|
15641
14816
|
writeToStream(req, request);
|
|
15642
14817
|
});
|
|
15643
14818
|
}
|
|
15644
|
-
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
15645
|
-
let socket;
|
|
15646
|
-
request.on("socket", function(s) {
|
|
15647
|
-
socket = s;
|
|
15648
|
-
});
|
|
15649
|
-
request.on("response", function(response) {
|
|
15650
|
-
const headers = response.headers;
|
|
15651
|
-
if (headers["transfer-encoding"] === "chunked" && !headers["content-length"]) {
|
|
15652
|
-
response.once("close", function(hadError) {
|
|
15653
|
-
const hasDataListener = socket.listenerCount("data") > 0;
|
|
15654
|
-
if (hasDataListener && !hadError) {
|
|
15655
|
-
const err = new Error("Premature close");
|
|
15656
|
-
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
15657
|
-
errorCallback(err);
|
|
15658
|
-
}
|
|
15659
|
-
});
|
|
15660
|
-
}
|
|
15661
|
-
});
|
|
15662
|
-
}
|
|
15663
|
-
function destroyStream(stream, err) {
|
|
15664
|
-
if (stream.destroy) {
|
|
15665
|
-
stream.destroy(err);
|
|
15666
|
-
} else {
|
|
15667
|
-
stream.emit("error", err);
|
|
15668
|
-
stream.end();
|
|
15669
|
-
}
|
|
15670
|
-
}
|
|
15671
14819
|
fetch2.isRedirect = function(code) {
|
|
15672
14820
|
return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
|
|
15673
14821
|
};
|
|
@@ -17908,8 +17056,9 @@ var import_yauzl_promise = __toESM(require_lib6());
|
|
|
17908
17056
|
var import_xdg_app_paths = __toESM(require_xdg_app_paths());
|
|
17909
17057
|
var streamPipeline = (0, import_util.promisify)(import_stream.pipeline);
|
|
17910
17058
|
var versionMap = /* @__PURE__ */ new Map([
|
|
17911
|
-
["1.
|
|
17912
|
-
["1.
|
|
17059
|
+
["1.24", "1.24.5"],
|
|
17060
|
+
["1.23", "1.23.11"],
|
|
17061
|
+
["1.22", "1.22.12"],
|
|
17913
17062
|
["1.21", "1.21.13"],
|
|
17914
17063
|
["1.20", "1.20.14"],
|
|
17915
17064
|
["1.19", "1.19.13"],
|
|
@@ -18207,7 +17356,7 @@ function parseGoModVersion(content) {
|
|
|
18207
17356
|
);
|
|
18208
17357
|
const toolchain = toolchainMatches ? toolchainMatches[1] : void 0;
|
|
18209
17358
|
if (major >= GO_MIN_MAJOR_VERSION && minor >= GO_MIN_MINOR_VERSION) {
|
|
18210
|
-
if (patch) {
|
|
17359
|
+
if (patch || patch === 0) {
|
|
18211
17360
|
return {
|
|
18212
17361
|
go: `${major}.${minor}.${patch}`,
|
|
18213
17362
|
toolchain
|