@shopify/create-app 3.78.2 → 3.79.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.
@@ -0,0 +1,64 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-PKR7KJ6P.js";
4
+
5
+ // ../../node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/index.js
6
+ init_cjs_shims();
7
+ import process from "node:process";
8
+ import os from "node:os";
9
+ import fs3 from "node:fs";
10
+
11
+ // ../../node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js
12
+ init_cjs_shims();
13
+ import fs2 from "node:fs";
14
+
15
+ // ../../node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.js
16
+ init_cjs_shims();
17
+ import fs from "node:fs";
18
+ var isDockerCached;
19
+ function hasDockerEnv() {
20
+ try {
21
+ return fs.statSync("/.dockerenv"), !0;
22
+ } catch {
23
+ return !1;
24
+ }
25
+ }
26
+ function hasDockerCGroup() {
27
+ try {
28
+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
29
+ } catch {
30
+ return !1;
31
+ }
32
+ }
33
+ function isDocker() {
34
+ return isDockerCached === void 0 && (isDockerCached = hasDockerEnv() || hasDockerCGroup()), isDockerCached;
35
+ }
36
+
37
+ // ../../node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js
38
+ var cachedResult, hasContainerEnv = () => {
39
+ try {
40
+ return fs2.statSync("/run/.containerenv"), !0;
41
+ } catch {
42
+ return !1;
43
+ }
44
+ };
45
+ function isInsideContainer() {
46
+ return cachedResult === void 0 && (cachedResult = hasContainerEnv() || isDocker()), cachedResult;
47
+ }
48
+
49
+ // ../../node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/index.js
50
+ var isWsl = () => {
51
+ if (process.platform !== "linux")
52
+ return !1;
53
+ if (os.release().toLowerCase().includes("microsoft"))
54
+ return !isInsideContainer();
55
+ try {
56
+ return fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : !1;
57
+ } catch {
58
+ return !1;
59
+ }
60
+ }, is_wsl_default = process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
61
+ export {
62
+ is_wsl_default as default
63
+ };
64
+ //# sourceMappingURL=is-wsl-YAJ3DFN7.js.map
@@ -11,7 +11,6 @@ import {
11
11
  gitpodURL,
12
12
  hasGit,
13
13
  homeDirectory,
14
- isAppManagementDisabled,
15
14
  isCloudEnvironment,
16
15
  isDevelopment,
17
16
  isShopify,
@@ -23,7 +22,7 @@ import {
23
22
  themeToken,
24
23
  useEmbeddedThemeCLI,
25
24
  useThemebundling
26
- } from "./chunk-NT557SK2.js";
25
+ } from "./chunk-KRGUVLHQ.js";
27
26
  import "./chunk-S3QEOIDU.js";
28
27
  import "./chunk-3I3GQNEW.js";
29
28
  import "./chunk-ZUCWDIGE.js";
@@ -47,7 +46,6 @@ export {
47
46
  gitpodURL,
48
47
  hasGit,
49
48
  homeDirectory,
50
- isAppManagementDisabled,
51
49
  isCloudEnvironment,
52
50
  isDevelopment,
53
51
  isShopify,
@@ -60,4 +58,4 @@ export {
60
58
  useEmbeddedThemeCLI,
61
59
  useThemebundling
62
60
  };
63
- //# sourceMappingURL=local-ZUDPXH3G.js.map
61
+ //# sourceMappingURL=local-DUTQKZTQ.js.map
@@ -29,8 +29,8 @@ import {
29
29
  versionSatisfies,
30
30
  writePackageJSON,
31
31
  yarnLockfile
32
- } from "./chunk-WHWAKQQY.js";
33
- import "./chunk-NT557SK2.js";
32
+ } from "./chunk-YTWZ7YHV.js";
33
+ import "./chunk-KRGUVLHQ.js";
34
34
  import "./chunk-S3QEOIDU.js";
35
35
  import "./chunk-3I3GQNEW.js";
36
36
  import "./chunk-ZUCWDIGE.js";
@@ -73,4 +73,4 @@ export {
73
73
  writePackageJSON,
74
74
  yarnLockfile
75
75
  };
76
- //# sourceMappingURL=node-package-manager-FFT43K5J.js.map
76
+ //# sourceMappingURL=node-package-manager-R2Z7LRGK.js.map
@@ -0,0 +1,140 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ __toESM,
5
+ init_cjs_shims
6
+ } from "./chunk-PKR7KJ6P.js";
7
+
8
+ // ../../node_modules/.pnpm/@shopify+toml-patch@0.3.0/node_modules/@shopify/toml-patch/toml_patch.js
9
+ var require_toml_patch = __commonJS({
10
+ "../../node_modules/.pnpm/@shopify+toml-patch@0.3.0/node_modules/@shopify/toml-patch/toml_patch.js"(exports, module) {
11
+ init_cjs_shims();
12
+ var imports = {};
13
+ imports.__wbindgen_placeholder__ = module.exports;
14
+ var wasm, { TextEncoder, TextDecoder } = __require("util");
15
+ function isLikeNone(x) {
16
+ return x == null;
17
+ }
18
+ var cachedDataViewMemory0 = null;
19
+ function getDataViewMemory0() {
20
+ return (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === !0 || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) && (cachedDataViewMemory0 = new DataView(wasm.memory.buffer)), cachedDataViewMemory0;
21
+ }
22
+ var WASM_VECTOR_LEN = 0, cachedUint8ArrayMemory0 = null;
23
+ function getUint8ArrayMemory0() {
24
+ return (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) && (cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer)), cachedUint8ArrayMemory0;
25
+ }
26
+ var cachedTextEncoder = new TextEncoder("utf-8"), encodeString = typeof cachedTextEncoder.encodeInto == "function" ? function(arg, view) {
27
+ return cachedTextEncoder.encodeInto(arg, view);
28
+ } : function(arg, view) {
29
+ let buf = cachedTextEncoder.encode(arg);
30
+ return view.set(buf), {
31
+ read: arg.length,
32
+ written: buf.length
33
+ };
34
+ };
35
+ function passStringToWasm0(arg, malloc, realloc) {
36
+ if (realloc === void 0) {
37
+ let buf = cachedTextEncoder.encode(arg), ptr2 = malloc(buf.length, 1) >>> 0;
38
+ return getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf), WASM_VECTOR_LEN = buf.length, ptr2;
39
+ }
40
+ let len = arg.length, ptr = malloc(len, 1) >>> 0, mem = getUint8ArrayMemory0(), offset = 0;
41
+ for (; offset < len; offset++) {
42
+ let code = arg.charCodeAt(offset);
43
+ if (code > 127) break;
44
+ mem[ptr + offset] = code;
45
+ }
46
+ if (offset !== len) {
47
+ offset !== 0 && (arg = arg.slice(offset)), ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
48
+ let view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len), ret = encodeString(arg, view);
49
+ offset += ret.written, ptr = realloc(ptr, len, offset, 1) >>> 0;
50
+ }
51
+ return WASM_VECTOR_LEN = offset, ptr;
52
+ }
53
+ var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
54
+ cachedTextDecoder.decode();
55
+ function getStringFromWasm0(ptr, len) {
56
+ return ptr = ptr >>> 0, cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
57
+ }
58
+ function takeFromExternrefTable0(idx) {
59
+ let value = wasm.__wbindgen_export_0.get(idx);
60
+ return wasm.__externref_table_dealloc(idx), value;
61
+ }
62
+ module.exports.echoToml = function(tomlContent) {
63
+ let deferred3_0, deferred3_1;
64
+ try {
65
+ let ptr0 = passStringToWasm0(tomlContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc), len0 = WASM_VECTOR_LEN, ret = wasm.echoToml(ptr0, len0);
66
+ var ptr2 = ret[0], len2 = ret[1];
67
+ if (ret[3])
68
+ throw ptr2 = 0, len2 = 0, takeFromExternrefTable0(ret[2]);
69
+ return deferred3_0 = ptr2, deferred3_1 = len2, getStringFromWasm0(ptr2, len2);
70
+ } finally {
71
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
72
+ }
73
+ };
74
+ module.exports.updateTomlValues = function(tomlContent, patches) {
75
+ let deferred3_0, deferred3_1;
76
+ try {
77
+ let ptr0 = passStringToWasm0(tomlContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc), len0 = WASM_VECTOR_LEN, ret = wasm.updateTomlValues(ptr0, len0, patches);
78
+ var ptr2 = ret[0], len2 = ret[1];
79
+ if (ret[3])
80
+ throw ptr2 = 0, len2 = 0, takeFromExternrefTable0(ret[2]);
81
+ return deferred3_0 = ptr2, deferred3_1 = len2, getStringFromWasm0(ptr2, len2);
82
+ } finally {
83
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
84
+ }
85
+ };
86
+ module.exports.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
87
+ return Array.from(arg0);
88
+ };
89
+ module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
90
+ return arg0[arg1 >>> 0];
91
+ };
92
+ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
93
+ return arg0.length;
94
+ };
95
+ module.exports.__wbindgen_boolean_get = function(arg0) {
96
+ let v = arg0;
97
+ return typeof v == "boolean" ? v ? 1 : 0 : 2;
98
+ };
99
+ module.exports.__wbindgen_init_externref_table = function() {
100
+ let table = wasm.__wbindgen_export_0, offset = table.grow(4);
101
+ table.set(0, void 0), table.set(offset + 0, void 0), table.set(offset + 1, null), table.set(offset + 2, !0), table.set(offset + 3, !1);
102
+ };
103
+ module.exports.__wbindgen_is_array = function(arg0) {
104
+ return Array.isArray(arg0);
105
+ };
106
+ module.exports.__wbindgen_is_undefined = function(arg0) {
107
+ return arg0 === void 0;
108
+ };
109
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
110
+ let obj = arg1, ret = typeof obj == "number" ? obj : void 0;
111
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, !0), getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), !0);
112
+ };
113
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
114
+ let obj = arg1, ret = typeof obj == "string" ? obj : void 0;
115
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc), len1 = WASM_VECTOR_LEN;
116
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, !0), getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, !0);
117
+ };
118
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
119
+ return getStringFromWasm0(arg0, arg1);
120
+ };
121
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
122
+ throw new Error(getStringFromWasm0(arg0, arg1));
123
+ };
124
+ var path = __require("path").join(__dirname, "toml_patch_bg.wasm"), bytes = __require("fs").readFileSync(path), wasmModule = new WebAssembly.Module(bytes), wasmInstance = new WebAssembly.Instance(wasmModule, imports);
125
+ wasm = wasmInstance.exports;
126
+ module.exports.__wasm = wasm;
127
+ wasm.__wbindgen_start();
128
+ }
129
+ });
130
+
131
+ // ../app/dist/cli/services/app/toml-patch-wasm.js
132
+ init_cjs_shims();
133
+ var tomlPatch = __toESM(require_toml_patch(), 1);
134
+ async function updateTomlValues2(tomlContent, patches) {
135
+ return tomlPatch.updateTomlValues(tomlContent, patches);
136
+ }
137
+ export {
138
+ updateTomlValues2 as updateTomlValues
139
+ };
140
+ //# sourceMappingURL=toml-patch-wasm-J5VGG6WG.js.map