@shopify/create-app 3.85.4 → 3.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{brotli-EDFLSXX4.js → brotli-2OKV26Y6.js} +3 -3
- package/dist/{chunk-YKC6AF5P.js → chunk-24C6AXHU.js} +108 -87
- package/dist/{chunk-75LV6AQS.js → chunk-6ONJEX7Y.js} +8 -8
- package/dist/{chunk-BJHEYWTG.js → chunk-JVOC6QPM.js} +203 -181
- package/dist/{chunk-2VQSCETZ.js → chunk-JXJ33RQ2.js} +57 -59
- package/dist/{chunk-GPDZY4XJ.js → chunk-KUW6F33L.js} +6 -6
- package/dist/{chunk-O4KAJGU5.js → chunk-MGT4QKYB.js} +3 -3
- package/dist/{chunk-37HE2BRV.js → chunk-TO2X4F7Z.js} +81 -30
- package/dist/{chunk-ZJQOFM3X.js → chunk-VCNJSI7V.js} +41 -34
- package/dist/{chunk-25IMI7TH.js → chunk-XD3LXUGW.js} +5 -5
- package/dist/{chunk-2UR7TMKO.js → chunk-Y7KLALIY.js} +45 -39
- package/dist/{custom-oclif-loader-PIBU4VHF.js → custom-oclif-loader-P2GF3H55.js} +4 -4
- package/dist/{del-4XMQNWFE.js → del-M36IQP37.js} +3 -3
- package/dist/{error-handler-G6DYVEQ2.js → error-handler-A4ESBROE.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +7 -7
- package/dist/{http-proxy-node16-T623PGD4.js → http-proxy-node16-K5X7BUK5.js} +3 -3
- package/dist/index.js +456 -407
- package/dist/index.test.js +15 -15
- package/dist/{lib-XDPPS4KW.js → lib-JIKIO4JO.js} +2 -2
- package/dist/{local-P6NRRHIF.js → local-NJYNKPHZ.js} +4 -4
- package/dist/{multipart-parser-WSNBP656.js → multipart-parser-IYYNISJK.js} +2 -2
- package/dist/{node-package-manager-Y7X57X7L.js → node-package-manager-DIXFSXME.js} +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-DP4GP7CG.js → ui-TJJFYS6Z.js} +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
envPaths,
|
|
7
7
|
exec,
|
|
8
8
|
fileExists,
|
|
9
|
+
fileHasWritePermissions,
|
|
9
10
|
findPathUp,
|
|
10
11
|
glob,
|
|
11
12
|
inferPackageManagerForGlobalCLI,
|
|
@@ -17,11 +18,12 @@ import {
|
|
|
17
18
|
readFile,
|
|
18
19
|
require_get_stream,
|
|
19
20
|
runWithTimer,
|
|
21
|
+
unixFileIsOwnedByCurrentUser,
|
|
20
22
|
writeFile
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-24C6AXHU.js";
|
|
22
24
|
import {
|
|
23
25
|
require_semver
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JXJ33RQ2.js";
|
|
25
27
|
import {
|
|
26
28
|
dirname,
|
|
27
29
|
joinPath
|
|
@@ -7588,7 +7590,7 @@ var require_polyfills = __commonJS({
|
|
|
7588
7590
|
}), fs3.chown && !fs3.lchown && (fs3.lchown = function(path4, uid, gid, cb) {
|
|
7589
7591
|
cb && process.nextTick(cb);
|
|
7590
7592
|
}, fs3.lchownSync = function() {
|
|
7591
|
-
}), platform === "win32" && (fs3.rename = typeof fs3.rename != "function" ? fs3.rename : function(fs$rename) {
|
|
7593
|
+
}), platform === "win32" && (fs3.rename = typeof fs3.rename != "function" ? fs3.rename : (function(fs$rename) {
|
|
7592
7594
|
function rename(from, to, cb) {
|
|
7593
7595
|
var start = Date.now(), backoff = 0;
|
|
7594
7596
|
fs$rename(from, to, function CB(er) {
|
|
@@ -7604,7 +7606,7 @@ var require_polyfills = __commonJS({
|
|
|
7604
7606
|
});
|
|
7605
7607
|
}
|
|
7606
7608
|
return Object.setPrototypeOf && Object.setPrototypeOf(rename, fs$rename), rename;
|
|
7607
|
-
}(fs3.rename)), fs3.read = typeof fs3.read != "function" ? fs3.read : function(fs$read) {
|
|
7609
|
+
})(fs3.rename)), fs3.read = typeof fs3.read != "function" ? fs3.read : (function(fs$read) {
|
|
7608
7610
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
7609
7611
|
var callback;
|
|
7610
7612
|
if (callback_ && typeof callback_ == "function") {
|
|
@@ -7618,7 +7620,7 @@ var require_polyfills = __commonJS({
|
|
|
7618
7620
|
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
7619
7621
|
}
|
|
7620
7622
|
return Object.setPrototypeOf && Object.setPrototypeOf(read, fs$read), read;
|
|
7621
|
-
}(fs3.read), fs3.readSync = typeof fs3.readSync != "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
7623
|
+
})(fs3.read), fs3.readSync = typeof fs3.readSync != "function" ? fs3.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
7622
7624
|
return function(fd, buffer, offset, length, position) {
|
|
7623
7625
|
for (var eagCounter = 0; ; )
|
|
7624
7626
|
try {
|
|
@@ -7631,7 +7633,7 @@ var require_polyfills = __commonJS({
|
|
|
7631
7633
|
throw er;
|
|
7632
7634
|
}
|
|
7633
7635
|
};
|
|
7634
|
-
}(fs3.readSync);
|
|
7636
|
+
})(fs3.readSync);
|
|
7635
7637
|
function patchLchmod(fs4) {
|
|
7636
7638
|
fs4.lchmod = function(path4, mode, callback) {
|
|
7637
7639
|
fs4.open(
|
|
@@ -7864,7 +7866,7 @@ var require_graceful_fs = __commonJS({
|
|
|
7864
7866
|
m = "GFS4: " + m.split(/\n/).join(`
|
|
7865
7867
|
GFS4: `), console.error(m);
|
|
7866
7868
|
});
|
|
7867
|
-
fs3[gracefulQueue] || (queue = global[gracefulQueue] || [], publishQueue(fs3, queue), fs3.close = function(fs$close) {
|
|
7869
|
+
fs3[gracefulQueue] || (queue = global[gracefulQueue] || [], publishQueue(fs3, queue), fs3.close = (function(fs$close) {
|
|
7868
7870
|
function close(fd, cb) {
|
|
7869
7871
|
return fs$close.call(fs3, fd, function(err) {
|
|
7870
7872
|
err || resetQueue(), typeof cb == "function" && cb.apply(this, arguments);
|
|
@@ -7873,14 +7875,14 @@ GFS4: `), console.error(m);
|
|
|
7873
7875
|
return Object.defineProperty(close, previousSymbol, {
|
|
7874
7876
|
value: fs$close
|
|
7875
7877
|
}), close;
|
|
7876
|
-
}(fs3.close), fs3.closeSync = function(fs$closeSync) {
|
|
7878
|
+
})(fs3.close), fs3.closeSync = (function(fs$closeSync) {
|
|
7877
7879
|
function closeSync(fd) {
|
|
7878
7880
|
fs$closeSync.apply(fs3, arguments), resetQueue();
|
|
7879
7881
|
}
|
|
7880
7882
|
return Object.defineProperty(closeSync, previousSymbol, {
|
|
7881
7883
|
value: fs$closeSync
|
|
7882
7884
|
}), closeSync;
|
|
7883
|
-
}(fs3.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
|
7885
|
+
})(fs3.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
|
7884
7886
|
debug(fs3[gracefulQueue]), __require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
7885
7887
|
}));
|
|
7886
7888
|
var queue;
|
|
@@ -8104,15 +8106,15 @@ var require_dist2 = __commonJS({
|
|
|
8104
8106
|
"../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/index.js"(exports) {
|
|
8105
8107
|
"use strict";
|
|
8106
8108
|
init_cjs_shims();
|
|
8107
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8109
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8108
8110
|
k2 === void 0 && (k2 = k);
|
|
8109
8111
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8110
8112
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
|
|
8111
8113
|
return m[k];
|
|
8112
8114
|
} }), Object.defineProperty(o, k2, desc);
|
|
8113
|
-
} : function(o, m, k, k2) {
|
|
8115
|
+
}) : (function(o, m, k, k2) {
|
|
8114
8116
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
8115
|
-
}), __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
8117
|
+
})), __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
8116
8118
|
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p) && __createBinding(exports2, m, p);
|
|
8117
8119
|
};
|
|
8118
8120
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -8727,10 +8729,11 @@ var require_conf = __commonJS({
|
|
|
8727
8729
|
};
|
|
8728
8730
|
function deserializeEnvVal(envKey, envValue) {
|
|
8729
8731
|
function deserializeList(envValue2) {
|
|
8730
|
-
|
|
8732
|
+
return envValue2.indexOf(`
|
|
8731
8733
|
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
+
`) ? envValue2.split(`
|
|
8735
|
+
|
|
8736
|
+
`) : envValue2.split(",");
|
|
8734
8737
|
}
|
|
8735
8738
|
switch (envKey) {
|
|
8736
8739
|
case "hoist-pattern":
|
|
@@ -8856,7 +8859,7 @@ var require_defaults2 = __commonJS({
|
|
|
8856
8859
|
searchopts: "",
|
|
8857
8860
|
searchexclude: null,
|
|
8858
8861
|
searchlimit: 20,
|
|
8859
|
-
searchstaleness:
|
|
8862
|
+
searchstaleness: 900,
|
|
8860
8863
|
"send-metrics": !1,
|
|
8861
8864
|
shell: osenv.shell(),
|
|
8862
8865
|
shrinkwrap: !0,
|
|
@@ -9791,32 +9794,80 @@ var LocalStorage = class {
|
|
|
9791
9794
|
*
|
|
9792
9795
|
* @param key - The key to get.
|
|
9793
9796
|
* @returns The value.
|
|
9797
|
+
* @throws AbortError if a permission error occurs.
|
|
9798
|
+
* @throws BugError if an unexpected error occurs.
|
|
9794
9799
|
*/
|
|
9795
9800
|
get(key) {
|
|
9796
|
-
|
|
9801
|
+
try {
|
|
9802
|
+
return this.config.get(key);
|
|
9803
|
+
} catch (error) {
|
|
9804
|
+
this.handleError(error, "get");
|
|
9805
|
+
}
|
|
9797
9806
|
}
|
|
9798
9807
|
/**
|
|
9799
9808
|
* Set a value in the local storage.
|
|
9800
9809
|
*
|
|
9801
9810
|
* @param key - The key to set.
|
|
9802
9811
|
* @param value - The value to set.
|
|
9812
|
+
* @throws AbortError if a permission error occurs.
|
|
9813
|
+
* @throws BugError if an unexpected error occurs.
|
|
9803
9814
|
*/
|
|
9804
9815
|
set(key, value) {
|
|
9805
|
-
|
|
9816
|
+
try {
|
|
9817
|
+
this.config.set(key, value);
|
|
9818
|
+
} catch (error) {
|
|
9819
|
+
this.handleError(error, "set");
|
|
9820
|
+
}
|
|
9806
9821
|
}
|
|
9807
9822
|
/**
|
|
9808
9823
|
* Delete a value from the local storage.
|
|
9809
9824
|
*
|
|
9810
9825
|
* @param key - The key to delete.
|
|
9826
|
+
* @throws AbortError if a permission error occurs.
|
|
9827
|
+
* @throws BugError if an unexpected error occurs.
|
|
9811
9828
|
*/
|
|
9812
9829
|
delete(key) {
|
|
9813
|
-
|
|
9830
|
+
try {
|
|
9831
|
+
this.config.delete(key);
|
|
9832
|
+
} catch (error) {
|
|
9833
|
+
this.handleError(error, "delete");
|
|
9834
|
+
}
|
|
9814
9835
|
}
|
|
9815
9836
|
/**
|
|
9816
9837
|
* Clear the local storage (delete all values).
|
|
9838
|
+
*
|
|
9839
|
+
* @throws AbortError if a permission error occurs.
|
|
9840
|
+
* @throws BugError if an unexpected error occurs.
|
|
9817
9841
|
*/
|
|
9818
9842
|
clear() {
|
|
9819
|
-
|
|
9843
|
+
try {
|
|
9844
|
+
this.config.clear();
|
|
9845
|
+
} catch (error) {
|
|
9846
|
+
this.handleError(error, "clear");
|
|
9847
|
+
}
|
|
9848
|
+
}
|
|
9849
|
+
/**
|
|
9850
|
+
* Handle errors from config operations.
|
|
9851
|
+
* If the error is permission-related, throw an AbortError with helpful hints.
|
|
9852
|
+
* Otherwise, throw a BugError.
|
|
9853
|
+
*
|
|
9854
|
+
* @param error - The error that occurred.
|
|
9855
|
+
* @param operation - The operation that failed.
|
|
9856
|
+
* @throws AbortError if the error is permission-related.
|
|
9857
|
+
* @throws BugError if the error is not permission-related.
|
|
9858
|
+
*/
|
|
9859
|
+
handleError(error, operation) {
|
|
9860
|
+
throw this.isPermissionError() ? new AbortError(`Failed to access local storage (${operation}): ${error}`, this.tryMessage()) : new BugError(`Unexpected error while accessing local storage at ${this.config.path} (${operation}): ${error}`);
|
|
9861
|
+
}
|
|
9862
|
+
isPermissionError() {
|
|
9863
|
+
let canAccessFile = fileHasWritePermissions(this.config.path), canAccessFolder = fileHasWritePermissions(dirname(this.config.path)), ownsFile = unixFileIsOwnedByCurrentUser(this.config.path);
|
|
9864
|
+
return !canAccessFile || !canAccessFolder || ownsFile === !1;
|
|
9865
|
+
}
|
|
9866
|
+
tryMessage() {
|
|
9867
|
+
let ownsFile = unixFileIsOwnedByCurrentUser(this.config.path), ownsFolder = unixFileIsOwnedByCurrentUser(dirname(this.config.path)), message = ["Check that you have write permissions for", { filePath: this.config.path }];
|
|
9868
|
+
return (ownsFile === !1 || ownsFolder === !1) && message.push("- The file is owned by a different user. This typically happens when Shopify CLI was previously run with elevated permissions (e.g., sudo)."), message.push(`
|
|
9869
|
+
|
|
9870
|
+
To resolve this, remove the Shopify CLI preferences folder:`), message.push({ command: `rm -rf ${dirname(this.config.path)}` }), message;
|
|
9820
9871
|
}
|
|
9821
9872
|
};
|
|
9822
9873
|
|
|
@@ -13177,7 +13228,7 @@ var { buffer: getBuffer } = import_get_stream2.default, supportsBrotli = dist_de
|
|
|
13177
13228
|
}
|
|
13178
13229
|
_prepareCache(cache) {
|
|
13179
13230
|
if (!cacheableStore.has(cache)) {
|
|
13180
|
-
let cacheableRequest = new dist_default3((requestOptions, handler) => {
|
|
13231
|
+
let cacheableRequest = new dist_default3(((requestOptions, handler) => {
|
|
13181
13232
|
let result = requestOptions._request(requestOptions, handler);
|
|
13182
13233
|
return dist_default2.promise(result) && (result.once = (event, handler2) => {
|
|
13183
13234
|
if (event === "error")
|
|
@@ -13199,7 +13250,7 @@ var { buffer: getBuffer } = import_get_stream2.default, supportsBrotli = dist_de
|
|
|
13199
13250
|
throw new Error(`Unknown HTTP2 promise event: ${event}`);
|
|
13200
13251
|
return result;
|
|
13201
13252
|
}), result;
|
|
13202
|
-
}, cache);
|
|
13253
|
+
}), cache);
|
|
13203
13254
|
cacheableStore.set(cache, cacheableRequest.request());
|
|
13204
13255
|
}
|
|
13205
13256
|
}
|
|
@@ -13481,7 +13532,7 @@ var delay = async (ms) => new Promise((resolve) => {
|
|
|
13481
13532
|
configurable: !1,
|
|
13482
13533
|
writable: !1
|
|
13483
13534
|
});
|
|
13484
|
-
let got2 = (url, options, defaultOptions2 = defaults2.options) => {
|
|
13535
|
+
let got2 = ((url, options, defaultOptions2 = defaults2.options) => {
|
|
13485
13536
|
let request = new Request(url, options, defaultOptions2), promise, lastHandler = (normalized) => (request.options = normalized, request._noPipe = !normalized.isStream, request.flush(), normalized.isStream ? request : (promise || (promise = asPromise(request)), promise)), iteration = 0, iterateHandlers = (newOptions) => {
|
|
13486
13537
|
let result = (defaults2.handlers[iteration++] ?? lastHandler)(newOptions, iterateHandlers);
|
|
13487
13538
|
if (dist_default2.promise(result) && !request.options.isStream && (promise || (promise = asPromise(request)), result !== promise)) {
|
|
@@ -13493,7 +13544,7 @@ var delay = async (ms) => new Promise((resolve) => {
|
|
|
13493
13544
|
return result;
|
|
13494
13545
|
};
|
|
13495
13546
|
return iterateHandlers(request.options);
|
|
13496
|
-
};
|
|
13547
|
+
});
|
|
13497
13548
|
got2.extend = (...instancesOrOptions) => {
|
|
13498
13549
|
let options = new Options(void 0, void 0, defaults2.options), handlers = [...defaults2.handlers], mutableDefaults;
|
|
13499
13550
|
for (let value of instancesOrOptions)
|
|
@@ -13504,7 +13555,7 @@ var delay = async (ms) => new Promise((resolve) => {
|
|
|
13504
13555
|
mutableDefaults: !!mutableDefaults
|
|
13505
13556
|
});
|
|
13506
13557
|
};
|
|
13507
|
-
let paginateEach = async function* (url, options) {
|
|
13558
|
+
let paginateEach = (async function* (url, options) {
|
|
13508
13559
|
let normalizedOptions = new Options(url, options, defaults2.options);
|
|
13509
13560
|
normalizedOptions.resolveBodyOnly = !1;
|
|
13510
13561
|
let { pagination } = normalizedOptions;
|
|
@@ -13526,15 +13577,15 @@ var delay = async (ms) => new Promise((resolve) => {
|
|
|
13526
13577
|
return;
|
|
13527
13578
|
optionsToMerge === response.request.options ? normalizedOptions = response.request.options : (normalizedOptions.merge(optionsToMerge), assert2.any([dist_default2.urlInstance, dist_default2.undefined], optionsToMerge.url), optionsToMerge.url !== void 0 && (normalizedOptions.prefixUrl = "", normalizedOptions.url = optionsToMerge.url)), numberOfRequests++;
|
|
13528
13579
|
}
|
|
13529
|
-
};
|
|
13530
|
-
got2.paginate = paginateEach, got2.paginate.all = async (url, options) => {
|
|
13580
|
+
});
|
|
13581
|
+
got2.paginate = paginateEach, got2.paginate.all = (async (url, options) => {
|
|
13531
13582
|
let results = [];
|
|
13532
13583
|
for await (let item of paginateEach(url, options))
|
|
13533
13584
|
results.push(item);
|
|
13534
13585
|
return results;
|
|
13535
|
-
}, got2.paginate.each = paginateEach, got2.stream = (url, options) => got2(url, { ...options, isStream: !0 });
|
|
13586
|
+
}), got2.paginate.each = paginateEach, got2.stream = ((url, options) => got2(url, { ...options, isStream: !0 }));
|
|
13536
13587
|
for (let method of aliases)
|
|
13537
|
-
got2[method] = (url, options) => got2(url, { ...options, method }), got2.stream[method] = (url, options) => got2(url, { ...options, method, isStream: !0 });
|
|
13588
|
+
got2[method] = ((url, options) => got2(url, { ...options, method })), got2.stream[method] = ((url, options) => got2(url, { ...options, method, isStream: !0 }));
|
|
13538
13589
|
return defaults2.mutableDefaults || (Object.freeze(defaults2.handlers), defaults2.options.freeze()), Object.defineProperty(got2, "defaults", {
|
|
13539
13590
|
value: defaults2,
|
|
13540
13591
|
writable: !1,
|
|
@@ -13933,4 +13984,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
13933
13984
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13934
13985
|
*)
|
|
13935
13986
|
*/
|
|
13936
|
-
//# sourceMappingURL=chunk-
|
|
13987
|
+
//# sourceMappingURL=chunk-TO2X4F7Z.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
FormData,
|
|
3
3
|
fetch_blob_default,
|
|
4
4
|
formDataToBlob
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XD3LXUGW.js";
|
|
6
6
|
import {
|
|
7
7
|
cacheRetrieveOrRepopulate,
|
|
8
8
|
getCurrentSessionId,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
setCurrentSessionId,
|
|
15
15
|
setSessions,
|
|
16
16
|
timeIntervalToMilliseconds
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TO2X4F7Z.js";
|
|
18
18
|
import {
|
|
19
19
|
AbortError,
|
|
20
20
|
BugError,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
stringifyMessage,
|
|
81
81
|
systemEnvironmentVariables,
|
|
82
82
|
themeToken
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-24C6AXHU.js";
|
|
84
84
|
import {
|
|
85
85
|
cwd,
|
|
86
86
|
sniffForJson
|
|
@@ -14985,7 +14985,7 @@ var require_punycode = __commonJS({
|
|
|
14985
14985
|
"../../node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.js"(exports2, module2) {
|
|
14986
14986
|
"use strict";
|
|
14987
14987
|
init_cjs_shims();
|
|
14988
|
-
var
|
|
14988
|
+
var regexPunycode = /^xn--/, regexNonASCII = /[^\0-\x7F]/, regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, errors = {
|
|
14989
14989
|
overflow: "Overflow: input needs wider integers to process",
|
|
14990
14990
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
14991
14991
|
"invalid-input": "Invalid input"
|
|
@@ -15027,7 +15027,7 @@ var require_punycode = __commonJS({
|
|
|
15027
15027
|
delta = floor(delta / baseMinusTMin);
|
|
15028
15028
|
return floor(k + (baseMinusTMin + 1) * delta / (delta + 38));
|
|
15029
15029
|
}, decode3 = function(input) {
|
|
15030
|
-
let output = [], inputLength = input.length, i = 0, n = 128, bias = 72, basic = input.lastIndexOf(
|
|
15030
|
+
let output = [], inputLength = input.length, i = 0, n = 128, bias = 72, basic = input.lastIndexOf("-");
|
|
15031
15031
|
basic < 0 && (basic = 0);
|
|
15032
15032
|
for (let j = 0; j < basic; ++j)
|
|
15033
15033
|
input.charCodeAt(j) >= 128 && error("not-basic"), output.push(input.charCodeAt(j));
|
|
@@ -15054,7 +15054,7 @@ var require_punycode = __commonJS({
|
|
|
15054
15054
|
for (let currentValue of input)
|
|
15055
15055
|
currentValue < 128 && output.push(stringFromCharCode(currentValue));
|
|
15056
15056
|
let basicLength = output.length, handledCPCount = basicLength;
|
|
15057
|
-
for (basicLength && output.push(
|
|
15057
|
+
for (basicLength && output.push("-"); handledCPCount < inputLength; ) {
|
|
15058
15058
|
let m = 2147483647;
|
|
15059
15059
|
for (let currentValue of input)
|
|
15060
15060
|
currentValue >= n && currentValue < m && (m = currentValue);
|
|
@@ -27249,7 +27249,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
27249
27249
|
}
|
|
27250
27250
|
}, $gOPD = require_gopd(), $defineProperty = require_es_define_property(), throwTypeError = function() {
|
|
27251
27251
|
throw new $TypeError();
|
|
27252
|
-
}, ThrowTypeError = $gOPD ? function() {
|
|
27252
|
+
}, ThrowTypeError = $gOPD ? (function() {
|
|
27253
27253
|
try {
|
|
27254
27254
|
return arguments.callee, throwTypeError;
|
|
27255
27255
|
} catch {
|
|
@@ -27259,7 +27259,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
27259
27259
|
return throwTypeError;
|
|
27260
27260
|
}
|
|
27261
27261
|
}
|
|
27262
|
-
}() : throwTypeError, hasSymbols = require_has_symbols()(), getProto = require_get_proto(), $ObjectGPO = require_Object_getPrototypeOf(), $ReflectGPO = require_Reflect_getPrototypeOf(), $apply = require_functionApply(), $call = require_functionCall(), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined2 : getProto(Uint8Array), INTRINSICS = {
|
|
27262
|
+
})() : throwTypeError, hasSymbols = require_has_symbols()(), getProto = require_get_proto(), $ObjectGPO = require_Object_getPrototypeOf(), $ReflectGPO = require_Reflect_getPrototypeOf(), $apply = require_functionApply(), $call = require_functionCall(), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined2 : getProto(Uint8Array), INTRINSICS = {
|
|
27263
27263
|
__proto__: null,
|
|
27264
27264
|
"%AggregateError%": typeof AggregateError > "u" ? undefined2 : AggregateError,
|
|
27265
27265
|
"%Array%": Array,
|
|
@@ -28259,7 +28259,7 @@ var require_Events = __commonJS({
|
|
|
28259
28259
|
return name !== "debug" && _this.trigger("debug", `Event triggered: ${name}`, args), _this._events[name] == null ? void 0 : (_this._events[name] = _this._events[name].filter(function(listener) {
|
|
28260
28260
|
return listener.status !== "none";
|
|
28261
28261
|
}), promises = _this._events[name].map(
|
|
28262
|
-
/* @__PURE__ */ function() {
|
|
28262
|
+
/* @__PURE__ */ (function() {
|
|
28263
28263
|
var _ref = _asyncToGenerator2(function* (listener) {
|
|
28264
28264
|
var e2, returned;
|
|
28265
28265
|
if (listener.status !== "none") {
|
|
@@ -28274,7 +28274,7 @@ var require_Events = __commonJS({
|
|
|
28274
28274
|
return function(_x) {
|
|
28275
28275
|
return _ref.apply(this, arguments);
|
|
28276
28276
|
};
|
|
28277
|
-
}()
|
|
28277
|
+
})()
|
|
28278
28278
|
), (yield Promise.all(promises)).find(function(x) {
|
|
28279
28279
|
return x != null;
|
|
28280
28280
|
}));
|
|
@@ -29479,7 +29479,7 @@ var require_RedisConnection = __commonJS({
|
|
|
29479
29479
|
__removeLimiter__(instance) {
|
|
29480
29480
|
var _this2 = this;
|
|
29481
29481
|
return this.Promise.all([instance.channel(), instance.channel_client()].map(
|
|
29482
|
-
/* @__PURE__ */ function() {
|
|
29482
|
+
/* @__PURE__ */ (function() {
|
|
29483
29483
|
var _ref = _asyncToGenerator(function* (channel) {
|
|
29484
29484
|
return _this2.terminated || (yield new _this2.Promise((resolve, reject) => _this2.subscriber.unsubscribe(channel, function(err2, chan) {
|
|
29485
29485
|
if (err2 != null)
|
|
@@ -29491,7 +29491,7 @@ var require_RedisConnection = __commonJS({
|
|
|
29491
29491
|
return function(_x) {
|
|
29492
29492
|
return _ref.apply(this, arguments);
|
|
29493
29493
|
};
|
|
29494
|
-
}()
|
|
29494
|
+
})()
|
|
29495
29495
|
));
|
|
29496
29496
|
}
|
|
29497
29497
|
__scriptArgs__(name, id, args, cb) {
|
|
@@ -29612,14 +29612,14 @@ var require_IORedisConnection = __commonJS({
|
|
|
29612
29612
|
__removeLimiter__(instance) {
|
|
29613
29613
|
var _this2 = this;
|
|
29614
29614
|
return [instance.channel(), instance.channel_client()].forEach(
|
|
29615
|
-
/* @__PURE__ */ function() {
|
|
29615
|
+
/* @__PURE__ */ (function() {
|
|
29616
29616
|
var _ref3 = _asyncToGenerator(function* (channel) {
|
|
29617
29617
|
return _this2.terminated || (yield _this2.subscriber.unsubscribe(channel)), delete _this2.limiters[channel];
|
|
29618
29618
|
});
|
|
29619
29619
|
return function(_x) {
|
|
29620
29620
|
return _ref3.apply(this, arguments);
|
|
29621
29621
|
};
|
|
29622
|
-
}()
|
|
29622
|
+
})()
|
|
29623
29623
|
);
|
|
29624
29624
|
}
|
|
29625
29625
|
__scriptArgs__(name, id, args, cb) {
|
|
@@ -30580,7 +30580,7 @@ var require_lib3 = __commonJS({
|
|
|
30580
30580
|
|
|
30581
30581
|
// ../cli-kit/dist/public/common/version.js
|
|
30582
30582
|
init_cjs_shims();
|
|
30583
|
-
var CLI_KIT_VERSION = "3.
|
|
30583
|
+
var CLI_KIT_VERSION = "3.86.0";
|
|
30584
30584
|
|
|
30585
30585
|
// ../cli-kit/dist/private/node/context/service.js
|
|
30586
30586
|
init_cjs_shims();
|
|
@@ -30595,9 +30595,6 @@ function isLocalEnvironment(env = process.env) {
|
|
|
30595
30595
|
return serviceEnvironment(env) === Environment.Local;
|
|
30596
30596
|
}
|
|
30597
30597
|
|
|
30598
|
-
// ../cli-kit/dist/private/node/analytics.js
|
|
30599
|
-
init_cjs_shims();
|
|
30600
|
-
|
|
30601
30598
|
// ../cli-kit/dist/private/node/session.js
|
|
30602
30599
|
init_cjs_shims();
|
|
30603
30600
|
|
|
@@ -33454,14 +33451,14 @@ var late = {
|
|
|
33454
33451
|
var instanceOfType = (cls, params = {
|
|
33455
33452
|
message: `Input not instance of ${cls.name}`
|
|
33456
33453
|
}) => custom((data) => data instanceof cls, params), stringType = ZodString.create, numberType = ZodNumber.create, nanType = ZodNaN.create, bigIntType = ZodBigInt.create, booleanType = ZodBoolean.create, dateType = ZodDate.create, symbolType = ZodSymbol.create, undefinedType = ZodUndefined.create, nullType = ZodNull.create, anyType = ZodAny.create, unknownType = ZodUnknown.create, neverType = ZodNever.create, voidType = ZodVoid.create, arrayType = ZodArray.create, objectType = ZodObject.create, strictObjectType = ZodObject.strictCreate, unionType = ZodUnion.create, discriminatedUnionType = ZodDiscriminatedUnion.create, intersectionType = ZodIntersection.create, tupleType = ZodTuple.create, recordType = ZodRecord.create, mapType = ZodMap.create, setType = ZodSet.create, functionType = ZodFunction.create, lazyType = ZodLazy.create, literalType = ZodLiteral.create, enumType = ZodEnum.create, nativeEnumType = ZodNativeEnum.create, promiseType = ZodPromise.create, effectsType = ZodEffects.create, optionalType = ZodOptional.create, nullableType = ZodNullable.create, preprocessType = ZodEffects.createWithPreprocess, pipelineType = ZodPipeline.create, ostring = () => stringType().optional(), onumber = () => numberType().optional(), oboolean = () => booleanType().optional(), coerce = {
|
|
33457
|
-
string: (arg) => ZodString.create({ ...arg, coerce: !0 }),
|
|
33458
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: !0 }),
|
|
33459
|
-
boolean: (arg) => ZodBoolean.create({
|
|
33454
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: !0 })),
|
|
33455
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: !0 })),
|
|
33456
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
33460
33457
|
...arg,
|
|
33461
33458
|
coerce: !0
|
|
33462
|
-
}),
|
|
33463
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: !0 }),
|
|
33464
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: !0 })
|
|
33459
|
+
})),
|
|
33460
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: !0 })),
|
|
33461
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: !0 }))
|
|
33465
33462
|
}, NEVER = INVALID, z = /* @__PURE__ */ Object.freeze({
|
|
33466
33463
|
__proto__: null,
|
|
33467
33464
|
defaultErrorMap: errorMap,
|
|
@@ -34629,8 +34626,8 @@ async function identityFqdn() {
|
|
|
34629
34626
|
return productionFqdn;
|
|
34630
34627
|
}
|
|
34631
34628
|
}
|
|
34632
|
-
|
|
34633
|
-
let storeFqdn = store2.replace(/^https?:\/\//, "").replace(/\/$/, ""), addDomain =
|
|
34629
|
+
function normalizeStoreFqdn(store2) {
|
|
34630
|
+
let storeFqdn = store2.replace(/^https?:\/\//, "").replace(/\/$/, "").replace(/\/admin$/, ""), addDomain = (storeFqdn2) => {
|
|
34634
34631
|
switch (serviceEnvironment()) {
|
|
34635
34632
|
case "local":
|
|
34636
34633
|
return new DevServerCore().host(storeFqdn2);
|
|
@@ -34758,7 +34755,7 @@ var pipeline = promisify(Stream.pipeline), INTERNALS = Symbol("Body internals"),
|
|
|
34758
34755
|
formData2.append(name, value);
|
|
34759
34756
|
return formData2;
|
|
34760
34757
|
}
|
|
34761
|
-
let { toFormData } = await import("./multipart-parser-
|
|
34758
|
+
let { toFormData } = await import("./multipart-parser-IYYNISJK.js");
|
|
34762
34759
|
return toFormData(this.body, ct);
|
|
34763
34760
|
}
|
|
34764
34761
|
/**
|
|
@@ -35800,7 +35797,7 @@ async function refreshAccessToken(currentToken) {
|
|
|
35800
35797
|
refresh_token: currentToken.refreshToken,
|
|
35801
35798
|
client_id: clientId2
|
|
35802
35799
|
}, value = (await tokenRequest(params)).mapError(tokenRequestErrorHandler).valueOrBug();
|
|
35803
|
-
return buildIdentityToken(value, currentToken.userId);
|
|
35800
|
+
return buildIdentityToken(value, currentToken.userId, currentToken.alias);
|
|
35804
35801
|
}
|
|
35805
35802
|
async function exchangeCliTokenForAccessToken(apiName, token, scopes) {
|
|
35806
35803
|
let appId = applicationId(apiName);
|
|
@@ -35861,7 +35858,7 @@ async function tokenRequest(params) {
|
|
|
35861
35858
|
let res = await shopifyFetch(url3.href, { method: "POST" }), payload = await res.json();
|
|
35862
35859
|
return res.ok ? ok(payload) : err({ error: payload.error, store: params.store });
|
|
35863
35860
|
}
|
|
35864
|
-
function buildIdentityToken(result, existingUserId) {
|
|
35861
|
+
function buildIdentityToken(result, existingUserId, existingAlias) {
|
|
35865
35862
|
let userId2 = existingUserId ?? (result.id_token ? decodeJwt(result.id_token).sub : void 0);
|
|
35866
35863
|
if (!userId2)
|
|
35867
35864
|
throw new BugError("Error setting userId for session. No id_token or pre-existing user ID provided.");
|
|
@@ -35870,7 +35867,8 @@ function buildIdentityToken(result, existingUserId) {
|
|
|
35870
35867
|
refreshToken: result.refresh_token,
|
|
35871
35868
|
expiresAt: new Date(Date.now() + result.expires_in * 1e3),
|
|
35872
35869
|
scopes: result.scope.split(" "),
|
|
35873
|
-
userId: userId2
|
|
35870
|
+
userId: userId2,
|
|
35871
|
+
alias: existingAlias
|
|
35874
35872
|
};
|
|
35875
35873
|
}
|
|
35876
35874
|
function buildApplicationToken(result) {
|
|
@@ -35985,6 +35983,12 @@ var UserEmailQueryString = `
|
|
|
35985
35983
|
|
|
35986
35984
|
// ../cli-kit/dist/public/node/session.js
|
|
35987
35985
|
init_cjs_shims();
|
|
35986
|
+
function isUserAccount(account) {
|
|
35987
|
+
return account.type === "UserAccount";
|
|
35988
|
+
}
|
|
35989
|
+
function isServiceAccount(account) {
|
|
35990
|
+
return account.type === "ServiceAccount";
|
|
35991
|
+
}
|
|
35988
35992
|
async function ensureAuthenticatedPartners(scopes = [], env = process.env, options2 = {}) {
|
|
35989
35993
|
outputDebug(outputContent`Ensuring that the user is authenticated with the Partners API with the following scopes:
|
|
35990
35994
|
${outputToken.json(scopes)}
|
|
@@ -36068,7 +36072,7 @@ function unionArrayStrategy(destinationArray, sourceArray) {
|
|
|
36068
36072
|
}
|
|
36069
36073
|
|
|
36070
36074
|
// ../cli-kit/dist/public/common/object.js
|
|
36071
|
-
var import_deepmerge = __toESM(require_cjs()
|
|
36075
|
+
var import_deepmerge = __toESM(require_cjs()), import_pickBy = __toESM(require_pickBy()), import_mapValues = __toESM(require_mapValues()), import_isEqual = __toESM(require_isEqual()), import_differenceWith = __toESM(require_differenceWith()), import_fromPairs = __toESM(require_fromPairs()), import_toPairs = __toESM(require_toPairs()), import_get = __toESM(require_get()), import_set = __toESM(require_set()), import_unset = __toESM(require_unset()), import_isEmpty = __toESM(require_isEmpty());
|
|
36072
36076
|
function deepMergeObjects(lhs, rhs, arrayMergeStrategy = unionArrayStrategy) {
|
|
36073
36077
|
return (0, import_deepmerge.default)(lhs, rhs, { arrayMerge: arrayMergeStrategy });
|
|
36074
36078
|
}
|
|
@@ -36452,7 +36456,7 @@ function setLastSeenAuthMethod(method) {
|
|
|
36452
36456
|
async function ensureAuthenticated(applications, _env, { forceRefresh = !1, noPrompt = !1, forceNewSession = !1 } = {}) {
|
|
36453
36457
|
let fqdn = await identityFqdn(), previousStoreFqdn = applications.adminApi?.storeFqdn;
|
|
36454
36458
|
if (previousStoreFqdn) {
|
|
36455
|
-
let normalizedStoreName =
|
|
36459
|
+
let normalizedStoreName = normalizeStoreFqdn(previousStoreFqdn);
|
|
36456
36460
|
previousStoreFqdn === applications.adminApi?.storeFqdn && (applications.adminApi.storeFqdn = normalizedStoreName);
|
|
36457
36461
|
}
|
|
36458
36462
|
let sessions = await fetch3() ?? {}, currentSessionId = getCurrentSessionId();
|
|
@@ -36565,13 +36569,14 @@ function getExchangeScopes(apps) {
|
|
|
36565
36569
|
function buildIdentityTokenFromEnv(scopes, identityTokenInformation) {
|
|
36566
36570
|
return {
|
|
36567
36571
|
...identityTokenInformation,
|
|
36568
|
-
expiresAt: new Date(Date.now() +
|
|
36572
|
+
expiresAt: new Date(Date.now() + 720 * 60 * 60 * 1e3),
|
|
36569
36573
|
scopes,
|
|
36570
36574
|
alias: identityTokenInformation.userId
|
|
36571
36575
|
};
|
|
36572
36576
|
}
|
|
36573
36577
|
|
|
36574
36578
|
// ../cli-kit/dist/private/node/analytics.js
|
|
36579
|
+
init_cjs_shims();
|
|
36575
36580
|
async function startAnalytics({ commandContent, args, currentTime = (/* @__PURE__ */ new Date()).getTime(), commandClass }) {
|
|
36576
36581
|
let startCommand = commandContent.command;
|
|
36577
36582
|
commandClass && Object.prototype.hasOwnProperty.call(commandClass, "analyticsNameOverride") && (startCommand = commandClass.analyticsNameOverride() ?? commandContent.command);
|
|
@@ -36663,6 +36668,8 @@ export {
|
|
|
36663
36668
|
ok,
|
|
36664
36669
|
err,
|
|
36665
36670
|
isThemeAccessSession,
|
|
36671
|
+
isUserAccount,
|
|
36672
|
+
isServiceAccount,
|
|
36666
36673
|
ensureAuthenticatedPartners,
|
|
36667
36674
|
ensureAuthenticatedAppManagementAndBusinessPlatform,
|
|
36668
36675
|
ensureAuthenticatedStorefront,
|
|
@@ -36717,4 +36724,4 @@ mime-types/index.js:
|
|
|
36717
36724
|
* MIT Licensed
|
|
36718
36725
|
*)
|
|
36719
36726
|
*/
|
|
36720
|
-
//# sourceMappingURL=chunk-
|
|
36727
|
+
//# sourceMappingURL=chunk-VCNJSI7V.js.map
|
|
@@ -11,7 +11,7 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
11
11
|
init_cjs_shims();
|
|
12
12
|
(function(global2, factory) {
|
|
13
13
|
typeof exports == "object" && typeof module < "u" ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis < "u" ? globalThis : global2 || self, factory(global2.WebStreamsPolyfill = {}));
|
|
14
|
-
})(exports, function(exports2) {
|
|
14
|
+
})(exports, (function(exports2) {
|
|
15
15
|
"use strict";
|
|
16
16
|
function noop() {
|
|
17
17
|
}
|
|
@@ -409,9 +409,9 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
409
409
|
function CreateAsyncFromSyncIterator(syncIteratorRecord) {
|
|
410
410
|
let syncIterable = {
|
|
411
411
|
[Symbol.iterator]: () => syncIteratorRecord.iterator
|
|
412
|
-
}, asyncIterator = async function* () {
|
|
412
|
+
}, asyncIterator = (async function* () {
|
|
413
413
|
return yield* syncIterable;
|
|
414
|
-
}(), nextMethod = asyncIterator.next;
|
|
414
|
+
})(), nextMethod = asyncIterator.next;
|
|
415
415
|
return { iterator: asyncIterator, nextMethod, done: !1 };
|
|
416
416
|
}
|
|
417
417
|
let SymbolAsyncIterator = (_c = (_a = Symbol.asyncIterator) !== null && _a !== void 0 ? _a : (_b = Symbol.for) === null || _b === void 0 ? void 0 : _b.call(Symbol, "Symbol.asyncIterator")) !== null && _c !== void 0 ? _c : "@@asyncIterator";
|
|
@@ -2648,7 +2648,7 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
2648
2648
|
return new TypeError(`TransformStream.prototype.${name} can only be used on a TransformStream`);
|
|
2649
2649
|
}
|
|
2650
2650
|
exports2.ByteLengthQueuingStrategy = ByteLengthQueuingStrategy, exports2.CountQueuingStrategy = CountQueuingStrategy, exports2.ReadableByteStreamController = ReadableByteStreamController, exports2.ReadableStream = ReadableStream2, exports2.ReadableStreamBYOBReader = ReadableStreamBYOBReader, exports2.ReadableStreamBYOBRequest = ReadableStreamBYOBRequest, exports2.ReadableStreamDefaultController = ReadableStreamDefaultController, exports2.ReadableStreamDefaultReader = ReadableStreamDefaultReader, exports2.TransformStream = TransformStream, exports2.TransformStreamDefaultController = TransformStreamDefaultController, exports2.WritableStream = WritableStream, exports2.WritableStreamDefaultController = WritableStreamDefaultController, exports2.WritableStreamDefaultWriter = WritableStreamDefaultWriter;
|
|
2651
|
-
});
|
|
2651
|
+
}));
|
|
2652
2652
|
}
|
|
2653
2653
|
});
|
|
2654
2654
|
|
|
@@ -2993,4 +2993,4 @@ fetch-blob/index.js:
|
|
|
2993
2993
|
formdata-polyfill/esm.min.js:
|
|
2994
2994
|
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
2995
2995
|
*/
|
|
2996
|
-
//# sourceMappingURL=chunk-
|
|
2996
|
+
//# sourceMappingURL=chunk-XD3LXUGW.js.map
|