@modern-js/base-generator 3.1.25 → 3.1.27

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 +6 -44
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -115182,6 +115182,9 @@ var require_path = __commonJS({
115182
115182
  },
115183
115183
  removeSlash: function() {
115184
115184
  return removeSlash;
115185
+ },
115186
+ cutNameByHyphen: function() {
115187
+ return cutNameByHyphen;
115185
115188
  }
115186
115189
  });
115187
115190
  var _interop_require_default = require_interop_require_default();
@@ -115231,6 +115234,9 @@ var require_path = __commonJS({
115231
115234
  var removeLeadingSlash = (s) => s.replace(/^\/+/, "");
115232
115235
  var removeTailSlash = (s) => s.replace(/\/+$/, "");
115233
115236
  var removeSlash = (s) => removeLeadingSlash(removeTailSlash(s));
115237
+ var cutNameByHyphen = (s) => {
115238
+ return s.split(/[-_]/)[0];
115239
+ };
115234
115240
  }
115235
115241
  });
115236
115242
 
@@ -115706,49 +115712,6 @@ var require_prettyInstructions = __commonJS({
115706
115712
  }
115707
115713
  });
115708
115714
 
115709
- // ../../../toolkit/utils/dist/cjs/cli/print.js
115710
- var require_print = __commonJS({
115711
- "../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
115712
- "use strict";
115713
- Object.defineProperty(exports, "__esModule", {
115714
- value: true
115715
- });
115716
- Object.defineProperty(exports, "printBuildError", {
115717
- enumerable: true,
115718
- get: function() {
115719
- return printBuildError;
115720
- }
115721
- });
115722
- var _compiled = require_compiled();
115723
- var _logger = require_logger2();
115724
- function printBuildError(err) {
115725
- const message = err != null && err.message;
115726
- const stack = err != null && err.stack;
115727
- if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
115728
- try {
115729
- const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
115730
- if (!matched) {
115731
- throw new Error("Using errors for control flow is bad.");
115732
- }
115733
- const problemPath = matched[2];
115734
- const line = matched[3];
115735
- const column = matched[4];
115736
- _logger.logger.error(`Failed to minify the code from this file:
115737
-
115738
- ${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
115739
- `);
115740
- } catch (ignored) {
115741
- _logger.logger.error(`Failed to minify the bundle. ${err}
115742
- `);
115743
- }
115744
- } else {
115745
- _logger.logger.error((message || err) + "\n");
115746
- }
115747
- _logger.logger.log();
115748
- }
115749
- }
115750
- });
115751
-
115752
115715
  // ../../../toolkit/utils/dist/cjs/cli/require.js
115753
115716
  var require_require = __commonJS({
115754
115717
  "../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
@@ -115981,7 +115944,6 @@ var require_cli = __commonJS({
115981
115944
  _export_star._(require_pathSerializer(), exports);
115982
115945
  _export_star._(require_port(), exports);
115983
115946
  _export_star._(require_prettyInstructions(), exports);
115984
- _export_star._(require_print(), exports);
115985
115947
  _export_star._(require_require(), exports);
115986
115948
  _export_star._(require_runtimeExports(), exports);
115987
115949
  _export_star._(require_watch(), exports);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.25",
18
+ "version": "3.1.27",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -30,10 +30,10 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-utils": "3.1.25",
34
- "@scripts/build": "2.24.1",
35
- "@modern-js/generator-common": "3.1.25",
36
- "@scripts/jest-config": "2.24.1"
33
+ "@modern-js/generator-utils": "3.1.27",
34
+ "@scripts/build": "2.25.2",
35
+ "@modern-js/generator-common": "3.1.27",
36
+ "@scripts/jest-config": "2.25.2"
37
37
  },
38
38
  "sideEffects": false,
39
39
  "publishConfig": {