@shopify/cli 3.77.0 → 3.77.1
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/assets/hydrogen/bundle/analyzer.html +21 -17
- package/dist/assets/hydrogen/starter/CHANGELOG.md +116 -36
- package/dist/assets/hydrogen/starter/app/layout.tsx +46 -0
- package/dist/assets/hydrogen/starter/app/root.tsx +1 -42
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +4 -3
- package/dist/assets/hydrogen/starter/app/routes.ts +7 -0
- package/dist/assets/hydrogen/starter/package.json +17 -15
- package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
- package/dist/assets/hydrogen/starter/vite.config.ts +2 -1
- package/dist/assets/hydrogen/tailwind/package.json +1 -1
- package/dist/assets/hydrogen/vanilla-extract/package.json +2 -2
- package/dist/assets/hydrogen/virtual-routes/assets/debug-network.css +27 -10
- package/dist/assets/hydrogen/virtual-routes/assets/styles.css +13 -2
- package/dist/assets/hydrogen/virtual-routes/layout.jsx +39 -0
- package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +63 -0
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +10 -8
- package/dist/assets/hydrogen/vite/package.json +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -0
- package/dist/{chunk-RWT677FV.js → chunk-3LPRAP3C.js} +4 -4
- package/dist/{chunk-7IKFEU6I.js → chunk-4QUBSR5N.js} +2 -2
- package/dist/{chunk-YL7TDFFA.js → chunk-5Y3LMFTE.js} +3 -3
- package/dist/{chunk-ZVNHCLRN.js → chunk-7N6KTS5H.js} +3 -3
- package/dist/{chunk-IX7XAR6F.js → chunk-7TDJWEEF.js} +4 -4
- package/dist/{chunk-J3C7BGUW.js → chunk-7Z57GKMD.js} +2 -2
- package/dist/{chunk-6ZKE2WPK.js → chunk-CYZVSCKE.js} +2 -2
- package/dist/{chunk-AW7SZYGV.js → chunk-DE23IXCV.js} +6 -6
- package/dist/{chunk-WN6OLVLP.js → chunk-DXETR7HO.js} +4 -4
- package/dist/{chunk-MYIEKIZR.js → chunk-F7YDVUG6.js} +2 -2
- package/dist/{chunk-QVZW3IVL.js → chunk-FGOKII2H.js} +6 -6
- package/dist/{chunk-U7E5RRYF.js → chunk-G2Z2JNWZ.js} +3 -3
- package/dist/{chunk-3ARIMAIR.js → chunk-HL6ZWA6P.js} +3 -3
- package/dist/{chunk-AUBRXAVZ.js → chunk-IDLVFDLS.js} +3 -3
- package/dist/{chunk-RA5UDHSI.js → chunk-J2TFYL5Z.js} +3 -3
- package/dist/{chunk-VTEM2QWG.js → chunk-JA44NPON.js} +3 -3
- package/dist/{chunk-NZVJ77WD.js → chunk-KMLSEENO.js} +3 -3
- package/dist/{chunk-AZ33PIX2.js → chunk-KRRCKFNF.js} +7 -7
- package/dist/{chunk-O5U2T7LH.js → chunk-LGVMVIUY.js} +3 -3
- package/dist/{chunk-LLYJXSNC.js → chunk-MJ5E3G6Z.js} +3 -3
- package/dist/{chunk-CBLCYLJO.js → chunk-NKPXKN63.js} +2 -2
- package/dist/{chunk-NHMQOM7T.js → chunk-NMVJRPWT.js} +2 -2
- package/dist/{chunk-YXR557PE.js → chunk-ODZP3BOI.js} +3 -3
- package/dist/{chunk-FJAIUBHO.js → chunk-OZYTPWJS.js} +6 -6
- package/dist/{chunk-4BPRKRYD.js → chunk-PFXZ73LI.js} +4 -4
- package/dist/{chunk-74V7KQLD.js → chunk-RXPX6QL6.js} +4 -4
- package/dist/{chunk-ACSVNEID.js → chunk-THDGA4UF.js} +5 -5
- package/dist/{chunk-GPICPOCE.js → chunk-TIMSXB7V.js} +3 -3
- package/dist/{chunk-SO33Y5TT.js → chunk-V24VKC54.js} +3 -3
- package/dist/{chunk-DHO2PUCK.js → chunk-V2EXSXIB.js} +2 -2
- package/dist/{chunk-S3PY2ULH.js → chunk-Y7SMROY2.js} +4 -4
- package/dist/{chunk-V5G4FJZH.js → chunk-YKGXAR4K.js} +263 -238
- package/dist/{chunk-PHWPEUZI.js → chunk-YUFBJAT6.js} +2 -2
- package/dist/{chunk-5ZMRZCPZ.js → chunk-YW77LWOY.js} +3 -3
- package/dist/{chunk-ZKUNCSWD.js → chunk-ZPXCGFEZ.js} +4 -4
- package/dist/cli/commands/auth/logout.js +11 -11
- package/dist/cli/commands/auth/logout.test.js +12 -12
- package/dist/cli/commands/cache/clear.js +10 -10
- package/dist/cli/commands/debug/command-flags.js +10 -10
- package/dist/cli/commands/docs/generate.js +10 -10
- package/dist/cli/commands/docs/generate.test.js +10 -10
- package/dist/cli/commands/help.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.test.js +11 -11
- package/dist/cli/commands/kitchen-sink/index.js +13 -13
- package/dist/cli/commands/kitchen-sink/index.test.js +13 -13
- package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
- package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -11
- package/dist/cli/commands/kitchen-sink/static.js +11 -11
- package/dist/cli/commands/kitchen-sink/static.test.js +11 -11
- package/dist/cli/commands/notifications/generate.js +11 -11
- package/dist/cli/commands/notifications/list.js +11 -11
- package/dist/cli/commands/search.js +11 -11
- package/dist/cli/commands/upgrade.js +11 -11
- package/dist/cli/commands/version.js +11 -11
- package/dist/cli/commands/version.test.js +11 -11
- package/dist/cli/services/commands/notifications.js +6 -6
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +3 -3
- package/dist/cli/services/commands/version.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +4 -4
- package/dist/{custom-oclif-loader-TE6EUPGI.js → custom-oclif-loader-OE7KHHEX.js} +2 -2
- package/dist/{error-handler-WC4XSLZQ.js → error-handler-CLK6ULQD.js} +8 -8
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +7 -7
- package/dist/index.js +1372 -176
- package/dist/{local-7Q5JCU62.js → local-YA7BWRS4.js} +2 -2
- package/dist/{morph-WRZ7XCTF.js → morph-UGAQHTEA.js} +9 -9
- package/dist/{node-MNEYEH5U.js → node-66AIONQH.js} +14 -14
- package/dist/{node-package-manager-3SFTB3BW.js → node-package-manager-BD2U7LUE.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-NMP2SY3G.js → ui-UIXIY6XH.js} +2 -2
- package/dist/{workerd-NN737W52.js → workerd-VYNSPDCR.js} +13 -13
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-X7YTIMNN.js";
|
|
7
7
|
import {
|
|
8
8
|
findPort
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MJ5E3G6Z.js";
|
|
10
10
|
import {
|
|
11
11
|
ALIAS_NAME,
|
|
12
12
|
ALL_ROUTE_CHOICES,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
supressNodeExperimentalWarnings,
|
|
135
135
|
unsetStorefront,
|
|
136
136
|
waitForJob
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-YKGXAR4K.js";
|
|
138
138
|
import {
|
|
139
139
|
require_ms,
|
|
140
140
|
require_src
|
|
@@ -153,69 +153,69 @@ import {
|
|
|
153
153
|
} from "./chunk-MW7RWHY5.js";
|
|
154
154
|
import {
|
|
155
155
|
List
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-ZPXCGFEZ.js";
|
|
157
157
|
import {
|
|
158
158
|
Search
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-LGVMVIUY.js";
|
|
160
160
|
import {
|
|
161
161
|
Upgrade
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import "./chunk-
|
|
162
|
+
} from "./chunk-RXPX6QL6.js";
|
|
163
|
+
import "./chunk-J2TFYL5Z.js";
|
|
164
164
|
import {
|
|
165
165
|
Version
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
import "./chunk-
|
|
168
|
-
import "./chunk-
|
|
166
|
+
} from "./chunk-KMLSEENO.js";
|
|
167
|
+
import "./chunk-G2Z2JNWZ.js";
|
|
168
|
+
import "./chunk-NKPXKN63.js";
|
|
169
169
|
import {
|
|
170
170
|
KitchenSinkAll
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-THDGA4UF.js";
|
|
172
172
|
import {
|
|
173
173
|
KitchenSinkPrompts
|
|
174
|
-
} from "./chunk-
|
|
175
|
-
import "./chunk-
|
|
174
|
+
} from "./chunk-7N6KTS5H.js";
|
|
175
|
+
import "./chunk-NMVJRPWT.js";
|
|
176
176
|
import {
|
|
177
177
|
KitchenSinkStatic
|
|
178
|
-
} from "./chunk-
|
|
179
|
-
import "./chunk-
|
|
178
|
+
} from "./chunk-V24VKC54.js";
|
|
179
|
+
import "./chunk-CYZVSCKE.js";
|
|
180
180
|
import {
|
|
181
181
|
Generate
|
|
182
|
-
} from "./chunk-
|
|
183
|
-
import "./chunk-
|
|
182
|
+
} from "./chunk-5Y3LMFTE.js";
|
|
183
|
+
import "./chunk-DXETR7HO.js";
|
|
184
184
|
import {
|
|
185
185
|
Logout
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-3LPRAP3C.js";
|
|
187
187
|
import {
|
|
188
188
|
ensureAuthenticatedAdmin,
|
|
189
189
|
ensureAuthenticatedAppManagementAndBusinessPlatform,
|
|
190
190
|
ensureAuthenticatedPartners,
|
|
191
191
|
ensureAuthenticatedStorefront,
|
|
192
192
|
ensureAuthenticatedThemes
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-JA44NPON.js";
|
|
194
194
|
import {
|
|
195
195
|
ClearCache,
|
|
196
196
|
globalFlags,
|
|
197
197
|
jsonFlag,
|
|
198
198
|
runCLI
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-KRRCKFNF.js";
|
|
200
200
|
import {
|
|
201
201
|
CommandFlags
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-HL6ZWA6P.js";
|
|
203
203
|
import {
|
|
204
204
|
DocsGenerate
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-TIMSXB7V.js";
|
|
206
206
|
import {
|
|
207
207
|
HelpCommand
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-YUFBJAT6.js";
|
|
209
209
|
import {
|
|
210
210
|
KitchenSinkAsync
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import "./chunk-
|
|
211
|
+
} from "./chunk-ODZP3BOI.js";
|
|
212
|
+
import "./chunk-F7YDVUG6.js";
|
|
213
213
|
import {
|
|
214
214
|
base_command_default,
|
|
215
215
|
decodeToml,
|
|
216
216
|
encodeToml,
|
|
217
217
|
loadEnvironment
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-PFXZ73LI.js";
|
|
219
219
|
import {
|
|
220
220
|
require_byline,
|
|
221
221
|
require_end_of_stream,
|
|
@@ -223,7 +223,7 @@ import {
|
|
|
223
223
|
require_iserror,
|
|
224
224
|
require_pump,
|
|
225
225
|
require_stack_generator
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-FGOKII2H.js";
|
|
227
227
|
import {
|
|
228
228
|
require_once
|
|
229
229
|
} from "./chunk-SHWOPMLQ.js";
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
fanoutHooks,
|
|
232
232
|
getListOfTunnelPlugins,
|
|
233
233
|
reportAnalyticsEvent
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-DE23IXCV.js";
|
|
235
235
|
import {
|
|
236
236
|
appManagementFqdn,
|
|
237
237
|
developerDashboardFqdn,
|
|
@@ -240,10 +240,10 @@ import {
|
|
|
240
240
|
normalizeStoreFqdn,
|
|
241
241
|
ok,
|
|
242
242
|
partnersFqdn
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-Y7SMROY2.js";
|
|
244
244
|
import {
|
|
245
245
|
showNotificationsIfNeeded
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-OZYTPWJS.js";
|
|
247
247
|
import {
|
|
248
248
|
ClientError,
|
|
249
249
|
FetchError,
|
|
@@ -255,11 +255,11 @@ import {
|
|
|
255
255
|
require_mime_types,
|
|
256
256
|
shopifyFetch,
|
|
257
257
|
z
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-7TDJWEEF.js";
|
|
259
259
|
import "./chunk-25IMI7TH.js";
|
|
260
260
|
import {
|
|
261
261
|
CLI_KIT_VERSION
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-V2EXSXIB.js";
|
|
263
263
|
import {
|
|
264
264
|
LocalStorage,
|
|
265
265
|
UnknownPackageManagerError,
|
|
@@ -282,7 +282,7 @@ import {
|
|
|
282
282
|
usesWorkspaces,
|
|
283
283
|
versionSatisfies,
|
|
284
284
|
writePackageJSON
|
|
285
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-YW77LWOY.js";
|
|
286
286
|
import {
|
|
287
287
|
require_semver
|
|
288
288
|
} from "./chunk-HMDWNGIV.js";
|
|
@@ -498,7 +498,7 @@ import {
|
|
|
498
498
|
username,
|
|
499
499
|
writeFile,
|
|
500
500
|
writeFileSync
|
|
501
|
-
} from "./chunk-
|
|
501
|
+
} from "./chunk-7Z57GKMD.js";
|
|
502
502
|
import {
|
|
503
503
|
require_lib as require_lib2
|
|
504
504
|
} from "./chunk-B5EXYCV3.js";
|
|
@@ -55273,9 +55273,9 @@ var require_temp_dir = __commonJS({
|
|
|
55273
55273
|
}
|
|
55274
55274
|
});
|
|
55275
55275
|
|
|
55276
|
-
// ../../node_modules/.pnpm/@bugsnag+node@8.
|
|
55276
|
+
// ../../node_modules/.pnpm/@bugsnag+node@8.2.0/node_modules/@bugsnag/node/dist/bugsnag.js
|
|
55277
55277
|
var require_bugsnag = __commonJS({
|
|
55278
|
-
"../../node_modules/.pnpm/@bugsnag+node@8.
|
|
55278
|
+
"../../node_modules/.pnpm/@bugsnag+node@8.2.0/node_modules/@bugsnag/node/dist/bugsnag.js"(exports, module) {
|
|
55279
55279
|
init_cjs_shims();
|
|
55280
55280
|
(function(f) {
|
|
55281
55281
|
if (typeof exports == "object" && typeof module < "u")
|
|
@@ -55559,6 +55559,15 @@ var require_bugsnag = __commonJS({
|
|
|
55559
55559
|
validate: function(value) {
|
|
55560
55560
|
return value === !0 || value === !1;
|
|
55561
55561
|
}
|
|
55562
|
+
},
|
|
55563
|
+
sendPayloadChecksums: {
|
|
55564
|
+
defaultValue: function() {
|
|
55565
|
+
return !1;
|
|
55566
|
+
},
|
|
55567
|
+
message: "should be true|false",
|
|
55568
|
+
validate: function(value) {
|
|
55569
|
+
return value === !0 || value === !1;
|
|
55570
|
+
}
|
|
55562
55571
|
}
|
|
55563
55572
|
};
|
|
55564
55573
|
var _$errorStackParser_15 = require_error_stack_parser(), _$assign_16 = function(target) {
|
|
@@ -56070,7 +56079,9 @@ var require_bugsnag = __commonJS({
|
|
|
56070
56079
|
}, _proto._configure = function(opts, internalPlugins2) {
|
|
56071
56080
|
var schema2 = _$reduce_22(internalPlugins2, function(schema3, plugin) {
|
|
56072
56081
|
return plugin && plugin.configSchema ? _$assign_16({}, schema3, plugin.configSchema) : schema3;
|
|
56073
|
-
}, this._schema)
|
|
56082
|
+
}, this._schema);
|
|
56083
|
+
opts.endpoints || (opts.sendPayloadChecksums = "sendPayloadChecksums" in opts ? opts.sendPayloadChecksums : !0);
|
|
56084
|
+
var _reduce = _$reduce_22(_$keys_20(schema2), function(accum, key) {
|
|
56074
56085
|
var defaultValue = schema2[key].defaultValue(opts[key]);
|
|
56075
56086
|
if (opts[key] !== void 0) {
|
|
56076
56087
|
var valid2 = schema2[key].validate(opts[key]);
|
|
@@ -56848,7 +56859,7 @@ metadata was removed`
|
|
|
56848
56859
|
return target;
|
|
56849
56860
|
}, ___extends_38.apply(this, arguments);
|
|
56850
56861
|
}
|
|
56851
|
-
var name = "Bugsnag Node", version = "8.
|
|
56862
|
+
var name = "Bugsnag Node", version = "8.2.0", url = "https://github.com/bugsnag/bugsnag-js", ___require_38 = __require("async_hooks"), AsyncLocalStorage = ___require_38.AsyncLocalStorage;
|
|
56852
56863
|
_$Event_10.__type = "nodejs";
|
|
56853
56864
|
var __schema_38 = ___extends_38({}, _$config_9.schema, _$config_37), internalPlugins = [_$app_39, _$surroundingCode_45, _$inProject_44, _$stripProjectRoot_51, _$session_48, _$device_43, _$uncaughtException_46, _$unhandledRejection_47, _$intercept_42, _$contextualize_41, _$pathNormaliser_50, _$consoleBreadcrumbs_40], Bugsnag2 = {
|
|
56854
56865
|
_client: null,
|
|
@@ -58180,6 +58191,1146 @@ Source:
|
|
|
58180
58191
|
}
|
|
58181
58192
|
});
|
|
58182
58193
|
|
|
58194
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js
|
|
58195
|
+
var require_constants2 = __commonJS({
|
|
58196
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js"(exports, module) {
|
|
58197
|
+
init_cjs_shims();
|
|
58198
|
+
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
58199
|
+
9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
|
|
58200
|
+
"major",
|
|
58201
|
+
"premajor",
|
|
58202
|
+
"minor",
|
|
58203
|
+
"preminor",
|
|
58204
|
+
"patch",
|
|
58205
|
+
"prepatch",
|
|
58206
|
+
"prerelease"
|
|
58207
|
+
];
|
|
58208
|
+
module.exports = {
|
|
58209
|
+
MAX_LENGTH: 256,
|
|
58210
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
58211
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
58212
|
+
MAX_SAFE_INTEGER,
|
|
58213
|
+
RELEASE_TYPES,
|
|
58214
|
+
SEMVER_SPEC_VERSION,
|
|
58215
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
58216
|
+
FLAG_LOOSE: 2
|
|
58217
|
+
};
|
|
58218
|
+
}
|
|
58219
|
+
});
|
|
58220
|
+
|
|
58221
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js
|
|
58222
|
+
var require_debug = __commonJS({
|
|
58223
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js"(exports, module) {
|
|
58224
|
+
init_cjs_shims();
|
|
58225
|
+
var debug4 = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
58226
|
+
};
|
|
58227
|
+
module.exports = debug4;
|
|
58228
|
+
}
|
|
58229
|
+
});
|
|
58230
|
+
|
|
58231
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js
|
|
58232
|
+
var require_re = __commonJS({
|
|
58233
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js"(exports, module) {
|
|
58234
|
+
init_cjs_shims();
|
|
58235
|
+
var {
|
|
58236
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
58237
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
58238
|
+
MAX_LENGTH
|
|
58239
|
+
} = require_constants2(), debug4 = require_debug();
|
|
58240
|
+
exports = module.exports = {};
|
|
58241
|
+
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t7 = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
58242
|
+
["\\s", 1],
|
|
58243
|
+
["\\d", MAX_LENGTH],
|
|
58244
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
58245
|
+
], makeSafeRegex = (value) => {
|
|
58246
|
+
for (let [token, max] of safeRegexReplacements)
|
|
58247
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
58248
|
+
return value;
|
|
58249
|
+
}, createToken = (name, value, isGlobal) => {
|
|
58250
|
+
let safe = makeSafeRegex(value), index = R++;
|
|
58251
|
+
debug4(name, index, value), t7[name] = index, src[index] = value, safeSrc[index] = safe, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
58252
|
+
};
|
|
58253
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
58254
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
58255
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
58256
|
+
createToken("MAINVERSION", `(${src[t7.NUMERICIDENTIFIER]})\\.(${src[t7.NUMERICIDENTIFIER]})\\.(${src[t7.NUMERICIDENTIFIER]})`);
|
|
58257
|
+
createToken("MAINVERSIONLOOSE", `(${src[t7.NUMERICIDENTIFIERLOOSE]})\\.(${src[t7.NUMERICIDENTIFIERLOOSE]})\\.(${src[t7.NUMERICIDENTIFIERLOOSE]})`);
|
|
58258
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t7.NUMERICIDENTIFIER]}|${src[t7.NONNUMERICIDENTIFIER]})`);
|
|
58259
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t7.NUMERICIDENTIFIERLOOSE]}|${src[t7.NONNUMERICIDENTIFIER]})`);
|
|
58260
|
+
createToken("PRERELEASE", `(?:-(${src[t7.PRERELEASEIDENTIFIER]}(?:\\.${src[t7.PRERELEASEIDENTIFIER]})*))`);
|
|
58261
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t7.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t7.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
58262
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
58263
|
+
createToken("BUILD", `(?:\\+(${src[t7.BUILDIDENTIFIER]}(?:\\.${src[t7.BUILDIDENTIFIER]})*))`);
|
|
58264
|
+
createToken("FULLPLAIN", `v?${src[t7.MAINVERSION]}${src[t7.PRERELEASE]}?${src[t7.BUILD]}?`);
|
|
58265
|
+
createToken("FULL", `^${src[t7.FULLPLAIN]}$`);
|
|
58266
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t7.MAINVERSIONLOOSE]}${src[t7.PRERELEASELOOSE]}?${src[t7.BUILD]}?`);
|
|
58267
|
+
createToken("LOOSE", `^${src[t7.LOOSEPLAIN]}$`);
|
|
58268
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
58269
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t7.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
58270
|
+
createToken("XRANGEIDENTIFIER", `${src[t7.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
58271
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t7.XRANGEIDENTIFIER]})(?:\\.(${src[t7.XRANGEIDENTIFIER]})(?:\\.(${src[t7.XRANGEIDENTIFIER]})(?:${src[t7.PRERELEASE]})?${src[t7.BUILD]}?)?)?`);
|
|
58272
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t7.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t7.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t7.XRANGEIDENTIFIERLOOSE]})(?:${src[t7.PRERELEASELOOSE]})?${src[t7.BUILD]}?)?)?`);
|
|
58273
|
+
createToken("XRANGE", `^${src[t7.GTLT]}\\s*${src[t7.XRANGEPLAIN]}$`);
|
|
58274
|
+
createToken("XRANGELOOSE", `^${src[t7.GTLT]}\\s*${src[t7.XRANGEPLAINLOOSE]}$`);
|
|
58275
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
58276
|
+
createToken("COERCE", `${src[t7.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
58277
|
+
createToken("COERCEFULL", src[t7.COERCEPLAIN] + `(?:${src[t7.PRERELEASE]})?(?:${src[t7.BUILD]})?(?:$|[^\\d])`);
|
|
58278
|
+
createToken("COERCERTL", src[t7.COERCE], !0);
|
|
58279
|
+
createToken("COERCERTLFULL", src[t7.COERCEFULL], !0);
|
|
58280
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
58281
|
+
createToken("TILDETRIM", `(\\s*)${src[t7.LONETILDE]}\\s+`, !0);
|
|
58282
|
+
exports.tildeTrimReplace = "$1~";
|
|
58283
|
+
createToken("TILDE", `^${src[t7.LONETILDE]}${src[t7.XRANGEPLAIN]}$`);
|
|
58284
|
+
createToken("TILDELOOSE", `^${src[t7.LONETILDE]}${src[t7.XRANGEPLAINLOOSE]}$`);
|
|
58285
|
+
createToken("LONECARET", "(?:\\^)");
|
|
58286
|
+
createToken("CARETTRIM", `(\\s*)${src[t7.LONECARET]}\\s+`, !0);
|
|
58287
|
+
exports.caretTrimReplace = "$1^";
|
|
58288
|
+
createToken("CARET", `^${src[t7.LONECARET]}${src[t7.XRANGEPLAIN]}$`);
|
|
58289
|
+
createToken("CARETLOOSE", `^${src[t7.LONECARET]}${src[t7.XRANGEPLAINLOOSE]}$`);
|
|
58290
|
+
createToken("COMPARATORLOOSE", `^${src[t7.GTLT]}\\s*(${src[t7.LOOSEPLAIN]})$|^$`);
|
|
58291
|
+
createToken("COMPARATOR", `^${src[t7.GTLT]}\\s*(${src[t7.FULLPLAIN]})$|^$`);
|
|
58292
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t7.GTLT]}\\s*(${src[t7.LOOSEPLAIN]}|${src[t7.XRANGEPLAIN]})`, !0);
|
|
58293
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
58294
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t7.XRANGEPLAIN]})\\s+-\\s+(${src[t7.XRANGEPLAIN]})\\s*$`);
|
|
58295
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t7.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t7.XRANGEPLAINLOOSE]})\\s*$`);
|
|
58296
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
58297
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
58298
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
58299
|
+
}
|
|
58300
|
+
});
|
|
58301
|
+
|
|
58302
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js
|
|
58303
|
+
var require_parse_options = __commonJS({
|
|
58304
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
58305
|
+
init_cjs_shims();
|
|
58306
|
+
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
58307
|
+
module.exports = parseOptions;
|
|
58308
|
+
}
|
|
58309
|
+
});
|
|
58310
|
+
|
|
58311
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js
|
|
58312
|
+
var require_identifiers = __commonJS({
|
|
58313
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
58314
|
+
init_cjs_shims();
|
|
58315
|
+
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
58316
|
+
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
58317
|
+
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
58318
|
+
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
58319
|
+
module.exports = {
|
|
58320
|
+
compareIdentifiers,
|
|
58321
|
+
rcompareIdentifiers
|
|
58322
|
+
};
|
|
58323
|
+
}
|
|
58324
|
+
});
|
|
58325
|
+
|
|
58326
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js
|
|
58327
|
+
var require_semver2 = __commonJS({
|
|
58328
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js"(exports, module) {
|
|
58329
|
+
init_cjs_shims();
|
|
58330
|
+
var debug4 = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2(), { safeRe: re, safeSrc: src, t: t7 } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
|
|
58331
|
+
constructor(version, options) {
|
|
58332
|
+
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
58333
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
58334
|
+
return version;
|
|
58335
|
+
version = version.version;
|
|
58336
|
+
} else if (typeof version != "string")
|
|
58337
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
58338
|
+
if (version.length > MAX_LENGTH)
|
|
58339
|
+
throw new TypeError(
|
|
58340
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
58341
|
+
);
|
|
58342
|
+
debug4("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
58343
|
+
let m = version.trim().match(options.loose ? re[t7.LOOSE] : re[t7.FULL]);
|
|
58344
|
+
if (!m)
|
|
58345
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
58346
|
+
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
58347
|
+
throw new TypeError("Invalid major version");
|
|
58348
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
58349
|
+
throw new TypeError("Invalid minor version");
|
|
58350
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
58351
|
+
throw new TypeError("Invalid patch version");
|
|
58352
|
+
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
58353
|
+
if (/^[0-9]+$/.test(id)) {
|
|
58354
|
+
let num = +id;
|
|
58355
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
58356
|
+
return num;
|
|
58357
|
+
}
|
|
58358
|
+
return id;
|
|
58359
|
+
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
58360
|
+
}
|
|
58361
|
+
format() {
|
|
58362
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
58363
|
+
}
|
|
58364
|
+
toString() {
|
|
58365
|
+
return this.version;
|
|
58366
|
+
}
|
|
58367
|
+
compare(other) {
|
|
58368
|
+
if (debug4("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
58369
|
+
if (typeof other == "string" && other === this.version)
|
|
58370
|
+
return 0;
|
|
58371
|
+
other = new _SemVer(other, this.options);
|
|
58372
|
+
}
|
|
58373
|
+
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
58374
|
+
}
|
|
58375
|
+
compareMain(other) {
|
|
58376
|
+
return other instanceof _SemVer || (other = new _SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
58377
|
+
}
|
|
58378
|
+
comparePre(other) {
|
|
58379
|
+
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
58380
|
+
return -1;
|
|
58381
|
+
if (!this.prerelease.length && other.prerelease.length)
|
|
58382
|
+
return 1;
|
|
58383
|
+
if (!this.prerelease.length && !other.prerelease.length)
|
|
58384
|
+
return 0;
|
|
58385
|
+
let i = 0;
|
|
58386
|
+
do {
|
|
58387
|
+
let a = this.prerelease[i], b = other.prerelease[i];
|
|
58388
|
+
if (debug4("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
58389
|
+
return 0;
|
|
58390
|
+
if (b === void 0)
|
|
58391
|
+
return 1;
|
|
58392
|
+
if (a === void 0)
|
|
58393
|
+
return -1;
|
|
58394
|
+
if (a === b)
|
|
58395
|
+
continue;
|
|
58396
|
+
return compareIdentifiers(a, b);
|
|
58397
|
+
} while (++i);
|
|
58398
|
+
}
|
|
58399
|
+
compareBuild(other) {
|
|
58400
|
+
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
58401
|
+
let i = 0;
|
|
58402
|
+
do {
|
|
58403
|
+
let a = this.build[i], b = other.build[i];
|
|
58404
|
+
if (debug4("build compare", i, a, b), a === void 0 && b === void 0)
|
|
58405
|
+
return 0;
|
|
58406
|
+
if (b === void 0)
|
|
58407
|
+
return 1;
|
|
58408
|
+
if (a === void 0)
|
|
58409
|
+
return -1;
|
|
58410
|
+
if (a === b)
|
|
58411
|
+
continue;
|
|
58412
|
+
return compareIdentifiers(a, b);
|
|
58413
|
+
} while (++i);
|
|
58414
|
+
}
|
|
58415
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
58416
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
58417
|
+
inc(release2, identifier, identifierBase) {
|
|
58418
|
+
if (release2.startsWith("pre")) {
|
|
58419
|
+
if (!identifier && identifierBase === !1)
|
|
58420
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
58421
|
+
if (identifier) {
|
|
58422
|
+
let r3 = new RegExp(`^${this.options.loose ? src[t7.PRERELEASELOOSE] : src[t7.PRERELEASE]}$`), match2 = `-${identifier}`.match(r3);
|
|
58423
|
+
if (!match2 || match2[1] !== identifier)
|
|
58424
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
58425
|
+
}
|
|
58426
|
+
}
|
|
58427
|
+
switch (release2) {
|
|
58428
|
+
case "premajor":
|
|
58429
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
58430
|
+
break;
|
|
58431
|
+
case "preminor":
|
|
58432
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
58433
|
+
break;
|
|
58434
|
+
case "prepatch":
|
|
58435
|
+
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
58436
|
+
break;
|
|
58437
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
58438
|
+
// prepatch.
|
|
58439
|
+
case "prerelease":
|
|
58440
|
+
this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
58441
|
+
break;
|
|
58442
|
+
case "release":
|
|
58443
|
+
if (this.prerelease.length === 0)
|
|
58444
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
58445
|
+
this.prerelease.length = 0;
|
|
58446
|
+
break;
|
|
58447
|
+
case "major":
|
|
58448
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
58449
|
+
break;
|
|
58450
|
+
case "minor":
|
|
58451
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
58452
|
+
break;
|
|
58453
|
+
case "patch":
|
|
58454
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
58455
|
+
break;
|
|
58456
|
+
// This probably shouldn't be used publicly.
|
|
58457
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
58458
|
+
case "pre": {
|
|
58459
|
+
let base = Number(identifierBase) ? 1 : 0;
|
|
58460
|
+
if (this.prerelease.length === 0)
|
|
58461
|
+
this.prerelease = [base];
|
|
58462
|
+
else {
|
|
58463
|
+
let i = this.prerelease.length;
|
|
58464
|
+
for (; --i >= 0; )
|
|
58465
|
+
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
58466
|
+
if (i === -1) {
|
|
58467
|
+
if (identifier === this.prerelease.join(".") && identifierBase === !1)
|
|
58468
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
58469
|
+
this.prerelease.push(base);
|
|
58470
|
+
}
|
|
58471
|
+
}
|
|
58472
|
+
if (identifier) {
|
|
58473
|
+
let prerelease = [identifier, base];
|
|
58474
|
+
identifierBase === !1 && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
58475
|
+
}
|
|
58476
|
+
break;
|
|
58477
|
+
}
|
|
58478
|
+
default:
|
|
58479
|
+
throw new Error(`invalid increment argument: ${release2}`);
|
|
58480
|
+
}
|
|
58481
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
58482
|
+
}
|
|
58483
|
+
};
|
|
58484
|
+
module.exports = SemVer;
|
|
58485
|
+
}
|
|
58486
|
+
});
|
|
58487
|
+
|
|
58488
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js
|
|
58489
|
+
var require_parse2 = __commonJS({
|
|
58490
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js"(exports, module) {
|
|
58491
|
+
init_cjs_shims();
|
|
58492
|
+
var SemVer = require_semver2(), parse5 = (version, options, throwErrors = !1) => {
|
|
58493
|
+
if (version instanceof SemVer)
|
|
58494
|
+
return version;
|
|
58495
|
+
try {
|
|
58496
|
+
return new SemVer(version, options);
|
|
58497
|
+
} catch (er) {
|
|
58498
|
+
if (!throwErrors)
|
|
58499
|
+
return null;
|
|
58500
|
+
throw er;
|
|
58501
|
+
}
|
|
58502
|
+
};
|
|
58503
|
+
module.exports = parse5;
|
|
58504
|
+
}
|
|
58505
|
+
});
|
|
58506
|
+
|
|
58507
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js
|
|
58508
|
+
var require_valid = __commonJS({
|
|
58509
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js"(exports, module) {
|
|
58510
|
+
init_cjs_shims();
|
|
58511
|
+
var parse5 = require_parse2(), valid2 = (version, options) => {
|
|
58512
|
+
let v = parse5(version, options);
|
|
58513
|
+
return v ? v.version : null;
|
|
58514
|
+
};
|
|
58515
|
+
module.exports = valid2;
|
|
58516
|
+
}
|
|
58517
|
+
});
|
|
58518
|
+
|
|
58519
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js
|
|
58520
|
+
var require_clean = __commonJS({
|
|
58521
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js"(exports, module) {
|
|
58522
|
+
init_cjs_shims();
|
|
58523
|
+
var parse5 = require_parse2(), clean = (version, options) => {
|
|
58524
|
+
let s = parse5(version.trim().replace(/^[=v]+/, ""), options);
|
|
58525
|
+
return s ? s.version : null;
|
|
58526
|
+
};
|
|
58527
|
+
module.exports = clean;
|
|
58528
|
+
}
|
|
58529
|
+
});
|
|
58530
|
+
|
|
58531
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/inc.js
|
|
58532
|
+
var require_inc = __commonJS({
|
|
58533
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/inc.js"(exports, module) {
|
|
58534
|
+
init_cjs_shims();
|
|
58535
|
+
var SemVer = require_semver2(), inc = (version, release2, options, identifier, identifierBase) => {
|
|
58536
|
+
typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
|
|
58537
|
+
try {
|
|
58538
|
+
return new SemVer(
|
|
58539
|
+
version instanceof SemVer ? version.version : version,
|
|
58540
|
+
options
|
|
58541
|
+
).inc(release2, identifier, identifierBase).version;
|
|
58542
|
+
} catch {
|
|
58543
|
+
return null;
|
|
58544
|
+
}
|
|
58545
|
+
};
|
|
58546
|
+
module.exports = inc;
|
|
58547
|
+
}
|
|
58548
|
+
});
|
|
58549
|
+
|
|
58550
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/diff.js
|
|
58551
|
+
var require_diff = __commonJS({
|
|
58552
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/diff.js"(exports, module) {
|
|
58553
|
+
init_cjs_shims();
|
|
58554
|
+
var parse5 = require_parse2(), diff3 = (version1, version2) => {
|
|
58555
|
+
let v1 = parse5(version1, null, !0), v2 = parse5(version2, null, !0), comparison = v1.compare(v2);
|
|
58556
|
+
if (comparison === 0)
|
|
58557
|
+
return null;
|
|
58558
|
+
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
58559
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
58560
|
+
if (!lowVersion.patch && !lowVersion.minor)
|
|
58561
|
+
return "major";
|
|
58562
|
+
if (lowVersion.compareMain(highVersion) === 0)
|
|
58563
|
+
return lowVersion.minor && !lowVersion.patch ? "minor" : "patch";
|
|
58564
|
+
}
|
|
58565
|
+
let prefix = highHasPre ? "pre" : "";
|
|
58566
|
+
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
58567
|
+
};
|
|
58568
|
+
module.exports = diff3;
|
|
58569
|
+
}
|
|
58570
|
+
});
|
|
58571
|
+
|
|
58572
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/major.js
|
|
58573
|
+
var require_major = __commonJS({
|
|
58574
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/major.js"(exports, module) {
|
|
58575
|
+
init_cjs_shims();
|
|
58576
|
+
var SemVer = require_semver2(), major = (a, loose) => new SemVer(a, loose).major;
|
|
58577
|
+
module.exports = major;
|
|
58578
|
+
}
|
|
58579
|
+
});
|
|
58580
|
+
|
|
58581
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/minor.js
|
|
58582
|
+
var require_minor = __commonJS({
|
|
58583
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/minor.js"(exports, module) {
|
|
58584
|
+
init_cjs_shims();
|
|
58585
|
+
var SemVer = require_semver2(), minor = (a, loose) => new SemVer(a, loose).minor;
|
|
58586
|
+
module.exports = minor;
|
|
58587
|
+
}
|
|
58588
|
+
});
|
|
58589
|
+
|
|
58590
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/patch.js
|
|
58591
|
+
var require_patch = __commonJS({
|
|
58592
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/patch.js"(exports, module) {
|
|
58593
|
+
init_cjs_shims();
|
|
58594
|
+
var SemVer = require_semver2(), patch = (a, loose) => new SemVer(a, loose).patch;
|
|
58595
|
+
module.exports = patch;
|
|
58596
|
+
}
|
|
58597
|
+
});
|
|
58598
|
+
|
|
58599
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/prerelease.js
|
|
58600
|
+
var require_prerelease = __commonJS({
|
|
58601
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
58602
|
+
init_cjs_shims();
|
|
58603
|
+
var parse5 = require_parse2(), prerelease = (version, options) => {
|
|
58604
|
+
let parsed = parse5(version, options);
|
|
58605
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
58606
|
+
};
|
|
58607
|
+
module.exports = prerelease;
|
|
58608
|
+
}
|
|
58609
|
+
});
|
|
58610
|
+
|
|
58611
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare.js
|
|
58612
|
+
var require_compare = __commonJS({
|
|
58613
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare.js"(exports, module) {
|
|
58614
|
+
init_cjs_shims();
|
|
58615
|
+
var SemVer = require_semver2(), compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
58616
|
+
module.exports = compare2;
|
|
58617
|
+
}
|
|
58618
|
+
});
|
|
58619
|
+
|
|
58620
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rcompare.js
|
|
58621
|
+
var require_rcompare = __commonJS({
|
|
58622
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
58623
|
+
init_cjs_shims();
|
|
58624
|
+
var compare2 = require_compare(), rcompare = (a, b, loose) => compare2(b, a, loose);
|
|
58625
|
+
module.exports = rcompare;
|
|
58626
|
+
}
|
|
58627
|
+
});
|
|
58628
|
+
|
|
58629
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-loose.js
|
|
58630
|
+
var require_compare_loose = __commonJS({
|
|
58631
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
58632
|
+
init_cjs_shims();
|
|
58633
|
+
var compare2 = require_compare(), compareLoose = (a, b) => compare2(a, b, !0);
|
|
58634
|
+
module.exports = compareLoose;
|
|
58635
|
+
}
|
|
58636
|
+
});
|
|
58637
|
+
|
|
58638
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-build.js
|
|
58639
|
+
var require_compare_build = __commonJS({
|
|
58640
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
58641
|
+
init_cjs_shims();
|
|
58642
|
+
var SemVer = require_semver2(), compareBuild = (a, b, loose) => {
|
|
58643
|
+
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
|
58644
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
58645
|
+
};
|
|
58646
|
+
module.exports = compareBuild;
|
|
58647
|
+
}
|
|
58648
|
+
});
|
|
58649
|
+
|
|
58650
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/sort.js
|
|
58651
|
+
var require_sort = __commonJS({
|
|
58652
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/sort.js"(exports, module) {
|
|
58653
|
+
init_cjs_shims();
|
|
58654
|
+
var compareBuild = require_compare_build(), sort2 = (list2, loose) => list2.sort((a, b) => compareBuild(a, b, loose));
|
|
58655
|
+
module.exports = sort2;
|
|
58656
|
+
}
|
|
58657
|
+
});
|
|
58658
|
+
|
|
58659
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rsort.js
|
|
58660
|
+
var require_rsort = __commonJS({
|
|
58661
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
58662
|
+
init_cjs_shims();
|
|
58663
|
+
var compareBuild = require_compare_build(), rsort = (list2, loose) => list2.sort((a, b) => compareBuild(b, a, loose));
|
|
58664
|
+
module.exports = rsort;
|
|
58665
|
+
}
|
|
58666
|
+
});
|
|
58667
|
+
|
|
58668
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gt.js
|
|
58669
|
+
var require_gt = __commonJS({
|
|
58670
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gt.js"(exports, module) {
|
|
58671
|
+
init_cjs_shims();
|
|
58672
|
+
var compare2 = require_compare(), gt2 = (a, b, loose) => compare2(a, b, loose) > 0;
|
|
58673
|
+
module.exports = gt2;
|
|
58674
|
+
}
|
|
58675
|
+
});
|
|
58676
|
+
|
|
58677
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lt.js
|
|
58678
|
+
var require_lt = __commonJS({
|
|
58679
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lt.js"(exports, module) {
|
|
58680
|
+
init_cjs_shims();
|
|
58681
|
+
var compare2 = require_compare(), lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
|
58682
|
+
module.exports = lt;
|
|
58683
|
+
}
|
|
58684
|
+
});
|
|
58685
|
+
|
|
58686
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/eq.js
|
|
58687
|
+
var require_eq2 = __commonJS({
|
|
58688
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/eq.js"(exports, module) {
|
|
58689
|
+
init_cjs_shims();
|
|
58690
|
+
var compare2 = require_compare(), eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
|
58691
|
+
module.exports = eq;
|
|
58692
|
+
}
|
|
58693
|
+
});
|
|
58694
|
+
|
|
58695
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/neq.js
|
|
58696
|
+
var require_neq = __commonJS({
|
|
58697
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/neq.js"(exports, module) {
|
|
58698
|
+
init_cjs_shims();
|
|
58699
|
+
var compare2 = require_compare(), neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
|
58700
|
+
module.exports = neq;
|
|
58701
|
+
}
|
|
58702
|
+
});
|
|
58703
|
+
|
|
58704
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gte.js
|
|
58705
|
+
var require_gte = __commonJS({
|
|
58706
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gte.js"(exports, module) {
|
|
58707
|
+
init_cjs_shims();
|
|
58708
|
+
var compare2 = require_compare(), gte = (a, b, loose) => compare2(a, b, loose) >= 0;
|
|
58709
|
+
module.exports = gte;
|
|
58710
|
+
}
|
|
58711
|
+
});
|
|
58712
|
+
|
|
58713
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lte.js
|
|
58714
|
+
var require_lte = __commonJS({
|
|
58715
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lte.js"(exports, module) {
|
|
58716
|
+
init_cjs_shims();
|
|
58717
|
+
var compare2 = require_compare(), lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
|
58718
|
+
module.exports = lte;
|
|
58719
|
+
}
|
|
58720
|
+
});
|
|
58721
|
+
|
|
58722
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/cmp.js
|
|
58723
|
+
var require_cmp = __commonJS({
|
|
58724
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
58725
|
+
init_cjs_shims();
|
|
58726
|
+
var eq = require_eq2(), neq = require_neq(), gt2 = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
58727
|
+
switch (op) {
|
|
58728
|
+
case "===":
|
|
58729
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
58730
|
+
case "!==":
|
|
58731
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
58732
|
+
case "":
|
|
58733
|
+
case "=":
|
|
58734
|
+
case "==":
|
|
58735
|
+
return eq(a, b, loose);
|
|
58736
|
+
case "!=":
|
|
58737
|
+
return neq(a, b, loose);
|
|
58738
|
+
case ">":
|
|
58739
|
+
return gt2(a, b, loose);
|
|
58740
|
+
case ">=":
|
|
58741
|
+
return gte(a, b, loose);
|
|
58742
|
+
case "<":
|
|
58743
|
+
return lt(a, b, loose);
|
|
58744
|
+
case "<=":
|
|
58745
|
+
return lte(a, b, loose);
|
|
58746
|
+
default:
|
|
58747
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
58748
|
+
}
|
|
58749
|
+
};
|
|
58750
|
+
module.exports = cmp;
|
|
58751
|
+
}
|
|
58752
|
+
});
|
|
58753
|
+
|
|
58754
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/coerce.js
|
|
58755
|
+
var require_coerce = __commonJS({
|
|
58756
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
58757
|
+
init_cjs_shims();
|
|
58758
|
+
var SemVer = require_semver2(), parse5 = require_parse2(), { safeRe: re, t: t7 } = require_re(), coerce = (version, options) => {
|
|
58759
|
+
if (version instanceof SemVer)
|
|
58760
|
+
return version;
|
|
58761
|
+
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
58762
|
+
return null;
|
|
58763
|
+
options = options || {};
|
|
58764
|
+
let match2 = null;
|
|
58765
|
+
if (!options.rtl)
|
|
58766
|
+
match2 = version.match(options.includePrerelease ? re[t7.COERCEFULL] : re[t7.COERCE]);
|
|
58767
|
+
else {
|
|
58768
|
+
let coerceRtlRegex = options.includePrerelease ? re[t7.COERCERTLFULL] : re[t7.COERCERTL], next;
|
|
58769
|
+
for (; (next = coerceRtlRegex.exec(version)) && (!match2 || match2.index + match2[0].length !== version.length); )
|
|
58770
|
+
(!match2 || next.index + next[0].length !== match2.index + match2[0].length) && (match2 = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
58771
|
+
coerceRtlRegex.lastIndex = -1;
|
|
58772
|
+
}
|
|
58773
|
+
if (match2 === null)
|
|
58774
|
+
return null;
|
|
58775
|
+
let major = match2[2], minor = match2[3] || "0", patch = match2[4] || "0", prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "", build2 = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
58776
|
+
return parse5(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
|
|
58777
|
+
};
|
|
58778
|
+
module.exports = coerce;
|
|
58779
|
+
}
|
|
58780
|
+
});
|
|
58781
|
+
|
|
58782
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/lrucache.js
|
|
58783
|
+
var require_lrucache = __commonJS({
|
|
58784
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
58785
|
+
init_cjs_shims();
|
|
58786
|
+
var LRUCache = class {
|
|
58787
|
+
constructor() {
|
|
58788
|
+
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
58789
|
+
}
|
|
58790
|
+
get(key) {
|
|
58791
|
+
let value = this.map.get(key);
|
|
58792
|
+
if (value !== void 0)
|
|
58793
|
+
return this.map.delete(key), this.map.set(key, value), value;
|
|
58794
|
+
}
|
|
58795
|
+
delete(key) {
|
|
58796
|
+
return this.map.delete(key);
|
|
58797
|
+
}
|
|
58798
|
+
set(key, value) {
|
|
58799
|
+
if (!this.delete(key) && value !== void 0) {
|
|
58800
|
+
if (this.map.size >= this.max) {
|
|
58801
|
+
let firstKey = this.map.keys().next().value;
|
|
58802
|
+
this.delete(firstKey);
|
|
58803
|
+
}
|
|
58804
|
+
this.map.set(key, value);
|
|
58805
|
+
}
|
|
58806
|
+
return this;
|
|
58807
|
+
}
|
|
58808
|
+
};
|
|
58809
|
+
module.exports = LRUCache;
|
|
58810
|
+
}
|
|
58811
|
+
});
|
|
58812
|
+
|
|
58813
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/range.js
|
|
58814
|
+
var require_range = __commonJS({
|
|
58815
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/range.js"(exports, module) {
|
|
58816
|
+
init_cjs_shims();
|
|
58817
|
+
var SPACE_CHARACTERS = /\s+/g, Range3 = class _Range {
|
|
58818
|
+
constructor(range, options) {
|
|
58819
|
+
if (options = parseOptions(options), range instanceof _Range)
|
|
58820
|
+
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
58821
|
+
if (range instanceof Comparator)
|
|
58822
|
+
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
58823
|
+
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c) => c.length), !this.set.length)
|
|
58824
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
58825
|
+
if (this.set.length > 1) {
|
|
58826
|
+
let first = this.set[0];
|
|
58827
|
+
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
58828
|
+
this.set = [first];
|
|
58829
|
+
else if (this.set.length > 1) {
|
|
58830
|
+
for (let c of this.set)
|
|
58831
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
58832
|
+
this.set = [c];
|
|
58833
|
+
break;
|
|
58834
|
+
}
|
|
58835
|
+
}
|
|
58836
|
+
}
|
|
58837
|
+
this.formatted = void 0;
|
|
58838
|
+
}
|
|
58839
|
+
get range() {
|
|
58840
|
+
if (this.formatted === void 0) {
|
|
58841
|
+
this.formatted = "";
|
|
58842
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
58843
|
+
i > 0 && (this.formatted += "||");
|
|
58844
|
+
let comps = this.set[i];
|
|
58845
|
+
for (let k = 0; k < comps.length; k++)
|
|
58846
|
+
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
58847
|
+
}
|
|
58848
|
+
}
|
|
58849
|
+
return this.formatted;
|
|
58850
|
+
}
|
|
58851
|
+
format() {
|
|
58852
|
+
return this.range;
|
|
58853
|
+
}
|
|
58854
|
+
toString() {
|
|
58855
|
+
return this.range;
|
|
58856
|
+
}
|
|
58857
|
+
parseRange(range) {
|
|
58858
|
+
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache4.get(memoKey);
|
|
58859
|
+
if (cached)
|
|
58860
|
+
return cached;
|
|
58861
|
+
let loose = this.options.loose, hr = loose ? re[t7.HYPHENRANGELOOSE] : re[t7.HYPHENRANGE];
|
|
58862
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug4("hyphen replace", range), range = range.replace(re[t7.COMPARATORTRIM], comparatorTrimReplace), debug4("comparator trim", range), range = range.replace(re[t7.TILDETRIM], tildeTrimReplace), debug4("tilde trim", range), range = range.replace(re[t7.CARETTRIM], caretTrimReplace), debug4("caret trim", range);
|
|
58863
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
58864
|
+
loose && (rangeList = rangeList.filter((comp) => (debug4("loose invalid filter", comp, this.options), !!comp.match(re[t7.COMPARATORLOOSE])))), debug4("range list", rangeList);
|
|
58865
|
+
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
58866
|
+
for (let comp of comparators) {
|
|
58867
|
+
if (isNullSet(comp))
|
|
58868
|
+
return [comp];
|
|
58869
|
+
rangeMap.set(comp.value, comp);
|
|
58870
|
+
}
|
|
58871
|
+
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
58872
|
+
let result = [...rangeMap.values()];
|
|
58873
|
+
return cache4.set(memoKey, result), result;
|
|
58874
|
+
}
|
|
58875
|
+
intersects(range, options) {
|
|
58876
|
+
if (!(range instanceof _Range))
|
|
58877
|
+
throw new TypeError("a Range is required");
|
|
58878
|
+
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
|
58879
|
+
}
|
|
58880
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
58881
|
+
test(version) {
|
|
58882
|
+
if (!version)
|
|
58883
|
+
return !1;
|
|
58884
|
+
if (typeof version == "string")
|
|
58885
|
+
try {
|
|
58886
|
+
version = new SemVer(version, this.options);
|
|
58887
|
+
} catch {
|
|
58888
|
+
return !1;
|
|
58889
|
+
}
|
|
58890
|
+
for (let i = 0; i < this.set.length; i++)
|
|
58891
|
+
if (testSet(this.set[i], version, this.options))
|
|
58892
|
+
return !0;
|
|
58893
|
+
return !1;
|
|
58894
|
+
}
|
|
58895
|
+
};
|
|
58896
|
+
module.exports = Range3;
|
|
58897
|
+
var LRU = require_lrucache(), cache4 = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug4 = require_debug(), SemVer = require_semver2(), {
|
|
58898
|
+
safeRe: re,
|
|
58899
|
+
t: t7,
|
|
58900
|
+
comparatorTrimReplace,
|
|
58901
|
+
tildeTrimReplace,
|
|
58902
|
+
caretTrimReplace
|
|
58903
|
+
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
58904
|
+
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
58905
|
+
for (; result && remainingComparators.length; )
|
|
58906
|
+
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
58907
|
+
return result;
|
|
58908
|
+
}, parseComparator = (comp, options) => (debug4("comp", comp, options), comp = replaceCarets(comp, options), debug4("caret", comp), comp = replaceTildes(comp, options), debug4("tildes", comp), comp = replaceXRanges(comp, options), debug4("xrange", comp), comp = replaceStars(comp, options), debug4("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
|
58909
|
+
let r3 = options.loose ? re[t7.TILDELOOSE] : re[t7.TILDE];
|
|
58910
|
+
return comp.replace(r3, (_3, M, m, p, pr) => {
|
|
58911
|
+
debug4("tilde", comp, _3, M, m, p, pr);
|
|
58912
|
+
let ret;
|
|
58913
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug4("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug4("tilde return", ret), ret;
|
|
58914
|
+
});
|
|
58915
|
+
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
58916
|
+
debug4("caret", comp, options);
|
|
58917
|
+
let r3 = options.loose ? re[t7.CARETLOOSE] : re[t7.CARET], z2 = options.includePrerelease ? "-0" : "";
|
|
58918
|
+
return comp.replace(r3, (_3, M, m, p, pr) => {
|
|
58919
|
+
debug4("caret", comp, _3, M, m, p, pr);
|
|
58920
|
+
let ret;
|
|
58921
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z2} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z2} <${+M + 1}.0.0-0` : pr ? (debug4("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug4("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z2} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z2} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug4("caret return", ret), ret;
|
|
58922
|
+
});
|
|
58923
|
+
}, replaceXRanges = (comp, options) => (debug4("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
58924
|
+
comp = comp.trim();
|
|
58925
|
+
let r3 = options.loose ? re[t7.XRANGELOOSE] : re[t7.XRANGE];
|
|
58926
|
+
return comp.replace(r3, (ret, gtlt, M, m, p, pr) => {
|
|
58927
|
+
debug4("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
58928
|
+
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
58929
|
+
return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug4("xRange return", ret), ret;
|
|
58930
|
+
});
|
|
58931
|
+
}, replaceStars = (comp, options) => (debug4("replaceStars", comp, options), comp.trim().replace(re[t7.STAR], "")), replaceGTE0 = (comp, options) => (debug4("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t7.GTE0PRE : t7.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set2, version, options) => {
|
|
58932
|
+
for (let i = 0; i < set2.length; i++)
|
|
58933
|
+
if (!set2[i].test(version))
|
|
58934
|
+
return !1;
|
|
58935
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
58936
|
+
for (let i = 0; i < set2.length; i++)
|
|
58937
|
+
if (debug4(set2[i].semver), set2[i].semver !== Comparator.ANY && set2[i].semver.prerelease.length > 0) {
|
|
58938
|
+
let allowed = set2[i].semver;
|
|
58939
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
58940
|
+
return !0;
|
|
58941
|
+
}
|
|
58942
|
+
return !1;
|
|
58943
|
+
}
|
|
58944
|
+
return !0;
|
|
58945
|
+
};
|
|
58946
|
+
}
|
|
58947
|
+
});
|
|
58948
|
+
|
|
58949
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/comparator.js
|
|
58950
|
+
var require_comparator = __commonJS({
|
|
58951
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
58952
|
+
init_cjs_shims();
|
|
58953
|
+
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
58954
|
+
static get ANY() {
|
|
58955
|
+
return ANY;
|
|
58956
|
+
}
|
|
58957
|
+
constructor(comp, options) {
|
|
58958
|
+
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
58959
|
+
if (comp.loose === !!options.loose)
|
|
58960
|
+
return comp;
|
|
58961
|
+
comp = comp.value;
|
|
58962
|
+
}
|
|
58963
|
+
comp = comp.trim().split(/\s+/).join(" "), debug4("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug4("comp", this);
|
|
58964
|
+
}
|
|
58965
|
+
parse(comp) {
|
|
58966
|
+
let r3 = this.options.loose ? re[t7.COMPARATORLOOSE] : re[t7.COMPARATOR], m = comp.match(r3);
|
|
58967
|
+
if (!m)
|
|
58968
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
58969
|
+
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
|
|
58970
|
+
}
|
|
58971
|
+
toString() {
|
|
58972
|
+
return this.value;
|
|
58973
|
+
}
|
|
58974
|
+
test(version) {
|
|
58975
|
+
if (debug4("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
58976
|
+
return !0;
|
|
58977
|
+
if (typeof version == "string")
|
|
58978
|
+
try {
|
|
58979
|
+
version = new SemVer(version, this.options);
|
|
58980
|
+
} catch {
|
|
58981
|
+
return !1;
|
|
58982
|
+
}
|
|
58983
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
58984
|
+
}
|
|
58985
|
+
intersects(comp, options) {
|
|
58986
|
+
if (!(comp instanceof _Comparator))
|
|
58987
|
+
throw new TypeError("a Comparator is required");
|
|
58988
|
+
return this.operator === "" ? this.value === "" ? !0 : new Range3(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range3(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
|
|
58989
|
+
}
|
|
58990
|
+
};
|
|
58991
|
+
module.exports = Comparator;
|
|
58992
|
+
var parseOptions = require_parse_options(), { safeRe: re, t: t7 } = require_re(), cmp = require_cmp(), debug4 = require_debug(), SemVer = require_semver2(), Range3 = require_range();
|
|
58993
|
+
}
|
|
58994
|
+
});
|
|
58995
|
+
|
|
58996
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/satisfies.js
|
|
58997
|
+
var require_satisfies = __commonJS({
|
|
58998
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
58999
|
+
init_cjs_shims();
|
|
59000
|
+
var Range3 = require_range(), satisfies = (version, range, options) => {
|
|
59001
|
+
try {
|
|
59002
|
+
range = new Range3(range, options);
|
|
59003
|
+
} catch {
|
|
59004
|
+
return !1;
|
|
59005
|
+
}
|
|
59006
|
+
return range.test(version);
|
|
59007
|
+
};
|
|
59008
|
+
module.exports = satisfies;
|
|
59009
|
+
}
|
|
59010
|
+
});
|
|
59011
|
+
|
|
59012
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/to-comparators.js
|
|
59013
|
+
var require_to_comparators = __commonJS({
|
|
59014
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
59015
|
+
init_cjs_shims();
|
|
59016
|
+
var Range3 = require_range(), toComparators = (range, options) => new Range3(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
59017
|
+
module.exports = toComparators;
|
|
59018
|
+
}
|
|
59019
|
+
});
|
|
59020
|
+
|
|
59021
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/max-satisfying.js
|
|
59022
|
+
var require_max_satisfying = __commonJS({
|
|
59023
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
59024
|
+
init_cjs_shims();
|
|
59025
|
+
var SemVer = require_semver2(), Range3 = require_range(), maxSatisfying = (versions2, range, options) => {
|
|
59026
|
+
let max = null, maxSV = null, rangeObj = null;
|
|
59027
|
+
try {
|
|
59028
|
+
rangeObj = new Range3(range, options);
|
|
59029
|
+
} catch {
|
|
59030
|
+
return null;
|
|
59031
|
+
}
|
|
59032
|
+
return versions2.forEach((v) => {
|
|
59033
|
+
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
|
59034
|
+
}), max;
|
|
59035
|
+
};
|
|
59036
|
+
module.exports = maxSatisfying;
|
|
59037
|
+
}
|
|
59038
|
+
});
|
|
59039
|
+
|
|
59040
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-satisfying.js
|
|
59041
|
+
var require_min_satisfying = __commonJS({
|
|
59042
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
59043
|
+
init_cjs_shims();
|
|
59044
|
+
var SemVer = require_semver2(), Range3 = require_range(), minSatisfying = (versions2, range, options) => {
|
|
59045
|
+
let min = null, minSV = null, rangeObj = null;
|
|
59046
|
+
try {
|
|
59047
|
+
rangeObj = new Range3(range, options);
|
|
59048
|
+
} catch {
|
|
59049
|
+
return null;
|
|
59050
|
+
}
|
|
59051
|
+
return versions2.forEach((v) => {
|
|
59052
|
+
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
|
59053
|
+
}), min;
|
|
59054
|
+
};
|
|
59055
|
+
module.exports = minSatisfying;
|
|
59056
|
+
}
|
|
59057
|
+
});
|
|
59058
|
+
|
|
59059
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-version.js
|
|
59060
|
+
var require_min_version = __commonJS({
|
|
59061
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
59062
|
+
init_cjs_shims();
|
|
59063
|
+
var SemVer = require_semver2(), Range3 = require_range(), gt2 = require_gt(), minVersion = (range, loose) => {
|
|
59064
|
+
range = new Range3(range, loose);
|
|
59065
|
+
let minver = new SemVer("0.0.0");
|
|
59066
|
+
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
|
|
59067
|
+
return minver;
|
|
59068
|
+
minver = null;
|
|
59069
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
59070
|
+
let comparators = range.set[i], setMin = null;
|
|
59071
|
+
comparators.forEach((comparator) => {
|
|
59072
|
+
let compver = new SemVer(comparator.semver.version);
|
|
59073
|
+
switch (comparator.operator) {
|
|
59074
|
+
case ">":
|
|
59075
|
+
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
59076
|
+
/* fallthrough */
|
|
59077
|
+
case "":
|
|
59078
|
+
case ">=":
|
|
59079
|
+
(!setMin || gt2(compver, setMin)) && (setMin = compver);
|
|
59080
|
+
break;
|
|
59081
|
+
case "<":
|
|
59082
|
+
case "<=":
|
|
59083
|
+
break;
|
|
59084
|
+
/* istanbul ignore next */
|
|
59085
|
+
default:
|
|
59086
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
59087
|
+
}
|
|
59088
|
+
}), setMin && (!minver || gt2(minver, setMin)) && (minver = setMin);
|
|
59089
|
+
}
|
|
59090
|
+
return minver && range.test(minver) ? minver : null;
|
|
59091
|
+
};
|
|
59092
|
+
module.exports = minVersion;
|
|
59093
|
+
}
|
|
59094
|
+
});
|
|
59095
|
+
|
|
59096
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/valid.js
|
|
59097
|
+
var require_valid2 = __commonJS({
|
|
59098
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
59099
|
+
init_cjs_shims();
|
|
59100
|
+
var Range3 = require_range(), validRange2 = (range, options) => {
|
|
59101
|
+
try {
|
|
59102
|
+
return new Range3(range, options).range || "*";
|
|
59103
|
+
} catch {
|
|
59104
|
+
return null;
|
|
59105
|
+
}
|
|
59106
|
+
};
|
|
59107
|
+
module.exports = validRange2;
|
|
59108
|
+
}
|
|
59109
|
+
});
|
|
59110
|
+
|
|
59111
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/outside.js
|
|
59112
|
+
var require_outside = __commonJS({
|
|
59113
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
59114
|
+
init_cjs_shims();
|
|
59115
|
+
var SemVer = require_semver2(), Comparator = require_comparator(), { ANY } = Comparator, Range3 = require_range(), satisfies = require_satisfies(), gt2 = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version, range, hilo, options) => {
|
|
59116
|
+
version = new SemVer(version, options), range = new Range3(range, options);
|
|
59117
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
59118
|
+
switch (hilo) {
|
|
59119
|
+
case ">":
|
|
59120
|
+
gtfn = gt2, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
59121
|
+
break;
|
|
59122
|
+
case "<":
|
|
59123
|
+
gtfn = lt, ltefn = gte, ltfn = gt2, comp = "<", ecomp = "<=";
|
|
59124
|
+
break;
|
|
59125
|
+
default:
|
|
59126
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
59127
|
+
}
|
|
59128
|
+
if (satisfies(version, range, options))
|
|
59129
|
+
return !1;
|
|
59130
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
59131
|
+
let comparators = range.set[i], high = null, low = null;
|
|
59132
|
+
if (comparators.forEach((comparator) => {
|
|
59133
|
+
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
|
59134
|
+
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
59135
|
+
return !1;
|
|
59136
|
+
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
59137
|
+
return !1;
|
|
59138
|
+
}
|
|
59139
|
+
return !0;
|
|
59140
|
+
};
|
|
59141
|
+
module.exports = outside;
|
|
59142
|
+
}
|
|
59143
|
+
});
|
|
59144
|
+
|
|
59145
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/gtr.js
|
|
59146
|
+
var require_gtr = __commonJS({
|
|
59147
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
59148
|
+
init_cjs_shims();
|
|
59149
|
+
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
59150
|
+
module.exports = gtr;
|
|
59151
|
+
}
|
|
59152
|
+
});
|
|
59153
|
+
|
|
59154
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/ltr.js
|
|
59155
|
+
var require_ltr = __commonJS({
|
|
59156
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
59157
|
+
init_cjs_shims();
|
|
59158
|
+
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
59159
|
+
module.exports = ltr;
|
|
59160
|
+
}
|
|
59161
|
+
});
|
|
59162
|
+
|
|
59163
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/intersects.js
|
|
59164
|
+
var require_intersects = __commonJS({
|
|
59165
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
59166
|
+
init_cjs_shims();
|
|
59167
|
+
var Range3 = require_range(), intersects = (r1, r22, options) => (r1 = new Range3(r1, options), r22 = new Range3(r22, options), r1.intersects(r22, options));
|
|
59168
|
+
module.exports = intersects;
|
|
59169
|
+
}
|
|
59170
|
+
});
|
|
59171
|
+
|
|
59172
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/simplify.js
|
|
59173
|
+
var require_simplify = __commonJS({
|
|
59174
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
59175
|
+
init_cjs_shims();
|
|
59176
|
+
var satisfies = require_satisfies(), compare2 = require_compare();
|
|
59177
|
+
module.exports = (versions2, range, options) => {
|
|
59178
|
+
let set2 = [], first = null, prev = null, v = versions2.sort((a, b) => compare2(a, b, options));
|
|
59179
|
+
for (let version of v)
|
|
59180
|
+
satisfies(version, range, options) ? (prev = version, first || (first = version)) : (prev && set2.push([first, prev]), prev = null, first = null);
|
|
59181
|
+
first && set2.push([first, null]);
|
|
59182
|
+
let ranges = [];
|
|
59183
|
+
for (let [min, max] of set2)
|
|
59184
|
+
min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
|
|
59185
|
+
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
59186
|
+
return simplified.length < original.length ? simplified : range;
|
|
59187
|
+
};
|
|
59188
|
+
}
|
|
59189
|
+
});
|
|
59190
|
+
|
|
59191
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/subset.js
|
|
59192
|
+
var require_subset = __commonJS({
|
|
59193
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
59194
|
+
init_cjs_shims();
|
|
59195
|
+
var Range3 = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare2 = require_compare(), subset = (sub, dom, options = {}) => {
|
|
59196
|
+
if (sub === dom)
|
|
59197
|
+
return !0;
|
|
59198
|
+
sub = new Range3(sub, options), dom = new Range3(dom, options);
|
|
59199
|
+
let sawNonNull = !1;
|
|
59200
|
+
OUTER: for (let simpleSub of sub.set) {
|
|
59201
|
+
for (let simpleDom of dom.set) {
|
|
59202
|
+
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
59203
|
+
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
59204
|
+
continue OUTER;
|
|
59205
|
+
}
|
|
59206
|
+
if (sawNonNull)
|
|
59207
|
+
return !1;
|
|
59208
|
+
}
|
|
59209
|
+
return !0;
|
|
59210
|
+
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
59211
|
+
if (sub === dom)
|
|
59212
|
+
return !0;
|
|
59213
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
59214
|
+
if (dom.length === 1 && dom[0].semver === ANY)
|
|
59215
|
+
return !0;
|
|
59216
|
+
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
59217
|
+
}
|
|
59218
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
59219
|
+
if (options.includePrerelease)
|
|
59220
|
+
return !0;
|
|
59221
|
+
dom = minimumVersion;
|
|
59222
|
+
}
|
|
59223
|
+
let eqSet = /* @__PURE__ */ new Set(), gt2, lt;
|
|
59224
|
+
for (let c of sub)
|
|
59225
|
+
c.operator === ">" || c.operator === ">=" ? gt2 = higherGT(gt2, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
59226
|
+
if (eqSet.size > 1)
|
|
59227
|
+
return null;
|
|
59228
|
+
let gtltComp;
|
|
59229
|
+
if (gt2 && lt) {
|
|
59230
|
+
if (gtltComp = compare2(gt2.semver, lt.semver, options), gtltComp > 0)
|
|
59231
|
+
return null;
|
|
59232
|
+
if (gtltComp === 0 && (gt2.operator !== ">=" || lt.operator !== "<="))
|
|
59233
|
+
return null;
|
|
59234
|
+
}
|
|
59235
|
+
for (let eq of eqSet) {
|
|
59236
|
+
if (gt2 && !satisfies(eq, String(gt2), options) || lt && !satisfies(eq, String(lt), options))
|
|
59237
|
+
return null;
|
|
59238
|
+
for (let c of dom)
|
|
59239
|
+
if (!satisfies(eq, String(c), options))
|
|
59240
|
+
return !1;
|
|
59241
|
+
return !0;
|
|
59242
|
+
}
|
|
59243
|
+
let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt2 && !options.includePrerelease && gt2.semver.prerelease.length ? gt2.semver : !1;
|
|
59244
|
+
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
59245
|
+
for (let c of dom) {
|
|
59246
|
+
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt2) {
|
|
59247
|
+
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
|
|
59248
|
+
if (higher = higherGT(gt2, c, options), higher === c && higher !== gt2)
|
|
59249
|
+
return !1;
|
|
59250
|
+
} else if (gt2.operator === ">=" && !satisfies(gt2.semver, String(c), options))
|
|
59251
|
+
return !1;
|
|
59252
|
+
}
|
|
59253
|
+
if (lt) {
|
|
59254
|
+
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
|
|
59255
|
+
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
59256
|
+
return !1;
|
|
59257
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
|
|
59258
|
+
return !1;
|
|
59259
|
+
}
|
|
59260
|
+
if (!c.operator && (lt || gt2) && gtltComp !== 0)
|
|
59261
|
+
return !1;
|
|
59262
|
+
}
|
|
59263
|
+
return !(gt2 && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt2 && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
59264
|
+
}, higherGT = (a, b, options) => {
|
|
59265
|
+
if (!a)
|
|
59266
|
+
return b;
|
|
59267
|
+
let comp = compare2(a.semver, b.semver, options);
|
|
59268
|
+
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
59269
|
+
}, lowerLT = (a, b, options) => {
|
|
59270
|
+
if (!a)
|
|
59271
|
+
return b;
|
|
59272
|
+
let comp = compare2(a.semver, b.semver, options);
|
|
59273
|
+
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
59274
|
+
};
|
|
59275
|
+
module.exports = subset;
|
|
59276
|
+
}
|
|
59277
|
+
});
|
|
59278
|
+
|
|
59279
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/index.js
|
|
59280
|
+
var require_semver3 = __commonJS({
|
|
59281
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/index.js"(exports, module) {
|
|
59282
|
+
init_cjs_shims();
|
|
59283
|
+
var internalRe = require_re(), constants = require_constants2(), SemVer = require_semver2(), identifiers = require_identifiers(), parse5 = require_parse2(), valid2 = require_valid(), clean = require_clean(), inc = require_inc(), diff3 = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare2 = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort2 = require_sort(), rsort = require_rsort(), gt2 = require_gt(), lt = require_lt(), eq = require_eq2(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range3 = require_range(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange2 = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
|
59284
|
+
module.exports = {
|
|
59285
|
+
parse: parse5,
|
|
59286
|
+
valid: valid2,
|
|
59287
|
+
clean,
|
|
59288
|
+
inc,
|
|
59289
|
+
diff: diff3,
|
|
59290
|
+
major,
|
|
59291
|
+
minor,
|
|
59292
|
+
patch,
|
|
59293
|
+
prerelease,
|
|
59294
|
+
compare: compare2,
|
|
59295
|
+
rcompare,
|
|
59296
|
+
compareLoose,
|
|
59297
|
+
compareBuild,
|
|
59298
|
+
sort: sort2,
|
|
59299
|
+
rsort,
|
|
59300
|
+
gt: gt2,
|
|
59301
|
+
lt,
|
|
59302
|
+
eq,
|
|
59303
|
+
neq,
|
|
59304
|
+
gte,
|
|
59305
|
+
lte,
|
|
59306
|
+
cmp,
|
|
59307
|
+
coerce,
|
|
59308
|
+
Comparator,
|
|
59309
|
+
Range: Range3,
|
|
59310
|
+
satisfies,
|
|
59311
|
+
toComparators,
|
|
59312
|
+
maxSatisfying,
|
|
59313
|
+
minSatisfying,
|
|
59314
|
+
minVersion,
|
|
59315
|
+
validRange: validRange2,
|
|
59316
|
+
outside,
|
|
59317
|
+
gtr,
|
|
59318
|
+
ltr,
|
|
59319
|
+
intersects,
|
|
59320
|
+
simplifyRange,
|
|
59321
|
+
subset,
|
|
59322
|
+
SemVer,
|
|
59323
|
+
re: internalRe.re,
|
|
59324
|
+
src: internalRe.src,
|
|
59325
|
+
tokens: internalRe.t,
|
|
59326
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
59327
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
59328
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
59329
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
59330
|
+
};
|
|
59331
|
+
}
|
|
59332
|
+
});
|
|
59333
|
+
|
|
58183
59334
|
// ../../node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.js
|
|
58184
59335
|
var require_emoji_regex = __commonJS({
|
|
58185
59336
|
"../../node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.js"(exports, module) {
|
|
@@ -61493,7 +62644,7 @@ var require_plugins = __commonJS({
|
|
|
61493
62644
|
});
|
|
61494
62645
|
|
|
61495
62646
|
// ../../node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.7.3/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parse.js
|
|
61496
|
-
var
|
|
62647
|
+
var require_parse3 = __commonJS({
|
|
61497
62648
|
"../../node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.7.3/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parse.js"(exports) {
|
|
61498
62649
|
"use strict";
|
|
61499
62650
|
init_cjs_shims();
|
|
@@ -63652,7 +64803,7 @@ var require_resolve_external = __commonJS({
|
|
|
63652
64803
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
63653
64804
|
};
|
|
63654
64805
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
63655
|
-
var ref_js_1 = __importDefault2(require_ref()), pointer_js_1 = __importDefault2(require_pointer()), parse_js_1 = __importDefault2(
|
|
64806
|
+
var ref_js_1 = __importDefault2(require_ref()), pointer_js_1 = __importDefault2(require_pointer()), parse_js_1 = __importDefault2(require_parse3()), url = __importStar2(require_url()), errors_js_1 = require_errors5();
|
|
63656
64807
|
function resolveExternal(parser, options) {
|
|
63657
64808
|
if (!options.resolve?.external)
|
|
63658
64809
|
return Promise.resolve();
|
|
@@ -64008,7 +65159,7 @@ var require_lib8 = __commonJS({
|
|
|
64008
65159
|
};
|
|
64009
65160
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
64010
65161
|
exports.getJsonSchemaRefParserDefaultOptions = exports.jsonSchemaParserNormalizeArgs = exports.dereferenceInternal = exports.JSONParserErrorGroup = exports.isHandledError = exports.UnmatchedParserError = exports.ParserError = exports.ResolverError = exports.MissingPointerError = exports.InvalidPointerError = exports.JSONParserError = exports.UnmatchedResolverError = exports.dereference = exports.bundle = exports.resolve = exports.parse = exports.$RefParser = void 0;
|
|
64011
|
-
var refs_js_1 = __importDefault2(require_refs()), parse_js_1 = __importDefault2(
|
|
65162
|
+
var refs_js_1 = __importDefault2(require_refs()), parse_js_1 = __importDefault2(require_parse3()), normalize_args_js_1 = __importDefault2(require_normalize_args());
|
|
64012
65163
|
exports.jsonSchemaParserNormalizeArgs = normalize_args_js_1.default;
|
|
64013
65164
|
var resolve_external_js_1 = __importDefault2(require_resolve_external()), bundle_js_1 = __importDefault2(require_bundle()), dereference_js_1 = __importDefault2(require_dereference());
|
|
64014
65165
|
exports.dereferenceInternal = dereference_js_1.default;
|
|
@@ -79935,7 +81086,7 @@ var require_utils12 = __commonJS({
|
|
|
79935
81086
|
});
|
|
79936
81087
|
|
|
79937
81088
|
// ../../node_modules/.pnpm/@shopify+polaris-tokens@8.10.0/node_modules/@shopify/polaris-tokens/dist/cjs/src/themes/constants.js
|
|
79938
|
-
var
|
|
81089
|
+
var require_constants3 = __commonJS({
|
|
79939
81090
|
"../../node_modules/.pnpm/@shopify+polaris-tokens@8.10.0/node_modules/@shopify/polaris-tokens/dist/cjs/src/themes/constants.js"(exports) {
|
|
79940
81091
|
"use strict";
|
|
79941
81092
|
init_cjs_shims();
|
|
@@ -80242,7 +81393,7 @@ var require_themes = __commonJS({
|
|
|
80242
81393
|
"../../node_modules/.pnpm/@shopify+polaris-tokens@8.10.0/node_modules/@shopify/polaris-tokens/dist/cjs/src/themes/index.js"(exports) {
|
|
80243
81394
|
"use strict";
|
|
80244
81395
|
init_cjs_shims();
|
|
80245
|
-
var utils = require_utils12(), constants =
|
|
81396
|
+
var utils = require_utils12(), constants = require_constants3(), light = require_light(), lightHighContrast = require_light_high_contrast(), lightMobile = require_light_mobile(), dark = require_dark(), metaThemes = {
|
|
80246
81397
|
light: light.metaThemeLight,
|
|
80247
81398
|
"light-mobile": lightMobile.metaThemeLightMobile,
|
|
80248
81399
|
"light-high-contrast-experimental": lightHighContrast.metaThemeLightHighContrast,
|
|
@@ -80266,7 +81417,7 @@ var require_build = __commonJS({
|
|
|
80266
81417
|
"../../node_modules/.pnpm/@shopify+polaris-tokens@8.10.0/node_modules/@shopify/polaris-tokens/dist/cjs/build/index.js"(exports) {
|
|
80267
81418
|
"use strict";
|
|
80268
81419
|
init_cjs_shims();
|
|
80269
|
-
var breakpoints = require_breakpoints(), utils = require_utils11(), index = require_themes(), constants =
|
|
81420
|
+
var breakpoints = require_breakpoints(), utils = require_utils11(), index = require_themes(), constants = require_constants3(), utils$1 = require_utils12(), themes = {
|
|
80270
81421
|
light: {
|
|
80271
81422
|
border: {
|
|
80272
81423
|
"border-radius-0": "0rem",
|
|
@@ -137029,7 +138180,7 @@ var require_ms2 = __commonJS({
|
|
|
137029
138180
|
});
|
|
137030
138181
|
|
|
137031
138182
|
// ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/debug.js
|
|
137032
|
-
var
|
|
138183
|
+
var require_debug2 = __commonJS({
|
|
137033
138184
|
"../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/debug.js"(exports, module) {
|
|
137034
138185
|
init_cjs_shims();
|
|
137035
138186
|
exports = module.exports = createDebug.debug = createDebug.default = createDebug;
|
|
@@ -137101,7 +138252,7 @@ var require_debug = __commonJS({
|
|
|
137101
138252
|
var require_browser = __commonJS({
|
|
137102
138253
|
"../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/browser.js"(exports, module) {
|
|
137103
138254
|
init_cjs_shims();
|
|
137104
|
-
exports = module.exports =
|
|
138255
|
+
exports = module.exports = require_debug2();
|
|
137105
138256
|
exports.log = log;
|
|
137106
138257
|
exports.formatArgs = formatArgs;
|
|
137107
138258
|
exports.save = save;
|
|
@@ -137173,7 +138324,7 @@ var require_node6 = __commonJS({
|
|
|
137173
138324
|
"../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/node.js"(exports, module) {
|
|
137174
138325
|
init_cjs_shims();
|
|
137175
138326
|
var tty = __require("tty"), util2 = __require("util");
|
|
137176
|
-
exports = module.exports =
|
|
138327
|
+
exports = module.exports = require_debug2();
|
|
137177
138328
|
exports.init = init4;
|
|
137178
138329
|
exports.log = log;
|
|
137179
138330
|
exports.formatArgs = formatArgs;
|
|
@@ -140955,7 +142106,7 @@ var require_eval = __commonJS({
|
|
|
140955
142106
|
});
|
|
140956
142107
|
|
|
140957
142108
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
140958
|
-
var
|
|
142109
|
+
var require_range2 = __commonJS({
|
|
140959
142110
|
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
|
|
140960
142111
|
"use strict";
|
|
140961
142112
|
init_cjs_shims();
|
|
@@ -141131,7 +142282,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
141131
142282
|
"../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
141132
142283
|
"use strict";
|
|
141133
142284
|
init_cjs_shims();
|
|
141134
|
-
var undefined2, $Error = require_es_errors(), $EvalError = require_eval(), $RangeError =
|
|
142285
|
+
var undefined2, $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range2(), $ReferenceError = require_ref2(), $SyntaxError = require_syntax(), $TypeError = require_type2(), $URIError = require_uri2(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
|
|
141135
142286
|
try {
|
|
141136
142287
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
141137
142288
|
} catch {
|
|
@@ -142291,7 +143442,7 @@ var require_stringify2 = __commonJS({
|
|
|
142291
143442
|
});
|
|
142292
143443
|
|
|
142293
143444
|
// ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js
|
|
142294
|
-
var
|
|
143445
|
+
var require_parse4 = __commonJS({
|
|
142295
143446
|
"../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js"(exports, module) {
|
|
142296
143447
|
"use strict";
|
|
142297
143448
|
init_cjs_shims();
|
|
@@ -142432,7 +143583,7 @@ var require_lib10 = __commonJS({
|
|
|
142432
143583
|
"../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/index.js"(exports, module) {
|
|
142433
143584
|
"use strict";
|
|
142434
143585
|
init_cjs_shims();
|
|
142435
|
-
var stringify = require_stringify2(), parse5 =
|
|
143586
|
+
var stringify = require_stringify2(), parse5 = require_parse4(), formats2 = require_formats();
|
|
142436
143587
|
module.exports = {
|
|
142437
143588
|
formats: formats2,
|
|
142438
143589
|
parse: parse5,
|
|
@@ -160586,7 +161737,7 @@ var require_react_reconciler_constants_development = __commonJS({
|
|
|
160586
161737
|
});
|
|
160587
161738
|
|
|
160588
161739
|
// ../../node_modules/.pnpm/react-reconciler@0.29.2_react@18.3.1/node_modules/react-reconciler/constants.js
|
|
160589
|
-
var
|
|
161740
|
+
var require_constants4 = __commonJS({
|
|
160590
161741
|
"../../node_modules/.pnpm/react-reconciler@0.29.2_react@18.3.1/node_modules/react-reconciler/constants.js"(exports, module) {
|
|
160591
161742
|
"use strict";
|
|
160592
161743
|
init_cjs_shims();
|
|
@@ -172550,14 +173701,14 @@ var COMMANDS = {
|
|
|
172550
173701
|
"theme:share": share_default
|
|
172551
173702
|
}, dist_default3 = COMMANDS;
|
|
172552
173703
|
|
|
172553
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173704
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/index.js
|
|
172554
173705
|
init_cjs_shims();
|
|
172555
173706
|
|
|
172556
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173707
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
|
|
172557
173708
|
init_cjs_shims();
|
|
172558
173709
|
var import_core17 = __toESM(require_lib(), 1);
|
|
172559
173710
|
|
|
172560
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173711
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
|
|
172561
173712
|
init_cjs_shims();
|
|
172562
173713
|
import { symlink, cp } from "node:fs/promises";
|
|
172563
173714
|
|
|
@@ -172574,7 +173725,7 @@ function temporaryDirectory({ prefix = "" } = {}) {
|
|
|
172574
173725
|
return fs2.mkdirSync(directory), directory;
|
|
172575
173726
|
}
|
|
172576
173727
|
|
|
172577
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173728
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
|
|
172578
173729
|
async function prepareDiffDirectory(diffDirectory, watch) {
|
|
172579
173730
|
let targetDirectory = temporaryDirectory({ prefix: "tmp-hydrogen-diff-" });
|
|
172580
173731
|
outputInfo(
|
|
@@ -172746,10 +173897,10 @@ async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
|
|
|
172746
173897
|
}), await mergeTsConfig(diffDirectory, targetDirectory);
|
|
172747
173898
|
}
|
|
172748
173899
|
|
|
172749
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173900
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
|
|
172750
173901
|
init_cjs_shims();
|
|
172751
173902
|
|
|
172752
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173903
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/package-managers.js
|
|
172753
173904
|
init_cjs_shims();
|
|
172754
173905
|
var packageManagers = [
|
|
172755
173906
|
{
|
|
@@ -172774,7 +173925,7 @@ var packageManagers = [
|
|
|
172774
173925
|
}
|
|
172775
173926
|
];
|
|
172776
173927
|
|
|
172777
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173928
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
|
|
172778
173929
|
function missingLockfileWarning(shouldExit) {
|
|
172779
173930
|
let headline = "No lockfile found", body = "If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying. To avoid versioning issues, generate a new lockfile and commit it to your repository.", nextSteps = [
|
|
172780
173931
|
[
|
|
@@ -172824,7 +173975,7 @@ async function checkLockfileStatus(directory, shouldExit = !1) {
|
|
|
172824
173975
|
]).catch(() => [])).length > 0 && lockfileIgnoredWarning(lockfile2);
|
|
172825
173976
|
}
|
|
172826
173977
|
|
|
172827
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
173978
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/route-validator.js
|
|
172828
173979
|
init_cjs_shims();
|
|
172829
173980
|
var RESERVED_ROUTES = ["^api/[^/]+/graphql.json", "^cdn/", "^_t/"];
|
|
172830
173981
|
function findReservedRoutes(config2) {
|
|
@@ -172888,7 +174039,7 @@ function findMissingRoutes(config2, requiredRoutes = REQUIRED_ROUTES) {
|
|
|
172888
174039
|
(r3) => r3.id === currentRoute.parentId
|
|
172889
174040
|
);
|
|
172890
174041
|
if (!parentRoute) break;
|
|
172891
|
-
currentRoute.path = `${parentRoute.path}/${currentRoute.path}`, currentRoute.parentId = parentRoute.parentId;
|
|
174042
|
+
currentRoute.path = parentRoute.path == null ? currentRoute.path : `${parentRoute.path}/${currentRoute.path}`, currentRoute.parentId = parentRoute.parentId;
|
|
172892
174043
|
}
|
|
172893
174044
|
let optionalSegment = ":?[^\\/\\?]+\\?", reString = `^(${optionalSegment}\\/)?` + // Starts with an optional segment
|
|
172894
174045
|
requiredRoute.replaceAll(".", "\\.").replace(/\//g, `\\/(${optionalSegment}\\/)?`).replace(/:[^/)?]+/g, "(:[^\\/]+|\\*)") + // Replace params with regex
|
|
@@ -172923,10 +174074,10 @@ These routes are reserved by Shopify and may cause issues with your storefront:
|
|
|
172923
174074
|
});
|
|
172924
174075
|
}
|
|
172925
174076
|
|
|
172926
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174077
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/build.js
|
|
172927
174078
|
init_cjs_shims();
|
|
172928
174079
|
|
|
172929
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174080
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/codegen.js
|
|
172930
174081
|
init_cjs_shims();
|
|
172931
174082
|
import { spawn } from "node:child_process";
|
|
172932
174083
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -173030,7 +174181,10 @@ async function generateTypes({
|
|
|
173030
174181
|
// https://github.com/dotansimha/graphql-code-generator/issues/9490
|
|
173031
174182
|
filepath: "not-used-but-must-be-set"
|
|
173032
174183
|
});
|
|
173033
|
-
return codegenContext.cwd = dirs.rootDirectory, await generate2(codegenContext, !0), Object.entries(codegenConfig.generates).reduce(
|
|
174184
|
+
return codegenContext.cwd = dirs.rootDirectory, await generate2(codegenContext, !0), Object.entries(codegenConfig.generates).reduce(
|
|
174185
|
+
(acc, [key, value]) => ("documents" in value && (acc[key] = (Array.isArray(value.documents) ? value.documents : [value.documents]).filter((document2) => typeof document2 == "string")), acc),
|
|
174186
|
+
{}
|
|
174187
|
+
);
|
|
173034
174188
|
}
|
|
173035
174189
|
async function generateDefaultConfig({
|
|
173036
174190
|
rootDirectory,
|
|
@@ -173122,7 +174276,10 @@ function getCodegenFromGraphQLConfig(project) {
|
|
|
173122
174276
|
if (project?.extensions?.codegen?.generates)
|
|
173123
174277
|
return Object.entries(
|
|
173124
174278
|
project.extensions.codegen.generates
|
|
173125
|
-
).reduce(
|
|
174279
|
+
).reduce(
|
|
174280
|
+
(acc, [key, value]) => (acc[key] = { ...project, ...Array.isArray(value) ? value[0] : value }, acc),
|
|
174281
|
+
{}
|
|
174282
|
+
);
|
|
173126
174283
|
}
|
|
173127
174284
|
function findGqlProject(schemaFilepath, gqlConfig) {
|
|
173128
174285
|
if (!gqlConfig) return;
|
|
@@ -173155,7 +174312,7 @@ async function addHooksToHydrogenOptions(codegenConfig, { rootDirectory }) {
|
|
|
173155
174312
|
}
|
|
173156
174313
|
}
|
|
173157
174314
|
|
|
173158
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174315
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/analyzer.js
|
|
173159
174316
|
init_cjs_shims();
|
|
173160
174317
|
var BUNDLE_ANALYZER_JSON_FILE = "metafile.server.json", BUNDLE_ANALYZER_HTML_FILE = "server-bundle-analyzer.html";
|
|
173161
174318
|
async function classicBuildBundleAnalysis(buildPath) {
|
|
@@ -173229,14 +174386,14 @@ function classicGetBundleAnalysisSummary(bundlePath) {
|
|
|
173229
174386
|
return getBundleAnalysisSummary(dirname(bundlePath));
|
|
173230
174387
|
}
|
|
173231
174388
|
|
|
173232
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174389
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/is-ci.js
|
|
173233
174390
|
init_cjs_shims();
|
|
173234
174391
|
function isCI() {
|
|
173235
174392
|
let { env: env4 } = process;
|
|
173236
174393
|
return env4.CI === "false" ? !1 : !!(env4.CI || env4.CI_NAME || env4.BUILD_NUMBER || env4.TF_BUILD);
|
|
173237
174394
|
}
|
|
173238
174395
|
|
|
173239
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174396
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/build.js
|
|
173240
174397
|
var LOG_WORKER_BUILT = "\u{1F4E6} Worker built", WORKER_BUILD_SIZE_LIMIT = 5;
|
|
173241
174398
|
async function runClassicCompilerBuild({
|
|
173242
174399
|
directory,
|
|
@@ -173333,7 +174490,7 @@ async function copyPublicFiles(publicPath, buildPathClient) {
|
|
|
173333
174490
|
return copyFile(publicPath, buildPathClient);
|
|
173334
174491
|
}
|
|
173335
174492
|
|
|
173336
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174493
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/vite-plugin.js
|
|
173337
174494
|
init_cjs_shims();
|
|
173338
174495
|
function hydrogenBundleAnalyzer(pluginOptions) {
|
|
173339
174496
|
let config2;
|
|
@@ -173389,7 +174546,10 @@ function hydrogenBundleAnalyzer(pluginOptions) {
|
|
|
173389
174546
|
root,
|
|
173390
174547
|
resolveImportString,
|
|
173391
174548
|
mod.code
|
|
173392
|
-
), importsMeta = (await Promise.all([...staticImportsMeta, ...dynamicImportsMeta])).reduce(
|
|
174549
|
+
), importsMeta = (await Promise.all([...staticImportsMeta, ...dynamicImportsMeta])).reduce(
|
|
174550
|
+
(acc, { importedId, ...meta }) => (isViteCjsHelper(importedId) ? isESM = !1 : isViteTransformHelper(importedId) || acc.push(meta), acc),
|
|
174551
|
+
[]
|
|
174552
|
+
);
|
|
173393
174553
|
modsMeta.set(relativeModId, {
|
|
173394
174554
|
bytes: originalCodeBytes,
|
|
173395
174555
|
format: isESM ? "esm" : "cjs",
|
|
@@ -173412,27 +174572,40 @@ function hydrogenBundleAnalyzer(pluginOptions) {
|
|
|
173412
174572
|
exports: workerFile.exports,
|
|
173413
174573
|
entryPoint: relativePath(root, workerFile.facadeModuleId),
|
|
173414
174574
|
bytes: workerFile.code.length ?? 0,
|
|
173415
|
-
inputs: Object.entries(inputs).reduce(
|
|
173416
|
-
|
|
173417
|
-
|
|
174575
|
+
inputs: Object.entries(inputs).reduce(
|
|
174576
|
+
(acc, [key, item]) => (acc[key] = {
|
|
174577
|
+
bytesInOutput: renderedSizes.get(key) ?? item.bytes ?? 0
|
|
174578
|
+
}, acc),
|
|
174579
|
+
{}
|
|
174580
|
+
)
|
|
173418
174581
|
}
|
|
173419
174582
|
}
|
|
173420
174583
|
};
|
|
173421
174584
|
bundle[BUNDLE_ANALYZER_JSON_FILE] = {
|
|
173422
174585
|
type: "asset",
|
|
173423
174586
|
fileName: BUNDLE_ANALYZER_JSON_FILE,
|
|
173424
|
-
name: BUNDLE_ANALYZER_JSON_FILE,
|
|
173425
174587
|
needsCodeReference: !1,
|
|
173426
|
-
source: JSON.stringify(metafile, null, 2)
|
|
174588
|
+
source: JSON.stringify(metafile, null, 2),
|
|
174589
|
+
names: [BUNDLE_ANALYZER_JSON_FILE],
|
|
174590
|
+
originalFileNames: [BUNDLE_ANALYZER_JSON_FILE],
|
|
174591
|
+
// name and originalFileName should be deprecated .. but
|
|
174592
|
+
// for some reason, removing them breaks typescript check
|
|
174593
|
+
name: BUNDLE_ANALYZER_JSON_FILE,
|
|
174594
|
+
originalFileName: BUNDLE_ANALYZER_JSON_FILE
|
|
173427
174595
|
}, bundle[BUNDLE_ANALYZER_HTML_FILE] = {
|
|
173428
174596
|
type: "asset",
|
|
173429
174597
|
fileName: BUNDLE_ANALYZER_HTML_FILE,
|
|
173430
|
-
name: BUNDLE_ANALYZER_HTML_FILE,
|
|
173431
174598
|
needsCodeReference: !1,
|
|
173432
174599
|
source: injectAnalyzerTemplateData(
|
|
173433
174600
|
analysisTemplate,
|
|
173434
174601
|
JSON.stringify(metafile)
|
|
173435
|
-
)
|
|
174602
|
+
),
|
|
174603
|
+
names: [BUNDLE_ANALYZER_HTML_FILE],
|
|
174604
|
+
originalFileNames: [BUNDLE_ANALYZER_HTML_FILE],
|
|
174605
|
+
// name and originalFileName should be deprecated .. but
|
|
174606
|
+
// for some reason, removing them breaks typescript check
|
|
174607
|
+
name: BUNDLE_ANALYZER_HTML_FILE,
|
|
174608
|
+
originalFileName: BUNDLE_ANALYZER_HTML_FILE
|
|
173436
174609
|
};
|
|
173437
174610
|
}
|
|
173438
174611
|
};
|
|
@@ -173459,7 +174632,7 @@ function createImportsMeta(ids, kind, root, resolveImportString, code) {
|
|
|
173459
174632
|
}));
|
|
173460
174633
|
}
|
|
173461
174634
|
|
|
173462
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174635
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/defer.js
|
|
173463
174636
|
init_cjs_shims();
|
|
173464
174637
|
function deferPromise() {
|
|
173465
174638
|
let deferred = { state: "pending" };
|
|
@@ -173468,7 +174641,7 @@ function deferPromise() {
|
|
|
173468
174641
|
}), deferred;
|
|
173469
174642
|
}
|
|
173470
174643
|
|
|
173471
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174644
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/resource-cleanup.js
|
|
173472
174645
|
init_cjs_shims();
|
|
173473
174646
|
function setupResourceCleanup(cleanup2) {
|
|
173474
174647
|
let closingPromise, processExit = process.exit;
|
|
@@ -173479,7 +174652,7 @@ function setupResourceCleanup(cleanup2) {
|
|
|
173479
174652
|
};
|
|
173480
174653
|
}
|
|
173481
174654
|
|
|
173482
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174655
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
|
|
173483
174656
|
var Build = class _Build extends base_command_default {
|
|
173484
174657
|
static descriptionWithMarkdown = "Builds a Hydrogen storefront for production. The client and app worker files are compiled to a `/dist` folder in your Hydrogen project directory.";
|
|
173485
174658
|
static description = "Builds a Hydrogen storefront for production.";
|
|
@@ -173557,6 +174730,9 @@ async function runBuild({
|
|
|
173557
174730
|
sourcemap: forceClientSourcemap ?? (process.env.NODE_ENV !== "production" && sourcemap),
|
|
173558
174731
|
watch: watch ? {} : null
|
|
173559
174732
|
},
|
|
174733
|
+
server: {
|
|
174734
|
+
watch: watch ? {} : null
|
|
174735
|
+
},
|
|
173560
174736
|
plugins: [
|
|
173561
174737
|
{
|
|
173562
174738
|
name: "hydrogen:cli:client",
|
|
@@ -173587,6 +174763,9 @@ async function runBuild({
|
|
|
173587
174763
|
// Ensure the server rebuild start after the client one
|
|
173588
174764
|
watch: watch ? { buildDelay: 100 } : null
|
|
173589
174765
|
},
|
|
174766
|
+
server: {
|
|
174767
|
+
watch: watch ? {} : null
|
|
174768
|
+
},
|
|
173590
174769
|
plugins: [
|
|
173591
174770
|
{
|
|
173592
174771
|
name: "hydrogen:cli:server",
|
|
@@ -173668,7 +174847,7 @@ This build is missing ${missingRoutes.length} route${missingRoutes.length > 1 ?
|
|
|
173668
174847
|
};
|
|
173669
174848
|
}
|
|
173670
174849
|
|
|
173671
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174850
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/check.js
|
|
173672
174851
|
init_cjs_shims();
|
|
173673
174852
|
var import_core18 = __toESM(require_lib(), 1), GenerateRoute = class _GenerateRoute extends base_command_default {
|
|
173674
174853
|
static descriptionWithMarkdown = "Checks whether your Hydrogen app includes a set of standard Shopify routes.";
|
|
@@ -173697,7 +174876,7 @@ async function runCheckRoutes({ directory }) {
|
|
|
173697
174876
|
logMissingRoutes(findMissingRoutes(remixConfig)), warnReservedRoutes(findReservedRoutes(remixConfig));
|
|
173698
174877
|
}
|
|
173699
174878
|
|
|
173700
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174879
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/codegen.js
|
|
173701
174880
|
init_cjs_shims();
|
|
173702
174881
|
var import_core19 = __toESM(require_lib(), 1);
|
|
173703
174882
|
var Codegen = class _Codegen extends base_command_default {
|
|
@@ -173756,11 +174935,11 @@ async function runCodegen({
|
|
|
173756
174935
|
});
|
|
173757
174936
|
}
|
|
173758
174937
|
|
|
173759
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174938
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
|
|
173760
174939
|
init_cjs_shims();
|
|
173761
174940
|
var import_core20 = __toESM(require_lib(), 1);
|
|
173762
174941
|
|
|
173763
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174942
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/debug-cpu.js
|
|
173764
174943
|
init_cjs_shims();
|
|
173765
174944
|
async function runClassicCompilerDebugCpu({
|
|
173766
174945
|
directory,
|
|
@@ -173803,7 +174982,7 @@ Build failed, waiting for changes to restart...`);
|
|
|
173803
174982
|
};
|
|
173804
174983
|
}
|
|
173805
174984
|
|
|
173806
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
174985
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/cpu-profiler.js
|
|
173807
174986
|
init_cjs_shims();
|
|
173808
174987
|
import { Session } from "node:inspector";
|
|
173809
174988
|
async function createCpuStartupProfiler(root) {
|
|
@@ -173881,7 +175060,7 @@ function silenceNode(node) {
|
|
|
173881
175060
|
});
|
|
173882
175061
|
}
|
|
173883
175062
|
|
|
173884
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
175063
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
|
|
173885
175064
|
var DEFAULT_OUTPUT_PATH = "startup.cpuprofile", DebugCpu = class _DebugCpu extends base_command_default {
|
|
173886
175065
|
static descriptionWithMarkdown = "Builds the app and runs the resulting code to profile the server startup time, watching for changes. This command can be used to [debug slow app startup times](https://shopify.dev/docs/custom-storefronts/hydrogen/debugging/cpu-startup) that cause failed deployments in Oxygen.\n\n The profiling results are written to a `.cpuprofile` file that can be viewed with certain tools such as [Flame Chart Visualizer for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-js-profile-flame).";
|
|
173887
175066
|
static description = "Builds and profiles the server startup time the app.";
|
|
@@ -173959,7 +175138,7 @@ Waiting for changes...`);
|
|
|
173959
175138
|
};
|
|
173960
175139
|
}
|
|
173961
175140
|
|
|
173962
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
175141
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
|
|
173963
175142
|
init_cjs_shims();
|
|
173964
175143
|
var import_core21 = __toESM(require_lib(), 1);
|
|
173965
175144
|
|
|
@@ -174960,16 +176139,16 @@ The deployment can be reached at the ${completedDeployment.url} preview URL`;
|
|
|
174960
176139
|
}
|
|
174961
176140
|
}
|
|
174962
176141
|
|
|
174963
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176142
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
|
|
174964
176143
|
import { createRequire } from "node:module";
|
|
174965
176144
|
|
|
174966
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176145
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
|
|
174967
176146
|
init_cjs_shims();
|
|
174968
176147
|
|
|
174969
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176148
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
|
|
174970
176149
|
init_cjs_shims();
|
|
174971
176150
|
|
|
174972
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176151
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/admin-urls.js
|
|
174973
176152
|
init_cjs_shims();
|
|
174974
176153
|
function newHydrogenStorefrontUrl(session) {
|
|
174975
176154
|
let { storeFqdn } = session;
|
|
@@ -174980,7 +176159,7 @@ function hydrogenStorefrontsUrl(session) {
|
|
|
174980
176159
|
return `https://${storeFqdn}/admin/custom_storefronts`;
|
|
174981
176160
|
}
|
|
174982
176161
|
|
|
174983
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176162
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
|
|
174984
176163
|
function renderMissingStorefront({
|
|
174985
176164
|
session,
|
|
174986
176165
|
storefront,
|
|
@@ -175022,7 +176201,7 @@ function renderMissingLink({ noStorefronts = !1 }) {
|
|
|
175022
176201
|
});
|
|
175023
176202
|
}
|
|
175024
176203
|
|
|
175025
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176204
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/get-oxygen-data.js
|
|
175026
176205
|
init_cjs_shims();
|
|
175027
176206
|
var GetDeploymentDataQuery = `#graphql
|
|
175028
176207
|
query GetDeploymentToken($id: ID!) {
|
|
@@ -175048,7 +176227,7 @@ async function getOxygenData(adminSession, storefrontId) {
|
|
|
175048
176227
|
return { storefront: hydrogenStorefront };
|
|
175049
176228
|
}
|
|
175050
176229
|
|
|
175051
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176230
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/verify-linked-storefront.js
|
|
175052
176231
|
init_cjs_shims();
|
|
175053
176232
|
async function verifyLinkedStorefront({
|
|
175054
176233
|
root,
|
|
@@ -175064,7 +176243,7 @@ async function verifyLinkedStorefront({
|
|
|
175064
176243
|
}));
|
|
175065
176244
|
}
|
|
175066
176245
|
|
|
175067
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176246
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
|
|
175068
176247
|
async function getOxygenDeploymentData({
|
|
175069
176248
|
root
|
|
175070
176249
|
}) {
|
|
@@ -175095,7 +176274,7 @@ async function getOxygenDeploymentData({
|
|
|
175095
176274
|
return storefront;
|
|
175096
176275
|
}
|
|
175097
176276
|
|
|
175098
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176277
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
|
|
175099
176278
|
var DEPLOY_OUTPUT_FILE_HANDLE = "h2_deploy_log.json", deploymentLogger = (message, level = "info") => {
|
|
175100
176279
|
(level === "error" || level === "warn") && outputWarn(message);
|
|
175101
176280
|
}, Deploy = class _Deploy extends base_command_default {
|
|
@@ -175489,19 +176668,21 @@ Continue?`.value
|
|
|
175489
176668
|
}), deployPromise;
|
|
175490
176669
|
}
|
|
175491
176670
|
async function getHydrogenVersion({ appPath }) {
|
|
175492
|
-
let { root } = getProjectPaths(appPath), require22 = createRequire(import.meta.url), { version } = require22(
|
|
175493
|
-
|
|
175494
|
-
|
|
176671
|
+
let { root } = getProjectPaths(appPath), require22 = createRequire(import.meta.url), { version } = require22(
|
|
176672
|
+
require22.resolve("@shopify/hydrogen/package.json", {
|
|
176673
|
+
paths: [root]
|
|
176674
|
+
})
|
|
176675
|
+
);
|
|
175495
176676
|
return version;
|
|
175496
176677
|
}
|
|
175497
176678
|
|
|
175498
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176679
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
|
|
175499
176680
|
init_cjs_shims();
|
|
175500
176681
|
var import_core23 = __toESM(require_lib(), 1);
|
|
175501
176682
|
|
|
175502
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176683
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
|
|
175503
176684
|
init_cjs_shims();
|
|
175504
|
-
var import_semver = __toESM(
|
|
176685
|
+
var import_semver = __toESM(require_semver3(), 1);
|
|
175505
176686
|
import { createRequire as createRequire2 } from "node:module";
|
|
175506
176687
|
|
|
175507
176688
|
// ../../node_modules/.pnpm/cli-truncate@4.0.0/node_modules/cli-truncate/index.js
|
|
@@ -175614,7 +176795,7 @@ function cliTruncate(text, columns2, options = {}) {
|
|
|
175614
176795
|
throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
|
|
175615
176796
|
}
|
|
175616
176797
|
|
|
175617
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
176798
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
|
|
175618
176799
|
var import_core22 = __toESM(require_lib(), 1);
|
|
175619
176800
|
var INSTRUCTIONS_FOLDER = ".hydrogen", Upgrade2 = class _Upgrade extends base_command_default {
|
|
175620
176801
|
static descriptionWithMarkdown = "Upgrade Hydrogen project dependencies, preview features, fixes and breaking changes. The command also generates an instruction file for each upgrade.";
|
|
@@ -175739,11 +176920,9 @@ async function getHydrogenVersion2({ appPath }) {
|
|
|
175739
176920
|
async function getChangelog() {
|
|
175740
176921
|
if (CACHED_CHANGELOG) return CACHED_CHANGELOG;
|
|
175741
176922
|
if (isHydrogenMonorepo && hydrogenPackagesPath && process.env.FORCE_CHANGELOG_SOURCE !== "remote")
|
|
175742
|
-
return createRequire2(import.meta.url)(
|
|
175743
|
-
dirname(hydrogenPackagesPath),
|
|
175744
|
-
|
|
175745
|
-
"changelog.json"
|
|
175746
|
-
));
|
|
176923
|
+
return createRequire2(import.meta.url)(
|
|
176924
|
+
joinPath(dirname(hydrogenPackagesPath), "docs", "changelog.json")
|
|
176925
|
+
);
|
|
175747
176926
|
try {
|
|
175748
176927
|
let response = await fetch("https://hydrogen.shopify.dev/changelog.json");
|
|
175749
176928
|
if (!response.ok)
|
|
@@ -175790,7 +176969,10 @@ function getAvailableUpgrades({
|
|
|
175790
176969
|
release: release2,
|
|
175791
176970
|
currentPinnedVersion,
|
|
175792
176971
|
currentDependencies
|
|
175793
|
-
}) && currentMajorVersion !== release2.version ? (currentMajorVersion = release2.version, !0) : !1), uniqueAvailableUpgrades = availableUpgrades.reduce(
|
|
176972
|
+
}) && currentMajorVersion !== release2.version ? (currentMajorVersion = release2.version, !0) : !1), uniqueAvailableUpgrades = availableUpgrades.reduce(
|
|
176973
|
+
(acc, release2) => (acc[release2.version] || (acc[release2.version] = release2), acc),
|
|
176974
|
+
{}
|
|
176975
|
+
);
|
|
175794
176976
|
return { availableUpgrades, uniqueAvailableUpgrades };
|
|
175795
176977
|
}
|
|
175796
176978
|
async function getSelectedRelease({
|
|
@@ -176128,7 +177310,10 @@ async function displayDevUpgradeNotice({
|
|
|
176128
177310
|
) : changelog.releases.findIndex(
|
|
176129
177311
|
(release2) => getAbsoluteVersion(release2.version) === pinnedCurrentVersion
|
|
176130
177312
|
), relevantReleases = changelog.releases.slice(0, currentReleaseIndex), nextReleases = Object.values(
|
|
176131
|
-
[...relevantReleases].reverse().reduce(
|
|
177313
|
+
[...relevantReleases].reverse().reduce(
|
|
177314
|
+
(acc, release2) => (acc[release2.version] ??= `${release2.version} - ${release2.title}`, acc),
|
|
177315
|
+
{}
|
|
177316
|
+
)
|
|
176132
177317
|
).slice(0, 5), headline = Object.keys(uniqueAvailableUpgrades).length > 1 ? `There are ${Object.keys(uniqueAvailableUpgrades).length} new @shopify/hydrogen versions available.` : "There's a new @shopify/hydrogen version available.", cliCommand = await getCliCommand();
|
|
176133
177318
|
renderInfo({
|
|
176134
177319
|
headline,
|
|
@@ -176175,11 +177360,11 @@ async function displayDevUpgradeNotice({
|
|
|
176175
177360
|
}
|
|
176176
177361
|
}
|
|
176177
177362
|
|
|
176178
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177363
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/dev.js
|
|
176179
177364
|
init_cjs_shims();
|
|
176180
177365
|
import fs4 from "node:fs/promises";
|
|
176181
177366
|
|
|
176182
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177367
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/index.js
|
|
176183
177368
|
init_cjs_shims();
|
|
176184
177369
|
async function buildAssetsUrl(port, root) {
|
|
176185
177370
|
let { buildAssetsUrl: _buildAssetsUrl } = await importLocal(
|
|
@@ -176191,14 +177376,14 @@ async function buildAssetsUrl(port, root) {
|
|
|
176191
177376
|
async function startMiniOxygen(options, useNodeRuntime = !1) {
|
|
176192
177377
|
if (useNodeRuntime) {
|
|
176193
177378
|
process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
|
|
176194
|
-
let { startNodeServer } = await import("./node-
|
|
177379
|
+
let { startNodeServer } = await import("./node-66AIONQH.js");
|
|
176195
177380
|
return startNodeServer(options);
|
|
176196
177381
|
}
|
|
176197
|
-
let { startWorkerdServer } = await import("./workerd-
|
|
177382
|
+
let { startWorkerdServer } = await import("./workerd-VYNSPDCR.js");
|
|
176198
177383
|
return startWorkerdServer(options);
|
|
176199
177384
|
}
|
|
176200
177385
|
|
|
176201
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177386
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/virtual-routes.js
|
|
176202
177387
|
init_cjs_shims();
|
|
176203
177388
|
var VIRTUAL_ROUTES_DIR = "virtual-routes/routes", VIRTUAL_ROOT = "virtual-routes/virtual-root";
|
|
176204
177389
|
async function addVirtualRoutes(config2) {
|
|
@@ -176234,7 +177419,7 @@ async function addVirtualRoutes(config2) {
|
|
|
176234
177419
|
return config2;
|
|
176235
177420
|
}
|
|
176236
177421
|
|
|
176237
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177422
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/live-reload.js
|
|
176238
177423
|
init_cjs_shims();
|
|
176239
177424
|
import http from "node:http";
|
|
176240
177425
|
async function setupLiveReload(devServerPort, root) {
|
|
@@ -176293,8 +177478,17 @@ async function setupLiveReload(devServerPort, root) {
|
|
|
176293
177478
|
}
|
|
176294
177479
|
}
|
|
176295
177480
|
|
|
176296
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177481
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/dev.js
|
|
176297
177482
|
var LOG_REBUILDING = "\u{1F9F1} Rebuilding...", LOG_REBUILT = "\u{1F680} Rebuilt";
|
|
177483
|
+
function filterOutVirtualRoutes(config2) {
|
|
177484
|
+
let routes = {};
|
|
177485
|
+
return Object.entries(config2.routes).forEach(([key, value]) => {
|
|
177486
|
+
key.includes("virtual-routes") || (routes[key] = value);
|
|
177487
|
+
}), {
|
|
177488
|
+
...config2,
|
|
177489
|
+
routes
|
|
177490
|
+
};
|
|
177491
|
+
}
|
|
176298
177492
|
async function runClassicCompilerDev({
|
|
176299
177493
|
port: appPort2,
|
|
176300
177494
|
path: appPath,
|
|
@@ -176317,7 +177511,7 @@ async function runClassicCompilerDev({
|
|
|
176317
177511
|
process.env.NODE_ENV || (process.env.NODE_ENV = "development"), verbose && setH2OVerbose(), isH2Verbose() || muteDevLogs();
|
|
176318
177512
|
let { root, publicPath, buildPathClient, buildPathWorkerFile } = getProjectPaths(appPath), copyFilesPromise = copyPublicFiles(publicPath, buildPathClient), cliCommandPromise = getCliCommand(root), reloadConfig = async () => {
|
|
176319
177513
|
let config2 = await getRemixConfig(root);
|
|
176320
|
-
return disableVirtualRoutes ? config2 : addVirtualRoutes(config2).catch((error) => (outputDebug(
|
|
177514
|
+
return disableVirtualRoutes ? filterOutVirtualRoutes(config2) : addVirtualRoutes(config2).catch((error) => (outputDebug(
|
|
176321
177515
|
"Could not add virtual routes: " + (error?.stack ?? error?.message ?? error)
|
|
176322
177516
|
), config2));
|
|
176323
177517
|
}, getFilePaths = (file) => {
|
|
@@ -176467,7 +177661,7 @@ async function runClassicCompilerDev({
|
|
|
176467
177661
|
};
|
|
176468
177662
|
}
|
|
176469
177663
|
|
|
176470
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177664
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/deps-optimizer.js
|
|
176471
177665
|
init_cjs_shims();
|
|
176472
177666
|
var throttledOptimizableDeps = /* @__PURE__ */ new Set(), debouncedBannerTimeout;
|
|
176473
177667
|
function createEntryPointErrorHandler({
|
|
@@ -176595,7 +177789,7 @@ ${source_default.dim(
|
|
|
176595
177789
|
});
|
|
176596
177790
|
}
|
|
176597
177791
|
|
|
176598
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
177792
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
|
|
176599
177793
|
var Dev2 = class _Dev extends base_command_default {
|
|
176600
177794
|
static descriptionWithMarkdown = `Runs a Hydrogen storefront in a local runtime that emulates an Oxygen worker for development.
|
|
176601
177795
|
|
|
@@ -176708,6 +177902,7 @@ async function runDev({
|
|
|
176708
177902
|
error: (msg) => collectLog("error", msg)
|
|
176709
177903
|
}) : void 0,
|
|
176710
177904
|
server: {
|
|
177905
|
+
port: appPort2 ?? DEFAULT_APP_PORT,
|
|
176711
177906
|
host: host ? !0 : void 0,
|
|
176712
177907
|
// Allow Vite to read files from the Hydrogen packages in local development.
|
|
176713
177908
|
fs: hydrogenPackagesPath ? { allow: [root, hydrogenPackagesPath] } : void 0
|
|
@@ -176790,7 +177985,7 @@ async function runDev({
|
|
|
176790
177985
|
}), disableVersionCheck || displayDevUpgradeNotice({ targetPath: root }), customerAccountPushFlag && isMockShop(allVariables) && notifyIssueWithTunnelAndMockShop(cliCommand), {
|
|
176791
177986
|
getUrl: () => finalHost,
|
|
176792
177987
|
async close() {
|
|
176793
|
-
codegenProcess?.removeAllListeners("close"), codegenProcess?.kill("SIGINT"), await Promise.allSettled([viteServer.close(), tunnel?.cleanup?.()]);
|
|
177988
|
+
codegenProcess?.removeAllListeners("close"), codegenProcess?.kill("SIGINT"), await Promise.allSettled([viteServer.close(), tunnel?.cleanup?.()]), viteServer.watcher.close();
|
|
176794
177989
|
}
|
|
176795
177990
|
};
|
|
176796
177991
|
}
|
|
@@ -176822,19 +178017,23 @@ function setupMonorepoReload(viteServer, monorepoPackagesPath, setupCodegen) {
|
|
|
176822
178017
|
monorepoPackagesPath + "mini-oxygen/dist/vite/worker-entry.js"
|
|
176823
178018
|
), viteServer.watcher.add(
|
|
176824
178019
|
monorepoPackagesPath + "hydrogen-codegen/dist/esm/index.js"
|
|
176825
|
-
)
|
|
178020
|
+
);
|
|
178021
|
+
let renderInfoTimeout;
|
|
178022
|
+
viteServer.watcher.on("change", async (file) => {
|
|
176826
178023
|
file.includes(monorepoPackagesPath) && (file.includes("/packages/hydrogen-codegen/") ? setupCodegen && (setupCodegen(), renderInfo({
|
|
176827
178024
|
headline: "The Hydrogen Codegen source has been modified.",
|
|
176828
178025
|
body: "The codegen process has been restarted."
|
|
176829
|
-
})) : (await viteServer.restart(!0),
|
|
176830
|
-
|
|
176831
|
-
|
|
176832
|
-
|
|
178026
|
+
})) : (await viteServer.restart(!0), clearTimeout(renderInfoTimeout), renderInfoTimeout = setTimeout(() => {
|
|
178027
|
+
console.log(""), renderInfo({
|
|
178028
|
+
headline: "The H2O Vite plugins have been modified.",
|
|
178029
|
+
body: "The Vite server has been restarted to reflect the changes."
|
|
178030
|
+
});
|
|
178031
|
+
}, 100)));
|
|
176833
178032
|
});
|
|
176834
178033
|
});
|
|
176835
178034
|
}
|
|
176836
178035
|
|
|
176837
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178036
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/list.js
|
|
176838
178037
|
init_cjs_shims();
|
|
176839
178038
|
var EnvList = class _EnvList extends base_command_default {
|
|
176840
178039
|
static descriptionWithMarkdown = "Lists all environments available on the linked Hydrogen storefront.";
|
|
@@ -176900,7 +178099,7 @@ var pluralizedEnvironments = ({
|
|
|
176900
178099
|
() => `There are no environments for the Hydrogen storefront ${storefrontTitle}`
|
|
176901
178100
|
);
|
|
176902
178101
|
|
|
176903
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178102
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
|
|
176904
178103
|
init_cjs_shims();
|
|
176905
178104
|
|
|
176906
178105
|
// ../../node_modules/.pnpm/diff@5.2.0/node_modules/diff/lib/index.mjs
|
|
@@ -177122,7 +178321,7 @@ arrayDiff.join = arrayDiff.removeEmpty = function(value) {
|
|
|
177122
178321
|
return value;
|
|
177123
178322
|
};
|
|
177124
178323
|
|
|
177125
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178324
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
|
|
177126
178325
|
var EnvPull = class _EnvPull extends base_command_default {
|
|
177127
178326
|
static descriptionWithMarkdown = "Pulls environment variables from the linked Hydrogen storefront and writes them to an `.env` file.";
|
|
177128
178327
|
static description = "Populate your .env with variables from your Hydrogen storefront.";
|
|
@@ -177214,10 +178413,10 @@ Continue?`.value
|
|
|
177214
178413
|
});
|
|
177215
178414
|
}
|
|
177216
178415
|
|
|
177217
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178416
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
|
|
177218
178417
|
init_cjs_shims();
|
|
177219
178418
|
|
|
177220
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178419
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/push-variables.js
|
|
177221
178420
|
init_cjs_shims();
|
|
177222
178421
|
var PushVariablesMutation = `#graphql
|
|
177223
178422
|
mutation PushVariables(
|
|
@@ -177250,7 +178449,7 @@ async function pushStorefrontEnvVariables(adminSession, storefrontId, environmen
|
|
|
177250
178449
|
return { userErrors };
|
|
177251
178450
|
}
|
|
177252
178451
|
|
|
177253
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178452
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
|
|
177254
178453
|
var EnvPush = class _EnvPush extends base_command_default {
|
|
177255
178454
|
static description = "Push environment variables from the local .env file to your linked Hydrogen storefront.";
|
|
177256
178455
|
static flags = {
|
|
@@ -177365,10 +178564,10 @@ Continue?`.value
|
|
|
177365
178564
|
});
|
|
177366
178565
|
}
|
|
177367
178566
|
|
|
177368
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178567
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
|
|
177369
178568
|
init_cjs_shims();
|
|
177370
178569
|
|
|
177371
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178570
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/route.js
|
|
177372
178571
|
init_cjs_shims();
|
|
177373
178572
|
var import_core24 = __toESM(require_lib(), 1);
|
|
177374
178573
|
var GenerateRoute2 = class _GenerateRoute extends base_command_default {
|
|
@@ -177435,7 +178634,7 @@ async function runGenerate(options) {
|
|
|
177435
178634
|
});
|
|
177436
178635
|
}
|
|
177437
178636
|
|
|
177438
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178637
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
|
|
177439
178638
|
var GenerateRouteShortcut = class extends base_command_default {
|
|
177440
178639
|
static description = "Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.";
|
|
177441
178640
|
static strict = !1;
|
|
@@ -177448,7 +178647,7 @@ var GenerateRouteShortcut = class extends base_command_default {
|
|
|
177448
178647
|
}
|
|
177449
178648
|
};
|
|
177450
178649
|
|
|
177451
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178650
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/routes.js
|
|
177452
178651
|
init_cjs_shims();
|
|
177453
178652
|
var GenerateRoutes = class _GenerateRoutes extends base_command_default {
|
|
177454
178653
|
static description = "Generates all supported standard shopify routes.";
|
|
@@ -177463,11 +178662,11 @@ var GenerateRoutes = class _GenerateRoutes extends base_command_default {
|
|
|
177463
178662
|
}
|
|
177464
178663
|
};
|
|
177465
178664
|
|
|
177466
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178665
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
|
|
177467
178666
|
init_cjs_shims();
|
|
177468
178667
|
var import_core25 = __toESM(require_lib(), 1);
|
|
177469
178668
|
|
|
177470
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178669
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/check-cli-version.js
|
|
177471
178670
|
init_cjs_shims();
|
|
177472
178671
|
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
177473
178672
|
var UPGRADABLE_CLI_NAMES = {
|
|
@@ -177511,10 +178710,10 @@ You are currently running v${currentVersion}.
|
|
|
177511
178710
|
};
|
|
177512
178711
|
}
|
|
177513
178712
|
|
|
177514
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178713
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
|
|
177515
178714
|
init_cjs_shims();
|
|
177516
178715
|
|
|
177517
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178716
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/local.js
|
|
177518
178717
|
init_cjs_shims();
|
|
177519
178718
|
import { cp as cp2 } from "node:fs/promises";
|
|
177520
178719
|
async function setupLocalStarterTemplate(options, controller) {
|
|
@@ -177731,11 +178930,11 @@ function maybeInjectCliHydrogen(pkgJsonContent) {
|
|
|
177731
178930
|
return pkgJsonContent;
|
|
177732
178931
|
}
|
|
177733
178932
|
|
|
177734
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178933
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
|
|
177735
178934
|
init_cjs_shims();
|
|
177736
178935
|
import { readdir } from "node:fs/promises";
|
|
177737
178936
|
|
|
177738
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178937
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
|
|
177739
178938
|
init_cjs_shims();
|
|
177740
178939
|
var import_gunzip_maybe = __toESM(require_gunzip_maybe(), 1), import_tar_fs = __toESM(require_tar_fs(), 1);
|
|
177741
178940
|
import path3 from "node:path";
|
|
@@ -177783,7 +178982,7 @@ async function downloadGitHubRelease(repo, version, assetName, targetPath) {
|
|
|
177783
178982
|
});
|
|
177784
178983
|
}
|
|
177785
178984
|
|
|
177786
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
178985
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
|
|
177787
178986
|
var REPO_RELEASES_URL = "https://api.github.com/repos/shopify/hydrogen/releases/latest", getTryMessage = (status) => status === 403 ? "If you are using a VPN, WARP, or similar service, consider disabling it momentarily." : void 0;
|
|
177788
178987
|
async function getLatestReleaseDownloadUrl(signal) {
|
|
177789
178988
|
let response = await fetch2(REPO_RELEASES_URL, { signal });
|
|
@@ -177866,7 +179065,7 @@ async function downloadExternalRepo(appTemplate, signal) {
|
|
|
177866
179065
|
}), await rmdir(joinPath(templateDir, ".git"), { force: !0 }), { templateDir };
|
|
177867
179066
|
}
|
|
177868
179067
|
|
|
177869
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179068
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
|
|
177870
179069
|
var DEMO_STORE_REPO = "shopify/hydrogen-demo-store";
|
|
177871
179070
|
async function setupRemoteTemplate(options, controller) {
|
|
177872
179071
|
let appTemplate = options.template === "demo-store" ? DEMO_STORE_REPO : options.template, abort2 = createAbortHandler(controller), backgroundDownloadPromise = appTemplate.includes("/") ? getExternalTemplate(appTemplate, controller.signal).catch(abort2) : getMonorepoTemplate(appTemplate, controller.signal).catch(abort2), project = await handleProjectLocation({ ...options, controller });
|
|
@@ -177952,7 +179151,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
|
|
|
177952
179151
|
);
|
|
177953
179152
|
}
|
|
177954
179153
|
|
|
177955
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179154
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
|
|
177956
179155
|
async function setupTemplate(options) {
|
|
177957
179156
|
let controller = new AbortController2();
|
|
177958
179157
|
try {
|
|
@@ -177963,7 +179162,7 @@ async function setupTemplate(options) {
|
|
|
177963
179162
|
}
|
|
177964
179163
|
}
|
|
177965
179164
|
|
|
177966
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179165
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
|
|
177967
179166
|
var FLAG_MAP = { f: "force" }, Init2 = class _Init extends base_command_default {
|
|
177968
179167
|
static descriptionWithMarkdown = "Creates a new Hydrogen storefront.";
|
|
177969
179168
|
static description = "Creates a new Hydrogen storefront.";
|
|
@@ -178037,10 +179236,10 @@ async function runInit({
|
|
|
178037
179236
|
return showUpgrade && showUpgrade(options.packageManager), setupTemplate(options);
|
|
178038
179237
|
}
|
|
178039
179238
|
|
|
178040
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179239
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
|
|
178041
179240
|
init_cjs_shims();
|
|
178042
179241
|
|
|
178043
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179242
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-storefronts.js
|
|
178044
179243
|
init_cjs_shims();
|
|
178045
179244
|
var ListStorefrontsQuery = `#graphql
|
|
178046
179245
|
query ListStorefronts {
|
|
@@ -178067,7 +179266,7 @@ async function getStorefrontsWithDeployment(adminSession) {
|
|
|
178067
179266
|
}));
|
|
178068
179267
|
}
|
|
178069
179268
|
|
|
178070
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179269
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
|
|
178071
179270
|
var List3 = class _List extends base_command_default {
|
|
178072
179271
|
static descriptionWithMarkdown = "Lists all remote Hydrogen storefronts available to link to your local development environment.";
|
|
178073
179272
|
static description = "Returns a list of Hydrogen storefronts available on a given shop.";
|
|
@@ -178135,7 +179334,7 @@ var pluralizedStorefronts = ({
|
|
|
178135
179334
|
(_storefront) => `Showing 1 Hydrogen storefront for the store ${shop}`
|
|
178136
179335
|
);
|
|
178137
179336
|
|
|
178138
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179337
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/login.js
|
|
178139
179338
|
init_cjs_shims();
|
|
178140
179339
|
var Login = class _Login extends base_command_default {
|
|
178141
179340
|
static descriptionWithMarkdown = "Logs in to the specified shop and saves the shop domain to the project.";
|
|
@@ -178158,7 +179357,7 @@ async function runLogin({
|
|
|
178158
179357
|
renderLoginSuccess(config2);
|
|
178159
179358
|
}
|
|
178160
179359
|
|
|
178161
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179360
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/logout.js
|
|
178162
179361
|
init_cjs_shims();
|
|
178163
179362
|
var Logout2 = class _Logout extends base_command_default {
|
|
178164
179363
|
static descriptionWithMarkdown = "Log out from the current shop.";
|
|
@@ -178175,7 +179374,7 @@ async function runLogout({ path: root = process.cwd() }) {
|
|
|
178175
179374
|
outputNewline(), await logout(root), renderSuccess({ body: "You are logged out from Shopify." });
|
|
178176
179375
|
}
|
|
178177
179376
|
|
|
178178
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179377
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/preview.js
|
|
178179
179378
|
init_cjs_shims();
|
|
178180
179379
|
var import_core26 = __toESM(require_lib(), 1);
|
|
178181
179380
|
var Preview = class _Preview extends base_command_default {
|
|
@@ -178299,7 +179498,7 @@ async function runPreview({
|
|
|
178299
179498
|
};
|
|
178300
179499
|
}
|
|
178301
179500
|
|
|
178302
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179501
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup.js
|
|
178303
179502
|
init_cjs_shims();
|
|
178304
179503
|
var Setup = class _Setup extends base_command_default {
|
|
178305
179504
|
static description = "Scaffold routes and core functionality.";
|
|
@@ -178331,9 +179530,7 @@ async function runSetup(options) {
|
|
|
178331
179530
|
], i18nStrategy = options.markets ? options.markets : await renderI18nPrompt({
|
|
178332
179531
|
abortSignal: controller.signal,
|
|
178333
179532
|
extraChoices: { none: "Set up later" }
|
|
178334
|
-
}), i18n = i18nStrategy === "none" ? void 0 : i18nStrategy, { needsRouteGeneration, setupRoutes } = await handleRouteGeneration(
|
|
178335
|
-
controller
|
|
178336
|
-
), routes;
|
|
179533
|
+
}), i18n = i18nStrategy === "none" ? void 0 : i18nStrategy, { needsRouteGeneration, setupRoutes } = await handleRouteGeneration(controller), routes;
|
|
178337
179534
|
if (needsRouteGeneration) {
|
|
178338
179535
|
let templateRoot = await getTemplateAppFile(".."), [typescript, dtsFiles] = await Promise.all([
|
|
178339
179536
|
fileExists(joinPath(rootDirectory, "tsconfig.json")),
|
|
@@ -178390,7 +179587,7 @@ async function runSetup(options) {
|
|
|
178390
179587
|
));
|
|
178391
179588
|
}
|
|
178392
179589
|
|
|
178393
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179590
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/css.js
|
|
178394
179591
|
init_cjs_shims();
|
|
178395
179592
|
var import_core27 = __toESM(require_lib(), 1);
|
|
178396
179593
|
var SetupCSS = class _SetupCSS extends base_command_default {
|
|
@@ -178479,7 +179676,7 @@ Run`,
|
|
|
178479
179676
|
});
|
|
178480
179677
|
}
|
|
178481
179678
|
|
|
178482
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179679
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/markets.js
|
|
178483
179680
|
init_cjs_shims();
|
|
178484
179681
|
var import_core28 = __toESM(require_lib(), 1);
|
|
178485
179682
|
var SetupMarkets = class _SetupMarkets extends base_command_default {
|
|
@@ -178523,7 +179720,7 @@ async function runSetupMarkets({
|
|
|
178523
179720
|
});
|
|
178524
179721
|
}
|
|
178525
179722
|
|
|
178526
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179723
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/vite.js
|
|
178527
179724
|
init_cjs_shims();
|
|
178528
179725
|
var SetupVite = class _SetupVite extends base_command_default {
|
|
178529
179726
|
static description = "EXPERIMENTAL: Upgrades the project to use Vite.";
|
|
@@ -178572,19 +179769,16 @@ async function runSetupVite({ directory }) {
|
|
|
178572
179769
|
).catch(handlePartialIssue),
|
|
178573
179770
|
// Adjust PostCSS configuration:
|
|
178574
179771
|
readFile(resolvePath(directory, "postcss.config.js")).then(async (postCssContent) => {
|
|
178575
|
-
|
|
179772
|
+
let hasTailwindPlugin = postCssContent.includes("tailwindcss"), postCSSFilename = postCssContent.includes("module.exports") || postCssContent.includes("exports.") || postCssContent.includes("require(") ? postCssConfigPath.replace(".js", ".cjs") : postCssConfigPath;
|
|
179773
|
+
return !hasTailwindPlugin && usesTailwind && (postCssContent = await formatCode(
|
|
178576
179774
|
postCssContent.replace(
|
|
178577
179775
|
/(plugins:\s+{)/,
|
|
178578
179776
|
`$1
|
|
178579
179777
|
tailwindcss: {},`
|
|
178580
179778
|
),
|
|
178581
|
-
formatOptions
|
|
178582
|
-
|
|
178583
|
-
|
|
178584
|
-
return writeFile(
|
|
178585
|
-
isCJS ? postCssConfigPath.replace(".js", ".cjs") : postCssConfigPath,
|
|
178586
|
-
postCssContent
|
|
178587
|
-
);
|
|
179779
|
+
formatOptions,
|
|
179780
|
+
postCSSFilename
|
|
179781
|
+
)), writeFile(postCSSFilename, postCssContent);
|
|
178588
179782
|
}).catch(async () => {
|
|
178589
179783
|
if (usesTailwind && !await fileExists(postCssConfigPath) && !await fileExists(postCssConfigPath.replace(".js", ".cjs")))
|
|
178590
179784
|
return writeFile(postCssConfigPath, tailwindPostCSSConfig);
|
|
@@ -178592,7 +179786,10 @@ async function runSetupVite({ directory }) {
|
|
|
178592
179786
|
// Adjust dependencies:
|
|
178593
179787
|
mergePackageJson(viteAssets, directory, {
|
|
178594
179788
|
onResult(pkgJson2) {
|
|
178595
|
-
return pkgJson2.dependencies && delete pkgJson2.dependencies["@remix-run/css-bundle"], pkgJson2.devDependencies && pkgJson2.devDependencies["@vanilla-extract/css"] && (pkgJson2.devDependencies["@vanilla-extract/vite-plugin"] = "^4.0.0", pkgJson2.devDependencies = Object.keys(pkgJson2.devDependencies).sort().reduce(
|
|
179789
|
+
return pkgJson2.dependencies && delete pkgJson2.dependencies["@remix-run/css-bundle"], pkgJson2.devDependencies && pkgJson2.devDependencies["@vanilla-extract/css"] && (pkgJson2.devDependencies["@vanilla-extract/vite-plugin"] = "^4.0.0", pkgJson2.devDependencies = Object.keys(pkgJson2.devDependencies).sort().reduce(
|
|
179790
|
+
(acc, key) => (acc[key] = pkgJson2.devDependencies?.[key], acc),
|
|
179791
|
+
{}
|
|
179792
|
+
)), pkgJson2;
|
|
178596
179793
|
}
|
|
178597
179794
|
}),
|
|
178598
179795
|
// Build `vite.config.js` for the project:
|
|
@@ -178765,7 +179962,7 @@ Please use Git to review the changes.`,
|
|
|
178765
179962
|
});
|
|
178766
179963
|
}
|
|
178767
179964
|
|
|
178768
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179965
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/shortcut.js
|
|
178769
179966
|
init_cjs_shims();
|
|
178770
179967
|
var Shortcut = class extends base_command_default {
|
|
178771
179968
|
static descriptionWithMarkdown = "Creates a global h2 shortcut for Shopify CLI using shell aliases.\n\n The following shells are supported:\n\n - Bash (using `~/.bashrc`)\n - ZSH (using `~/.zshrc`)\n - Fish (using `~/.config/fish/functions`)\n - PowerShell (added to `$PROFILE`)\n\n After the alias is created, you can call Shopify CLI from anywhere in your project using `h2 <command>`.";
|
|
@@ -178790,7 +179987,7 @@ Restart your terminal session and run \`${ALIAS_NAME}\` from your local project.
|
|
|
178790
179987
|
});
|
|
178791
179988
|
}
|
|
178792
179989
|
|
|
178793
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
179990
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/unlink.js
|
|
178794
179991
|
init_cjs_shims();
|
|
178795
179992
|
var Unlink = class _Unlink extends base_command_default {
|
|
178796
179993
|
static descriptionWithMarkdown = "Unlinks your local development environment from a remote Hydrogen storefront.";
|
|
@@ -178815,7 +180012,7 @@ async function unlinkStorefront({ path: path4 }) {
|
|
|
178815
180012
|
});
|
|
178816
180013
|
}
|
|
178817
180014
|
|
|
178818
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
180015
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/hooks/init.js
|
|
178819
180016
|
init_cjs_shims();
|
|
178820
180017
|
import { createRequire as createRequire3 } from "node:module";
|
|
178821
180018
|
import { spawnSync } from "node:child_process";
|
|
@@ -178858,10 +180055,9 @@ function commandNeedsVM(id = "", argv = []) {
|
|
|
178858
180055
|
}
|
|
178859
180056
|
function isHydrogenProject(projectPath) {
|
|
178860
180057
|
try {
|
|
178861
|
-
let require22 = createRequire3(import.meta.url), { dependencies, scripts } = require22(
|
|
178862
|
-
projectPath,
|
|
178863
|
-
|
|
178864
|
-
));
|
|
180058
|
+
let require22 = createRequire3(import.meta.url), { dependencies, scripts } = require22(
|
|
180059
|
+
joinPath(projectPath, "package.json")
|
|
180060
|
+
);
|
|
178865
180061
|
return !!dependencies?.["@shopify/hydrogen"] || // Diff examples don't have dependencies:
|
|
178866
180062
|
!!scripts?.dev?.includes("--diff");
|
|
178867
180063
|
} catch {
|
|
@@ -178870,7 +180066,7 @@ function isHydrogenProject(projectPath) {
|
|
|
178870
180066
|
}
|
|
178871
180067
|
var init_default2 = hook;
|
|
178872
180068
|
|
|
178873
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
180069
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/index.js
|
|
178874
180070
|
var COMMANDS2 = {
|
|
178875
180071
|
"hydrogen:dev": Dev2,
|
|
178876
180072
|
"hydrogen:build": Build,
|
|
@@ -197117,7 +198313,7 @@ var import_signal_exit = __toESM(require_signal_exit(), 1);
|
|
|
197117
198313
|
|
|
197118
198314
|
// ../../node_modules/.pnpm/ink@5.0.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/reconciler.js
|
|
197119
198315
|
init_cjs_shims();
|
|
197120
|
-
var import_react_reconciler = __toESM(require_react_reconciler(), 1), import_constants29 = __toESM(
|
|
198316
|
+
var import_react_reconciler = __toESM(require_react_reconciler(), 1), import_constants29 = __toESM(require_constants4(), 1);
|
|
197121
198317
|
import process3 from "node:process";
|
|
197122
198318
|
|
|
197123
198319
|
// ../../node_modules/.pnpm/ink@5.0.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/dom.js
|