@modern-js/storybook-next-generator 3.3.9 → 3.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +277 -123
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -35241,151 +35241,155 @@ var require_get = __commonJS({
|
|
|
35241
35241
|
}
|
|
35242
35242
|
});
|
|
35243
35243
|
|
|
35244
|
-
// ../../../../node_modules/.pnpm/rslog@1.1
|
|
35245
|
-
var
|
|
35246
|
-
"../../../../node_modules/.pnpm/rslog@1.1
|
|
35244
|
+
// ../../../../node_modules/.pnpm/rslog@1.2.1/node_modules/rslog/dist/index.cjs
|
|
35245
|
+
var require_dist = __commonJS({
|
|
35246
|
+
"../../../../node_modules/.pnpm/rslog@1.2.1/node_modules/rslog/dist/index.cjs"(exports, module2) {
|
|
35247
35247
|
"use strict";
|
|
35248
|
-
var
|
|
35249
|
-
var
|
|
35250
|
-
var
|
|
35251
|
-
var
|
|
35248
|
+
var j = Object.create;
|
|
35249
|
+
var O = Object.defineProperty;
|
|
35250
|
+
var B = Object.getOwnPropertyDescriptor;
|
|
35251
|
+
var D = Object.getOwnPropertyNames;
|
|
35252
35252
|
var U = Object.getPrototypeOf;
|
|
35253
35253
|
var W = Object.prototype.hasOwnProperty;
|
|
35254
|
-
var H = (r,
|
|
35255
|
-
for (var o in
|
|
35256
|
-
|
|
35257
|
-
};
|
|
35258
|
-
var A = (r,
|
|
35259
|
-
if (
|
|
35260
|
-
for (let
|
|
35261
|
-
!W.call(r,
|
|
35254
|
+
var H = (r, t) => {
|
|
35255
|
+
for (var o in t)
|
|
35256
|
+
O(r, o, { get: t[o], enumerable: true });
|
|
35257
|
+
};
|
|
35258
|
+
var A = (r, t, o, l) => {
|
|
35259
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
35260
|
+
for (let e of D(t))
|
|
35261
|
+
!W.call(r, e) && e !== o && O(r, e, { get: () => t[e], enumerable: !(l = B(t, e)) || l.enumerable });
|
|
35262
35262
|
return r;
|
|
35263
35263
|
};
|
|
35264
|
-
var C = (r,
|
|
35265
|
-
var K = (r) => A(
|
|
35264
|
+
var C = (r, t, o) => (o = r != null ? j(U(r)) : {}, A(t || !r || !r.__esModule ? O(o, "default", { value: r, enumerable: true }) : o, r));
|
|
35265
|
+
var K = (r) => A(O({}, "__esModule", { value: true }), r);
|
|
35266
35266
|
var er = {};
|
|
35267
35267
|
H(er, { createLogger: () => R, logger: () => rr });
|
|
35268
35268
|
module2.exports = K(er);
|
|
35269
|
-
var
|
|
35269
|
+
var L = C(require("process"));
|
|
35270
35270
|
var F = C(require("os"));
|
|
35271
35271
|
var y = C(require("tty"));
|
|
35272
|
-
function
|
|
35273
|
-
let o = r.startsWith("-") ? "" : r.length === 1 ? "-" : "--",
|
|
35274
|
-
return
|
|
35272
|
+
function c(r, t = globalThis.Deno ? globalThis.Deno.args : L.default.argv) {
|
|
35273
|
+
let o = r.startsWith("-") ? "" : r.length === 1 ? "-" : "--", l = t.indexOf(o + r), e = t.indexOf("--");
|
|
35274
|
+
return l !== -1 && (e === -1 || l < e);
|
|
35275
35275
|
}
|
|
35276
|
-
var { env:
|
|
35277
|
-
var
|
|
35278
|
-
|
|
35276
|
+
var { env: i } = L.default;
|
|
35277
|
+
var E;
|
|
35278
|
+
c("no-color") || c("no-colors") || c("color=false") || c("color=never") ? E = 0 : (c("color") || c("colors") || c("color=true") || c("color=always")) && (E = 1);
|
|
35279
35279
|
function q() {
|
|
35280
|
-
if ("FORCE_COLOR" in
|
|
35281
|
-
return
|
|
35280
|
+
if ("FORCE_COLOR" in i)
|
|
35281
|
+
return i.FORCE_COLOR === "true" ? 1 : i.FORCE_COLOR === "false" ? 0 : i.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(i.FORCE_COLOR, 10), 3);
|
|
35282
35282
|
}
|
|
35283
35283
|
function z(r) {
|
|
35284
35284
|
return r === 0 ? false : { level: r, hasBasic: true, has256: r >= 2, has16m: r >= 3 };
|
|
35285
35285
|
}
|
|
35286
|
-
function J(r, { streamIsTTY:
|
|
35287
|
-
let
|
|
35288
|
-
|
|
35289
|
-
let
|
|
35290
|
-
if (
|
|
35286
|
+
function J(r, { streamIsTTY: t, sniffFlags: o = true } = {}) {
|
|
35287
|
+
let l = q();
|
|
35288
|
+
l !== void 0 && (E = l);
|
|
35289
|
+
let e = o ? E : l;
|
|
35290
|
+
if (e === 0)
|
|
35291
35291
|
return 0;
|
|
35292
35292
|
if (o) {
|
|
35293
|
-
if (
|
|
35293
|
+
if (c("color=16m") || c("color=full") || c("color=truecolor"))
|
|
35294
35294
|
return 3;
|
|
35295
|
-
if (
|
|
35295
|
+
if (c("color=256"))
|
|
35296
35296
|
return 2;
|
|
35297
35297
|
}
|
|
35298
|
-
if ("TF_BUILD" in
|
|
35298
|
+
if ("TF_BUILD" in i && "AGENT_NAME" in i)
|
|
35299
35299
|
return 1;
|
|
35300
|
-
if (r && !
|
|
35300
|
+
if (r && !t && e === void 0)
|
|
35301
35301
|
return 0;
|
|
35302
|
-
let n =
|
|
35303
|
-
if (
|
|
35302
|
+
let n = e || 0;
|
|
35303
|
+
if (i.TERM === "dumb")
|
|
35304
35304
|
return n;
|
|
35305
|
-
if (
|
|
35305
|
+
if (L.default.platform === "win32") {
|
|
35306
35306
|
let s = F.default.release().split(".");
|
|
35307
35307
|
return Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1;
|
|
35308
35308
|
}
|
|
35309
|
-
if ("CI" in
|
|
35310
|
-
return "GITHUB_ACTIONS" in
|
|
35311
|
-
if ("TEAMCITY_VERSION" in
|
|
35312
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
35313
|
-
if (
|
|
35309
|
+
if ("CI" in i)
|
|
35310
|
+
return "GITHUB_ACTIONS" in i || "GITEA_ACTIONS" in i ? 3 : ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((s) => s in i) || i.CI_NAME === "codeship" ? 1 : n;
|
|
35311
|
+
if ("TEAMCITY_VERSION" in i)
|
|
35312
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION) ? 1 : 0;
|
|
35313
|
+
if (i.COLORTERM === "truecolor" || i.TERM === "xterm-kitty")
|
|
35314
35314
|
return 3;
|
|
35315
|
-
if ("TERM_PROGRAM" in
|
|
35316
|
-
let s = Number.parseInt((
|
|
35317
|
-
switch (
|
|
35315
|
+
if ("TERM_PROGRAM" in i) {
|
|
35316
|
+
let s = Number.parseInt((i.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
35317
|
+
switch (i.TERM_PROGRAM) {
|
|
35318
35318
|
case "iTerm.app":
|
|
35319
35319
|
return s >= 3 ? 3 : 2;
|
|
35320
35320
|
case "Apple_Terminal":
|
|
35321
35321
|
return 2;
|
|
35322
35322
|
}
|
|
35323
35323
|
}
|
|
35324
|
-
return /-256(color)?$/i.test(
|
|
35324
|
+
return /-256(color)?$/i.test(i.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM) || "COLORTERM" in i ? 1 : n;
|
|
35325
35325
|
}
|
|
35326
|
-
function N(r,
|
|
35327
|
-
let o = J(r, { streamIsTTY: r && r.isTTY, ...
|
|
35326
|
+
function N(r, t = {}) {
|
|
35327
|
+
let o = J(r, { streamIsTTY: r && r.isTTY, ...t });
|
|
35328
35328
|
return z(o);
|
|
35329
35329
|
}
|
|
35330
35330
|
var Q = { stdout: N({ isTTY: y.default.isatty(1) }), stderr: N({ isTTY: y.default.isatty(2) }) };
|
|
35331
35331
|
var M = Q;
|
|
35332
|
-
var
|
|
35333
|
-
var X =
|
|
35332
|
+
var b = M.stdout ? M.stdout.level : 0;
|
|
35333
|
+
var X = /at\s.*:\d+:\d+[\s\)]*$/;
|
|
35334
35334
|
var Z = /^\s*at\s.*\(<anonymous>\)$/;
|
|
35335
35335
|
var $ = (r) => X.test(r) || Z.test(r);
|
|
35336
|
-
var
|
|
35337
|
-
let
|
|
35338
|
-
return ~n ? r + G(
|
|
35336
|
+
var g = (r, t, o = r) => b >= 2 ? (l) => {
|
|
35337
|
+
let e = "" + l, n = e.indexOf(t, r.length);
|
|
35338
|
+
return ~n ? r + G(e, t, o, n) + t : r + e + t;
|
|
35339
35339
|
} : String;
|
|
35340
|
-
var G = (r,
|
|
35341
|
-
let
|
|
35342
|
-
return ~s ?
|
|
35343
|
-
};
|
|
35344
|
-
var
|
|
35345
|
-
var w =
|
|
35346
|
-
var
|
|
35347
|
-
var
|
|
35348
|
-
var
|
|
35349
|
-
var d =
|
|
35350
|
-
var
|
|
35340
|
+
var G = (r, t, o, l) => {
|
|
35341
|
+
let e = r.substring(0, l) + o, n = r.substring(l + t.length), s = n.indexOf(t);
|
|
35342
|
+
return ~s ? e + G(n, t, o, s) : e + n;
|
|
35343
|
+
};
|
|
35344
|
+
var x = g("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m");
|
|
35345
|
+
var w = g("\x1B[31m", "\x1B[39m");
|
|
35346
|
+
var v = g("\x1B[32m", "\x1B[39m");
|
|
35347
|
+
var P = g("\x1B[33m", "\x1B[39m");
|
|
35348
|
+
var Y = g("\x1B[35m", "\x1B[39m");
|
|
35349
|
+
var d = g("\x1B[36m", "\x1B[39m");
|
|
35350
|
+
var h = g("\x1B[90m", "\x1B[39m");
|
|
35351
35351
|
var _ = [189, 255, 243];
|
|
35352
35352
|
var I = [74, 194, 154];
|
|
35353
35353
|
var k = (r) => !/[\s\n]/.test(r);
|
|
35354
35354
|
var V = (r) => {
|
|
35355
|
-
if (
|
|
35356
|
-
return
|
|
35357
|
-
let
|
|
35358
|
-
for (let
|
|
35359
|
-
k(
|
|
35360
|
-
return
|
|
35355
|
+
if (b < 3)
|
|
35356
|
+
return b === 2 ? x(d(r)) : r;
|
|
35357
|
+
let t = [...r], o = t.filter(k).length, l = _[0], e = _[1], n = _[2], s = (I[0] - l) / o, p = (I[1] - e) / o, f = (I[2] - n) / o, a = "";
|
|
35358
|
+
for (let u of t)
|
|
35359
|
+
k(u) && (l += s, e += p, n += f), a += `\x1B[38;2;${Math.round(l)};${Math.round(e)};${Math.round(n)}m${u}\x1B[39m`;
|
|
35360
|
+
return x(a);
|
|
35361
35361
|
};
|
|
35362
35362
|
var S = { error: 0, warn: 1, info: 2, log: 3, verbose: 4 };
|
|
35363
|
-
var T = { error: { label: "error", level: "error", color: w }, warn: { label: "warn", level: "warn", color:
|
|
35363
|
+
var T = { error: { label: "error", level: "error", color: w }, warn: { label: "warn", level: "warn", color: P }, info: { label: "info", level: "info", color: d }, start: { label: "start", level: "info", color: d }, ready: { label: "ready", level: "info", color: v }, success: { label: "success", level: "info", color: v }, log: { level: "log" }, debug: { label: "debug", level: "verbose", color: Y } };
|
|
35364
35364
|
var R = (r = {}) => {
|
|
35365
|
-
let
|
|
35366
|
-
if (S[T[
|
|
35365
|
+
let t = r.level || "log", o = (e, n, ...s) => {
|
|
35366
|
+
if (S[T[e].level] > S[t])
|
|
35367
35367
|
return;
|
|
35368
35368
|
if (n == null)
|
|
35369
35369
|
return console.log();
|
|
35370
|
-
let
|
|
35371
|
-
if ("label" in
|
|
35370
|
+
let p = T[e], f = "", a = "";
|
|
35371
|
+
if ("label" in p && (f = (p.label || "").padEnd(7), f = x(p.color ? p.color(f) : f)), n instanceof Error)
|
|
35372
35372
|
if (n.stack) {
|
|
35373
|
-
let [
|
|
35373
|
+
let [u, ...m] = n.stack.split(`
|
|
35374
35374
|
`);
|
|
35375
|
-
|
|
35376
|
-
${
|
|
35375
|
+
u.startsWith("Error: ") && (u = u.slice(7)), a = `${u}
|
|
35376
|
+
${h(m.join(`
|
|
35377
35377
|
`))}`;
|
|
35378
35378
|
} else
|
|
35379
|
-
|
|
35379
|
+
a = n.message;
|
|
35380
35380
|
else
|
|
35381
|
-
|
|
35382
|
-
`).map((m) => $(m) ?
|
|
35383
|
-
`) :
|
|
35384
|
-
console.log(f.length ? `${f} ${
|
|
35385
|
-
},
|
|
35386
|
-
return Object.keys(T).forEach((
|
|
35387
|
-
|
|
35388
|
-
}),
|
|
35381
|
+
p.level === "error" && typeof n == "string" ? a = n.split(`
|
|
35382
|
+
`).map((m) => $(m) ? h(m) : m).join(`
|
|
35383
|
+
`) : a = `${n}`;
|
|
35384
|
+
console.log(f.length ? `${f} ${a}` : a, ...s);
|
|
35385
|
+
}, l = { greet: (e) => o("log", V(e)) };
|
|
35386
|
+
return Object.keys(T).forEach((e) => {
|
|
35387
|
+
l[e] = (...n) => o(e, ...n);
|
|
35388
|
+
}), Object.defineProperty(l, "level", { get: () => t, set(e) {
|
|
35389
|
+
t = e;
|
|
35390
|
+
} }), l.override = (e) => {
|
|
35391
|
+
Object.assign(l, e);
|
|
35392
|
+
}, l;
|
|
35389
35393
|
};
|
|
35390
35394
|
var rr = R();
|
|
35391
35395
|
}
|
|
@@ -35418,7 +35422,7 @@ var require_logger = __commonJS({
|
|
|
35418
35422
|
logger: () => import_rslog.logger
|
|
35419
35423
|
});
|
|
35420
35424
|
module2.exports = __toCommonJS2(logger_exports);
|
|
35421
|
-
var import_rslog =
|
|
35425
|
+
var import_rslog = require_dist();
|
|
35422
35426
|
}
|
|
35423
35427
|
});
|
|
35424
35428
|
|
|
@@ -50167,7 +50171,7 @@ var require_printer = __commonJS({
|
|
|
50167
50171
|
});
|
|
50168
50172
|
|
|
50169
50173
|
// ../../../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/lib/index.js
|
|
50170
|
-
var
|
|
50174
|
+
var require_lib = __commonJS({
|
|
50171
50175
|
"../../../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/lib/index.js"(exports, module2) {
|
|
50172
50176
|
"use strict";
|
|
50173
50177
|
var handlebars2 = require_handlebars()["default"];
|
|
@@ -82589,7 +82593,7 @@ var require_extend_node = __commonJS({
|
|
|
82589
82593
|
});
|
|
82590
82594
|
|
|
82591
82595
|
// ../../../../node_modules/.pnpm/iconv-lite@0.4.24/node_modules/iconv-lite/lib/index.js
|
|
82592
|
-
var
|
|
82596
|
+
var require_lib2 = __commonJS({
|
|
82593
82597
|
"../../../../node_modules/.pnpm/iconv-lite@0.4.24/node_modules/iconv-lite/lib/index.js"(exports, module2) {
|
|
82594
82598
|
"use strict";
|
|
82595
82599
|
var Buffer2 = require_safer().Buffer;
|
|
@@ -83187,7 +83191,7 @@ var require_main = __commonJS({
|
|
|
83187
83191
|
var chardet_1 = require_chardet();
|
|
83188
83192
|
var child_process_1 = require("child_process");
|
|
83189
83193
|
var fs_1 = require("fs");
|
|
83190
|
-
var iconv_lite_1 =
|
|
83194
|
+
var iconv_lite_1 = require_lib2();
|
|
83191
83195
|
var tmp_1 = require_tmp();
|
|
83192
83196
|
var CreateFileError_1 = require_CreateFileError();
|
|
83193
83197
|
exports.CreateFileError = CreateFileError_1.CreateFileError;
|
|
@@ -87788,7 +87792,7 @@ var require_query = __commonJS({
|
|
|
87788
87792
|
});
|
|
87789
87793
|
|
|
87790
87794
|
// ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/index.js
|
|
87791
|
-
var
|
|
87795
|
+
var require_dist2 = __commonJS({
|
|
87792
87796
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/index.js"(exports) {
|
|
87793
87797
|
"use strict";
|
|
87794
87798
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -117409,6 +117413,156 @@ var require_get3 = __commonJS({
|
|
|
117409
117413
|
}
|
|
117410
117414
|
});
|
|
117411
117415
|
|
|
117416
|
+
// ../../../../node_modules/.pnpm/rslog@1.1.0/node_modules/rslog/dist/lib/index.js
|
|
117417
|
+
var require_lib3 = __commonJS({
|
|
117418
|
+
"../../../../node_modules/.pnpm/rslog@1.1.0/node_modules/rslog/dist/lib/index.js"(exports, module2) {
|
|
117419
|
+
"use strict";
|
|
117420
|
+
var B = Object.create;
|
|
117421
|
+
var E = Object.defineProperty;
|
|
117422
|
+
var D = Object.getOwnPropertyDescriptor;
|
|
117423
|
+
var j = Object.getOwnPropertyNames;
|
|
117424
|
+
var U = Object.getPrototypeOf;
|
|
117425
|
+
var W = Object.prototype.hasOwnProperty;
|
|
117426
|
+
var H = (r, e) => {
|
|
117427
|
+
for (var o in e)
|
|
117428
|
+
E(r, o, { get: e[o], enumerable: true });
|
|
117429
|
+
};
|
|
117430
|
+
var A = (r, e, o, i) => {
|
|
117431
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
117432
|
+
for (let t of j(e))
|
|
117433
|
+
!W.call(r, t) && t !== o && E(r, t, { get: () => e[t], enumerable: !(i = D(e, t)) || i.enumerable });
|
|
117434
|
+
return r;
|
|
117435
|
+
};
|
|
117436
|
+
var C = (r, e, o) => (o = r != null ? B(U(r)) : {}, A(e || !r || !r.__esModule ? E(o, "default", { value: r, enumerable: true }) : o, r));
|
|
117437
|
+
var K = (r) => A(E({}, "__esModule", { value: true }), r);
|
|
117438
|
+
var er = {};
|
|
117439
|
+
H(er, { createLogger: () => R, logger: () => rr });
|
|
117440
|
+
module2.exports = K(er);
|
|
117441
|
+
var O = C(require("process"));
|
|
117442
|
+
var F = C(require("os"));
|
|
117443
|
+
var y = C(require("tty"));
|
|
117444
|
+
function a(r, e = globalThis.Deno ? globalThis.Deno.args : O.default.argv) {
|
|
117445
|
+
let o = r.startsWith("-") ? "" : r.length === 1 ? "-" : "--", i = e.indexOf(o + r), t = e.indexOf("--");
|
|
117446
|
+
return i !== -1 && (t === -1 || i < t);
|
|
117447
|
+
}
|
|
117448
|
+
var { env: l } = O.default;
|
|
117449
|
+
var L;
|
|
117450
|
+
a("no-color") || a("no-colors") || a("color=false") || a("color=never") ? L = 0 : (a("color") || a("colors") || a("color=true") || a("color=always")) && (L = 1);
|
|
117451
|
+
function q() {
|
|
117452
|
+
if ("FORCE_COLOR" in l)
|
|
117453
|
+
return l.FORCE_COLOR === "true" ? 1 : l.FORCE_COLOR === "false" ? 0 : l.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(l.FORCE_COLOR, 10), 3);
|
|
117454
|
+
}
|
|
117455
|
+
function z(r) {
|
|
117456
|
+
return r === 0 ? false : { level: r, hasBasic: true, has256: r >= 2, has16m: r >= 3 };
|
|
117457
|
+
}
|
|
117458
|
+
function J(r, { streamIsTTY: e, sniffFlags: o = true } = {}) {
|
|
117459
|
+
let i = q();
|
|
117460
|
+
i !== void 0 && (L = i);
|
|
117461
|
+
let t = o ? L : i;
|
|
117462
|
+
if (t === 0)
|
|
117463
|
+
return 0;
|
|
117464
|
+
if (o) {
|
|
117465
|
+
if (a("color=16m") || a("color=full") || a("color=truecolor"))
|
|
117466
|
+
return 3;
|
|
117467
|
+
if (a("color=256"))
|
|
117468
|
+
return 2;
|
|
117469
|
+
}
|
|
117470
|
+
if ("TF_BUILD" in l && "AGENT_NAME" in l)
|
|
117471
|
+
return 1;
|
|
117472
|
+
if (r && !e && t === void 0)
|
|
117473
|
+
return 0;
|
|
117474
|
+
let n = t || 0;
|
|
117475
|
+
if (l.TERM === "dumb")
|
|
117476
|
+
return n;
|
|
117477
|
+
if (O.default.platform === "win32") {
|
|
117478
|
+
let s = F.default.release().split(".");
|
|
117479
|
+
return Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1;
|
|
117480
|
+
}
|
|
117481
|
+
if ("CI" in l)
|
|
117482
|
+
return "GITHUB_ACTIONS" in l || "GITEA_ACTIONS" in l ? 3 : ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((s) => s in l) || l.CI_NAME === "codeship" ? 1 : n;
|
|
117483
|
+
if ("TEAMCITY_VERSION" in l)
|
|
117484
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION) ? 1 : 0;
|
|
117485
|
+
if (l.COLORTERM === "truecolor" || l.TERM === "xterm-kitty")
|
|
117486
|
+
return 3;
|
|
117487
|
+
if ("TERM_PROGRAM" in l) {
|
|
117488
|
+
let s = Number.parseInt((l.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
117489
|
+
switch (l.TERM_PROGRAM) {
|
|
117490
|
+
case "iTerm.app":
|
|
117491
|
+
return s >= 3 ? 3 : 2;
|
|
117492
|
+
case "Apple_Terminal":
|
|
117493
|
+
return 2;
|
|
117494
|
+
}
|
|
117495
|
+
}
|
|
117496
|
+
return /-256(color)?$/i.test(l.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM) || "COLORTERM" in l ? 1 : n;
|
|
117497
|
+
}
|
|
117498
|
+
function N(r, e = {}) {
|
|
117499
|
+
let o = J(r, { streamIsTTY: r && r.isTTY, ...e });
|
|
117500
|
+
return z(o);
|
|
117501
|
+
}
|
|
117502
|
+
var Q = { stdout: N({ isTTY: y.default.isatty(1) }), stderr: N({ isTTY: y.default.isatty(2) }) };
|
|
117503
|
+
var M = Q;
|
|
117504
|
+
var x = M.stdout ? M.stdout.level : 0;
|
|
117505
|
+
var X = /^\s*at\s.*:\d+:\d+[\s)]*$/;
|
|
117506
|
+
var Z = /^\s*at\s.*\(<anonymous>\)$/;
|
|
117507
|
+
var $ = (r) => X.test(r) || Z.test(r);
|
|
117508
|
+
var p = (r, e, o = r) => x >= 2 ? (i) => {
|
|
117509
|
+
let t = "" + i, n = t.indexOf(e, r.length);
|
|
117510
|
+
return ~n ? r + G(t, e, o, n) + e : r + t + e;
|
|
117511
|
+
} : String;
|
|
117512
|
+
var G = (r, e, o, i) => {
|
|
117513
|
+
let t = r.substring(0, i) + o, n = r.substring(i + e.length), s = n.indexOf(e);
|
|
117514
|
+
return ~s ? t + G(n, e, o, s) : t + n;
|
|
117515
|
+
};
|
|
117516
|
+
var b = p("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m");
|
|
117517
|
+
var w = p("\x1B[31m", "\x1B[39m");
|
|
117518
|
+
var h = p("\x1B[32m", "\x1B[39m");
|
|
117519
|
+
var Y = p("\x1B[33m", "\x1B[39m");
|
|
117520
|
+
var P = p("\x1B[35m", "\x1B[39m");
|
|
117521
|
+
var d = p("\x1B[36m", "\x1B[39m");
|
|
117522
|
+
var v = p("\x1B[90m", "\x1B[39m");
|
|
117523
|
+
var _ = [189, 255, 243];
|
|
117524
|
+
var I = [74, 194, 154];
|
|
117525
|
+
var k = (r) => !/[\s\n]/.test(r);
|
|
117526
|
+
var V = (r) => {
|
|
117527
|
+
if (x < 3)
|
|
117528
|
+
return x === 2 ? b(d(r)) : r;
|
|
117529
|
+
let e = [...r], o = e.filter(k).length, i = _[0], t = _[1], n = _[2], s = (I[0] - i) / o, u = (I[1] - t) / o, f = (I[2] - n) / o, c = "";
|
|
117530
|
+
for (let g of e)
|
|
117531
|
+
k(g) && (i += s, t += u, n += f), c += `\x1B[38;2;${Math.round(i)};${Math.round(t)};${Math.round(n)}m${g}\x1B[39m`;
|
|
117532
|
+
return b(c);
|
|
117533
|
+
};
|
|
117534
|
+
var S = { error: 0, warn: 1, info: 2, log: 3, verbose: 4 };
|
|
117535
|
+
var T = { error: { label: "error", level: "error", color: w }, warn: { label: "warn", level: "warn", color: Y }, info: { label: "info", level: "info", color: d }, start: { label: "start", level: "info", color: d }, ready: { label: "ready", level: "info", color: h }, success: { label: "success", level: "info", color: h }, log: { level: "log" }, debug: { label: "debug", level: "verbose", color: P } };
|
|
117536
|
+
var R = (r = {}) => {
|
|
117537
|
+
let e = r.level || "log", o = (t, n, ...s) => {
|
|
117538
|
+
if (S[T[t].level] > S[e])
|
|
117539
|
+
return;
|
|
117540
|
+
if (n == null)
|
|
117541
|
+
return console.log();
|
|
117542
|
+
let u = T[t], f = "", c = "";
|
|
117543
|
+
if ("label" in u && (f = (u.label || "").padEnd(7), f = b(u.color ? u.color(f) : f)), n instanceof Error)
|
|
117544
|
+
if (n.stack) {
|
|
117545
|
+
let [g, ...m] = n.stack.split(`
|
|
117546
|
+
`);
|
|
117547
|
+
c = `${g.replace("Error: ", "")}
|
|
117548
|
+
${v(m.join(`
|
|
117549
|
+
`))}`;
|
|
117550
|
+
} else
|
|
117551
|
+
c = n.message;
|
|
117552
|
+
else
|
|
117553
|
+
u.level === "error" && typeof n == "string" ? c = n.split(`
|
|
117554
|
+
`).map((m) => $(m) ? v(m) : m).join(`
|
|
117555
|
+
`) : c = `${n}`;
|
|
117556
|
+
console.log(f.length ? `${f} ${c}` : c, ...s);
|
|
117557
|
+
}, i = { greet: (t) => o("log", V(t)) };
|
|
117558
|
+
return Object.keys(T).forEach((t) => {
|
|
117559
|
+
i[t] = (...n) => o(t, ...n);
|
|
117560
|
+
}), i;
|
|
117561
|
+
};
|
|
117562
|
+
var rr = R();
|
|
117563
|
+
}
|
|
117564
|
+
});
|
|
117565
|
+
|
|
117412
117566
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
117413
117567
|
var require_logger3 = __commonJS({
|
|
117414
117568
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports, module2) {
|
|
@@ -117436,7 +117590,7 @@ var require_logger3 = __commonJS({
|
|
|
117436
117590
|
logger: () => import_rslog.logger
|
|
117437
117591
|
});
|
|
117438
117592
|
module2.exports = __toCommonJS2(logger_exports);
|
|
117439
|
-
var import_rslog =
|
|
117593
|
+
var import_rslog = require_lib3();
|
|
117440
117594
|
}
|
|
117441
117595
|
});
|
|
117442
117596
|
|
|
@@ -118455,12 +118609,12 @@ function _define_property(obj, key, value) {
|
|
|
118455
118609
|
return obj;
|
|
118456
118610
|
}
|
|
118457
118611
|
|
|
118458
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
118612
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
118459
118613
|
var import_utils12 = __toESM(require_cjs());
|
|
118460
118614
|
var import_lodash5 = __toESM(require_lodash2());
|
|
118461
118615
|
var import_comment_json = __toESM(require_src2());
|
|
118462
118616
|
|
|
118463
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
118617
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
|
118464
118618
|
var import_utils = __toESM(require_cjs());
|
|
118465
118619
|
async function canUseNvm() {
|
|
118466
118620
|
try {
|
|
@@ -118510,7 +118664,7 @@ async function canUsePnpm() {
|
|
|
118510
118664
|
}
|
|
118511
118665
|
}
|
|
118512
118666
|
|
|
118513
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
118667
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
118514
118668
|
var import_utils2 = __toESM(require_cjs());
|
|
118515
118669
|
function execaWithStreamLog(command, args, options) {
|
|
118516
118670
|
const promise = (0, import_utils2.execa)(command, args, {
|
|
@@ -118606,7 +118760,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
|
118606
118760
|
throw new Error("please install pnpm first");
|
|
118607
118761
|
}
|
|
118608
118762
|
|
|
118609
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
118763
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
118610
118764
|
var NpmAPI = class {
|
|
118611
118765
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
118612
118766
|
return npmInstall({
|
|
@@ -118635,7 +118789,7 @@ var NpmAPI = class {
|
|
|
118635
118789
|
}
|
|
118636
118790
|
};
|
|
118637
118791
|
|
|
118638
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
118792
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
118639
118793
|
var import_utils4 = __toESM(require_cjs());
|
|
118640
118794
|
async function canUseGit() {
|
|
118641
118795
|
try {
|
|
@@ -118710,7 +118864,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
|
118710
118864
|
});
|
|
118711
118865
|
}
|
|
118712
118866
|
|
|
118713
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
118867
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
118714
118868
|
var GitAPI = class {
|
|
118715
118869
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
|
118716
118870
|
const canUse = await canUseGit();
|
|
@@ -118762,11 +118916,11 @@ var GitAPI = class {
|
|
|
118762
118916
|
}
|
|
118763
118917
|
};
|
|
118764
118918
|
|
|
118765
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
118919
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
118766
118920
|
var import_path = __toESM(require("path"));
|
|
118767
118921
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
118768
118922
|
|
|
118769
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
118923
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
118770
118924
|
var import_utils6 = __toESM(require_cjs());
|
|
118771
118925
|
async function fsExists(path6) {
|
|
118772
118926
|
try {
|
|
@@ -118777,8 +118931,8 @@ async function fsExists(path6) {
|
|
|
118777
118931
|
}
|
|
118778
118932
|
}
|
|
118779
118933
|
|
|
118780
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
118781
|
-
var import_handlebars = __toESM(
|
|
118934
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
118935
|
+
var import_handlebars = __toESM(require_lib());
|
|
118782
118936
|
function renderString(template, fullData, registers) {
|
|
118783
118937
|
const helpers = {
|
|
118784
118938
|
...registers === null || registers === void 0 ? void 0 : registers.helpers
|
|
@@ -118791,7 +118945,7 @@ function renderString(template, fullData, registers) {
|
|
|
118791
118945
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
118792
118946
|
}
|
|
118793
118947
|
|
|
118794
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
118948
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
118795
118949
|
var HandlebarsAPI = class {
|
|
118796
118950
|
async registerHelp(helpers) {
|
|
118797
118951
|
this.registers.helpers = {
|
|
@@ -118841,13 +118995,13 @@ var HandlebarsAPI = class {
|
|
|
118841
118995
|
}
|
|
118842
118996
|
};
|
|
118843
118997
|
|
|
118844
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
118998
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
118845
118999
|
var import_ejs = __toESM(require_ejs());
|
|
118846
119000
|
function renderString2(template, fullData) {
|
|
118847
119001
|
return import_ejs.default.render(template, fullData) || "";
|
|
118848
119002
|
}
|
|
118849
119003
|
|
|
118850
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
119004
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
118851
119005
|
var EjsAPI = class {
|
|
118852
119006
|
async renderTemplate(templateResource, target, parameters = {}) {
|
|
118853
119007
|
if (templateResource._type !== FS_RESOURCE) {
|
|
@@ -118880,7 +119034,7 @@ var EjsAPI = class {
|
|
|
118880
119034
|
}
|
|
118881
119035
|
};
|
|
118882
119036
|
|
|
118883
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
|
119037
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
118884
119038
|
var import_path2 = __toESM(require("path"));
|
|
118885
119039
|
var import_utils9 = __toESM(require_cjs());
|
|
118886
119040
|
var FsAPI = class {
|
|
@@ -128464,10 +128618,10 @@ var Schema = (
|
|
|
128464
128618
|
}()
|
|
128465
128619
|
);
|
|
128466
128620
|
|
|
128467
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128621
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
128468
128622
|
var import_inquirer = __toESM(require_inquirer());
|
|
128469
128623
|
|
|
128470
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128624
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
128471
128625
|
var import_lodash = __toESM(require_lodash2());
|
|
128472
128626
|
function validateSchema(schema) {
|
|
128473
128627
|
const { type, properties } = schema;
|
|
@@ -128559,7 +128713,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
128559
128713
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
128560
128714
|
}
|
|
128561
128715
|
|
|
128562
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128716
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
128563
128717
|
var compileRule = (rule, scope) => {
|
|
128564
128718
|
const state = Schema.compile(rule, {
|
|
128565
128719
|
$self: {},
|
|
@@ -128663,7 +128817,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
128663
128817
|
return answers;
|
|
128664
128818
|
}
|
|
128665
128819
|
|
|
128666
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128820
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
128667
128821
|
var CLIReader = class {
|
|
128668
128822
|
getAnswers() {
|
|
128669
128823
|
return this.answers;
|
|
@@ -128694,7 +128848,7 @@ var CLIReader = class {
|
|
|
128694
128848
|
}
|
|
128695
128849
|
};
|
|
128696
128850
|
|
|
128697
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128851
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
128698
128852
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
128699
128853
|
|
|
128700
128854
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -128760,7 +128914,7 @@ var I18n = class {
|
|
|
128760
128914
|
}
|
|
128761
128915
|
};
|
|
128762
128916
|
|
|
128763
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128917
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
128764
128918
|
var ZH_LOCALE = {
|
|
128765
128919
|
environment: {
|
|
128766
128920
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -128787,7 +128941,7 @@ var ZH_LOCALE = {
|
|
|
128787
128941
|
}
|
|
128788
128942
|
};
|
|
128789
128943
|
|
|
128790
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128944
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
128791
128945
|
var EN_LOCALE = {
|
|
128792
128946
|
environment: {
|
|
128793
128947
|
node_version: "please upgrade node to lts version",
|
|
@@ -128814,14 +128968,14 @@ var EN_LOCALE = {
|
|
|
128814
128968
|
}
|
|
128815
128969
|
};
|
|
128816
128970
|
|
|
128817
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128971
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
128818
128972
|
var i18n = new I18n();
|
|
128819
128973
|
var localeKeys = i18n.init("zh", {
|
|
128820
128974
|
zh: ZH_LOCALE,
|
|
128821
128975
|
en: EN_LOCALE
|
|
128822
128976
|
});
|
|
128823
128977
|
|
|
128824
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128978
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
128825
128979
|
var import_lodash4 = __toESM(require_lodash2());
|
|
128826
128980
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
128827
128981
|
for (const question of questions) {
|
|
@@ -128849,7 +129003,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
128849
129003
|
return questions;
|
|
128850
129004
|
}
|
|
128851
129005
|
|
|
128852
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
129006
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
128853
129007
|
var import_path4 = __toESM(require("path"));
|
|
128854
129008
|
var import_utils11 = __toESM(require_cjs());
|
|
128855
129009
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -128897,7 +129051,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
|
128897
129051
|
}
|
|
128898
129052
|
}
|
|
128899
129053
|
|
|
128900
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
129054
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
128901
129055
|
var AppAPI = class {
|
|
128902
129056
|
async checkEnvironment(nodeVersion) {
|
|
128903
129057
|
if (import_utils12.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
|
@@ -129137,11 +129291,11 @@ var AppAPI = class {
|
|
|
129137
129291
|
}
|
|
129138
129292
|
};
|
|
129139
129293
|
|
|
129140
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
129294
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
129141
129295
|
var import_comment_json2 = __toESM(require_src2());
|
|
129142
|
-
var declarationUpdate = __toESM(
|
|
129296
|
+
var declarationUpdate = __toESM(require_dist2());
|
|
129143
129297
|
|
|
129144
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
129298
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
129145
129299
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
129146
129300
|
const originJsonValue = await resource.value();
|
|
129147
129301
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
|
@@ -129154,7 +129308,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
129154
129308
|
return newJsonString;
|
|
129155
129309
|
}
|
|
129156
129310
|
|
|
129157
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
129311
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
129158
129312
|
var JsonAPI = class {
|
|
129159
129313
|
async get(resource) {
|
|
129160
129314
|
const originJsonValue = await resource.value();
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.3.
|
|
18
|
+
"version": "3.3.10",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith": "2.3.
|
|
27
|
-
"@modern-js/codesmith-api-app": "2.3.
|
|
28
|
-
"@modern-js/codesmith-api-json": "2.3.
|
|
26
|
+
"@modern-js/codesmith": "2.3.5",
|
|
27
|
+
"@modern-js/codesmith-api-app": "2.3.5",
|
|
28
|
+
"@modern-js/codesmith-api-json": "2.3.5",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/dependence-generator": "3.3.
|
|
34
|
-
"@modern-js/generator-utils": "3.3.
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@scripts/
|
|
38
|
-
"@scripts/
|
|
33
|
+
"@modern-js/dependence-generator": "3.3.10",
|
|
34
|
+
"@modern-js/generator-utils": "3.3.10",
|
|
35
|
+
"@modern-js/generator-common": "3.3.10",
|
|
36
|
+
"@modern-js/plugin-i18n": "2.47.1",
|
|
37
|
+
"@scripts/build": "2.47.1",
|
|
38
|
+
"@scripts/jest-config": "2.47.1"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|