@shopify/cli-kit 2.0.9 → 2.0.10
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 +6 -0
- package/dist/{index-9ce018b5.js → index-8ab5821f.js} +20 -12
- package/dist/{index-9ce018b5.js.map → index-8ab5821f.js.map} +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/{multipart-parser-9b6af1e6.js → multipart-parser-d7cd777b.js} +2 -2
- package/dist/{multipart-parser-9b6af1e6.js.map → multipart-parser-d7cd777b.js.map} +1 -1
- package/package.json +1 -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$4 = "2.0.
|
|
12320
|
+
var version$4 = "2.0.10";
|
|
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",
|
|
@@ -12432,11 +12432,11 @@ var cliKitPackageJson = {
|
|
|
12432
12432
|
devDependencies: devDependencies
|
|
12433
12433
|
};
|
|
12434
12434
|
|
|
12435
|
-
var version$3 = "2.0.
|
|
12435
|
+
var version$3 = "2.0.10";
|
|
12436
12436
|
|
|
12437
|
-
var version$2 = "2.0.
|
|
12437
|
+
var version$2 = "2.0.10";
|
|
12438
12438
|
|
|
12439
|
-
var version$1 = "2.0.
|
|
12439
|
+
var version$1 = "2.0.10";
|
|
12440
12440
|
|
|
12441
12441
|
const homedir$1 = os$8.homedir();
|
|
12442
12442
|
const tmpdir$1 = os$8.tmpdir();
|
|
@@ -40631,7 +40631,7 @@ class Body$1 {
|
|
|
40631
40631
|
return formData;
|
|
40632
40632
|
}
|
|
40633
40633
|
|
|
40634
|
-
const {toFormData} = await import('./multipart-parser-
|
|
40634
|
+
const {toFormData} = await import('./multipart-parser-d7cd777b.js');
|
|
40635
40635
|
return toFormData(this.body, ct);
|
|
40636
40636
|
}
|
|
40637
40637
|
|
|
@@ -54594,15 +54594,22 @@ async function install(directory, dependencyManager2, stdout, stderr, signal) {
|
|
|
54594
54594
|
const options = { cwd: directory, stdout, stderr, signal };
|
|
54595
54595
|
await exec$2(dependencyManager2, ["install"], options);
|
|
54596
54596
|
}
|
|
54597
|
+
async function getPackageName(packageJsonPath) {
|
|
54598
|
+
const packageJsonContent = await packageJSONContents(packageJsonPath);
|
|
54599
|
+
return packageJsonContent.name;
|
|
54600
|
+
}
|
|
54597
54601
|
async function getDependencies(packageJsonPath) {
|
|
54598
|
-
|
|
54599
|
-
throw PackageJsonNotFoundError(dirname$1(packageJsonPath));
|
|
54600
|
-
}
|
|
54601
|
-
const packageJsonContent = JSON.parse(await read$1(packageJsonPath));
|
|
54602
|
+
const packageJsonContent = await packageJSONContents(packageJsonPath);
|
|
54602
54603
|
const dependencies = packageJsonContent.dependencies ?? {};
|
|
54603
54604
|
const devDependencies = packageJsonContent.devDependencies ?? {};
|
|
54604
54605
|
return { ...dependencies, ...devDependencies };
|
|
54605
54606
|
}
|
|
54607
|
+
async function packageJSONContents(packageJsonPath) {
|
|
54608
|
+
if (!await exists$1(packageJsonPath)) {
|
|
54609
|
+
throw PackageJsonNotFoundError(dirname$1(packageJsonPath));
|
|
54610
|
+
}
|
|
54611
|
+
return JSON.parse(await read$1(packageJsonPath));
|
|
54612
|
+
}
|
|
54606
54613
|
async function addNPMDependenciesIfNeeded(dependencies, options) {
|
|
54607
54614
|
const packageJsonPath = join$3(options.directory, "package.json");
|
|
54608
54615
|
if (!await exists$1(packageJsonPath)) {
|
|
@@ -54690,6 +54697,7 @@ var dependency = /*#__PURE__*/Object.freeze({
|
|
|
54690
54697
|
dependencyManagerUsedForCreating: dependencyManagerUsedForCreating,
|
|
54691
54698
|
installNPMDependenciesRecursively: installNPMDependenciesRecursively,
|
|
54692
54699
|
install: install,
|
|
54700
|
+
getPackageName: getPackageName,
|
|
54693
54701
|
getDependencies: getDependencies,
|
|
54694
54702
|
addNPMDependenciesIfNeeded: addNPMDependenciesIfNeeded
|
|
54695
54703
|
});
|
|
@@ -66608,8 +66616,8 @@ const EmptyUrlError = new Abort("We received the authentication redirect but the
|
|
|
66608
66616
|
const AuthenticationError = (message) => {
|
|
66609
66617
|
return new Abort(message);
|
|
66610
66618
|
};
|
|
66611
|
-
const MissingCodeError = new Bug(`The authentication
|
|
66612
|
-
const MissingStateError = new Bug(`The authentication
|
|
66619
|
+
const MissingCodeError = new Bug(`The authentication can't continue because the redirect doesn't include the code.`);
|
|
66620
|
+
const MissingStateError = new Bug(`The authentication can't continue because the redirect doesn't include the state.`);
|
|
66613
66621
|
const redirectResponseBody = `You're logged in on the Shopify CLI in your terminal`;
|
|
66614
66622
|
const ResponseTimeoutSeconds = 10;
|
|
66615
66623
|
class RedirectListener {
|
|
@@ -172738,4 +172746,4 @@ var plugins = /*#__PURE__*/Object.freeze({
|
|
|
172738
172746
|
});
|
|
172739
172747
|
|
|
172740
172748
|
export { npm as A, port as B, cli as C, id as D, temporary as E, FormData$3 as F, dotEnv as G, constants$2 as H, plugins as I, 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 };
|
|
172741
|
-
//# sourceMappingURL=index-
|
|
172749
|
+
//# sourceMappingURL=index-8ab5821f.js.map
|