@shopify/create-app 3.60.0 → 3.61.0
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/{chunk-2EVDXDJS.js → chunk-5NBS5LAW.js} +1 -1
- package/dist/{chunk-P6YJ2CQU.js → chunk-7F4FS2WD.js} +7 -7
- package/dist/{chunk-P3DMHVBI.js → chunk-GQNJWQKC.js} +22 -17
- package/dist/{chunk-P6N3DVYZ.js → chunk-H3UBEY47.js} +3 -3
- package/dist/{chunk-ZDU6ZNVH.js → chunk-H4N7DG5X.js} +23 -19
- package/dist/{chunk-TMGCRPEZ.js → chunk-HTYJDJRZ.js} +685 -215
- package/dist/{chunk-3L6KY7Q3.js → chunk-I3IYXB26.js} +23 -6
- package/dist/{chunk-OYLUVGUB.js → chunk-J3QAMMY2.js} +1 -1
- package/dist/{chunk-ZPB26OWQ.js → chunk-K5EEGEVV.js} +34 -14
- package/dist/{chunk-BMMDEPWI.js → chunk-LLFZPH5K.js} +12 -9
- package/dist/{chunk-GKVC3752.js → chunk-LR725A3N.js} +3 -3
- package/dist/{chunk-P4TVG45N.js → chunk-LUP5VDI4.js} +10 -3
- package/dist/{chunk-L5LPMIFP.js → chunk-PGYGWMK7.js} +5 -5
- package/dist/{chunk-2YPXES4K.js → chunk-PKFDUXG6.js} +1 -1
- package/dist/{chunk-JOQ4LR3M.js → chunk-R5KQZMEG.js} +1 -1
- package/dist/{chunk-YLEF4RUH.js → chunk-RAFFEFML.js} +4 -0
- package/dist/{chunk-3JNB3A7C.js → chunk-U4YACXEW.js} +567 -357
- package/dist/{chunk-Q737A7ZQ.js → chunk-X2I3FAVD.js} +3 -3
- package/dist/{chunk-JA2XDFAC.js → chunk-XKDB3ST7.js} +3603 -4080
- package/dist/{chunk-ZWN4YW5O.js → chunk-YI3MHBSD.js} +1 -1
- package/dist/commands/init.js +19 -19
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.test.js +20 -20
- package/dist/{constants-K3R4N3N3.js → constants-NNLQHFRJ.js} +3 -1
- package/dist/{custom-oclif-loader-3GZ6YYAB.js → custom-oclif-loader-KLTAWG4B.js} +7 -6
- package/dist/{del-A5YM6R3Y.js → del-ICEHOC6W.js} +2 -2
- package/dist/{devtools-KQM4GF6J.js → devtools-6HZ2IPFU.js} +154 -252
- package/dist/{error-handler-SPIUKOES.js → error-handler-ND7WBMC3.js} +13 -13
- package/dist/hooks/postrun.js +12 -12
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +4 -4
- package/dist/{lib-TQDGEQFC.js → lib-76RCE6WZ.js} +3 -3
- package/dist/{local-7KWUTHJN.js → local-3LWDOA7J.js} +5 -5
- package/dist/{magic-string.es-6WMSFIAX.js → magic-string.es-6DE547FE.js} +79 -18
- package/dist/{multipart-parser-O2BQODS2.js → multipart-parser-ENLY4BKU.js} +1 -1
- package/dist/{node-package-manager-MI2KGR6B.js → node-package-manager-TFY2ROCP.js} +6 -6
- package/dist/{out-JZ52TJE3.js → out-M5MRQZP5.js} +1 -1
- package/dist/prompts/init.js +6 -6
- package/dist/prompts/init.test.js +7 -7
- package/dist/services/init.d.ts +3 -0
- package/dist/services/init.js +13 -13
- package/dist/services/init.js.map +1 -1
- package/dist/services/init.test.js +1 -1
- package/dist/{system-KQGQETIF.js → system-FTT76GKS.js} +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-HO5KGT27.js → ui-MUGCNPLG.js} +5 -5
- package/dist/utils/template/cleanup.js +6 -6
- package/dist/utils/template/cleanup.test.js +7 -7
- package/dist/utils/template/npm.js +8 -8
- package/dist/utils/template/npm.test.js +9 -9
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UVY6LL5H.js";
|
|
5
5
|
import {
|
|
6
6
|
require_lib
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R5KQZMEG.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims
|
|
@@ -19,7 +19,7 @@ async function warnIfOldNodeVersion() {
|
|
|
19
19
|
const nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
20
20
|
const currentSupportedNodeVersion = 18;
|
|
21
21
|
if (nodeMajorVersion < currentSupportedNodeVersion) {
|
|
22
|
-
const { renderWarning } = await import("./ui-
|
|
22
|
+
const { renderWarning } = await import("./ui-MUGCNPLG.js");
|
|
23
23
|
renderWarning({
|
|
24
24
|
headline: "Upgrade to a supported Node version now.",
|
|
25
25
|
body: [
|
|
@@ -53,10 +53,10 @@ async function runCLI(options) {
|
|
|
53
53
|
setupEnvironmentVariables(options);
|
|
54
54
|
forceNoColor();
|
|
55
55
|
await warnIfOldNodeVersion();
|
|
56
|
-
const { errorHandler } = await import("./error-handler-
|
|
57
|
-
const { isDevelopment } = await import("./local-
|
|
58
|
-
const oclif = await import("./lib-
|
|
59
|
-
const { ShopifyConfig } = await import("./custom-oclif-loader-
|
|
56
|
+
const { errorHandler } = await import("./error-handler-ND7WBMC3.js");
|
|
57
|
+
const { isDevelopment } = await import("./local-3LWDOA7J.js");
|
|
58
|
+
const oclif = await import("./lib-76RCE6WZ.js");
|
|
59
|
+
const { ShopifyConfig } = await import("./custom-oclif-loader-KLTAWG4B.js");
|
|
60
60
|
if (isDevelopment()) {
|
|
61
61
|
oclif.default.settings.debug = true;
|
|
62
62
|
}
|
|
@@ -73,7 +73,7 @@ async function runCLI(options) {
|
|
|
73
73
|
}
|
|
74
74
|
async function runCreateCLI(options) {
|
|
75
75
|
setupEnvironmentVariables(options);
|
|
76
|
-
const { findUpAndReadPackageJson } = await import("./node-package-manager-
|
|
76
|
+
const { findUpAndReadPackageJson } = await import("./node-package-manager-TFY2ROCP.js");
|
|
77
77
|
const { moduleDirectory } = await import("./path-HO4HBKK5.js");
|
|
78
78
|
const packageJson = await findUpAndReadPackageJson(moduleDirectory(options.moduleURL));
|
|
79
79
|
const packageName = packageJson.content.name;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fanoutHooks,
|
|
6
6
|
reportAnalyticsEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PGYGWMK7.js";
|
|
8
8
|
import {
|
|
9
9
|
CLI_KIT_VERSION
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5NBS5LAW.js";
|
|
11
11
|
import {
|
|
12
12
|
getEnvironmentData
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LR725A3N.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortSilentError,
|
|
16
16
|
CancelExecution,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
outputInfo,
|
|
24
24
|
require_stacktracey,
|
|
25
25
|
shouldReportError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XKDB3ST7.js";
|
|
27
27
|
import {
|
|
28
28
|
bugsnagApiKey
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RAFFEFML.js";
|
|
30
30
|
import {
|
|
31
31
|
cwd,
|
|
32
32
|
isAbsolutePath,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-UVY6LL5H.js";
|
|
40
40
|
import {
|
|
41
41
|
require_lib
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-R5KQZMEG.js";
|
|
43
43
|
import {
|
|
44
44
|
__commonJS,
|
|
45
45
|
__require,
|
|
@@ -697,9 +697,9 @@ var require_byline = __commonJS({
|
|
|
697
697
|
}
|
|
698
698
|
});
|
|
699
699
|
|
|
700
|
-
// ../../node_modules/.pnpm/@bugsnag+node@7.
|
|
700
|
+
// ../../node_modules/.pnpm/@bugsnag+node@7.22.7/node_modules/@bugsnag/node/dist/bugsnag.js
|
|
701
701
|
var require_bugsnag = __commonJS({
|
|
702
|
-
"../../node_modules/.pnpm/@bugsnag+node@7.
|
|
702
|
+
"../../node_modules/.pnpm/@bugsnag+node@7.22.7/node_modules/@bugsnag/node/dist/bugsnag.js"(exports, module) {
|
|
703
703
|
init_cjs_shims();
|
|
704
704
|
(function(f) {
|
|
705
705
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
@@ -746,9 +746,8 @@ var require_bugsnag = __commonJS({
|
|
|
746
746
|
var _$breadcrumbTypes_6 = ["navigation", "request", "process", "log", "user", "state", "error", "manual"];
|
|
747
747
|
var _$reduce_16 = function(arr, fn, accum) {
|
|
748
748
|
var val = accum;
|
|
749
|
-
for (var i = 0, len = arr.length; i < len; i++)
|
|
749
|
+
for (var i = 0, len = arr.length; i < len; i++)
|
|
750
750
|
val = fn(val, arr[i], i, arr);
|
|
751
|
-
}
|
|
752
751
|
return val;
|
|
753
752
|
};
|
|
754
753
|
;
|
|
@@ -1264,6 +1263,9 @@ var require_bugsnag = __commonJS({
|
|
|
1264
1263
|
updates = (_updates = {}, _updates[keyOrObj] = maybeVal, _updates);
|
|
1265
1264
|
if (!updates)
|
|
1266
1265
|
return;
|
|
1266
|
+
if (section === "__proto__" || section === "constructor" || section === "prototype") {
|
|
1267
|
+
return;
|
|
1268
|
+
}
|
|
1267
1269
|
if (!state[section])
|
|
1268
1270
|
state[section] = {};
|
|
1269
1271
|
state[section] = _$assign_10({}, state[section], updates);
|
|
@@ -1286,6 +1288,9 @@ var require_bugsnag = __commonJS({
|
|
|
1286
1288
|
delete state[section];
|
|
1287
1289
|
return;
|
|
1288
1290
|
}
|
|
1291
|
+
if (section === "__proto__" || section === "constructor" || section === "prototype") {
|
|
1292
|
+
return;
|
|
1293
|
+
}
|
|
1289
1294
|
if (state[section]) {
|
|
1290
1295
|
delete state[section][key];
|
|
1291
1296
|
}
|
|
@@ -2180,7 +2185,7 @@ var require_bugsnag = __commonJS({
|
|
|
2180
2185
|
};
|
|
2181
2186
|
};
|
|
2182
2187
|
function _extends() {
|
|
2183
|
-
_extends = Object.assign
|
|
2188
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
2184
2189
|
for (var i = 1; i < arguments.length; i++) {
|
|
2185
2190
|
var source = arguments[i];
|
|
2186
2191
|
for (var key in source) {
|
|
@@ -2381,7 +2386,7 @@ var require_bugsnag = __commonJS({
|
|
|
2381
2386
|
};
|
|
2382
2387
|
_$intercept_39["default"] = _$intercept_39;
|
|
2383
2388
|
function ___extends_40() {
|
|
2384
|
-
___extends_40 = Object.assign
|
|
2389
|
+
___extends_40 = Object.assign ? Object.assign.bind() : function(target) {
|
|
2385
2390
|
for (var i = 1; i < arguments.length; i++) {
|
|
2386
2391
|
var source = arguments[i];
|
|
2387
2392
|
for (var key in source) {
|
|
@@ -2438,7 +2443,7 @@ var require_bugsnag = __commonJS({
|
|
|
2438
2443
|
}
|
|
2439
2444
|
};
|
|
2440
2445
|
function ___extends_42() {
|
|
2441
|
-
___extends_42 = Object.assign
|
|
2446
|
+
___extends_42 = Object.assign ? Object.assign.bind() : function(target) {
|
|
2442
2447
|
for (var i = 1; i < arguments.length; i++) {
|
|
2443
2448
|
var source = arguments[i];
|
|
2444
2449
|
for (var key in source) {
|
|
@@ -2457,7 +2462,7 @@ var require_bugsnag = __commonJS({
|
|
|
2457
2462
|
_setPrototypeOf(subClass, superClass);
|
|
2458
2463
|
}
|
|
2459
2464
|
function _setPrototypeOf(o, p) {
|
|
2460
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
2465
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
2461
2466
|
o2.__proto__ = p2;
|
|
2462
2467
|
return o2;
|
|
2463
2468
|
};
|
|
@@ -2712,7 +2717,7 @@ var require_bugsnag = __commonJS({
|
|
|
2712
2717
|
___setPrototypeOf_47(subClass, superClass);
|
|
2713
2718
|
}
|
|
2714
2719
|
function ___setPrototypeOf_47(o, p) {
|
|
2715
|
-
___setPrototypeOf_47 = Object.setPrototypeOf
|
|
2720
|
+
___setPrototypeOf_47 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
2716
2721
|
o2.__proto__ = p2;
|
|
2717
2722
|
return o2;
|
|
2718
2723
|
};
|
|
@@ -2901,7 +2906,7 @@ var require_bugsnag = __commonJS({
|
|
|
2901
2906
|
};
|
|
2902
2907
|
var _$notifier_36 = {};
|
|
2903
2908
|
function ___extends_36() {
|
|
2904
|
-
___extends_36 = Object.assign
|
|
2909
|
+
___extends_36 = Object.assign ? Object.assign.bind() : function(target) {
|
|
2905
2910
|
for (var i = 1; i < arguments.length; i++) {
|
|
2906
2911
|
var source = arguments[i];
|
|
2907
2912
|
for (var key in source) {
|
|
@@ -2915,7 +2920,7 @@ var require_bugsnag = __commonJS({
|
|
|
2915
2920
|
return ___extends_36.apply(this, arguments);
|
|
2916
2921
|
}
|
|
2917
2922
|
var name = "Bugsnag Node";
|
|
2918
|
-
var version = "7.
|
|
2923
|
+
var version = "7.22.7";
|
|
2919
2924
|
var url = "https://github.com/bugsnag/bugsnag-js";
|
|
2920
2925
|
;
|
|
2921
2926
|
;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5NBS5LAW.js";
|
|
4
4
|
import {
|
|
5
5
|
installNodeModules
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-H4N7DG5X.js";
|
|
7
7
|
import {
|
|
8
8
|
findPathUp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XKDB3ST7.js";
|
|
10
10
|
import {
|
|
11
11
|
moduleDirectory,
|
|
12
12
|
normalizePath
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
require_get_stream,
|
|
14
14
|
runWithTimer,
|
|
15
15
|
writeFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XKDB3ST7.js";
|
|
17
17
|
import {
|
|
18
18
|
dirname,
|
|
19
19
|
joinPath
|
|
@@ -4767,9 +4767,9 @@ var require_config_chain = __commonJS({
|
|
|
4767
4767
|
}
|
|
4768
4768
|
});
|
|
4769
4769
|
|
|
4770
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
4770
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
4771
4771
|
var require_envKeyToSetting = __commonJS({
|
|
4772
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
4772
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports, module) {
|
|
4773
4773
|
init_cjs_shims();
|
|
4774
4774
|
module.exports = function(x) {
|
|
4775
4775
|
const colonIndex = x.indexOf(":");
|
|
@@ -4843,9 +4843,9 @@ var require_dist2 = __commonJS({
|
|
|
4843
4843
|
}
|
|
4844
4844
|
});
|
|
4845
4845
|
|
|
4846
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
4846
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/util.js
|
|
4847
4847
|
var require_util = __commonJS({
|
|
4848
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
4848
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
|
|
4849
4849
|
"use strict";
|
|
4850
4850
|
init_cjs_shims();
|
|
4851
4851
|
var fs = __require("fs");
|
|
@@ -4941,9 +4941,9 @@ var require_util = __commonJS({
|
|
|
4941
4941
|
}
|
|
4942
4942
|
});
|
|
4943
4943
|
|
|
4944
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
4944
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/types.js
|
|
4945
4945
|
var require_types = __commonJS({
|
|
4946
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
4946
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
|
|
4947
4947
|
"use strict";
|
|
4948
4948
|
init_cjs_shims();
|
|
4949
4949
|
var path = __require("path");
|
|
@@ -5081,9 +5081,9 @@ var require_types = __commonJS({
|
|
|
5081
5081
|
}
|
|
5082
5082
|
});
|
|
5083
5083
|
|
|
5084
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
5084
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
5085
5085
|
var require_conf = __commonJS({
|
|
5086
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
5086
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module) {
|
|
5087
5087
|
"use strict";
|
|
5088
5088
|
init_cjs_shims();
|
|
5089
5089
|
var { readCAFileSync } = require_dist();
|
|
@@ -5221,9 +5221,9 @@ var require_conf = __commonJS({
|
|
|
5221
5221
|
}
|
|
5222
5222
|
});
|
|
5223
5223
|
|
|
5224
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
5224
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
5225
5225
|
var require_defaults = __commonJS({
|
|
5226
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
5226
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
|
|
5227
5227
|
"use strict";
|
|
5228
5228
|
init_cjs_shims();
|
|
5229
5229
|
var os2 = __require("os");
|
|
@@ -5246,7 +5246,7 @@ var require_defaults = __commonJS({
|
|
|
5246
5246
|
home = path.resolve(temp, "npm-" + uidOrPid);
|
|
5247
5247
|
}
|
|
5248
5248
|
var cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
|
|
5249
|
-
var cacheRoot = process.platform === "win32"
|
|
5249
|
+
var cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
|
|
5250
5250
|
var cache = path.resolve(cacheRoot, cacheExtra);
|
|
5251
5251
|
var defaults2;
|
|
5252
5252
|
var globalPrefix;
|
|
@@ -5391,9 +5391,9 @@ var require_defaults = __commonJS({
|
|
|
5391
5391
|
}
|
|
5392
5392
|
});
|
|
5393
5393
|
|
|
5394
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
5394
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/index.js
|
|
5395
5395
|
var require_npm_conf = __commonJS({
|
|
5396
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.
|
|
5396
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/index.js"(exports, module) {
|
|
5397
5397
|
"use strict";
|
|
5398
5398
|
init_cjs_shims();
|
|
5399
5399
|
var path = __require("path");
|
|
@@ -8051,7 +8051,7 @@ init_cjs_shims();
|
|
|
8051
8051
|
// ../../node_modules/.pnpm/latest-version@7.0.0/node_modules/latest-version/index.js
|
|
8052
8052
|
init_cjs_shims();
|
|
8053
8053
|
|
|
8054
|
-
// ../../node_modules/.pnpm/package-json@8.1.
|
|
8054
|
+
// ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
|
|
8055
8055
|
init_cjs_shims();
|
|
8056
8056
|
import { Agent as HttpAgent } from "node:http";
|
|
8057
8057
|
import { Agent as HttpsAgent } from "node:https";
|
|
@@ -8838,7 +8838,7 @@ import urlLib from "node:url";
|
|
|
8838
8838
|
import crypto from "node:crypto";
|
|
8839
8839
|
import stream, { PassThrough as PassThroughStream } from "node:stream";
|
|
8840
8840
|
|
|
8841
|
-
// ../../node_modules/.pnpm/normalize-url@8.0.
|
|
8841
|
+
// ../../node_modules/.pnpm/normalize-url@8.0.1/node_modules/normalize-url/index.js
|
|
8842
8842
|
init_cjs_shims();
|
|
8843
8843
|
var DATA_URL_DEFAULT_MIME_TYPE = "text/plain";
|
|
8844
8844
|
var DATA_URL_DEFAULT_CHARSET = "us-ascii";
|
|
@@ -8851,7 +8851,7 @@ var supportedProtocols = /* @__PURE__ */ new Set([
|
|
|
8851
8851
|
var hasCustomProtocol = (urlString) => {
|
|
8852
8852
|
try {
|
|
8853
8853
|
const { protocol } = new URL(urlString);
|
|
8854
|
-
return protocol.endsWith(":") && !supportedProtocols.has(protocol);
|
|
8854
|
+
return protocol.endsWith(":") && !protocol.includes(".") && !supportedProtocols.has(protocol);
|
|
8855
8855
|
} catch {
|
|
8856
8856
|
return false;
|
|
8857
8857
|
}
|
|
@@ -13305,7 +13305,7 @@ function registryUrl(scope) {
|
|
|
13305
13305
|
return url.slice(-1) === "/" ? url : `${url}/`;
|
|
13306
13306
|
}
|
|
13307
13307
|
|
|
13308
|
-
// ../../node_modules/.pnpm/package-json@8.1.
|
|
13308
|
+
// ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
|
|
13309
13309
|
var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
|
|
13310
13310
|
var import_semver = __toESM(require_semver2(), 1);
|
|
13311
13311
|
var agentOptions = {
|
|
@@ -13358,7 +13358,7 @@ async function packageJson(packageName, options) {
|
|
|
13358
13358
|
try {
|
|
13359
13359
|
data = await source_default2(packageUrl, gotOptions).json();
|
|
13360
13360
|
} catch (error) {
|
|
13361
|
-
if (error
|
|
13361
|
+
if (error?.response?.statusCode === 404) {
|
|
13362
13362
|
throw new PackageNotFoundError(packageName);
|
|
13363
13363
|
}
|
|
13364
13364
|
throw error;
|
|
@@ -13369,7 +13369,9 @@ async function packageJson(packageName, options) {
|
|
|
13369
13369
|
let { version } = options;
|
|
13370
13370
|
const versionError = new VersionNotFoundError(packageName, version);
|
|
13371
13371
|
if (data["dist-tags"][version]) {
|
|
13372
|
+
const time = data.time;
|
|
13372
13373
|
data = data.versions[data["dist-tags"][version]];
|
|
13374
|
+
data.time = time;
|
|
13373
13375
|
} else if (version) {
|
|
13374
13376
|
if (!data.versions[version]) {
|
|
13375
13377
|
const versions = Object.keys(data.versions);
|
|
@@ -13378,7 +13380,9 @@ async function packageJson(packageName, options) {
|
|
|
13378
13380
|
throw versionError;
|
|
13379
13381
|
}
|
|
13380
13382
|
}
|
|
13383
|
+
const time = data.time;
|
|
13381
13384
|
data = data.versions[version];
|
|
13385
|
+
data.time = time;
|
|
13382
13386
|
if (!data) {
|
|
13383
13387
|
throw versionError;
|
|
13384
13388
|
}
|