shopify 0.0.0-snapshot-20240816140650 → 0.0.0-snapshot-20240816143609

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
@@ -156548,11 +156548,21 @@ var PrivacyComplianceWebhooksTransformConfig = {
156548
156548
  }), app_config_privacy_compliance_webhooks_default = appPrivacyComplienceSpec;
156549
156549
  function transformToPrivacyComplianceWebhooksModule(content, appConfiguration) {
156550
156550
  let webhooks = getPathValue(content, "webhooks"), appUrl;
156551
- return "application_url" in appConfiguration && (appUrl = appConfiguration?.application_url), compact({
156551
+ "application_url" in appConfiguration && (appUrl = appConfiguration?.application_url);
156552
+ let urls = compact({
156552
156553
  customers_redact_url: relativeUri(getCustomersDeletionUri(webhooks), appUrl),
156553
156554
  customers_data_request_url: relativeUri(getCustomersDataRequestUri(webhooks), appUrl),
156554
156555
  shop_redact_url: relativeUri(getShopDeletionUri(webhooks), appUrl)
156555
156556
  });
156557
+ if (Object.keys(urls).length === 0)
156558
+ return urls;
156559
+ {
156560
+ let { api_version } = webhooks;
156561
+ return {
156562
+ api_version,
156563
+ ...urls
156564
+ };
156565
+ }
156556
156566
  }
156557
156567
  function transformFromPrivacyComplianceWebhooksModule(content, options) {
156558
156568
  let customersRedactUrl = getPathValue(content, "customers_redact_url"), customersDataRequestUrl = getPathValue(content, "customers_data_request_url"), shopRedactUrl = getPathValue(content, "shop_redact_url");