pnpm 7.1.7 → 7.1.8
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/node_modules/.modules.yaml +2 -2
- package/dist/node_modules/.pnpm/lock.yaml +11 -11
- package/dist/node_modules/socks-proxy-agent/dist/index.js +3 -3
- package/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/socks-proxy-agent/package.json +25 -21
- package/dist/pnpm.cjs +134 -89
- package/dist/pnpx.cjs +133 -88
- package/package.json +18 -18
package/dist/pnpm.cjs
CHANGED
|
@@ -3182,7 +3182,7 @@ var require_lib4 = __commonJS({
|
|
|
3182
3182
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3183
3183
|
var defaultManifest = {
|
|
3184
3184
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3185
|
-
version: "7.1.
|
|
3185
|
+
version: "7.1.8" != null && true ? "7.1.8" : "0.0.0"
|
|
3186
3186
|
};
|
|
3187
3187
|
var pkgJson;
|
|
3188
3188
|
if (require.main == null) {
|
|
@@ -40769,22 +40769,34 @@ var require_reportUpdateCheck = __commonJS({
|
|
|
40769
40769
|
var Rx = __importStar2(require_cjs());
|
|
40770
40770
|
var operators_1 = require_operators();
|
|
40771
40771
|
var semver_12 = __importDefault(require_semver2());
|
|
40772
|
-
exports2.default = (log
|
|
40773
|
-
|
|
40774
|
-
|
|
40775
|
-
|
|
40772
|
+
exports2.default = (log$, opts) => {
|
|
40773
|
+
return log$.pipe((0, operators_1.take)(1), (0, operators_1.filter)((log2) => semver_12.default.gt(log2.latestVersion, log2.currentVersion)), (0, operators_1.map)((log2) => {
|
|
40774
|
+
const updateCommand = renderUpdateCommand({
|
|
40775
|
+
latestVersion: log2.latestVersion,
|
|
40776
|
+
env: opts.env
|
|
40777
|
+
});
|
|
40778
|
+
return Rx.of({
|
|
40779
|
+
msg: (0, boxen_1.default)(`Update available! ${chalk_1.default.red(log2.currentVersion)} \u2192 ${chalk_1.default.green(log2.latestVersion)}.
|
|
40776
40780
|
${chalk_1.default.magenta("Changelog:")} https://github.com/pnpm/pnpm/releases/tag/v${log2.latestVersion}
|
|
40777
|
-
Run ${chalk_1.default.magenta(
|
|
40781
|
+
Run "${chalk_1.default.magenta(updateCommand)}" to update.
|
|
40778
40782
|
|
|
40779
40783
|
Follow ${chalk_1.default.magenta("@pnpmjs")} for updates: https://twitter.com/pnpmjs`, {
|
|
40780
|
-
|
|
40781
|
-
|
|
40782
|
-
|
|
40783
|
-
|
|
40784
|
-
|
|
40785
|
-
|
|
40786
|
-
|
|
40784
|
+
padding: 1,
|
|
40785
|
+
margin: 1,
|
|
40786
|
+
align: "center",
|
|
40787
|
+
borderColor: "yellow",
|
|
40788
|
+
borderStyle: "round"
|
|
40789
|
+
})
|
|
40790
|
+
});
|
|
40791
|
+
}));
|
|
40787
40792
|
};
|
|
40793
|
+
function renderUpdateCommand(opts) {
|
|
40794
|
+
if (opts.env.COREPACK_ROOT) {
|
|
40795
|
+
return `corepack prepare pnpm@${opts.latestVersion} --activate`;
|
|
40796
|
+
}
|
|
40797
|
+
const pkgName = process["pkg"] != null ? "@pnpm/exe" : "pnpm";
|
|
40798
|
+
return `pnpm add -g ${pkgName}`;
|
|
40799
|
+
}
|
|
40788
40800
|
}
|
|
40789
40801
|
});
|
|
40790
40802
|
|
|
@@ -40867,7 +40879,7 @@ var require_reporterForClient = __commonJS({
|
|
|
40867
40879
|
(0, reportSkippedOptionalDependencies_1.default)(log$.skippedOptionalDependency, { cwd }),
|
|
40868
40880
|
(0, reportHooks_1.default)(log$.hook, { cwd, isRecursive: opts.isRecursive }),
|
|
40869
40881
|
(0, reportContext_1.default)(log$, { cwd }),
|
|
40870
|
-
(0, reportUpdateCheck_1.default)(log$.updateCheck)
|
|
40882
|
+
(0, reportUpdateCheck_1.default)(log$.updateCheck, opts)
|
|
40871
40883
|
];
|
|
40872
40884
|
const logLevelNumber = reportMisc_1.LOG_LEVEL_NUMBER[opts.logLevel ?? "info"] ?? reportMisc_1.LOG_LEVEL_NUMBER["info"];
|
|
40873
40885
|
if (logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.warn) {
|
|
@@ -66598,6 +66610,9 @@ var require_addFilesFromDir = __commonJS({
|
|
|
66598
66610
|
async function default_1(cafs, dirname, manifest) {
|
|
66599
66611
|
const index = {};
|
|
66600
66612
|
await _retrieveFileIntegrities(cafs, dirname, dirname, index, manifest);
|
|
66613
|
+
if (manifest && !index["package.json"]) {
|
|
66614
|
+
manifest.resolve(void 0);
|
|
66615
|
+
}
|
|
66601
66616
|
return index;
|
|
66602
66617
|
}
|
|
66603
66618
|
exports2.default = default_1;
|
|
@@ -71394,6 +71409,9 @@ var require_addFilesFromTarball = __commonJS({
|
|
|
71394
71409
|
extract.on("error", reject2);
|
|
71395
71410
|
stream.on("error", reject2).pipe((0, decompress_maybe_1.default)()).on("error", reject2).pipe(extract);
|
|
71396
71411
|
});
|
|
71412
|
+
if (!filesIndex["package.json"] && manifest != null) {
|
|
71413
|
+
manifest.resolve(void 0);
|
|
71414
|
+
}
|
|
71397
71415
|
return filesIndex;
|
|
71398
71416
|
}
|
|
71399
71417
|
exports2.default = default_1;
|
|
@@ -86066,9 +86084,9 @@ var require_checkForUpdates = __commonJS({
|
|
|
86066
86084
|
}
|
|
86067
86085
|
});
|
|
86068
86086
|
|
|
86069
|
-
// ../../node_modules/.pnpm/rfc4648@1.5.
|
|
86087
|
+
// ../../node_modules/.pnpm/rfc4648@1.5.2/node_modules/rfc4648/lib/index.js
|
|
86070
86088
|
var require_lib51 = __commonJS({
|
|
86071
|
-
"../../node_modules/.pnpm/rfc4648@1.5.
|
|
86089
|
+
"../../node_modules/.pnpm/rfc4648@1.5.2/node_modules/rfc4648/lib/index.js"(exports2) {
|
|
86072
86090
|
"use strict";
|
|
86073
86091
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
86074
86092
|
function parse(string, encoding, opts) {
|
|
@@ -87522,38 +87540,24 @@ var require_read = __commonJS({
|
|
|
87522
87540
|
hadConflicts: false
|
|
87523
87541
|
};
|
|
87524
87542
|
}
|
|
87525
|
-
let
|
|
87543
|
+
let lockfileFile;
|
|
87526
87544
|
let hadConflicts;
|
|
87527
87545
|
try {
|
|
87528
|
-
|
|
87546
|
+
lockfileFile = js_yaml_1.default.load(lockfileRawContent);
|
|
87529
87547
|
hadConflicts = false;
|
|
87530
87548
|
} catch (err) {
|
|
87531
87549
|
if (!opts.autofixMergeConflicts || !(0, gitMergeFile_1.isDiff)(lockfileRawContent)) {
|
|
87532
87550
|
throw new error_1.default("BROKEN_LOCKFILE", `The lockfile at "${lockfilePath}" is broken: ${err.message}`);
|
|
87533
87551
|
}
|
|
87534
87552
|
hadConflicts = true;
|
|
87535
|
-
|
|
87553
|
+
lockfileFile = (0, gitMergeFile_1.autofixMergeConflicts)(lockfileRawContent);
|
|
87536
87554
|
logger_1.default.info({
|
|
87537
87555
|
message: `Merge conflict detected in ${constants_1.WANTED_LOCKFILE} and successfully merged`,
|
|
87538
87556
|
prefix
|
|
87539
87557
|
});
|
|
87540
87558
|
}
|
|
87541
|
-
if (
|
|
87542
|
-
lockfile
|
|
87543
|
-
".": {
|
|
87544
|
-
specifiers: lockfile["specifiers"],
|
|
87545
|
-
dependenciesMeta: lockfile["dependenciesMeta"]
|
|
87546
|
-
}
|
|
87547
|
-
};
|
|
87548
|
-
delete lockfile.specifiers;
|
|
87549
|
-
for (const depType of types_1.DEPENDENCIES_FIELDS) {
|
|
87550
|
-
if (lockfile[depType] != null) {
|
|
87551
|
-
lockfile.importers["."][depType] = lockfile[depType];
|
|
87552
|
-
delete lockfile[depType];
|
|
87553
|
-
}
|
|
87554
|
-
}
|
|
87555
|
-
}
|
|
87556
|
-
if (lockfile) {
|
|
87559
|
+
if (lockfileFile) {
|
|
87560
|
+
const lockfile = convertFromLockfileFileMutable(lockfileFile);
|
|
87557
87561
|
const lockfileSemver = (0, comver_to_semver_1.default)((lockfile.lockfileVersion ?? 0).toString());
|
|
87558
87562
|
if (typeof opts.wantedVersion !== "number" || semver_12.default.major(lockfileSemver) === semver_12.default.major((0, comver_to_semver_1.default)(opts.wantedVersion.toString()))) {
|
|
87559
87563
|
if (typeof opts.wantedVersion === "number" && semver_12.default.gt(lockfileSemver, (0, comver_to_semver_1.default)(opts.wantedVersion.toString()))) {
|
|
@@ -87588,6 +87592,24 @@ var require_read = __commonJS({
|
|
|
87588
87592
|
};
|
|
87589
87593
|
}
|
|
87590
87594
|
exports2.createLockfileObject = createLockfileObject;
|
|
87595
|
+
function convertFromLockfileFileMutable(lockfileFile) {
|
|
87596
|
+
if (typeof lockfileFile?.["specifiers"] !== "undefined") {
|
|
87597
|
+
lockfileFile.importers = {
|
|
87598
|
+
".": {
|
|
87599
|
+
specifiers: lockfileFile["specifiers"],
|
|
87600
|
+
dependenciesMeta: lockfileFile["dependenciesMeta"]
|
|
87601
|
+
}
|
|
87602
|
+
};
|
|
87603
|
+
delete lockfileFile.specifiers;
|
|
87604
|
+
for (const depType of types_1.DEPENDENCIES_FIELDS) {
|
|
87605
|
+
if (lockfileFile[depType] != null) {
|
|
87606
|
+
lockfileFile.importers["."][depType] = lockfileFile[depType];
|
|
87607
|
+
delete lockfileFile[depType];
|
|
87608
|
+
}
|
|
87609
|
+
}
|
|
87610
|
+
}
|
|
87611
|
+
return lockfileFile;
|
|
87612
|
+
}
|
|
87591
87613
|
}
|
|
87592
87614
|
});
|
|
87593
87615
|
|
|
@@ -91713,6 +91735,8 @@ var require_packageRequester = __commonJS({
|
|
|
91713
91735
|
const result2 = ctx.fetchingLocker.get(opts.pkg.id);
|
|
91714
91736
|
if (opts.fetchRawManifest && result2.bundledManifest == null) {
|
|
91715
91737
|
result2.bundledManifest = removeKeyOnFail(result2.files.then(async (filesResult) => {
|
|
91738
|
+
if (!filesResult.filesIndex["package.json"])
|
|
91739
|
+
return void 0;
|
|
91716
91740
|
if (!filesResult.local) {
|
|
91717
91741
|
const { integrity, mode } = filesResult.filesIndex["package.json"];
|
|
91718
91742
|
const manifestPath = ctx.getFilePathByModeInCafs(integrity, mode);
|
|
@@ -91758,7 +91782,7 @@ var require_packageRequester = __commonJS({
|
|
|
91758
91782
|
sideEffects: pkgFilesIndex.sideEffects
|
|
91759
91783
|
});
|
|
91760
91784
|
if (manifest != null) {
|
|
91761
|
-
manifest().then((manifest2) => bundledManifest.resolve(normalizeBundledManifest(manifest2))).catch(bundledManifest.reject);
|
|
91785
|
+
manifest().then((manifest2) => bundledManifest.resolve(manifest2 == null ? manifest2 : normalizeBundledManifest(manifest2))).catch(bundledManifest.reject);
|
|
91762
91786
|
}
|
|
91763
91787
|
finishing.resolve(void 0);
|
|
91764
91788
|
return;
|
|
@@ -91772,7 +91796,7 @@ var require_packageRequester = __commonJS({
|
|
|
91772
91796
|
const priority = (++ctx.requestsQueue["counter"] % ctx.requestsQueue["concurrency"] === 0 ? -1 : 1) * 1e3;
|
|
91773
91797
|
const fetchManifest = opts.fetchRawManifest ? (0, safeDeferredPromise_1.default)() : void 0;
|
|
91774
91798
|
if (fetchManifest != null) {
|
|
91775
|
-
fetchManifest().then((manifest) => bundledManifest.resolve(normalizeBundledManifest(manifest))).catch(bundledManifest.reject);
|
|
91799
|
+
fetchManifest().then((manifest) => bundledManifest.resolve(manifest == null ? manifest : normalizeBundledManifest(manifest))).catch(bundledManifest.reject);
|
|
91776
91800
|
}
|
|
91777
91801
|
const fetchedPackage = await ctx.requestsQueue.add(async () => ctx.fetch(opts.pkg.id, opts.pkg.resolution, {
|
|
91778
91802
|
lockfileDir: opts.lockfileDir,
|
|
@@ -91813,7 +91837,7 @@ var require_packageRequester = __commonJS({
|
|
|
91813
91837
|
});
|
|
91814
91838
|
} else {
|
|
91815
91839
|
bundledManifest.promise.then((manifest) => writeFilesIndexFile(filesIndexFile, {
|
|
91816
|
-
pkg: manifest,
|
|
91840
|
+
pkg: manifest ?? {},
|
|
91817
91841
|
files: integrity
|
|
91818
91842
|
})).catch();
|
|
91819
91843
|
}
|
|
@@ -109800,7 +109824,7 @@ var require_lib88 = __commonJS({
|
|
|
109800
109824
|
];
|
|
109801
109825
|
const pkgs = await Promise.all(pkgNodes.map(async (dep) => ({
|
|
109802
109826
|
location: dep.dir,
|
|
109803
|
-
manifest: await dep.fetchingBundledManifest?.() ?? await (0, read_package_json_1.
|
|
109827
|
+
manifest: await dep.fetchingBundledManifest?.() ?? await (0, read_package_json_1.safeReadPackageFromDir)(dep.dir) ?? {}
|
|
109804
109828
|
})));
|
|
109805
109829
|
await (0, link_bins_1.linkBinsOfPackages)(pkgs, binPath, { extraNodePaths: opts.extraNodePaths });
|
|
109806
109830
|
if (depNode.hasBundledDependencies) {
|
|
@@ -116469,6 +116493,9 @@ var require_resolveDependencies = __commonJS({
|
|
|
116469
116493
|
}
|
|
116470
116494
|
if (pkgResponse.body.isLocal) {
|
|
116471
116495
|
const manifest = pkgResponse.body.manifest ?? await pkgResponse.bundledManifest();
|
|
116496
|
+
if (!manifest) {
|
|
116497
|
+
throw new error_1.default("MISSING_PACKAGE_JSON", `Can't install ${wantedDependency.pref}: Missing package.json file`);
|
|
116498
|
+
}
|
|
116472
116499
|
return {
|
|
116473
116500
|
alias: wantedDependency.alias || manifest.name,
|
|
116474
116501
|
depPath: pkgResponse.body.id,
|
|
@@ -116482,10 +116509,12 @@ var require_resolveDependencies = __commonJS({
|
|
|
116482
116509
|
version: manifest.version
|
|
116483
116510
|
};
|
|
116484
116511
|
}
|
|
116485
|
-
let pkg;
|
|
116486
116512
|
let prepare;
|
|
116487
116513
|
let hasBin;
|
|
116488
|
-
pkg =
|
|
116514
|
+
let pkg = await getManifestFromResponse(pkgResponse, wantedDependency);
|
|
116515
|
+
if (ctx.readPackageHook != null) {
|
|
116516
|
+
pkg = await ctx.readPackageHook(pkg);
|
|
116517
|
+
}
|
|
116489
116518
|
if (!pkg.name) {
|
|
116490
116519
|
throw new error_1.default("MISSING_PACKAGE_NAME", `Can't install ${wantedDependency.pref}: Missing package name`);
|
|
116491
116520
|
}
|
|
@@ -116584,6 +116613,15 @@ var require_resolveDependencies = __commonJS({
|
|
|
116584
116613
|
updated: pkgResponse.body.updated
|
|
116585
116614
|
};
|
|
116586
116615
|
}
|
|
116616
|
+
async function getManifestFromResponse(pkgResponse, wantedDependency) {
|
|
116617
|
+
const pkg = pkgResponse.body.manifest ?? await pkgResponse.bundledManifest();
|
|
116618
|
+
if (pkg)
|
|
116619
|
+
return pkg;
|
|
116620
|
+
return {
|
|
116621
|
+
name: wantedDependency.pref.split("/").pop(),
|
|
116622
|
+
version: "0.0.0"
|
|
116623
|
+
};
|
|
116624
|
+
}
|
|
116587
116625
|
function getMissingPeers(pkg, parentPkgAliases) {
|
|
116588
116626
|
const missingPeers = {};
|
|
116589
116627
|
for (const [peerName, peerVersion] of Object.entries(pkg.peerDependencies ?? {})) {
|
|
@@ -117980,7 +118018,7 @@ var require_lib98 = __commonJS({
|
|
|
117980
118018
|
} else if (depNode.fetchingBundledManifest != null) {
|
|
117981
118019
|
const filesResponse = await depNode.fetchingFiles();
|
|
117982
118020
|
const pkgJson = await depNode.fetchingBundledManifest();
|
|
117983
|
-
depNode.requiresBuild = Boolean(pkgJson
|
|
118021
|
+
depNode.requiresBuild = Boolean(pkgJson?.scripts != null && (Boolean(pkgJson.scripts.preinstall) || Boolean(pkgJson.scripts.install) || Boolean(pkgJson.scripts.postinstall)) || filesResponse.filesIndex["binding.gyp"] || Object.keys(filesResponse.filesIndex).some((filename) => !(filename.match(/^[.]hooks[\\/]/) == null)));
|
|
117984
118022
|
} else {
|
|
117985
118023
|
throw new Error(`Cannot create ${constants_1.WANTED_LOCKFILE} because raw manifest (aka package.json) wasn't fetched for "${depPath}"`);
|
|
117986
118024
|
}
|
|
@@ -150194,9 +150232,9 @@ var require_source6 = __commonJS({
|
|
|
150194
150232
|
}
|
|
150195
150233
|
});
|
|
150196
150234
|
|
|
150197
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150235
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/is-form-data.js
|
|
150198
150236
|
var require_is_form_data = __commonJS({
|
|
150199
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150237
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/is-form-data.js"(exports2) {
|
|
150200
150238
|
"use strict";
|
|
150201
150239
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150202
150240
|
var is_1 = require_dist13();
|
|
@@ -150204,9 +150242,9 @@ var require_is_form_data = __commonJS({
|
|
|
150204
150242
|
}
|
|
150205
150243
|
});
|
|
150206
150244
|
|
|
150207
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150245
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/get-body-size.js
|
|
150208
150246
|
var require_get_body_size = __commonJS({
|
|
150209
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150247
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/get-body-size.js"(exports2) {
|
|
150210
150248
|
"use strict";
|
|
150211
150249
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150212
150250
|
var fs_1 = require("fs");
|
|
@@ -150242,9 +150280,9 @@ var require_get_body_size = __commonJS({
|
|
|
150242
150280
|
}
|
|
150243
150281
|
});
|
|
150244
150282
|
|
|
150245
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150283
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/proxy-events.js
|
|
150246
150284
|
var require_proxy_events2 = __commonJS({
|
|
150247
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150285
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/proxy-events.js"(exports2) {
|
|
150248
150286
|
"use strict";
|
|
150249
150287
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150250
150288
|
function default_1(from, to, events) {
|
|
@@ -150265,9 +150303,9 @@ var require_proxy_events2 = __commonJS({
|
|
|
150265
150303
|
}
|
|
150266
150304
|
});
|
|
150267
150305
|
|
|
150268
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150306
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/unhandle.js
|
|
150269
150307
|
var require_unhandle = __commonJS({
|
|
150270
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150308
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/unhandle.js"(exports2) {
|
|
150271
150309
|
"use strict";
|
|
150272
150310
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150273
150311
|
exports2.default = () => {
|
|
@@ -150289,9 +150327,9 @@ var require_unhandle = __commonJS({
|
|
|
150289
150327
|
}
|
|
150290
150328
|
});
|
|
150291
150329
|
|
|
150292
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150330
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/timed-out.js
|
|
150293
150331
|
var require_timed_out = __commonJS({
|
|
150294
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150332
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/timed-out.js"(exports2) {
|
|
150295
150333
|
"use strict";
|
|
150296
150334
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150297
150335
|
exports2.TimeoutError = void 0;
|
|
@@ -150408,9 +150446,9 @@ var require_timed_out = __commonJS({
|
|
|
150408
150446
|
}
|
|
150409
150447
|
});
|
|
150410
150448
|
|
|
150411
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150449
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/url-to-options.js
|
|
150412
150450
|
var require_url_to_options2 = __commonJS({
|
|
150413
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150451
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/url-to-options.js"(exports2) {
|
|
150414
150452
|
"use strict";
|
|
150415
150453
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150416
150454
|
var is_1 = require_dist13();
|
|
@@ -150437,9 +150475,9 @@ var require_url_to_options2 = __commonJS({
|
|
|
150437
150475
|
}
|
|
150438
150476
|
});
|
|
150439
150477
|
|
|
150440
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150478
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/options-to-url.js
|
|
150441
150479
|
var require_options_to_url = __commonJS({
|
|
150442
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150480
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/options-to-url.js"(exports2) {
|
|
150443
150481
|
"use strict";
|
|
150444
150482
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150445
150483
|
var url_1 = require("url");
|
|
@@ -150494,9 +150532,9 @@ var require_options_to_url = __commonJS({
|
|
|
150494
150532
|
}
|
|
150495
150533
|
});
|
|
150496
150534
|
|
|
150497
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150535
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/weakable-map.js
|
|
150498
150536
|
var require_weakable_map = __commonJS({
|
|
150499
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150537
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/weakable-map.js"(exports2) {
|
|
150500
150538
|
"use strict";
|
|
150501
150539
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150502
150540
|
var WeakableMap = class {
|
|
@@ -150528,9 +150566,9 @@ var require_weakable_map = __commonJS({
|
|
|
150528
150566
|
}
|
|
150529
150567
|
});
|
|
150530
150568
|
|
|
150531
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150569
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/get-buffer.js
|
|
150532
150570
|
var require_get_buffer = __commonJS({
|
|
150533
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150571
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/get-buffer.js"(exports2) {
|
|
150534
150572
|
"use strict";
|
|
150535
150573
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150536
150574
|
var getBuffer = async (stream) => {
|
|
@@ -150549,9 +150587,9 @@ var require_get_buffer = __commonJS({
|
|
|
150549
150587
|
}
|
|
150550
150588
|
});
|
|
150551
150589
|
|
|
150552
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150590
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/dns-ip-version.js
|
|
150553
150591
|
var require_dns_ip_version = __commonJS({
|
|
150554
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150592
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/dns-ip-version.js"(exports2) {
|
|
150555
150593
|
"use strict";
|
|
150556
150594
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150557
150595
|
exports2.dnsLookupIpVersionToFamily = exports2.isDnsLookupIpVersion = void 0;
|
|
@@ -150572,9 +150610,9 @@ var require_dns_ip_version = __commonJS({
|
|
|
150572
150610
|
}
|
|
150573
150611
|
});
|
|
150574
150612
|
|
|
150575
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150613
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/is-response-ok.js
|
|
150576
150614
|
var require_is_response_ok = __commonJS({
|
|
150577
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150615
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/is-response-ok.js"(exports2) {
|
|
150578
150616
|
"use strict";
|
|
150579
150617
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150580
150618
|
exports2.isResponseOk = void 0;
|
|
@@ -150586,9 +150624,9 @@ var require_is_response_ok = __commonJS({
|
|
|
150586
150624
|
}
|
|
150587
150625
|
});
|
|
150588
150626
|
|
|
150589
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150627
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/utils/deprecation-warning.js
|
|
150590
150628
|
var require_deprecation_warning = __commonJS({
|
|
150591
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150629
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/utils/deprecation-warning.js"(exports2) {
|
|
150592
150630
|
"use strict";
|
|
150593
150631
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150594
150632
|
var alreadyWarned = /* @__PURE__ */ new Set();
|
|
@@ -150604,9 +150642,9 @@ var require_deprecation_warning = __commonJS({
|
|
|
150604
150642
|
}
|
|
150605
150643
|
});
|
|
150606
150644
|
|
|
150607
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150645
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/normalize-arguments.js
|
|
150608
150646
|
var require_normalize_arguments = __commonJS({
|
|
150609
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150647
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/normalize-arguments.js"(exports2) {
|
|
150610
150648
|
"use strict";
|
|
150611
150649
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150612
150650
|
var is_1 = require_dist13();
|
|
@@ -150679,9 +150717,9 @@ var require_normalize_arguments = __commonJS({
|
|
|
150679
150717
|
}
|
|
150680
150718
|
});
|
|
150681
150719
|
|
|
150682
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150720
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/calculate-retry-delay.js
|
|
150683
150721
|
var require_calculate_retry_delay = __commonJS({
|
|
150684
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150722
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/calculate-retry-delay.js"(exports2) {
|
|
150685
150723
|
"use strict";
|
|
150686
150724
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150687
150725
|
exports2.retryAfterStatusCodes = void 0;
|
|
@@ -150714,9 +150752,9 @@ var require_calculate_retry_delay = __commonJS({
|
|
|
150714
150752
|
}
|
|
150715
150753
|
});
|
|
150716
150754
|
|
|
150717
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
150755
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/index.js
|
|
150718
150756
|
var require_core8 = __commonJS({
|
|
150719
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
150757
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/index.js"(exports2) {
|
|
150720
150758
|
"use strict";
|
|
150721
150759
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150722
150760
|
exports2.UnsupportedProtocolError = exports2.ReadError = exports2.TimeoutError = exports2.UploadError = exports2.CacheError = exports2.HTTPError = exports2.MaxRedirectsError = exports2.RequestError = exports2.setNonEnumerableProperties = exports2.knownHookEvents = exports2.withoutBody = exports2.kIsNormalizedAlready = void 0;
|
|
@@ -151441,10 +151479,17 @@ var require_core8 = __commonJS({
|
|
|
151441
151479
|
return;
|
|
151442
151480
|
}
|
|
151443
151481
|
try {
|
|
151482
|
+
let isUnixSocketURL = function(url2) {
|
|
151483
|
+
return url2.protocol === "unix:" || url2.hostname === "unix";
|
|
151484
|
+
};
|
|
151444
151485
|
const redirectBuffer = Buffer.from(response.headers.location, "binary").toString();
|
|
151445
151486
|
const redirectUrl = new url_1.URL(redirectBuffer, url);
|
|
151446
151487
|
const redirectString = redirectUrl.toString();
|
|
151447
151488
|
decodeURI(redirectString);
|
|
151489
|
+
if (!isUnixSocketURL(url) && isUnixSocketURL(redirectUrl)) {
|
|
151490
|
+
this._beforeError(new RequestError("Cannot redirect to UNIX socket", {}, this));
|
|
151491
|
+
return;
|
|
151492
|
+
}
|
|
151448
151493
|
if (redirectUrl.hostname !== url.hostname || redirectUrl.port !== url.port) {
|
|
151449
151494
|
if ("host" in options.headers) {
|
|
151450
151495
|
delete options.headers.host;
|
|
@@ -151970,9 +152015,9 @@ var require_core8 = __commonJS({
|
|
|
151970
152015
|
}
|
|
151971
152016
|
});
|
|
151972
152017
|
|
|
151973
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152018
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/types.js
|
|
151974
152019
|
var require_types6 = __commonJS({
|
|
151975
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152020
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/types.js"(exports2) {
|
|
151976
152021
|
"use strict";
|
|
151977
152022
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
151978
152023
|
if (k2 === void 0)
|
|
@@ -152017,9 +152062,9 @@ var require_types6 = __commonJS({
|
|
|
152017
152062
|
}
|
|
152018
152063
|
});
|
|
152019
152064
|
|
|
152020
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152065
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/parse-body.js
|
|
152021
152066
|
var require_parse_body = __commonJS({
|
|
152022
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152067
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/parse-body.js"(exports2) {
|
|
152023
152068
|
"use strict";
|
|
152024
152069
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152025
152070
|
var types_1 = require_types6();
|
|
@@ -152047,9 +152092,9 @@ var require_parse_body = __commonJS({
|
|
|
152047
152092
|
}
|
|
152048
152093
|
});
|
|
152049
152094
|
|
|
152050
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152095
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/index.js
|
|
152051
152096
|
var require_as_promise = __commonJS({
|
|
152052
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152097
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/index.js"(exports2) {
|
|
152053
152098
|
"use strict";
|
|
152054
152099
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
152055
152100
|
if (k2 === void 0)
|
|
@@ -152157,11 +152202,11 @@ var require_as_promise = __commonJS({
|
|
|
152157
152202
|
request._beforeError(new types_1.RequestError(error.message, error, request));
|
|
152158
152203
|
return;
|
|
152159
152204
|
}
|
|
152205
|
+
globalResponse = response;
|
|
152160
152206
|
if (!is_response_ok_1.isResponseOk(response)) {
|
|
152161
152207
|
request._beforeError(new types_1.HTTPError(response));
|
|
152162
152208
|
return;
|
|
152163
152209
|
}
|
|
152164
|
-
globalResponse = response;
|
|
152165
152210
|
resolve(request.options.resolveBodyOnly ? response.body : response);
|
|
152166
152211
|
});
|
|
152167
152212
|
const onError = (error) => {
|
|
@@ -152219,9 +152264,9 @@ var require_as_promise = __commonJS({
|
|
|
152219
152264
|
}
|
|
152220
152265
|
});
|
|
152221
152266
|
|
|
152222
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152267
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/create-rejection.js
|
|
152223
152268
|
var require_create_rejection = __commonJS({
|
|
152224
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152269
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/create-rejection.js"(exports2) {
|
|
152225
152270
|
"use strict";
|
|
152226
152271
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152227
152272
|
var types_1 = require_types6();
|
|
@@ -152253,9 +152298,9 @@ var require_create_rejection = __commonJS({
|
|
|
152253
152298
|
}
|
|
152254
152299
|
});
|
|
152255
152300
|
|
|
152256
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152301
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/utils/deep-freeze.js
|
|
152257
152302
|
var require_deep_freeze = __commonJS({
|
|
152258
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152303
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/utils/deep-freeze.js"(exports2) {
|
|
152259
152304
|
"use strict";
|
|
152260
152305
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152261
152306
|
var is_1 = require_dist13();
|
|
@@ -152271,17 +152316,17 @@ var require_deep_freeze = __commonJS({
|
|
|
152271
152316
|
}
|
|
152272
152317
|
});
|
|
152273
152318
|
|
|
152274
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152319
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/types.js
|
|
152275
152320
|
var require_types7 = __commonJS({
|
|
152276
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152321
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/types.js"(exports2) {
|
|
152277
152322
|
"use strict";
|
|
152278
152323
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152279
152324
|
}
|
|
152280
152325
|
});
|
|
152281
152326
|
|
|
152282
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152327
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/create.js
|
|
152283
152328
|
var require_create = __commonJS({
|
|
152284
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152329
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/create.js"(exports2) {
|
|
152285
152330
|
"use strict";
|
|
152286
152331
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
152287
152332
|
if (k2 === void 0)
|
|
@@ -152505,9 +152550,9 @@ var require_create = __commonJS({
|
|
|
152505
152550
|
}
|
|
152506
152551
|
});
|
|
152507
152552
|
|
|
152508
|
-
// ../../node_modules/.pnpm/got@11.8.
|
|
152553
|
+
// ../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/index.js
|
|
152509
152554
|
var require_source7 = __commonJS({
|
|
152510
|
-
"../../node_modules/.pnpm/got@11.8.
|
|
152555
|
+
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/index.js"(exports2, module2) {
|
|
152511
152556
|
"use strict";
|
|
152512
152557
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
152513
152558
|
if (k2 === void 0)
|