@modern-js/ssg-generator 3.1.38 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +71 -55
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -98904,7 +98904,7 @@ var require_js_yaml2 = __commonJS({
98904
98904
  var require_debug2 = __commonJS({
98905
98905
  "../../../toolkit/utils/dist/compiled/debug/index.js"(exports, module2) {
98906
98906
  (() => {
98907
- var e = { 20: (e2, t2, r2) => {
98907
+ var e = { 434: (e2, t2, r2) => {
98908
98908
  t2.formatArgs = formatArgs;
98909
98909
  t2.save = save;
98910
98910
  t2.load = load;
@@ -98978,7 +98978,7 @@ var require_debug2 = __commonJS({
98978
98978
  } catch (e3) {
98979
98979
  }
98980
98980
  }
98981
- e2.exports = r2(530)(t2);
98981
+ e2.exports = r2(290)(t2);
98982
98982
  const { formatters: s } = e2.exports;
98983
98983
  s.j = function(e3) {
98984
98984
  try {
@@ -98987,7 +98987,7 @@ var require_debug2 = __commonJS({
98987
98987
  return "[UnexpectedJSONParseError]: " + e4.message;
98988
98988
  }
98989
98989
  };
98990
- }, 530: (e2, t2, r2) => {
98990
+ }, 290: (e2, t2, r2) => {
98991
98991
  function setup(e3) {
98992
98992
  createDebug.debug = createDebug;
98993
98993
  createDebug.default = createDebug;
@@ -99137,13 +99137,13 @@ var require_debug2 = __commonJS({
99137
99137
  return createDebug;
99138
99138
  }
99139
99139
  e2.exports = setup;
99140
- }, 731: (e2, t2, r2) => {
99140
+ }, 372: (e2, t2, r2) => {
99141
99141
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
99142
- e2.exports = r2(20);
99142
+ e2.exports = r2(434);
99143
99143
  } else {
99144
- e2.exports = r2(689);
99144
+ e2.exports = r2(970);
99145
99145
  }
99146
- }, 689: (e2, t2, r2) => {
99146
+ }, 970: (e2, t2, r2) => {
99147
99147
  const s = r2(224);
99148
99148
  const n = r2(837);
99149
99149
  t2.init = init;
@@ -99156,7 +99156,7 @@ var require_debug2 = __commonJS({
99156
99156
  }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
99157
99157
  t2.colors = [6, 2, 3, 4, 5, 1];
99158
99158
  try {
99159
- const e3 = r2(242);
99159
+ const e3 = r2(332);
99160
99160
  if (e3 && (e3.stderr || e3).level >= 2) {
99161
99161
  t2.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
99162
99162
  }
@@ -99218,7 +99218,7 @@ var require_debug2 = __commonJS({
99218
99218
  e3.inspectOpts[r3[s2]] = t2.inspectOpts[r3[s2]];
99219
99219
  }
99220
99220
  }
99221
- e2.exports = r2(530)(t2);
99221
+ e2.exports = r2(290)(t2);
99222
99222
  const { formatters: o } = e2.exports;
99223
99223
  o.o = function(e3) {
99224
99224
  this.inspectOpts.colors = this.useColors;
@@ -99228,13 +99228,14 @@ var require_debug2 = __commonJS({
99228
99228
  this.inspectOpts.colors = this.useColors;
99229
99229
  return n.inspect(e3, this.inspectOpts);
99230
99230
  };
99231
- }, 975: (e2) => {
99231
+ }, 419: (e2) => {
99232
99232
  "use strict";
99233
- e2.exports = (e3, t2 = process.argv) => {
99233
+ e2.exports = (e3, t2) => {
99234
+ t2 = t2 || process.argv;
99234
99235
  const r2 = e3.startsWith("-") ? "" : e3.length === 1 ? "-" : "--";
99235
99236
  const s = t2.indexOf(r2 + e3);
99236
99237
  const n = t2.indexOf("--");
99237
- return s !== -1 && (n === -1 || s < n);
99238
+ return s !== -1 && (n === -1 ? true : s < n);
99238
99239
  };
99239
99240
  }, 367: (e2) => {
99240
99241
  var t2 = 1e3;
@@ -99343,26 +99344,19 @@ var require_debug2 = __commonJS({
99343
99344
  var n2 = t3 >= r3 * 1.5;
99344
99345
  return Math.round(e3 / r3) + " " + s2 + (n2 ? "s" : "");
99345
99346
  }
99346
- }, 242: (e2, t2, r2) => {
99347
+ }, 332: (e2, t2, r2) => {
99347
99348
  "use strict";
99348
99349
  const s = r2(37);
99349
- const n = r2(224);
99350
- const o = r2(975);
99351
- const { env: a } = process;
99352
- let c;
99353
- if (o("no-color") || o("no-colors") || o("color=false") || o("color=never")) {
99354
- c = 0;
99355
- } else if (o("color") || o("colors") || o("color=true") || o("color=always")) {
99356
- c = 1;
99350
+ const n = r2(419);
99351
+ const o = process.env;
99352
+ let a;
99353
+ if (n("no-color") || n("no-colors") || n("color=false")) {
99354
+ a = false;
99355
+ } else if (n("color") || n("colors") || n("color=true") || n("color=always")) {
99356
+ a = true;
99357
99357
  }
99358
- if ("FORCE_COLOR" in a) {
99359
- if (a.FORCE_COLOR === "true") {
99360
- c = 1;
99361
- } else if (a.FORCE_COLOR === "false") {
99362
- c = 0;
99363
- } else {
99364
- c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
99365
- }
99358
+ if ("FORCE_COLOR" in o) {
99359
+ a = o.FORCE_COLOR.length === 0 || parseInt(o.FORCE_COLOR, 10) !== 0;
99366
99360
  }
99367
99361
  function translateLevel(e3) {
99368
99362
  if (e3 === 0) {
@@ -99370,67 +99364,67 @@ var require_debug2 = __commonJS({
99370
99364
  }
99371
99365
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
99372
99366
  }
99373
- function supportsColor(e3, t3) {
99374
- if (c === 0) {
99367
+ function supportsColor(e3) {
99368
+ if (a === false) {
99375
99369
  return 0;
99376
99370
  }
99377
- if (o("color=16m") || o("color=full") || o("color=truecolor")) {
99371
+ if (n("color=16m") || n("color=full") || n("color=truecolor")) {
99378
99372
  return 3;
99379
99373
  }
99380
- if (o("color=256")) {
99374
+ if (n("color=256")) {
99381
99375
  return 2;
99382
99376
  }
99383
- if (e3 && !t3 && c === void 0) {
99377
+ if (e3 && !e3.isTTY && a !== true) {
99384
99378
  return 0;
99385
99379
  }
99386
- const r3 = c || 0;
99387
- if (a.TERM === "dumb") {
99388
- return r3;
99389
- }
99380
+ const t3 = a ? 1 : 0;
99390
99381
  if (process.platform === "win32") {
99391
99382
  const e4 = s.release().split(".");
99392
- if (Number(e4[0]) >= 10 && Number(e4[2]) >= 10586) {
99383
+ if (Number(process.versions.node.split(".")[0]) >= 8 && Number(e4[0]) >= 10 && Number(e4[2]) >= 10586) {
99393
99384
  return Number(e4[2]) >= 14931 ? 3 : 2;
99394
99385
  }
99395
99386
  return 1;
99396
99387
  }
99397
- if ("CI" in a) {
99398
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((e4) => e4 in a) || a.CI_NAME === "codeship") {
99388
+ if ("CI" in o) {
99389
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((e4) => e4 in o) || o.CI_NAME === "codeship") {
99399
99390
  return 1;
99400
99391
  }
99401
- return r3;
99392
+ return t3;
99402
99393
  }
99403
- if ("TEAMCITY_VERSION" in a) {
99404
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION) ? 1 : 0;
99394
+ if ("TEAMCITY_VERSION" in o) {
99395
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION) ? 1 : 0;
99405
99396
  }
99406
- if (a.COLORTERM === "truecolor") {
99397
+ if (o.COLORTERM === "truecolor") {
99407
99398
  return 3;
99408
99399
  }
99409
- if ("TERM_PROGRAM" in a) {
99410
- const e4 = parseInt((a.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
99411
- switch (a.TERM_PROGRAM) {
99400
+ if ("TERM_PROGRAM" in o) {
99401
+ const e4 = parseInt((o.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
99402
+ switch (o.TERM_PROGRAM) {
99412
99403
  case "iTerm.app":
99413
99404
  return e4 >= 3 ? 3 : 2;
99414
99405
  case "Apple_Terminal":
99415
99406
  return 2;
99416
99407
  }
99417
99408
  }
99418
- if (/-256(color)?$/i.test(a.TERM)) {
99409
+ if (/-256(color)?$/i.test(o.TERM)) {
99419
99410
  return 2;
99420
99411
  }
99421
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)) {
99412
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)) {
99422
99413
  return 1;
99423
99414
  }
99424
- if ("COLORTERM" in a) {
99415
+ if ("COLORTERM" in o) {
99425
99416
  return 1;
99426
99417
  }
99427
- return r3;
99418
+ if (o.TERM === "dumb") {
99419
+ return t3;
99420
+ }
99421
+ return t3;
99428
99422
  }
99429
99423
  function getSupportLevel(e3) {
99430
- const t3 = supportsColor(e3, e3 && e3.isTTY);
99424
+ const t3 = supportsColor(e3);
99431
99425
  return translateLevel(t3);
99432
99426
  }
99433
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
99427
+ e2.exports = { supportsColor: getSupportLevel, stdout: getSupportLevel(process.stdout), stderr: getSupportLevel(process.stderr) };
99434
99428
  }, 37: (e2) => {
99435
99429
  "use strict";
99436
99430
  e2.exports = require("os");
@@ -99460,7 +99454,7 @@ var require_debug2 = __commonJS({
99460
99454
  }
99461
99455
  if (typeof __nccwpck_require__ !== "undefined")
99462
99456
  __nccwpck_require__.ab = __dirname + "/";
99463
- var r = __nccwpck_require__(731);
99457
+ var r = __nccwpck_require__(372);
99464
99458
  module2.exports = r;
99465
99459
  })();
99466
99460
  }
@@ -117298,6 +117292,27 @@ var require_watch2 = __commonJS({
117298
117292
  }
117299
117293
  });
117300
117294
 
117295
+ // ../../../toolkit/utils/dist/cjs/cli/config.js
117296
+ var require_config6 = __commonJS({
117297
+ "../../../toolkit/utils/dist/cjs/cli/config.js"(exports) {
117298
+ "use strict";
117299
+ Object.defineProperty(exports, "__esModule", {
117300
+ value: true
117301
+ });
117302
+ Object.defineProperty(exports, "isOverriddenConfigKey", {
117303
+ enumerable: true,
117304
+ get: function() {
117305
+ return isOverriddenConfigKey;
117306
+ }
117307
+ });
117308
+ var isOverriddenConfigKey = (key) => [
117309
+ "removeConsole",
117310
+ "enableInlineScripts",
117311
+ "enableInlineStyles"
117312
+ ].includes(key);
117313
+ }
117314
+ });
117315
+
117301
117316
  // ../../../toolkit/utils/dist/cjs/cli/index.js
117302
117317
  var require_cli2 = __commonJS({
117303
117318
  "../../../toolkit/utils/dist/cjs/cli/index.js"(exports) {
@@ -117325,6 +117340,7 @@ var require_cli2 = __commonJS({
117325
117340
  _export_star._(require_require2(), exports);
117326
117341
  _export_star._(require_runtimeExports2(), exports);
117327
117342
  _export_star._(require_watch2(), exports);
117343
+ _export_star._(require_config6(), exports);
117328
117344
  }
117329
117345
  });
117330
117346
 
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.38",
18
+ "version": "3.2.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -29,12 +29,12 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/plugin-i18n": "2.33.0",
33
- "@modern-js/generator-utils": "3.1.38",
34
- "@modern-js/generator-common": "3.1.38",
35
- "@modern-js/dependence-generator": "3.1.38",
36
- "@scripts/build": "2.33.0",
37
- "@scripts/jest-config": "2.33.0"
32
+ "@modern-js/plugin-i18n": "2.34.0",
33
+ "@modern-js/generator-utils": "3.2.0",
34
+ "@modern-js/dependence-generator": "3.2.0",
35
+ "@modern-js/generator-common": "3.2.0",
36
+ "@scripts/build": "2.34.0",
37
+ "@scripts/jest-config": "2.34.0"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {