@zalify/cli 0.7.0 → 0.7.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/cli.js +7 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12060,6 +12060,13 @@ async function imagesGenerate(storeDir) {
|
|
|
12060
12060
|
import { readFileSync as readFileSync4, existsSync as existsSync4 } from "node:fs";
|
|
12061
12061
|
import { basename, join as join4, resolve as resolve3 } from "node:path";
|
|
12062
12062
|
function proxyError(auth, status, json) {
|
|
12063
|
+
if (json.code === "SCOPES_MISSING") {
|
|
12064
|
+
const granted = new Set(json.grantedScopes ?? []);
|
|
12065
|
+
const missing = (json.requiredScopes ?? []).filter((s) => !granted.has(s));
|
|
12066
|
+
return new Error(`Your Shopify connection is missing newly added permissions: ${missing.join(", ") || "(unknown)"}.
|
|
12067
|
+
` + ` Reconnect the store (one-time approval): ${json.reconnectUrl ?? `${auth.appUrl}/store/${auth.workspaceSlug}/settings/integrations`}
|
|
12068
|
+
` + ` Then re-run this command.`);
|
|
12069
|
+
}
|
|
12063
12070
|
if (status === 404) {
|
|
12064
12071
|
return new Error("Shopify Admin proxy not found (404) — the /api/shopify/admin endpoint " + "is probably not deployed yet on this Zalify app. Try again after the next deploy.");
|
|
12065
12072
|
}
|