@shopify/create-app 3.80.6 → 3.81.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.
- package/dist/{chunk-I2T7RMPE.js → chunk-24FFN3UF.js} +26 -26
- package/dist/{chunk-3INFDIM3.js → chunk-2YVW3FGK.js} +42 -507
- package/dist/{chunk-3HCB5FCE.js → chunk-7O563I7I.js} +275 -76
- package/dist/{chunk-TJM3YBLQ.js → chunk-CTFDRWUN.js} +15 -12
- package/dist/{chunk-25SITN3I.js → chunk-ILI5X6PP.js} +2 -2
- package/dist/{chunk-LUDVCV3T.js → chunk-NQJJHSZI.js} +5 -5
- package/dist/{chunk-LDEHFRUQ.js → chunk-PTSAUW2T.js} +15 -10
- package/dist/{chunk-NRDSLF6O.js → chunk-QU7DXDZR.js} +243 -219
- package/dist/{chunk-LQ2ZKVR6.js → chunk-UMUTXITN.js} +87 -4
- package/dist/{chunk-LH5HVQQC.js → chunk-VMUIREUQ.js} +2 -2
- package/dist/{chunk-CDBXAE2F.js → chunk-Y2JP6WFP.js} +99 -11
- package/dist/{chunk-4EUXP4ED.js → chunk-YTTZ5B56.js} +32 -33
- package/dist/{custom-oclif-loader-SD7F6FMU.js → custom-oclif-loader-ZSOO2BP2.js} +7 -8
- package/dist/{del-KB2YLEEB.js → del-MOZRBB7Y.js} +4 -4
- package/dist/{devtools-J4QAI6HR.js → devtools-LDCSRUXB.js} +4 -4
- package/dist/{error-handler-2FLOQDU4.js → error-handler-6K7FR77V.js} +11 -12
- package/dist/hooks/postrun.js +9 -10
- package/dist/hooks/prerun.js +9 -10
- package/dist/{http-proxy-KGLXPNEY.js → http-proxy-LHSVRGJ5.js} +14 -10
- package/dist/index.js +11742 -5691
- package/dist/index.test.js +10022 -8822
- package/dist/lib-UJ7YNLH4.js +11 -0
- package/dist/{local-DLZ7G4Q5.js → local-BYAIQCJB.js} +9 -14
- package/dist/{magic-string.es-BSVDQOZI.js → magic-string.es-UZAAPNRE.js} +42 -36
- package/dist/{node-package-manager-EFQ7S3IA.js → node-package-manager-ZN2SJLTP.js} +8 -9
- package/dist/{out-5KP5WGIK.js → out-NKJPLKLB.js} +2 -2
- package/dist/{path-GWAZZN2N.js → path-COZT77T2.js} +2 -3
- package/dist/toml_patch_bg.wasm +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-OSSJNNUO.js → ui-RJQBCWRN.js} +7 -10
- package/oclif.manifest.json +1 -1
- package/package.json +6 -7
- package/dist/chunk-3I3GQNEW.js +0 -95
- package/dist/chunk-ZUCWDIGE.js +0 -111
- package/dist/lib-TMSQAG3Q.js +0 -11
- package/dist/toml-patch-wasm-J5VGG6WG.js +0 -140
|
@@ -14,17 +14,15 @@ import {
|
|
|
14
14
|
renderSuccess,
|
|
15
15
|
renderTable,
|
|
16
16
|
renderTasks,
|
|
17
|
-
renderText,
|
|
18
17
|
renderTextPrompt,
|
|
19
18
|
renderWarning
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-CDBXAE2F.js";
|
|
19
|
+
} from "./chunk-QU7DXDZR.js";
|
|
20
|
+
import "./chunk-2YVW3FGK.js";
|
|
21
|
+
import "./chunk-UMUTXITN.js";
|
|
22
|
+
import "./chunk-Y2JP6WFP.js";
|
|
25
23
|
import "./chunk-75LV6AQS.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VMUIREUQ.js";
|
|
25
|
+
import "./chunk-CTFDRWUN.js";
|
|
28
26
|
import "./chunk-7IK72W75.js";
|
|
29
27
|
import "./chunk-G2ZZKGSV.js";
|
|
30
28
|
import "./chunk-PKR7KJ6P.js";
|
|
@@ -44,8 +42,7 @@ export {
|
|
|
44
42
|
renderSuccess,
|
|
45
43
|
renderTable,
|
|
46
44
|
renderTasks,
|
|
47
|
-
renderText,
|
|
48
45
|
renderTextPrompt,
|
|
49
46
|
renderWarning
|
|
50
47
|
};
|
|
51
|
-
//# sourceMappingURL=ui-
|
|
48
|
+
//# sourceMappingURL=ui-RJQBCWRN.js.map
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-app",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"packageManager": "pnpm@8.15.7",
|
|
3
|
+
"version": "3.81.0",
|
|
5
4
|
"private": false,
|
|
6
5
|
"description": "A CLI tool to create a new Shopify app.",
|
|
7
6
|
"keywords": [
|
|
@@ -45,16 +44,16 @@
|
|
|
45
44
|
]
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
48
|
-
"esbuild": "0.25.
|
|
47
|
+
"esbuild": "0.25.5"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"@shopify/cli-kit": "3.
|
|
52
|
-
"@shopify/app": "3.
|
|
50
|
+
"@shopify/cli-kit": "3.81.0",
|
|
51
|
+
"@shopify/app": "3.81.0",
|
|
53
52
|
"esbuild-plugin-copy": "^2.1.1",
|
|
54
|
-
"@vitest/coverage-istanbul": "^1.
|
|
53
|
+
"@vitest/coverage-istanbul": "^3.1.4"
|
|
55
54
|
},
|
|
56
55
|
"engines": {
|
|
57
|
-
"node": "
|
|
56
|
+
"node": ">=20.10.0"
|
|
58
57
|
},
|
|
59
58
|
"os": [
|
|
60
59
|
"darwin",
|
package/dist/chunk-3I3GQNEW.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS,
|
|
3
|
-
__require,
|
|
4
|
-
init_cjs_shims
|
|
5
|
-
} from "./chunk-PKR7KJ6P.js";
|
|
6
|
-
|
|
7
|
-
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
8
|
-
var require_has_flag = __commonJS({
|
|
9
|
-
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
|
|
10
|
-
"use strict";
|
|
11
|
-
init_cjs_shims();
|
|
12
|
-
module.exports = (flag, argv = process.argv) => {
|
|
13
|
-
let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
|
|
14
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
20
|
-
var require_supports_color = __commonJS({
|
|
21
|
-
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module) {
|
|
22
|
-
"use strict";
|
|
23
|
-
init_cjs_shims();
|
|
24
|
-
var os = __require("os"), tty = __require("tty"), hasFlag = require_has_flag(), { env } = process, flagForceColor;
|
|
25
|
-
hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? flagForceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (flagForceColor = 1);
|
|
26
|
-
function envForceColor() {
|
|
27
|
-
if ("FORCE_COLOR" in env)
|
|
28
|
-
return env.FORCE_COLOR === "true" ? 1 : env.FORCE_COLOR === "false" ? 0 : env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
29
|
-
}
|
|
30
|
-
function translateLevel(level) {
|
|
31
|
-
return level === 0 ? !1 : {
|
|
32
|
-
level,
|
|
33
|
-
hasBasic: !0,
|
|
34
|
-
has256: level >= 2,
|
|
35
|
-
has16m: level >= 3
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function supportsColor(haveStream, { streamIsTTY, sniffFlags = !0 } = {}) {
|
|
39
|
-
let noFlagForceColor = envForceColor();
|
|
40
|
-
noFlagForceColor !== void 0 && (flagForceColor = noFlagForceColor);
|
|
41
|
-
let forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
42
|
-
if (forceColor === 0)
|
|
43
|
-
return 0;
|
|
44
|
-
if (sniffFlags) {
|
|
45
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor"))
|
|
46
|
-
return 3;
|
|
47
|
-
if (hasFlag("color=256"))
|
|
48
|
-
return 2;
|
|
49
|
-
}
|
|
50
|
-
if (haveStream && !streamIsTTY && forceColor === void 0)
|
|
51
|
-
return 0;
|
|
52
|
-
let min = forceColor || 0;
|
|
53
|
-
if (env.TERM === "dumb")
|
|
54
|
-
return min;
|
|
55
|
-
if (process.platform === "win32") {
|
|
56
|
-
let osRelease = os.release().split(".");
|
|
57
|
-
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
58
|
-
}
|
|
59
|
-
if ("CI" in env)
|
|
60
|
-
return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
|
|
61
|
-
if ("TEAMCITY_VERSION" in env)
|
|
62
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
63
|
-
if (env.COLORTERM === "truecolor")
|
|
64
|
-
return 3;
|
|
65
|
-
if ("TERM_PROGRAM" in env) {
|
|
66
|
-
let version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
67
|
-
switch (env.TERM_PROGRAM) {
|
|
68
|
-
case "iTerm.app":
|
|
69
|
-
return version >= 3 ? 3 : 2;
|
|
70
|
-
case "Apple_Terminal":
|
|
71
|
-
return 2;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return /-256(color)?$/i.test(env.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM) || "COLORTERM" in env ? 1 : min;
|
|
75
|
-
}
|
|
76
|
-
function getSupportLevel(stream, options = {}) {
|
|
77
|
-
let level = supportsColor(stream, {
|
|
78
|
-
streamIsTTY: stream && stream.isTTY,
|
|
79
|
-
...options
|
|
80
|
-
});
|
|
81
|
-
return translateLevel(level);
|
|
82
|
-
}
|
|
83
|
-
module.exports = {
|
|
84
|
-
supportsColor: getSupportLevel,
|
|
85
|
-
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
86
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
require_has_flag,
|
|
93
|
-
require_supports_color
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=chunk-3I3GQNEW.js.map
|
package/dist/chunk-ZUCWDIGE.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
basename,
|
|
3
|
-
dirname,
|
|
4
|
-
extname,
|
|
5
|
-
isAbsolute,
|
|
6
|
-
join,
|
|
7
|
-
normalize,
|
|
8
|
-
relative,
|
|
9
|
-
resolve
|
|
10
|
-
} from "./chunk-CDBXAE2F.js";
|
|
11
|
-
import {
|
|
12
|
-
__commonJS,
|
|
13
|
-
__require,
|
|
14
|
-
__toESM,
|
|
15
|
-
init_cjs_shims
|
|
16
|
-
} from "./chunk-PKR7KJ6P.js";
|
|
17
|
-
|
|
18
|
-
// ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
|
|
19
|
-
var require_commondir = __commonJS({
|
|
20
|
-
"../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js"(exports, module) {
|
|
21
|
-
init_cjs_shims();
|
|
22
|
-
var path = __require("path");
|
|
23
|
-
module.exports = function(basedir, relfiles) {
|
|
24
|
-
if (relfiles)
|
|
25
|
-
var files = relfiles.map(function(r) {
|
|
26
|
-
return path.resolve(basedir, r);
|
|
27
|
-
});
|
|
28
|
-
else
|
|
29
|
-
var files = basedir;
|
|
30
|
-
var res = files.slice(1).reduce(function(ps, file) {
|
|
31
|
-
if (!file.match(/^([A-Za-z]:)?\/|\\/))
|
|
32
|
-
throw new Error("relative path without a basedir");
|
|
33
|
-
for (var xs = file.split(/\/+|\\+/), i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++) ;
|
|
34
|
-
return ps.slice(0, i);
|
|
35
|
-
}, files[0].split(/\/+|\\+/));
|
|
36
|
-
return res.length > 1 ? res.join("/") : "/";
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// ../cli-kit/dist/public/node/path.js
|
|
42
|
-
init_cjs_shims();
|
|
43
|
-
var import_commondir = __toESM(require_commondir(), 1);
|
|
44
|
-
import { fileURLToPath } from "url";
|
|
45
|
-
function joinPath(...paths) {
|
|
46
|
-
return join(...paths);
|
|
47
|
-
}
|
|
48
|
-
function normalizePath(path) {
|
|
49
|
-
return normalize(path);
|
|
50
|
-
}
|
|
51
|
-
function resolvePath(...paths) {
|
|
52
|
-
return resolve(...paths);
|
|
53
|
-
}
|
|
54
|
-
function relativePath(from, to) {
|
|
55
|
-
return relative(from, to);
|
|
56
|
-
}
|
|
57
|
-
function isAbsolutePath(path) {
|
|
58
|
-
return isAbsolute(path);
|
|
59
|
-
}
|
|
60
|
-
function dirname2(path) {
|
|
61
|
-
return dirname(path);
|
|
62
|
-
}
|
|
63
|
-
function basename2(path, ext) {
|
|
64
|
-
return basename(path, ext);
|
|
65
|
-
}
|
|
66
|
-
function extname2(path) {
|
|
67
|
-
return extname(path);
|
|
68
|
-
}
|
|
69
|
-
function relativizePath(path, dir = cwd()) {
|
|
70
|
-
let result = (0, import_commondir.default)([path, dir]), relativePath2 = relative(dir, path), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
|
|
71
|
-
return result === "/" || relativePath2 === "" || relativeComponents > 2 ? path : relativePath2;
|
|
72
|
-
}
|
|
73
|
-
function isSubpath(mainPath, subpath) {
|
|
74
|
-
let relativePath2 = relative(mainPath, subpath);
|
|
75
|
-
return !relativePath2.startsWith("..") && !isAbsolutePath(relativePath2);
|
|
76
|
-
}
|
|
77
|
-
function moduleDirectory(moduleURL) {
|
|
78
|
-
return dirname2(fileURLToPath(moduleURL));
|
|
79
|
-
}
|
|
80
|
-
function cwd() {
|
|
81
|
-
return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
|
|
82
|
-
}
|
|
83
|
-
function sniffForPath(argv = process.argv) {
|
|
84
|
-
let pathFlagIndex = argv.indexOf("--path");
|
|
85
|
-
if (pathFlagIndex === -1)
|
|
86
|
-
return argv.find((arg) => arg.startsWith("--path="))?.split("=")[1];
|
|
87
|
-
let pathFlag = argv[pathFlagIndex + 1];
|
|
88
|
-
if (!(!pathFlag || pathFlag.startsWith("-")))
|
|
89
|
-
return pathFlag;
|
|
90
|
-
}
|
|
91
|
-
function sniffForJson(argv = process.argv) {
|
|
92
|
-
return argv.includes("--json") || argv.includes("-j");
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export {
|
|
96
|
-
joinPath,
|
|
97
|
-
normalizePath,
|
|
98
|
-
resolvePath,
|
|
99
|
-
relativePath,
|
|
100
|
-
isAbsolutePath,
|
|
101
|
-
dirname2 as dirname,
|
|
102
|
-
basename2 as basename,
|
|
103
|
-
extname2 as extname,
|
|
104
|
-
relativizePath,
|
|
105
|
-
isSubpath,
|
|
106
|
-
moduleDirectory,
|
|
107
|
-
cwd,
|
|
108
|
-
sniffForPath,
|
|
109
|
-
sniffForJson
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=chunk-ZUCWDIGE.js.map
|
package/dist/lib-TMSQAG3Q.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_lib
|
|
3
|
-
} from "./chunk-3INFDIM3.js";
|
|
4
|
-
import "./chunk-3I3GQNEW.js";
|
|
5
|
-
import "./chunk-LH5HVQQC.js";
|
|
6
|
-
import "./chunk-TJM3YBLQ.js";
|
|
7
|
-
import "./chunk-7IK72W75.js";
|
|
8
|
-
import "./chunk-G2ZZKGSV.js";
|
|
9
|
-
import "./chunk-PKR7KJ6P.js";
|
|
10
|
-
export default require_lib();
|
|
11
|
-
//# sourceMappingURL=lib-TMSQAG3Q.js.map
|
|
@@ -1,140 +0,0 @@
|
|
|
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
|