@settlemint/sdk-cli 0.8.1 → 0.8.2-maine78e58b1
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/cli.js +226 -210
- package/dist/cli.js.map +27 -27
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -197427,7 +197427,7 @@ ${Bt.cyan(Yt)}
|
|
|
197427
197427
|
code: "ENOENT"
|
|
197428
197428
|
}), getPathInfo = (e9, t7) => {
|
|
197429
197429
|
var r6 = t7.colon || or;
|
|
197430
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
197430
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FT3moVwNcY:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
197431
197431
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
197432
197432
|
var a5 = nr ? n6.split(r6) : [""];
|
|
197433
197433
|
if (nr) {
|
|
@@ -200564,7 +200564,7 @@ ${whileRunning(e9)}`;
|
|
|
200564
200564
|
};
|
|
200565
200565
|
ni = Object.assign(async function _main() {
|
|
200566
200566
|
var e9 = new Cli({
|
|
200567
|
-
binaryVersion: "0.8.
|
|
200567
|
+
binaryVersion: "0.8.2-maine78e58b1",
|
|
200568
200568
|
binaryLabel: "gql.tada CLI",
|
|
200569
200569
|
binaryName: "gql.tada"
|
|
200570
200570
|
});
|
|
@@ -218401,7 +218401,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
218401
218401
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
218402
218402
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
218403
218403
|
var getPathInfo2 = (cmd2, {
|
|
218404
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218404
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FT3moVwNcY:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218405
218405
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
218406
218406
|
delimiter: optDelimiter = delimiter
|
|
218407
218407
|
}) => {
|
|
@@ -218605,7 +218605,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
218605
218605
|
let pathToInitial;
|
|
218606
218606
|
try {
|
|
218607
218607
|
pathToInitial = which.sync(initialCmd, {
|
|
218608
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218608
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FT3moVwNcY:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218609
218609
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
218610
218610
|
}).toLowerCase();
|
|
218611
218611
|
} catch (err) {
|
|
@@ -219322,7 +219322,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
219322
219322
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
219323
219323
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
219324
219324
|
var getPathInfo2 = (cmd2, {
|
|
219325
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
219325
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FT3moVwNcY:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
219326
219326
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
219327
219327
|
delimiter: optDelimiter = delimiter
|
|
219328
219328
|
}) => {
|
|
@@ -234185,7 +234185,7 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
234185
234185
|
var assert = __require("assert");
|
|
234186
234186
|
var normalize3 = require_normalize_unicode();
|
|
234187
234187
|
var stripSlashes = require_strip_trailing_slashes();
|
|
234188
|
-
var { join:
|
|
234188
|
+
var { join: join6 } = __require("path");
|
|
234189
234189
|
var platform2 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
234190
234190
|
var isWindows2 = platform2 === "win32";
|
|
234191
234191
|
module.exports = () => {
|
|
@@ -234194,7 +234194,7 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
234194
234194
|
const getDirs = (path5) => {
|
|
234195
234195
|
const dirs = path5.split("/").slice(0, -1).reduce((set, path6) => {
|
|
234196
234196
|
if (set.length) {
|
|
234197
|
-
path6 =
|
|
234197
|
+
path6 = join6(set[set.length - 1], path6);
|
|
234198
234198
|
}
|
|
234199
234199
|
set.push(path6 || "/");
|
|
234200
234200
|
return set;
|
|
@@ -234262,7 +234262,7 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
234262
234262
|
};
|
|
234263
234263
|
const reserve = (paths, fn) => {
|
|
234264
234264
|
paths = isWindows2 ? ["win32 parallelization disabled"] : paths.map((p5) => {
|
|
234265
|
-
return stripSlashes(
|
|
234265
|
+
return stripSlashes(join6(normalize3(p5))).toLowerCase();
|
|
234266
234266
|
});
|
|
234267
234267
|
const dirs = new Set(paths.map((path5) => getDirs(path5)).reduce((a8, b4) => a8.concat(b4)));
|
|
234268
234268
|
reservations.set(fn, { dirs, paths });
|
|
@@ -235213,7 +235213,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
235213
235213
|
const colon = opt2.colon || COLON;
|
|
235214
235214
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235215
235215
|
...isWindows2 ? [process.cwd()] : [],
|
|
235216
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
235216
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FT3moVwNcY:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
235217
235217
|
];
|
|
235218
235218
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235219
235219
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -249723,57 +249723,6 @@ ${F4}`;
|
|
|
249723
249723
|
exports.createFetch = createFetch, exports.createProxy = createProxy, exports.fetch = fetch2;
|
|
249724
249724
|
});
|
|
249725
249725
|
|
|
249726
|
-
// ../../node_modules/slugify/slugify.js
|
|
249727
|
-
var require_slugify = __commonJS((exports, module) => {
|
|
249728
|
-
(function(name2, root, factory) {
|
|
249729
|
-
if (typeof exports === "object") {
|
|
249730
|
-
module.exports = factory();
|
|
249731
|
-
module.exports["default"] = factory();
|
|
249732
|
-
} else if (typeof define === "function" && define.amd) {
|
|
249733
|
-
define(factory);
|
|
249734
|
-
} else {
|
|
249735
|
-
root[name2] = factory();
|
|
249736
|
-
}
|
|
249737
|
-
})("slugify", exports, function() {
|
|
249738
|
-
var charMap = JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');
|
|
249739
|
-
var locales = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
249740
|
-
function replace(string, options) {
|
|
249741
|
-
if (typeof string !== "string") {
|
|
249742
|
-
throw new Error("slugify: string argument expected");
|
|
249743
|
-
}
|
|
249744
|
-
options = typeof options === "string" ? { replacement: options } : options || {};
|
|
249745
|
-
var locale = locales[options.locale] || {};
|
|
249746
|
-
var replacement = options.replacement === undefined ? "-" : options.replacement;
|
|
249747
|
-
var trim = options.trim === undefined ? true : options.trim;
|
|
249748
|
-
var slug = string.normalize().split("").reduce(function(result, ch) {
|
|
249749
|
-
var appendChar = locale[ch];
|
|
249750
|
-
if (appendChar === undefined)
|
|
249751
|
-
appendChar = charMap[ch];
|
|
249752
|
-
if (appendChar === undefined)
|
|
249753
|
-
appendChar = ch;
|
|
249754
|
-
if (appendChar === replacement)
|
|
249755
|
-
appendChar = " ";
|
|
249756
|
-
return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
249757
|
-
}, "");
|
|
249758
|
-
if (options.strict) {
|
|
249759
|
-
slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
|
|
249760
|
-
}
|
|
249761
|
-
if (trim) {
|
|
249762
|
-
slug = slug.trim();
|
|
249763
|
-
}
|
|
249764
|
-
slug = slug.replace(/\s+/g, replacement);
|
|
249765
|
-
if (options.lower) {
|
|
249766
|
-
slug = slug.toLowerCase();
|
|
249767
|
-
}
|
|
249768
|
-
return slug;
|
|
249769
|
-
}
|
|
249770
|
-
replace.extend = function(customMap) {
|
|
249771
|
-
Object.assign(charMap, customMap);
|
|
249772
|
-
};
|
|
249773
|
-
return replace;
|
|
249774
|
-
});
|
|
249775
|
-
});
|
|
249776
|
-
|
|
249777
249726
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
249778
249727
|
var require_identity = __commonJS((exports) => {
|
|
249779
249728
|
var ALIAS = Symbol.for("yaml.alias");
|
|
@@ -256656,6 +256605,57 @@ var require_public_api = __commonJS((exports) => {
|
|
|
256656
256605
|
exports.stringify = stringify3;
|
|
256657
256606
|
});
|
|
256658
256607
|
|
|
256608
|
+
// ../../node_modules/slugify/slugify.js
|
|
256609
|
+
var require_slugify = __commonJS((exports, module) => {
|
|
256610
|
+
(function(name2, root, factory) {
|
|
256611
|
+
if (typeof exports === "object") {
|
|
256612
|
+
module.exports = factory();
|
|
256613
|
+
module.exports["default"] = factory();
|
|
256614
|
+
} else if (typeof define === "function" && define.amd) {
|
|
256615
|
+
define(factory);
|
|
256616
|
+
} else {
|
|
256617
|
+
root[name2] = factory();
|
|
256618
|
+
}
|
|
256619
|
+
})("slugify", exports, function() {
|
|
256620
|
+
var charMap = JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');
|
|
256621
|
+
var locales = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
256622
|
+
function replace(string, options) {
|
|
256623
|
+
if (typeof string !== "string") {
|
|
256624
|
+
throw new Error("slugify: string argument expected");
|
|
256625
|
+
}
|
|
256626
|
+
options = typeof options === "string" ? { replacement: options } : options || {};
|
|
256627
|
+
var locale = locales[options.locale] || {};
|
|
256628
|
+
var replacement = options.replacement === undefined ? "-" : options.replacement;
|
|
256629
|
+
var trim = options.trim === undefined ? true : options.trim;
|
|
256630
|
+
var slug = string.normalize().split("").reduce(function(result, ch) {
|
|
256631
|
+
var appendChar = locale[ch];
|
|
256632
|
+
if (appendChar === undefined)
|
|
256633
|
+
appendChar = charMap[ch];
|
|
256634
|
+
if (appendChar === undefined)
|
|
256635
|
+
appendChar = ch;
|
|
256636
|
+
if (appendChar === replacement)
|
|
256637
|
+
appendChar = " ";
|
|
256638
|
+
return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
256639
|
+
}, "");
|
|
256640
|
+
if (options.strict) {
|
|
256641
|
+
slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
|
|
256642
|
+
}
|
|
256643
|
+
if (trim) {
|
|
256644
|
+
slug = slug.trim();
|
|
256645
|
+
}
|
|
256646
|
+
slug = slug.replace(/\s+/g, replacement);
|
|
256647
|
+
if (options.lower) {
|
|
256648
|
+
slug = slug.toLowerCase();
|
|
256649
|
+
}
|
|
256650
|
+
return slug;
|
|
256651
|
+
}
|
|
256652
|
+
replace.extend = function(customMap) {
|
|
256653
|
+
Object.assign(charMap, customMap);
|
|
256654
|
+
};
|
|
256655
|
+
return replace;
|
|
256656
|
+
});
|
|
256657
|
+
});
|
|
256658
|
+
|
|
256659
256659
|
// src/commands/codegen/write-template.ts
|
|
256660
256660
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
256661
256661
|
import { join } from "node:path";
|
|
@@ -257014,7 +257014,7 @@ export const { client: portalClient, graphql: portalGraphql } = createPortalClie
|
|
|
257014
257014
|
}
|
|
257015
257015
|
|
|
257016
257016
|
// ../utils/dist/index.mjs
|
|
257017
|
-
import {
|
|
257017
|
+
import { join as join3 } from "node:path";
|
|
257018
257018
|
|
|
257019
257019
|
// ../../node_modules/yoctocolors/base.js
|
|
257020
257020
|
var exports_base = {};
|
|
@@ -257127,6 +257127,9 @@ var bgBlueBright = format(104, 49);
|
|
|
257127
257127
|
var bgMagentaBright = format(105, 49);
|
|
257128
257128
|
var bgCyanBright = format(106, 49);
|
|
257129
257129
|
var bgWhiteBright = format(107, 49);
|
|
257130
|
+
// ../utils/dist/index.mjs
|
|
257131
|
+
import { spawn as spawn2 } from "node:child_process";
|
|
257132
|
+
|
|
257130
257133
|
// ../../node_modules/is-in-ci/index.js
|
|
257131
257134
|
import { env } from "node:process";
|
|
257132
257135
|
var isInCi = env.CI !== "0" && env.CI !== "false" && (("CI" in env) || ("CONTINUOUS_INTEGRATION" in env) || Object.keys(env).some((key) => key.startsWith("CI_")));
|
|
@@ -267627,22 +267630,33 @@ var isIos = platform === "iOS" || globalThis.navigator?.platform === "MacIntel"
|
|
|
267627
267630
|
var isAndroid = platform === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === true || globalThis.process?.platform === "android";
|
|
267628
267631
|
|
|
267629
267632
|
// ../utils/dist/index.mjs
|
|
267630
|
-
|
|
267631
|
-
return
|
|
267632
|
-
}
|
|
267633
|
+
var maskTokens = (output) => {
|
|
267634
|
+
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
267635
|
+
};
|
|
267636
|
+
var cancel = (msg) => {
|
|
267637
|
+
console.log("");
|
|
267638
|
+
console.log(inverse(redBright(maskTokens(msg))));
|
|
267639
|
+
console.log("");
|
|
267640
|
+
process.exit(1);
|
|
267641
|
+
};
|
|
267633
267642
|
async function executeCommand(command, args, options) {
|
|
267634
267643
|
const child = spawn2(command, args, { env: { ...process.env, ...options?.env } });
|
|
267635
267644
|
process.stdin.pipe(child.stdin);
|
|
267636
267645
|
const output = [];
|
|
267637
267646
|
return new Promise((resolve22, reject) => {
|
|
267638
267647
|
child.stdout.on("data", (data) => {
|
|
267648
|
+
const maskedData = maskTokens(data.toString());
|
|
267639
267649
|
if (!options?.silent) {
|
|
267640
|
-
process.stdout.write(
|
|
267650
|
+
process.stdout.write(maskedData);
|
|
267641
267651
|
}
|
|
267642
|
-
output.push(
|
|
267652
|
+
output.push(maskedData);
|
|
267643
267653
|
});
|
|
267644
267654
|
child.stderr.on("data", (data) => {
|
|
267645
|
-
|
|
267655
|
+
const maskedData = maskTokens(data.toString());
|
|
267656
|
+
if (!options?.silent) {
|
|
267657
|
+
process.stderr.write(maskedData);
|
|
267658
|
+
}
|
|
267659
|
+
output.push(maskedData);
|
|
267646
267660
|
});
|
|
267647
267661
|
child.on("error", (err) => reject(err));
|
|
267648
267662
|
child.on("close", (code2) => {
|
|
@@ -267655,6 +267669,9 @@ async function executeCommand(command, args, options) {
|
|
|
267655
267669
|
});
|
|
267656
267670
|
});
|
|
267657
267671
|
}
|
|
267672
|
+
var ApplicationAccessTokenSchema = z3.string().regex(/^sm_aat_.*$/);
|
|
267673
|
+
var PersonalAccessTokenSchema = z3.string().regex(/^sm_pat_.*$/);
|
|
267674
|
+
var AccessTokenSchema = z3.string().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
267658
267675
|
function tryParseJson(value4, defaultValue = null) {
|
|
267659
267676
|
try {
|
|
267660
267677
|
const parsed = JSON.parse(value4);
|
|
@@ -267666,15 +267683,6 @@ function tryParseJson(value4, defaultValue = null) {
|
|
|
267666
267683
|
return defaultValue;
|
|
267667
267684
|
}
|
|
267668
267685
|
}
|
|
267669
|
-
var cancel = (msg) => {
|
|
267670
|
-
console.log("");
|
|
267671
|
-
console.log(inverse(redBright(msg)));
|
|
267672
|
-
console.log("");
|
|
267673
|
-
process.exit(1);
|
|
267674
|
-
};
|
|
267675
|
-
var ApplicationAccessTokenSchema = z3.string().regex(/^sm_aat_.*$/);
|
|
267676
|
-
var PersonalAccessTokenSchema = z3.string().regex(/^sm_pat_.*$/);
|
|
267677
|
-
var AccessTokenSchema = z3.string().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
267678
267686
|
var UniqueNameSchema = z3.string().regex(/^[a-z0-9-]+$/);
|
|
267679
267687
|
var UrlSchema = z3.string().url();
|
|
267680
267688
|
var UrlPathSchema = z3.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/[a-zA-Z0-9-_]+)*\/?)?$/, {
|
|
@@ -267743,7 +267751,13 @@ async function loadEnvironmentEnv(validateEnv, prod, path5 = process.cwd()) {
|
|
|
267743
267751
|
if (prod) {
|
|
267744
267752
|
process.env.NODE_ENV = "production";
|
|
267745
267753
|
}
|
|
267746
|
-
let { parsed } = import_dotenvx.config({
|
|
267754
|
+
let { parsed } = import_dotenvx.config({
|
|
267755
|
+
convention: "nextjs",
|
|
267756
|
+
logLevel: "error",
|
|
267757
|
+
overload: true,
|
|
267758
|
+
quiet: true,
|
|
267759
|
+
path: join3(path5, ".env")
|
|
267760
|
+
});
|
|
267747
267761
|
if (!parsed) {
|
|
267748
267762
|
parsed = {};
|
|
267749
267763
|
}
|
|
@@ -267781,6 +267795,9 @@ async function getPackageManagerExecutable(targetDir) {
|
|
|
267781
267795
|
}
|
|
267782
267796
|
return { command: "npx", args: [] };
|
|
267783
267797
|
}
|
|
267798
|
+
function capitalizeFirstLetter(val) {
|
|
267799
|
+
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
|
|
267800
|
+
}
|
|
267784
267801
|
|
|
267785
267802
|
// ../utils/dist/terminal.mjs
|
|
267786
267803
|
var ascii = () => console.log(magentaBright(`
|
|
@@ -267790,24 +267807,27 @@ var ascii = () => console.log(magentaBright(`
|
|
|
267790
267807
|
/ \\ ___/| | | | | |_\\ ___// Y \\ | | \\ |
|
|
267791
267808
|
/_________/\\_____>__| |__| |____/\\_____>____|____/__|___|__/__|
|
|
267792
267809
|
`));
|
|
267810
|
+
var maskTokens2 = (output) => {
|
|
267811
|
+
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
267812
|
+
};
|
|
267793
267813
|
var cancel2 = (msg) => {
|
|
267794
267814
|
console.log("");
|
|
267795
|
-
console.log(inverse(redBright(msg)));
|
|
267815
|
+
console.log(inverse(redBright(maskTokens2(msg))));
|
|
267796
267816
|
console.log("");
|
|
267797
267817
|
process.exit(1);
|
|
267798
267818
|
};
|
|
267799
267819
|
var intro = (msg) => {
|
|
267800
267820
|
console.log("");
|
|
267801
|
-
console.log(magentaBright(msg));
|
|
267821
|
+
console.log(magentaBright(maskTokens2(msg)));
|
|
267802
267822
|
console.log("");
|
|
267803
267823
|
};
|
|
267804
267824
|
var note = (message) => {
|
|
267805
267825
|
console.log("");
|
|
267806
|
-
console.log(message);
|
|
267826
|
+
console.log(maskTokens2(message));
|
|
267807
267827
|
};
|
|
267808
267828
|
var outro = (msg) => {
|
|
267809
267829
|
console.log("");
|
|
267810
|
-
console.log(inverse(greenBright(msg)));
|
|
267830
|
+
console.log(inverse(greenBright(maskTokens2(msg))));
|
|
267811
267831
|
console.log("");
|
|
267812
267832
|
};
|
|
267813
267833
|
var spinner = async (options) => {
|
|
@@ -269944,15 +269964,19 @@ var {
|
|
|
269944
269964
|
} = import__.default;
|
|
269945
269965
|
|
|
269946
269966
|
// ../utils/dist/environment.mjs
|
|
269967
|
+
import { join as join4 } from "node:path";
|
|
269947
269968
|
var import_dotenvx3 = __toESM(require_main2(), 1);
|
|
269948
269969
|
import { readFile as readFile3, writeFile as writeFile4 } from "node:fs/promises";
|
|
269949
|
-
import { dirname as dirname32, join as
|
|
269970
|
+
import { dirname as dirname32, join as join22 } from "node:path";
|
|
269950
269971
|
import { stat as stat7 } from "node:fs/promises";
|
|
269951
269972
|
import { dirname as dirname22 } from "node:path";
|
|
269952
269973
|
var import_dotenvx4 = __toESM(require_main2(), 1);
|
|
269974
|
+
var maskTokens3 = (output) => {
|
|
269975
|
+
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
269976
|
+
};
|
|
269953
269977
|
var cancel3 = (msg) => {
|
|
269954
269978
|
console.log("");
|
|
269955
|
-
console.log(inverse(redBright(msg)));
|
|
269979
|
+
console.log(inverse(redBright(maskTokens3(msg))));
|
|
269956
269980
|
console.log("");
|
|
269957
269981
|
process.exit(1);
|
|
269958
269982
|
};
|
|
@@ -270038,7 +270062,13 @@ async function loadEnvironmentEnv2(validateEnv, prod, path5 = process.cwd()) {
|
|
|
270038
270062
|
if (prod) {
|
|
270039
270063
|
process.env.NODE_ENV = "production";
|
|
270040
270064
|
}
|
|
270041
|
-
let { parsed } = import_dotenvx3.config({
|
|
270065
|
+
let { parsed } = import_dotenvx3.config({
|
|
270066
|
+
convention: "nextjs",
|
|
270067
|
+
logLevel: "error",
|
|
270068
|
+
overload: true,
|
|
270069
|
+
quiet: true,
|
|
270070
|
+
path: join4(path5, ".env")
|
|
270071
|
+
});
|
|
270042
270072
|
if (!parsed) {
|
|
270043
270073
|
parsed = {};
|
|
270044
270074
|
}
|
|
@@ -270070,7 +270100,7 @@ async function projectRoot2() {
|
|
|
270070
270100
|
async function findMonoRepoRoot(startDir) {
|
|
270071
270101
|
let currentDir = startDir;
|
|
270072
270102
|
while (currentDir !== "/") {
|
|
270073
|
-
const packageJsonPath =
|
|
270103
|
+
const packageJsonPath = join22(currentDir, "package.json");
|
|
270074
270104
|
if (await exists3(packageJsonPath)) {
|
|
270075
270105
|
const packageJson = tryParseJson2(await readFile3(packageJsonPath, "utf-8"));
|
|
270076
270106
|
if (packageJson?.workspaces && Array.isArray(packageJson?.workspaces) && packageJson?.workspaces.length > 0) {
|
|
@@ -270091,12 +270121,12 @@ async function findMonoRepoPackages(projectDir) {
|
|
|
270091
270121
|
if (!monoRepoRoot) {
|
|
270092
270122
|
return [projectDir];
|
|
270093
270123
|
}
|
|
270094
|
-
const packageJsonPath =
|
|
270124
|
+
const packageJsonPath = join22(monoRepoRoot, "package.json");
|
|
270095
270125
|
const packageJson = tryParseJson2(await readFile3(packageJsonPath, "utf-8"));
|
|
270096
270126
|
const workspaces = packageJson?.workspaces ?? [];
|
|
270097
270127
|
const packagePaths = await Promise.all(workspaces.map(async (workspace) => {
|
|
270098
|
-
const matches = await glob(
|
|
270099
|
-
return matches.map((match2) =>
|
|
270128
|
+
const matches = await glob(join22(monoRepoRoot, workspace, "package.json"));
|
|
270129
|
+
return matches.map((match2) => join22(match2, ".."));
|
|
270100
270130
|
}));
|
|
270101
270131
|
const allPaths = packagePaths.flat();
|
|
270102
270132
|
return allPaths.length === 0 ? [projectDir] : [monoRepoRoot, ...allPaths];
|
|
@@ -270111,7 +270141,7 @@ async function writeEnv(prod, env2, secrets) {
|
|
|
270111
270141
|
}
|
|
270112
270142
|
const targetDirs = await findMonoRepoPackages(projectDir);
|
|
270113
270143
|
await Promise.all(targetDirs.map(async (dir) => {
|
|
270114
|
-
const envFile =
|
|
270144
|
+
const envFile = join22(dir, secrets ? `.env${prod ? ".production" : ""}.local` : `.env${prod ? ".production" : ""}`);
|
|
270115
270145
|
let { parsed: currentEnv } = await exists3(envFile) ? import_dotenvx4.config({
|
|
270116
270146
|
path: envFile,
|
|
270117
270147
|
logLevel: "error",
|
|
@@ -270472,9 +270502,9 @@ function missingPersonalAccessTokenError() {
|
|
|
270472
270502
|
// src/utils/config.ts
|
|
270473
270503
|
import { mkdir as mkdir3, readFile as readFile4, writeFile as writeFile6 } from "node:fs/promises";
|
|
270474
270504
|
import { homedir } from "node:os";
|
|
270475
|
-
import { join as
|
|
270476
|
-
var CONFIG_DIR =
|
|
270477
|
-
var CONFIG_FILE =
|
|
270505
|
+
import { join as join5 } from "node:path";
|
|
270506
|
+
var CONFIG_DIR = join5(homedir(), ".config", "settlemint");
|
|
270507
|
+
var CONFIG_FILE = join5(CONFIG_DIR, "config.json");
|
|
270478
270508
|
async function ensureConfigDir() {
|
|
270479
270509
|
if (!await exists(CONFIG_DIR)) {
|
|
270480
270510
|
await mkdir3(CONFIG_DIR, { recursive: true });
|
|
@@ -271342,8 +271372,8 @@ var createWorkspace = graphql(`
|
|
|
271342
271372
|
}
|
|
271343
271373
|
`, [WorkspaceFragment]);
|
|
271344
271374
|
var deleteWorkspace = graphql(`
|
|
271345
|
-
mutation deleteWorkspace($
|
|
271346
|
-
|
|
271375
|
+
mutation deleteWorkspace($uniqueName: String!) {
|
|
271376
|
+
deleteWorkspaceByUniqueName(uniqueName: $uniqueName) {
|
|
271347
271377
|
...Workspace
|
|
271348
271378
|
}
|
|
271349
271379
|
}
|
|
@@ -271380,8 +271410,9 @@ var workspaceCreate = (gqlClient, options) => {
|
|
|
271380
271410
|
};
|
|
271381
271411
|
var workspaceDelete = (gqlClient, options) => {
|
|
271382
271412
|
return async (workspaceUniqueName) => {
|
|
271383
|
-
const
|
|
271384
|
-
|
|
271413
|
+
const { deleteWorkspaceByUniqueName: workspace } = await gqlClient.request(deleteWorkspace, {
|
|
271414
|
+
uniqueName: workspaceUniqueName
|
|
271415
|
+
});
|
|
271385
271416
|
return workspace;
|
|
271386
271417
|
};
|
|
271387
271418
|
};
|
|
@@ -271430,8 +271461,8 @@ var createApplication = graphql(`
|
|
|
271430
271461
|
}
|
|
271431
271462
|
`, [ApplicationFragment]);
|
|
271432
271463
|
var deleteApplication = graphql(`
|
|
271433
|
-
mutation DeleteApplication($
|
|
271434
|
-
|
|
271464
|
+
mutation DeleteApplication($uniqueName: String!) {
|
|
271465
|
+
deleteApplicationByUniqueName(uniqueName: $uniqueName) {
|
|
271435
271466
|
...Application
|
|
271436
271467
|
}
|
|
271437
271468
|
}
|
|
@@ -271465,9 +271496,8 @@ var applicationCreate = (gqlClient, options) => {
|
|
|
271465
271496
|
};
|
|
271466
271497
|
var applicationDelete = (gqlClient, options) => {
|
|
271467
271498
|
return async (applicationUniqueName) => {
|
|
271468
|
-
const
|
|
271469
|
-
|
|
271470
|
-
id: applicationToDelete.id
|
|
271499
|
+
const { deleteApplicationByUniqueName: application } = await gqlClient.request(deleteApplication, {
|
|
271500
|
+
uniqueName: applicationUniqueName
|
|
271471
271501
|
});
|
|
271472
271502
|
return application;
|
|
271473
271503
|
};
|
|
@@ -273197,7 +273227,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273197
273227
|
return defaultWorkspace;
|
|
273198
273228
|
}
|
|
273199
273229
|
if (workspaces.length === 0) {
|
|
273200
|
-
|
|
273230
|
+
cancel("No workspaces found");
|
|
273201
273231
|
}
|
|
273202
273232
|
const workspace = await esm_default2({
|
|
273203
273233
|
message: "Which workspace do you want to connect to?",
|
|
@@ -273208,7 +273238,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273208
273238
|
default: defaultWorkspace
|
|
273209
273239
|
});
|
|
273210
273240
|
if (!workspace) {
|
|
273211
|
-
|
|
273241
|
+
cancel("No workspace selected");
|
|
273212
273242
|
}
|
|
273213
273243
|
return workspace;
|
|
273214
273244
|
}
|
|
@@ -273273,7 +273303,7 @@ function connectCommand() {
|
|
|
273273
273303
|
var package_default = {
|
|
273274
273304
|
name: "@settlemint/sdk-cli",
|
|
273275
273305
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
273276
|
-
version: "0.8.
|
|
273306
|
+
version: "0.8.2-maine78e58b1",
|
|
273277
273307
|
type: "module",
|
|
273278
273308
|
private: false,
|
|
273279
273309
|
license: "FSL-1.1-MIT",
|
|
@@ -273324,8 +273354,8 @@ var package_default = {
|
|
|
273324
273354
|
"@inquirer/input": "4.1.1",
|
|
273325
273355
|
"@inquirer/password": "4.0.4",
|
|
273326
273356
|
"@inquirer/select": "4.0.4",
|
|
273327
|
-
"@settlemint/sdk-js": "0.8.
|
|
273328
|
-
"@settlemint/sdk-utils": "0.8.
|
|
273357
|
+
"@settlemint/sdk-js": "0.8.2-maine78e58b1",
|
|
273358
|
+
"@settlemint/sdk-utils": "0.8.2-maine78e58b1",
|
|
273329
273359
|
"get-tsconfig": "4.8.1",
|
|
273330
273360
|
giget: "1.2.3"
|
|
273331
273361
|
},
|
|
@@ -273337,7 +273367,7 @@ var package_default = {
|
|
|
273337
273367
|
|
|
273338
273368
|
// src/commands/create.ts
|
|
273339
273369
|
import { mkdir as mkdir6 } from "node:fs/promises";
|
|
273340
|
-
import { join as
|
|
273370
|
+
import { join as join7 } from "node:path";
|
|
273341
273371
|
|
|
273342
273372
|
// src/commands/create/name.prompt.ts
|
|
273343
273373
|
async function namePrompt(env2, argument) {
|
|
@@ -273363,13 +273393,13 @@ async function namePrompt(env2, argument) {
|
|
|
273363
273393
|
// src/commands/create/template.prompt.ts
|
|
273364
273394
|
async function templatePrompt(templates, argument) {
|
|
273365
273395
|
if (templates.length === 0) {
|
|
273366
|
-
|
|
273396
|
+
cancel("No templates found");
|
|
273367
273397
|
}
|
|
273368
273398
|
const defaultInstance = argument;
|
|
273369
273399
|
if (defaultInstance) {
|
|
273370
273400
|
const template2 = templates.find((template3) => template3.value === argument);
|
|
273371
273401
|
if (!template2) {
|
|
273372
|
-
|
|
273402
|
+
cancel(`No template found with name '${argument}'`);
|
|
273373
273403
|
}
|
|
273374
273404
|
return template2;
|
|
273375
273405
|
}
|
|
@@ -273482,7 +273512,7 @@ var normalize3 = function(path5) {
|
|
|
273482
273512
|
}
|
|
273483
273513
|
return isPathAbsolute && !isAbsolute(path5) ? `/${path5}` : path5;
|
|
273484
273514
|
};
|
|
273485
|
-
var
|
|
273515
|
+
var join6 = function(...arguments_4) {
|
|
273486
273516
|
if (arguments_4.length === 0) {
|
|
273487
273517
|
return ".";
|
|
273488
273518
|
}
|
|
@@ -273754,7 +273784,7 @@ var packageManagers = [
|
|
|
273754
273784
|
async function detectPackageManager(cwd2, options = {}) {
|
|
273755
273785
|
const detected = await findup(resolve5(cwd2 || "."), async (path8) => {
|
|
273756
273786
|
if (!options.ignorePackageJSON) {
|
|
273757
|
-
const packageJSONPath =
|
|
273787
|
+
const packageJSONPath = join6(path8, "package.json");
|
|
273758
273788
|
if (existsSync(packageJSONPath)) {
|
|
273759
273789
|
const packageJSON = JSON.parse(await readFile5(packageJSONPath, "utf8"));
|
|
273760
273790
|
if (packageJSON?.packageManager) {
|
|
@@ -274139,7 +274169,7 @@ function createCommand2() {
|
|
|
274139
274169
|
const env2 = await loadEnv2(false, false);
|
|
274140
274170
|
const name2 = await namePrompt(env2, projectName);
|
|
274141
274171
|
const targetDir = formatTargetDir(name2);
|
|
274142
|
-
const projectDir =
|
|
274172
|
+
const projectDir = join7(process.cwd(), targetDir);
|
|
274143
274173
|
if (!await exists(projectDir)) {
|
|
274144
274174
|
await mkdir6(projectDir, { recursive: true });
|
|
274145
274175
|
}
|
|
@@ -274236,37 +274266,46 @@ ${createExamples([
|
|
|
274236
274266
|
command: "login --token-stdin --accept-defaults",
|
|
274237
274267
|
commandPrefix: "cat ~/my_token.txt | "
|
|
274238
274268
|
}
|
|
274239
|
-
])}`).option("-a, --accept-defaults", "Accept the default and previously set values").option("-d, --default", "Set this instance as the default").option("--token-stdin", "Provide a token using STDIN").action(async ({ acceptDefaults, default: isDefault, tokenStdin }) => {
|
|
274269
|
+
])}`).option("-a, --accept-defaults", "Accept the default and previously set values").option("-d, --default", "Set this instance as the default").option("--token-stdin", "Provide a token using STDIN").option("-i, --instance <instance>", "The instance to login to (defaults to the instance in the .env file)").action(async ({ acceptDefaults, default: isDefault, tokenStdin, instance }, cmd2) => {
|
|
274240
274270
|
intro("Login to your SettleMint account");
|
|
274271
|
+
const autoAccept = !!acceptDefaults || !!tokenStdin;
|
|
274241
274272
|
const env2 = await loadEnv2(false, false);
|
|
274242
|
-
const
|
|
274243
|
-
let personalAccessToken;
|
|
274273
|
+
const selectedInstance = instance ?? await instancePrompt(env2, autoAccept);
|
|
274274
|
+
let personalAccessToken = "";
|
|
274244
274275
|
if (tokenStdin) {
|
|
274245
|
-
|
|
274246
|
-
|
|
274247
|
-
chunks.push(Buffer.from(chunk));
|
|
274276
|
+
if (cmd2.args.length > 0) {
|
|
274277
|
+
cancel2("A token should be provided using STDIN, not as an argument");
|
|
274248
274278
|
}
|
|
274249
|
-
personalAccessToken =
|
|
274279
|
+
personalAccessToken = await Promise.race([
|
|
274280
|
+
(async () => {
|
|
274281
|
+
const chunks = [];
|
|
274282
|
+
for await (const chunk of process.stdin) {
|
|
274283
|
+
chunks.push(Buffer.from(chunk));
|
|
274284
|
+
}
|
|
274285
|
+
return Buffer.concat(chunks).toString().trim();
|
|
274286
|
+
})(),
|
|
274287
|
+
new Promise((resolve6) => setTimeout(() => resolve6(""), 1000))
|
|
274288
|
+
]);
|
|
274250
274289
|
try {
|
|
274251
274290
|
validate3(PersonalAccessTokenSchema3, personalAccessToken);
|
|
274252
274291
|
} catch {
|
|
274253
274292
|
cancel2("Invalid personal access token");
|
|
274254
274293
|
}
|
|
274255
274294
|
} else {
|
|
274256
|
-
personalAccessToken = await personalAccessTokenPrompt(env2,
|
|
274295
|
+
personalAccessToken = await personalAccessTokenPrompt(env2, selectedInstance, autoAccept);
|
|
274257
274296
|
}
|
|
274258
274297
|
const client = createSettleMintClient({
|
|
274259
|
-
instance,
|
|
274298
|
+
instance: selectedInstance,
|
|
274260
274299
|
accessToken: personalAccessToken
|
|
274261
274300
|
});
|
|
274262
274301
|
try {
|
|
274263
274302
|
await loginSpinner(client);
|
|
274264
274303
|
} catch (error5) {
|
|
274265
|
-
cancel2(`Invalid personal access token for instance ${
|
|
274304
|
+
cancel2(`Invalid personal access token for instance ${selectedInstance}`);
|
|
274266
274305
|
}
|
|
274267
|
-
await storeCredentials(personalAccessToken,
|
|
274306
|
+
await storeCredentials(personalAccessToken, selectedInstance);
|
|
274268
274307
|
if (isDefault) {
|
|
274269
|
-
await setDefaultInstance(
|
|
274308
|
+
await setDefaultInstance(selectedInstance);
|
|
274270
274309
|
}
|
|
274271
274310
|
outro("Successfully logged in to SettleMint!");
|
|
274272
274311
|
});
|
|
@@ -274402,13 +274441,13 @@ function getActionLabel(action) {
|
|
|
274402
274441
|
var getApplicationOrPersonalAccessToken = async ({
|
|
274403
274442
|
env: env2,
|
|
274404
274443
|
instance,
|
|
274405
|
-
prefer
|
|
274406
|
-
allowFallback
|
|
274444
|
+
prefer
|
|
274407
274445
|
}) => {
|
|
274408
274446
|
const applicationAccessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
274409
274447
|
const personalAccessToken = (await getInstanceCredentials(instance))?.personalAccessToken;
|
|
274410
274448
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
274411
274449
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
274450
|
+
const allowFallback = prefer === "application";
|
|
274412
274451
|
if (preferredToken) {
|
|
274413
274452
|
return preferredToken;
|
|
274414
274453
|
}
|
|
@@ -274442,8 +274481,7 @@ ${createExamples(examples)}`).argument("<name>", `The ${type4} name`).option("-a
|
|
|
274442
274481
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
274443
274482
|
env: env2,
|
|
274444
274483
|
instance,
|
|
274445
|
-
prefer: usePersonalAccessToken ? "personal" : "application"
|
|
274446
|
-
allowFallback: false
|
|
274484
|
+
prefer: usePersonalAccessToken ? "personal" : "application"
|
|
274447
274485
|
});
|
|
274448
274486
|
const settlemint = createSettleMintClient({
|
|
274449
274487
|
accessToken,
|
|
@@ -275142,7 +275180,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
275142
275180
|
parsedAbis.push(...parsedAbiResults);
|
|
275143
275181
|
} catch (err) {
|
|
275144
275182
|
const error5 = err;
|
|
275145
|
-
|
|
275183
|
+
cancel(`Failed to read or parse ABI file: ${error5.message}`);
|
|
275146
275184
|
}
|
|
275147
275185
|
}
|
|
275148
275186
|
const result = await settlemint.middleware.create({
|
|
@@ -275443,8 +275481,7 @@ ${createExamples([
|
|
|
275443
275481
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275444
275482
|
env: env2,
|
|
275445
275483
|
instance,
|
|
275446
|
-
prefer: usePersonalAccessToken ? "personal" : "application"
|
|
275447
|
-
allowFallback: false
|
|
275484
|
+
prefer: usePersonalAccessToken ? "personal" : "application"
|
|
275448
275485
|
});
|
|
275449
275486
|
const settlemint = createSettleMintClient({
|
|
275450
275487
|
accessToken,
|
|
@@ -275543,8 +275580,7 @@ ${createExamples([
|
|
|
275543
275580
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275544
275581
|
env: env2,
|
|
275545
275582
|
instance,
|
|
275546
|
-
prefer: usePersonalAccessToken ? "personal" : "application"
|
|
275547
|
-
allowFallback: false
|
|
275583
|
+
prefer: usePersonalAccessToken ? "personal" : "application"
|
|
275548
275584
|
});
|
|
275549
275585
|
const settlemint = createSettleMintClient({
|
|
275550
275586
|
accessToken,
|
|
@@ -275553,7 +275589,7 @@ ${createExamples([
|
|
|
275553
275589
|
const isDefaultUniqueName = uniqueName === "default";
|
|
275554
275590
|
const serviceUniqueName = isDefaultUniqueName ? typeof env2[envKey] === "string" ? env2[envKey] : null : uniqueName;
|
|
275555
275591
|
if (!serviceUniqueName) {
|
|
275556
|
-
|
|
275592
|
+
cancel(`No default ${type4} found in your .env file. Please provide a valid ${type4} unique name or set a default ${type4} first.`);
|
|
275557
275593
|
}
|
|
275558
275594
|
const result = await spinner({
|
|
275559
275595
|
startMessage: `Restarting ${type4}`,
|
|
@@ -275736,8 +275772,7 @@ function customDeploymentsUpdateCommand() {
|
|
|
275736
275772
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275737
275773
|
env: env2,
|
|
275738
275774
|
instance,
|
|
275739
|
-
prefer: "application"
|
|
275740
|
-
allowFallback: false
|
|
275775
|
+
prefer: "application"
|
|
275741
275776
|
});
|
|
275742
275777
|
const settlemint = createSettleMintClient({
|
|
275743
275778
|
accessToken,
|
|
@@ -275774,7 +275809,7 @@ function platformCommand() {
|
|
|
275774
275809
|
|
|
275775
275810
|
// src/commands/smart-contract-set/create.ts
|
|
275776
275811
|
import { rmdir } from "node:fs/promises";
|
|
275777
|
-
import { join as
|
|
275812
|
+
import { join as join8 } from "node:path";
|
|
275778
275813
|
|
|
275779
275814
|
// src/constants/smart-contract-sets.ts
|
|
275780
275815
|
var SMART_CONTRACT_SET_DETAILS = [
|
|
@@ -275948,11 +275983,11 @@ var SMART_CONTRACT_SETS = SMART_CONTRACT_SET_DETAILS.map((set) => set.id);
|
|
|
275948
275983
|
// src/commands/smart-contract-set/prompts/use-case.prompt.ts
|
|
275949
275984
|
async function useCasePrompt(argument) {
|
|
275950
275985
|
if (SMART_CONTRACT_SETS.length === 0) {
|
|
275951
|
-
|
|
275986
|
+
cancel("No use cases found");
|
|
275952
275987
|
}
|
|
275953
275988
|
if (argument) {
|
|
275954
275989
|
if (!SMART_CONTRACT_SETS.includes(argument)) {
|
|
275955
|
-
|
|
275990
|
+
cancel(`No use case found with name '${argument}'`);
|
|
275956
275991
|
}
|
|
275957
275992
|
return argument;
|
|
275958
275993
|
}
|
|
@@ -275973,7 +276008,7 @@ function createCommand4() {
|
|
|
275973
276008
|
const env2 = await loadEnv2(false, !!prod);
|
|
275974
276009
|
const name2 = await namePrompt(env2, projectName);
|
|
275975
276010
|
const targetDir = formatTargetDir(name2);
|
|
275976
|
-
const projectDir =
|
|
276011
|
+
const projectDir = join8(process.cwd(), targetDir);
|
|
275977
276012
|
if (await exists2(projectDir) && !await isEmpty(projectDir)) {
|
|
275978
276013
|
const confirmEmpty = await esm_default3({
|
|
275979
276014
|
message: `The folder ${projectDir} already exists. Do you want to delete it?`,
|
|
@@ -276097,7 +276132,7 @@ async function addressPrompt({
|
|
|
276097
276132
|
return defaultAddress;
|
|
276098
276133
|
}
|
|
276099
276134
|
if (possiblePrivateKeys.length === 0) {
|
|
276100
|
-
|
|
276135
|
+
cancel("No private key is activated on the node to sign the transaction.");
|
|
276101
276136
|
}
|
|
276102
276137
|
const address = await esm_default2({
|
|
276103
276138
|
message: "Which private key do you want to deploy from?",
|
|
@@ -276164,8 +276199,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
276164
276199
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276165
276200
|
env: env2,
|
|
276166
276201
|
instance,
|
|
276167
|
-
prefer: "application"
|
|
276168
|
-
allowFallback: true
|
|
276202
|
+
prefer: "application"
|
|
276169
276203
|
});
|
|
276170
276204
|
const settlemint = createSettleMintClient({
|
|
276171
276205
|
accessToken,
|
|
@@ -276267,8 +276301,7 @@ function hardhatScriptRemoteCommand() {
|
|
|
276267
276301
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276268
276302
|
env: env2,
|
|
276269
276303
|
instance,
|
|
276270
|
-
prefer: "application"
|
|
276271
|
-
allowFallback: true
|
|
276304
|
+
prefer: "application"
|
|
276272
276305
|
});
|
|
276273
276306
|
const settlemint = createSettleMintClient({
|
|
276274
276307
|
accessToken,
|
|
@@ -276313,20 +276346,9 @@ import { dirname as dirname7 } from "node:path";
|
|
|
276313
276346
|
// src/commands/smart-contract-set/subgraph/utils/setup.ts
|
|
276314
276347
|
import { rm as rm4 } from "node:fs/promises";
|
|
276315
276348
|
|
|
276316
|
-
// src/commands/smart-contract-set/subgraph/utils/sanitize-name.ts
|
|
276317
|
-
var import_slugify = __toESM(require_slugify(), 1);
|
|
276318
|
-
function sanitizeName(value4, length = 35) {
|
|
276319
|
-
return import_slugify.default(value4, {
|
|
276320
|
-
strict: true,
|
|
276321
|
-
remove: /[!"'()*+.:@~]/g,
|
|
276322
|
-
replacement: "-",
|
|
276323
|
-
lower: true
|
|
276324
|
-
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
276325
|
-
}
|
|
276326
|
-
|
|
276327
276349
|
// src/commands/smart-contract-set/subgraph/utils/subgraph-config.ts
|
|
276328
276350
|
import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
|
|
276329
|
-
import { basename as basename4, join as
|
|
276351
|
+
import { basename as basename4, join as join9 } from "node:path";
|
|
276330
276352
|
|
|
276331
276353
|
// ../../node_modules/yaml/dist/index.js
|
|
276332
276354
|
var composer = require_composer();
|
|
@@ -276376,17 +276398,17 @@ var $visitAsync = visit2.visitAsync;
|
|
|
276376
276398
|
|
|
276377
276399
|
// src/commands/smart-contract-set/subgraph/utils/subgraph-config.ts
|
|
276378
276400
|
var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
|
|
276379
|
-
var isGenerated = (path8 = process.cwd()) => exists2(
|
|
276401
|
+
var isGenerated = (path8 = process.cwd()) => exists2(join9(path8, CONFIG_FILE_PATH));
|
|
276380
276402
|
var getSubgraphYamlFile = async (path8 = process.cwd()) => {
|
|
276381
276403
|
const generated = await isGenerated(path8);
|
|
276382
|
-
if (generated && await exists2(
|
|
276383
|
-
return
|
|
276404
|
+
if (generated && await exists2(join9(path8, "generated/scs.subgraph.yaml"))) {
|
|
276405
|
+
return join9(path8, "generated/scs.subgraph.yaml");
|
|
276384
276406
|
}
|
|
276385
|
-
if (await exists2(
|
|
276386
|
-
return
|
|
276407
|
+
if (await exists2(join9(path8, "subgraph/subgraph.yaml"))) {
|
|
276408
|
+
return join9(path8, "subgraph/subgraph.yaml");
|
|
276387
276409
|
}
|
|
276388
|
-
if (await exists2(
|
|
276389
|
-
return
|
|
276410
|
+
if (await exists2(join9(path8, "subgraph.yaml"))) {
|
|
276411
|
+
return join9(path8, "subgraph.yaml");
|
|
276390
276412
|
}
|
|
276391
276413
|
throw new Error("Subgraph configuration file not found");
|
|
276392
276414
|
};
|
|
@@ -276401,7 +276423,7 @@ var updateSubgraphYamlConfig = async (config4, cwd2 = process.cwd()) => {
|
|
|
276401
276423
|
};
|
|
276402
276424
|
var getSubgraphConfig = async (path8 = process.cwd()) => {
|
|
276403
276425
|
try {
|
|
276404
|
-
const configContents = await readFile7(
|
|
276426
|
+
const configContents = await readFile7(join9(path8, CONFIG_FILE_PATH));
|
|
276405
276427
|
const currentConfig = tryParseJson(configContents.toString());
|
|
276406
276428
|
return currentConfig;
|
|
276407
276429
|
} catch (err) {
|
|
@@ -276413,11 +276435,21 @@ var getSubgraphConfig = async (path8 = process.cwd()) => {
|
|
|
276413
276435
|
|
|
276414
276436
|
// src/commands/smart-contract-set/subgraph/utils/setup.ts
|
|
276415
276437
|
var import_semver = __toESM(require_semver2(), 1);
|
|
276416
|
-
|
|
276417
|
-
|
|
276418
|
-
|
|
276419
|
-
|
|
276420
|
-
|
|
276438
|
+
|
|
276439
|
+
// src/commands/smart-contract-set/subgraph/utils/sanitize-name.ts
|
|
276440
|
+
var import_slugify = __toESM(require_slugify(), 1);
|
|
276441
|
+
function sanitizeName(value4, length = 35) {
|
|
276442
|
+
return import_slugify.default(value4, {
|
|
276443
|
+
strict: true,
|
|
276444
|
+
remove: /[!"'()*+.:@~]/g,
|
|
276445
|
+
replacement: "-",
|
|
276446
|
+
lower: true
|
|
276447
|
+
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
276448
|
+
}
|
|
276449
|
+
|
|
276450
|
+
// src/commands/smart-contract-set/subgraph/utils/setup.ts
|
|
276451
|
+
var SETTLEMINT_NETWORK = "settlemint";
|
|
276452
|
+
async function subgraphSetup({ network }) {
|
|
276421
276453
|
const generated = await isGenerated();
|
|
276422
276454
|
if (generated) {
|
|
276423
276455
|
await executeCommand("forge", ["build"]);
|
|
@@ -276434,8 +276466,6 @@ async function subgraphSetup({ env: env2, instance, accessToken, autoAccept }) {
|
|
|
276434
276466
|
if (await exists2("./subgraph/build")) {
|
|
276435
276467
|
await rm4("./subgraph/build", { recursive: true, force: true });
|
|
276436
276468
|
}
|
|
276437
|
-
const isFixedNetwork = (theGraphMiddleware.entityVersion ?? 4) >= 4;
|
|
276438
|
-
const network = isFixedNetwork ? "settlemint" : sanitizeName(await getNodeName({ env: env2, instance, accessToken }), 30);
|
|
276439
276469
|
if (generated) {
|
|
276440
276470
|
const { command, args } = await getPackageManagerExecutable();
|
|
276441
276471
|
await executeCommand(command, [
|
|
@@ -276469,7 +276499,6 @@ async function subgraphSetup({ env: env2, instance, accessToken, autoAccept }) {
|
|
|
276469
276499
|
}
|
|
276470
276500
|
}
|
|
276471
276501
|
await updateSubgraphYamlConfig(yamlConfig);
|
|
276472
|
-
return theGraphMiddleware;
|
|
276473
276502
|
}
|
|
276474
276503
|
async function getTheGraphMiddleware({
|
|
276475
276504
|
env: env2,
|
|
@@ -276490,6 +276519,15 @@ async function getTheGraphMiddleware({
|
|
|
276490
276519
|
const middlewares = await settlemintClient.middleware.list(env2.SETTLEMINT_APPLICATION);
|
|
276491
276520
|
return theGraphPrompt(env2, middlewares, autoAccept);
|
|
276492
276521
|
}
|
|
276522
|
+
async function getTheGraphNetwork({
|
|
276523
|
+
theGraphMiddleware,
|
|
276524
|
+
env: env2,
|
|
276525
|
+
instance,
|
|
276526
|
+
accessToken
|
|
276527
|
+
}) {
|
|
276528
|
+
const isFixedNetwork = (theGraphMiddleware?.entityVersion ?? 4) >= 4;
|
|
276529
|
+
return isFixedNetwork ? SETTLEMINT_NETWORK : sanitizeName(await getNodeName({ env: env2, instance, accessToken }), 30);
|
|
276530
|
+
}
|
|
276493
276531
|
async function getNodeName({
|
|
276494
276532
|
env: env2,
|
|
276495
276533
|
instance,
|
|
@@ -276508,21 +276546,9 @@ async function getNodeName({
|
|
|
276508
276546
|
|
|
276509
276547
|
// src/commands/smart-contract-set/subgraph/build.ts
|
|
276510
276548
|
function subgraphBuildCommand() {
|
|
276511
|
-
return new Command2("build").description("Build the subgraph").
|
|
276512
|
-
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276513
|
-
const env2 = await loadEnv(false, !!prod);
|
|
276514
|
-
const instance = await instancePrompt(env2, true);
|
|
276515
|
-
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276516
|
-
env: env2,
|
|
276517
|
-
instance,
|
|
276518
|
-
prefer: "application",
|
|
276519
|
-
allowFallback: false
|
|
276520
|
-
});
|
|
276549
|
+
return new Command2("build").description("Build the subgraph").action(async () => {
|
|
276521
276550
|
await subgraphSetup({
|
|
276522
|
-
|
|
276523
|
-
instance,
|
|
276524
|
-
accessToken,
|
|
276525
|
-
autoAccept
|
|
276551
|
+
network: SETTLEMINT_NETWORK
|
|
276526
276552
|
});
|
|
276527
276553
|
const { command, args } = await getPackageManagerExecutable();
|
|
276528
276554
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
@@ -276535,21 +276561,9 @@ function subgraphBuildCommand() {
|
|
|
276535
276561
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
|
276536
276562
|
import { dirname as dirname8 } from "node:path";
|
|
276537
276563
|
function subgraphCodegenCommand() {
|
|
276538
|
-
return new Command2("codegen").
|
|
276539
|
-
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276540
|
-
const env2 = await loadEnv(false, !!prod);
|
|
276541
|
-
const instance = await instancePrompt(env2, true);
|
|
276542
|
-
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276543
|
-
env: env2,
|
|
276544
|
-
instance,
|
|
276545
|
-
prefer: "application",
|
|
276546
|
-
allowFallback: false
|
|
276547
|
-
});
|
|
276564
|
+
return new Command2("codegen").description("Codegen the subgraph types").action(async () => {
|
|
276548
276565
|
await subgraphSetup({
|
|
276549
|
-
|
|
276550
|
-
instance,
|
|
276551
|
-
accessToken,
|
|
276552
|
-
autoAccept
|
|
276566
|
+
network: SETTLEMINT_NETWORK
|
|
276553
276567
|
});
|
|
276554
276568
|
const { command, args } = await getPackageManagerExecutable();
|
|
276555
276569
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
@@ -276598,14 +276612,15 @@ function subgraphDeployCommand() {
|
|
|
276598
276612
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276599
276613
|
env: env2,
|
|
276600
276614
|
instance,
|
|
276601
|
-
prefer: "application"
|
|
276602
|
-
allowFallback: false
|
|
276615
|
+
prefer: "application"
|
|
276603
276616
|
});
|
|
276604
|
-
const theGraphMiddleware = await
|
|
276605
|
-
|
|
276606
|
-
|
|
276607
|
-
|
|
276608
|
-
|
|
276617
|
+
const theGraphMiddleware = await getTheGraphMiddleware({ env: env2, instance, accessToken, autoAccept });
|
|
276618
|
+
if (!theGraphMiddleware) {
|
|
276619
|
+
cancel2("No Graph Middleware selected. Please select one to continue.");
|
|
276620
|
+
}
|
|
276621
|
+
const network = await getTheGraphNetwork({ theGraphMiddleware, env: env2, instance, accessToken });
|
|
276622
|
+
await subgraphSetup({
|
|
276623
|
+
network
|
|
276609
276624
|
});
|
|
276610
276625
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276611
276626
|
await updateSpecVersion(theGraphMiddleware.specVersion);
|
|
@@ -276617,7 +276632,7 @@ function subgraphDeployCommand() {
|
|
|
276617
276632
|
if (generated) {
|
|
276618
276633
|
const currentConfig = await getSubgraphConfig();
|
|
276619
276634
|
if (!currentConfig || currentConfig?.datasources.some((ds) => ds.address === "0x0000000000000000000000000000000000000000")) {
|
|
276620
|
-
|
|
276635
|
+
cancel2('The "subgraph/subgraph.config.json" config has not been set, ensure all the contracts listed have an address added');
|
|
276621
276636
|
}
|
|
276622
276637
|
}
|
|
276623
276638
|
const graphName = await subgraphNamePrompt2(subgraphName, env2, autoAccept, !!prod);
|
|
@@ -276647,6 +276662,7 @@ function subgraphDeployCommand() {
|
|
|
276647
276662
|
const graphEndpoints = await getGraphEndpoint(middleware, env2);
|
|
276648
276663
|
await writeEnvSpinner(!!prod, {
|
|
276649
276664
|
...env2,
|
|
276665
|
+
SETTLEMINT_THEGRAPH: theGraphMiddleware.uniqueName,
|
|
276650
276666
|
...graphEndpoints
|
|
276651
276667
|
});
|
|
276652
276668
|
});
|
|
@@ -276692,4 +276708,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
|
|
|
276692
276708
|
cancel2(reason);
|
|
276693
276709
|
});
|
|
276694
276710
|
|
|
276695
|
-
//# debugId=
|
|
276711
|
+
//# debugId=5D212980F04EA84564756E2164756E21
|