shopify 0.0.0-snapshot-20240816144600 → 0.0.0-snapshot-20240816145941

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/index.js CHANGED
@@ -163929,12 +163929,12 @@ function isNewExtensionPointsSchema(extensionPoints) {
163929
163929
 
163930
163930
  // ../app/dist/cli/utilities/app/app-url.js
163931
163931
  init_cjs_shims();
163932
- function buildAppURLForWeb(storeFqdn, apiKey) {
163933
- return `https://${storeFqdn}/admin/oauth/redirect_from_cli?client_id=${apiKey}`;
163932
+ async function buildAppURLForWeb(storeFqdn, apiKey) {
163933
+ return `https://${await normalizeStoreFqdn(storeFqdn)}/admin/oauth/redirect_from_cli?client_id=${apiKey}`;
163934
163934
  }
163935
- function buildAppURLForMobile(storeFqdn, apiKey) {
163936
- let hostUrl = `${storeFqdn}/admin/apps/${apiKey}`, hostParam = Buffer.from(hostUrl).toString("base64").replace(/[=]/g, "");
163937
- return `https://${hostUrl}?shop=${storeFqdn}&host=${hostParam}`;
163935
+ async function buildAppURLForMobile(storeFqdn, apiKey) {
163936
+ let normalizedFQDN = await normalizeStoreFqdn(storeFqdn), hostUrl = `${normalizedFQDN}/admin/apps/${apiKey}`, hostParam = Buffer.from(hostUrl).toString("base64").replace(/[=]/g, "");
163937
+ return `https://${hostUrl}?shop=${normalizedFQDN}&host=${hostParam}`;
163938
163938
  }
163939
163939
 
163940
163940
  // ../app/dist/cli/services/dev/extension/payload/store.js
@@ -163948,8 +163948,8 @@ async function getExtensionsPayloadStoreRawPayload(options) {
163948
163948
  app: {
163949
163949
  title: options.appName,
163950
163950
  apiKey: options.apiKey,
163951
- url: buildAppURLForWeb(options.storeFqdn, options.apiKey),
163952
- mobileUrl: buildAppURLForMobile(options.storeFqdn, options.apiKey)
163951
+ url: await buildAppURLForWeb(options.storeFqdn, options.apiKey),
163952
+ mobileUrl: await buildAppURLForMobile(options.storeFqdn, options.apiKey)
163953
163953
  },
163954
163954
  appId: options.id,
163955
163955
  version: options.manifestVersion,
@@ -166606,7 +166606,7 @@ function match(rules, req, websocket = !1) {
166606
166606
 
166607
166607
  // ../app/dist/cli/services/dev/processes/setup-dev-processes.js
166608
166608
  async function setupDevProcesses({ localApp, remoteAppUpdated, developerPlatformClient, remoteApp, storeFqdn, storeId, commandOptions, network, graphiqlPort, graphiqlKey, consistentDev }) {
166609
- let apiKey = remoteApp.apiKey, apiSecret = remoteApp.apiSecret ?? "", appPreviewUrl = buildAppURLForWeb(storeFqdn, apiKey), env = getEnvironmentVariables(), shouldRenderGraphiQL = !isTruthy(env[environmentVariableNames.disableGraphiQLExplorer]), shouldPerformAppLogPolling = appLogPollingEnabled() && localApp.allExtensions.some((extension) => extension.isFunctionExtension), processes = [
166609
+ let apiKey = remoteApp.apiKey, apiSecret = remoteApp.apiSecret ?? "", appPreviewUrl = await buildAppURLForWeb(storeFqdn, apiKey), env = getEnvironmentVariables(), shouldRenderGraphiQL = !isTruthy(env[environmentVariableNames.disableGraphiQLExplorer]), shouldPerformAppLogPolling = appLogPollingEnabled() && localApp.allExtensions.some((extension) => extension.isFunctionExtension), processes = [
166610
166610
  ...await setupWebProcesses({
166611
166611
  webs: localApp.webs,
166612
166612
  proxyUrl: network.proxyUrl,
@@ -167235,7 +167235,7 @@ var _a18, Dev4 = class extends AppCommand {
167235
167235
  }
167236
167236
  async run() {
167237
167237
  let { flags } = await this.parse(_a18);
167238
- console.log("TESTING IF SNAPIT WORKS"), flags["api-key"] || process.env.SHOPIFY_API_KEY && (flags["api-key"] = process.env.SHOPIFY_API_KEY), flags["api-key"] && await showApiKeyDeprecationWarning();
167238
+ flags["api-key"] || process.env.SHOPIFY_API_KEY && (flags["api-key"] = process.env.SHOPIFY_API_KEY), flags["api-key"] && await showApiKeyDeprecationWarning();
167239
167239
  let apiKey = flags["client-id"] || flags["api-key"];
167240
167240
  await addPublicMetadata(() => ({
167241
167241
  cmd_app_dependency_installation_skipped: flags["skip-dependencies-installation"],