@shopify/create-app 3.69.4 → 3.70.0

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.
@@ -99,7 +99,7 @@ var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ?
99
99
  }
100
100
  }, sessionConstants = {
101
101
  expirationTimeMarginInMinutes: 4
102
- }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } };
102
+ }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } }, themeKitAccessDomain = process.env[environmentVariables.themeKitAccessDomain] ?? defaultThemeKitAccessDomain;
103
103
 
104
104
  export {
105
105
  envPaths,
@@ -110,6 +110,7 @@ export {
110
110
  pathConstants,
111
111
  sessionConstants,
112
112
  bugsnagApiKey,
113
- reportingRateLimit
113
+ reportingRateLimit,
114
+ themeKitAccessDomain
114
115
  };
115
- //# sourceMappingURL=chunk-G6AY2JW5.js.map
116
+ //# sourceMappingURL=chunk-IDT7CLPE.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-BB4M6AYQ.js";
4
+ } from "./chunk-4NI5A7A4.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-ZYFGLOXH.js";
8
+ } from "./chunk-CWXZ7XAM.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-A7RFWXE2.js";
11
+ } from "./chunk-YQS36GWM.js";
12
12
  import {
13
13
  AbortSilentError,
14
14
  CancelExecution,
@@ -22,7 +22,7 @@ import {
22
22
  printEventsJson,
23
23
  require_stacktracey,
24
24
  shouldReportErrorAsUnexpected
25
- } from "./chunk-CZRFEKLZ.js";
25
+ } from "./chunk-2IJ2KQU2.js";
26
26
  import {
27
27
  require_lib
28
28
  } from "./chunk-AZIUHI45.js";
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  bugsnagApiKey,
34
34
  reportingRateLimit
35
- } from "./chunk-G6AY2JW5.js";
35
+ } from "./chunk-IDT7CLPE.js";
36
36
  import {
37
37
  cwd,
38
38
  isAbsolutePath,
@@ -2113,7 +2113,7 @@ async function addBugsnagMetadata(event, config) {
2113
2113
  ...publicData,
2114
2114
  ...environment,
2115
2115
  pluginData: otherPluginsPublic
2116
- }, appData = {}, commandData = {}, environmentData = {}, miscData = {}, appKeys = ["api_key", "partner_id", "project_type"], commandKeys = ["command"], environmentKeys = ["cli_version", "node_version", "ruby_version", "uname"];
2116
+ }, appData = {}, commandData = {}, environmentData = {}, miscData = {}, appKeys = ["api_key", "partner_id", "project_type"], commandKeys = ["command"], environmentKeys = ["cli_version", "node_version", "uname"];
2117
2117
  Object.entries(allMetadata).forEach(([key, value]) => {
2118
2118
  key.startsWith("app_") || appKeys.includes(key) ? appData[key] = value : key.startsWith("cmd_") || commandKeys.includes(key) ? commandData[key] = value : key.startsWith("env_") || environmentKeys ? environmentData[key] = value : miscData[key] = value;
2119
2119
  }), Object.entries({
@@ -2145,4 +2145,4 @@ export {
2145
2145
  registerCleanBugsnagErrorsFromWithinPlugins,
2146
2146
  addBugsnagMetadata
2147
2147
  };
2148
- //# sourceMappingURL=chunk-Q3BCFN7X.js.map
2148
+ //# sourceMappingURL=chunk-MCWNOYSH.js.map
@@ -17,10 +17,10 @@ import {
17
17
  require_get_stream,
18
18
  runWithTimer,
19
19
  writeFile
20
- } from "./chunk-CZRFEKLZ.js";
20
+ } from "./chunk-2IJ2KQU2.js";
21
21
  import {
22
22
  envPaths
23
- } from "./chunk-G6AY2JW5.js";
23
+ } from "./chunk-IDT7CLPE.js";
24
24
  import {
25
25
  dirname,
26
26
  joinPath
@@ -11303,14 +11303,18 @@ function removeSession(config = cliKitStore()) {
11303
11303
  outputDebug(outputContent`Removing session store...`), config.delete("sessionStore");
11304
11304
  }
11305
11305
  async function cacheRetrieveOrRepopulate(key, fn, timeout, config = cliKitStore()) {
11306
- let cache = config.get("cache") || {}, cached = cache[key];
11306
+ let cached = cacheRetrieve(key, config);
11307
11307
  if (cached?.value !== void 0 && (timeout === void 0 || Date.now() - cached.timestamp < timeout))
11308
11308
  return cached.value;
11309
11309
  let value = await fn();
11310
- return cache[key] = { value, timestamp: Date.now() }, config.set("cache", cache), value;
11310
+ return cacheStore(key, value, config), value;
11311
+ }
11312
+ function cacheStore(key, value, config = cliKitStore()) {
11313
+ let cache = config.get("cache") || {};
11314
+ cache[key] = { value, timestamp: Date.now() }, config.set("cache", cache);
11311
11315
  }
11312
11316
  function cacheRetrieve(key, config = cliKitStore()) {
11313
- return (config.get("cache") || {})[key]?.value;
11317
+ return (config.get("cache") || {})[key];
11314
11318
  }
11315
11319
  function timeIntervalToMilliseconds({ days = 0, hours = 0, minutes = 0, seconds = 0 }) {
11316
11320
  return (days * 24 * 60 * 60 + hours * 60 * 60 + minutes * 60 + seconds) * 1e3;
@@ -15168,7 +15172,7 @@ async function checkForNewVersion(dependency, currentVersion, { cacheExpiryInHou
15168
15172
  return lastVersion;
15169
15173
  }
15170
15174
  function checkForCachedNewVersion(dependency, currentVersion) {
15171
- let cacheKey = `npm-package-${dependency}`, lastVersion = cacheRetrieve(cacheKey);
15175
+ let cacheKey = `npm-package-${dependency}`, lastVersion = cacheRetrieve(cacheKey)?.value;
15172
15176
  if (lastVersion && new import_semver3.SemVer(currentVersion).compare(lastVersion) < 0)
15173
15177
  return lastVersion;
15174
15178
  }
@@ -15313,13 +15317,14 @@ function inferPackageManager(optionsPackageManager, env = process.env) {
15313
15317
  }
15314
15318
 
15315
15319
  export {
15316
- require_semver2 as require_semver,
15317
15320
  require_ajv,
15318
15321
  LocalStorage,
15319
15322
  getSession,
15320
15323
  setSession,
15321
15324
  removeSession,
15322
15325
  cacheRetrieveOrRepopulate,
15326
+ cacheStore,
15327
+ cacheRetrieve,
15323
15328
  runAtMinimumInterval,
15324
15329
  runWithRateLimit,
15325
15330
  getCachedPartnerAccountStatus,
@@ -15387,4 +15392,4 @@ deep-extend/lib/deep-extend.js:
15387
15392
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15388
15393
  *)
15389
15394
  */
15390
- //# sourceMappingURL=chunk-A7RFWXE2.js.map
15395
+ //# sourceMappingURL=chunk-YQS36GWM.js.map
@@ -6,8 +6,9 @@ import {
6
6
  pathConstants,
7
7
  reportingRateLimit,
8
8
  sessionConstants,
9
- systemEnvironmentVariables
10
- } from "./chunk-G6AY2JW5.js";
9
+ systemEnvironmentVariables,
10
+ themeKitAccessDomain
11
+ } from "./chunk-IDT7CLPE.js";
11
12
  import "./chunk-BB6N2XSA.js";
12
13
  import "./chunk-PNN7RS7Y.js";
13
14
  import "./chunk-POZ5MGPT.js";
@@ -19,6 +20,7 @@ export {
19
20
  pathConstants,
20
21
  reportingRateLimit,
21
22
  sessionConstants,
22
- systemEnvironmentVariables
23
+ systemEnvironmentVariables,
24
+ themeKitAccessDomain
23
25
  };
24
- //# sourceMappingURL=constants-GVJLI6RE.js.map
26
+ //# sourceMappingURL=constants-JHPIMZ2O.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-CZRFEKLZ.js";
4
+ } from "./chunk-2IJ2KQU2.js";
5
5
  import {
6
6
  require_lib
7
7
  } from "./chunk-AZIUHI45.js";
@@ -12,7 +12,7 @@ import "./chunk-XVNW332R.js";
12
12
  import "./chunk-L7M22NDW.js";
13
13
  import "./chunk-MX4RJDBM.js";
14
14
  import "./chunk-NB4NLOEJ.js";
15
- import "./chunk-G6AY2JW5.js";
15
+ import "./chunk-IDT7CLPE.js";
16
16
  import {
17
17
  cwd,
18
18
  joinPath,
@@ -45,4 +45,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
45
45
  export {
46
46
  ShopifyConfig
47
47
  };
48
- //# sourceMappingURL=custom-oclif-loader-53O4TZIJ.js.map
48
+ //# sourceMappingURL=custom-oclif-loader-BSDHBJI5.js.map
@@ -4,12 +4,12 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-Q3BCFN7X.js";
8
- import "./chunk-BB4M6AYQ.js";
9
- import "./chunk-ZYFGLOXH.js";
7
+ } from "./chunk-MCWNOYSH.js";
8
+ import "./chunk-4NI5A7A4.js";
9
+ import "./chunk-CWXZ7XAM.js";
10
10
  import "./chunk-VSLR7ET4.js";
11
- import "./chunk-A7RFWXE2.js";
12
- import "./chunk-CZRFEKLZ.js";
11
+ import "./chunk-YQS36GWM.js";
12
+ import "./chunk-2IJ2KQU2.js";
13
13
  import "./chunk-AZIUHI45.js";
14
14
  import "./chunk-SNOECVP4.js";
15
15
  import "./chunk-UBB7JKND.js";
@@ -19,7 +19,7 @@ import "./chunk-XVNW332R.js";
19
19
  import "./chunk-L7M22NDW.js";
20
20
  import "./chunk-MX4RJDBM.js";
21
21
  import "./chunk-NB4NLOEJ.js";
22
- import "./chunk-G6AY2JW5.js";
22
+ import "./chunk-IDT7CLPE.js";
23
23
  import "./chunk-BB6N2XSA.js";
24
24
  import "./chunk-PNN7RS7Y.js";
25
25
  import "./chunk-POZ5MGPT.js";
@@ -30,4 +30,4 @@ export {
30
30
  registerCleanBugsnagErrorsFromWithinPlugins,
31
31
  sendErrorToBugsnag
32
32
  };
33
- //# sourceMappingURL=error-handler-WHWFBH7O.js.map
33
+ //# sourceMappingURL=error-handler-JYEQI7TL.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  reportAnalyticsEvent
3
- } from "../chunk-BB4M6AYQ.js";
3
+ } from "../chunk-4NI5A7A4.js";
4
4
  import {
5
5
  getNextDeprecationDate
6
- } from "../chunk-ZYFGLOXH.js";
6
+ } from "../chunk-CWXZ7XAM.js";
7
7
  import "../chunk-VSLR7ET4.js";
8
- import "../chunk-A7RFWXE2.js";
8
+ import "../chunk-YQS36GWM.js";
9
9
  import {
10
10
  addSensitiveMetadata,
11
11
  getAllSensitiveMetadata,
12
12
  outputDebug,
13
13
  renderWarning
14
- } from "../chunk-CZRFEKLZ.js";
14
+ } from "../chunk-2IJ2KQU2.js";
15
15
  import "../chunk-AZIUHI45.js";
16
16
  import "../chunk-SNOECVP4.js";
17
17
  import "../chunk-UBB7JKND.js";
@@ -20,7 +20,7 @@ import "../chunk-XVNW332R.js";
20
20
  import "../chunk-L7M22NDW.js";
21
21
  import "../chunk-MX4RJDBM.js";
22
22
  import "../chunk-NB4NLOEJ.js";
23
- import "../chunk-G6AY2JW5.js";
23
+ import "../chunk-IDT7CLPE.js";
24
24
  import "../chunk-BB6N2XSA.js";
25
25
  import "../chunk-PNN7RS7Y.js";
26
26
  import {
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getOutputUpdateCLIReminder
3
- } from "../chunk-4XZVKK5N.js";
3
+ } from "../chunk-64XEMSHA.js";
4
4
  import {
5
5
  CLI_KIT_VERSION,
6
6
  startAnalytics
7
- } from "../chunk-ZYFGLOXH.js";
7
+ } from "../chunk-CWXZ7XAM.js";
8
8
  import "../chunk-VSLR7ET4.js";
9
9
  import {
10
10
  checkForCachedNewVersion,
11
11
  checkForNewVersion,
12
12
  runAtMinimumInterval
13
- } from "../chunk-A7RFWXE2.js";
13
+ } from "../chunk-YQS36GWM.js";
14
14
  import {
15
15
  initDemoRecorder,
16
16
  outputDebug,
17
17
  outputWarn
18
- } from "../chunk-CZRFEKLZ.js";
18
+ } from "../chunk-2IJ2KQU2.js";
19
19
  import "../chunk-AZIUHI45.js";
20
20
  import "../chunk-SNOECVP4.js";
21
21
  import "../chunk-UBB7JKND.js";
@@ -24,7 +24,7 @@ import "../chunk-XVNW332R.js";
24
24
  import "../chunk-L7M22NDW.js";
25
25
  import "../chunk-MX4RJDBM.js";
26
26
  import "../chunk-NB4NLOEJ.js";
27
- import "../chunk-G6AY2JW5.js";
27
+ import "../chunk-IDT7CLPE.js";
28
28
  import "../chunk-BB6N2XSA.js";
29
29
  import "../chunk-PNN7RS7Y.js";
30
30
  import {