@shopify/cli-kit 3.0.6 → 3.0.9
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/CHANGELOG.md +10 -0
- package/dist/{index-0bc409dd.js → index-2310cc02.js} +23 -18
- package/dist/index-2310cc02.js.map +1 -0
- package/dist/index.d.ts +7 -10
- package/dist/index.js +1 -1
- package/dist/{multipart-parser-289c7bc4.js → multipart-parser-c0dd350f.js} +2 -2
- package/dist/{multipart-parser-289c7bc4.js.map → multipart-parser-c0dd350f.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-0bc409dd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -12317,7 +12317,7 @@ var path$w = /*#__PURE__*/Object.freeze({
|
|
|
12317
12317
|
});
|
|
12318
12318
|
|
|
12319
12319
|
var name = "@shopify/cli-kit";
|
|
12320
|
-
var version$
|
|
12320
|
+
var version$1 = "3.0.9";
|
|
12321
12321
|
var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
|
|
12322
12322
|
var keywords = [
|
|
12323
12323
|
"shopify",
|
|
@@ -12413,7 +12413,7 @@ var devDependencies = {
|
|
|
12413
12413
|
};
|
|
12414
12414
|
var cliKitPackageJson = {
|
|
12415
12415
|
name: name,
|
|
12416
|
-
version: version$
|
|
12416
|
+
version: version$1,
|
|
12417
12417
|
"private": false,
|
|
12418
12418
|
description: description$1,
|
|
12419
12419
|
keywords: keywords,
|
|
@@ -12433,12 +12433,6 @@ var cliKitPackageJson = {
|
|
|
12433
12433
|
devDependencies: devDependencies
|
|
12434
12434
|
};
|
|
12435
12435
|
|
|
12436
|
-
var version$3 = "3.0.6";
|
|
12437
|
-
|
|
12438
|
-
var version$2 = "3.0.6";
|
|
12439
|
-
|
|
12440
|
-
var version$1 = "3.0.6";
|
|
12441
|
-
|
|
12442
12436
|
const homedir$1 = os$8.homedir();
|
|
12443
12437
|
const tmpdir$1 = os$8.tmpdir();
|
|
12444
12438
|
const {env: env$3} = process$2;
|
|
@@ -12546,10 +12540,7 @@ const constants$2 = {
|
|
|
12546
12540
|
}
|
|
12547
12541
|
},
|
|
12548
12542
|
versions: {
|
|
12549
|
-
cliKit: version$
|
|
12550
|
-
cli: version$3,
|
|
12551
|
-
app: version$2,
|
|
12552
|
-
cliHydrogen: version$1
|
|
12543
|
+
cliKit: version$1
|
|
12553
12544
|
},
|
|
12554
12545
|
keychain: {
|
|
12555
12546
|
service: "shopify-cli"
|
|
@@ -21501,7 +21492,7 @@ class Bug extends Fatal {
|
|
|
21501
21492
|
}
|
|
21502
21493
|
async function handler(error) {
|
|
21503
21494
|
let fatal;
|
|
21504
|
-
if (
|
|
21495
|
+
if (isFatal(error)) {
|
|
21505
21496
|
fatal = error;
|
|
21506
21497
|
} else {
|
|
21507
21498
|
fatal = new Bug(error.message);
|
|
@@ -21521,6 +21512,18 @@ function mapper$1(error) {
|
|
|
21521
21512
|
return Promise.resolve(error);
|
|
21522
21513
|
}
|
|
21523
21514
|
}
|
|
21515
|
+
function isFatal(error) {
|
|
21516
|
+
return Object.prototype.hasOwnProperty.call(error, "type");
|
|
21517
|
+
}
|
|
21518
|
+
function shouldReport(error) {
|
|
21519
|
+
if (!isFatal(error)) {
|
|
21520
|
+
return true;
|
|
21521
|
+
}
|
|
21522
|
+
if (error.type === 2 /* Bug */) {
|
|
21523
|
+
return true;
|
|
21524
|
+
}
|
|
21525
|
+
return false;
|
|
21526
|
+
}
|
|
21524
21527
|
|
|
21525
21528
|
var error$j = /*#__PURE__*/Object.freeze({
|
|
21526
21529
|
__proto__: null,
|
|
@@ -21530,6 +21533,8 @@ var error$j = /*#__PURE__*/Object.freeze({
|
|
|
21530
21533
|
Bug: Bug,
|
|
21531
21534
|
handler: handler,
|
|
21532
21535
|
mapper: mapper$1,
|
|
21536
|
+
isFatal: isFatal,
|
|
21537
|
+
shouldReport: shouldReport,
|
|
21533
21538
|
AbortSignal: AbortSignal
|
|
21534
21539
|
});
|
|
21535
21540
|
|
|
@@ -40739,7 +40744,7 @@ class Body$1 {
|
|
|
40739
40744
|
return formData;
|
|
40740
40745
|
}
|
|
40741
40746
|
|
|
40742
|
-
const {toFormData} = await import('./multipart-parser-
|
|
40747
|
+
const {toFormData} = await import('./multipart-parser-c0dd350f.js');
|
|
40743
40748
|
return toFormData(this.body, ct);
|
|
40744
40749
|
}
|
|
40745
40750
|
|
|
@@ -54670,7 +54675,7 @@ var github = /*#__PURE__*/Object.freeze({
|
|
|
54670
54675
|
|
|
54671
54676
|
const dependencyManager = ["yarn", "npm", "pnpm"];
|
|
54672
54677
|
const PackageJsonNotFoundError = (directory) => {
|
|
54673
|
-
return new
|
|
54678
|
+
return new Abort(`The directory ${directory} doesn't have a package.json.`);
|
|
54674
54679
|
};
|
|
54675
54680
|
function dependencyManagerUsedForCreating(env = process.env) {
|
|
54676
54681
|
if (env.npm_config_user_agent?.includes("yarn")) {
|
|
@@ -84941,7 +84946,7 @@ var store = /*#__PURE__*/Object.freeze({
|
|
|
84941
84946
|
});
|
|
84942
84947
|
|
|
84943
84948
|
async function buildHeaders(token) {
|
|
84944
|
-
const userAgent = `Shopify CLI; v=${constants$2.versions.
|
|
84949
|
+
const userAgent = `Shopify CLI; v=${constants$2.versions.cliKit}`;
|
|
84945
84950
|
await isShopify();
|
|
84946
84951
|
const headers = {
|
|
84947
84952
|
"User-Agent": userAgent,
|
|
@@ -172280,7 +172285,7 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
|
|
|
172280
172285
|
}(dist$1));
|
|
172281
172286
|
|
|
172282
172287
|
const UnauthorizedAccessError = () => {
|
|
172283
|
-
return new
|
|
172288
|
+
return new Abort(`You can't use Shopify CLI with development stores if you only have Partner staff member access.
|
|
172284
172289
|
If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store`, `If you're the store owner, then you need to log in to the store directly using the store URL at least once (for example, using %s.myshopify.com/admin) before you log in using Shopify CLI.
|
|
172285
172290
|
Logging in to the Shopify admin directly connects the development store with your Shopify login.`);
|
|
172286
172291
|
};
|
|
@@ -173460,4 +173465,4 @@ var plugins = /*#__PURE__*/Object.freeze({
|
|
|
173460
173465
|
});
|
|
173461
173466
|
|
|
173462
173467
|
export { npm as A, port as B, cli as C, id as D, temporary as E, FormData$3 as F, dotEnv as G, abort as H, constants$2 as I, plugins as J, File$1 as a, string as b, github as c, dependency as d, error$j as e, file$1 as f, git as g, os$2 as h, environment as i, session as j, schema$2 as k, toml as l, store as m, api as n, output as o, path$w as p, http$2 as q, archiver as r, system as s, template as t, ui as u, version as v, checksum as w, ruby as x, yaml as y, semver as z };
|
|
173463
|
-
//# sourceMappingURL=index-
|
|
173468
|
+
//# sourceMappingURL=index-2310cc02.js.map
|