@modern-js/upgrade 1.18.0 → 1.18.1-alpha.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 +14 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -35553,8 +35553,10 @@ var require_path = __commonJSMin((exports) => {
35553
35553
  return mod && mod.__esModule ? mod : { "default": mod };
35554
35554
  };
35555
35555
  Object.defineProperty(exports, "__esModule", { value: true });
35556
- exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
35556
+ exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
35557
35557
  var path_1 = __importDefault(__require("path"));
35558
+ var os_1 = __importDefault(__require("os"));
35559
+ var fs_1 = __importDefault(__require("fs"));
35558
35560
  var compiled_1 = require_compiled();
35559
35561
  var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
35560
35562
  exports.isPathString = isPathString;
@@ -35564,6 +35566,14 @@ var require_path = __commonJSMin((exports) => {
35564
35566
  exports.normalizeOutputPath = normalizeOutputPath;
35565
35567
  var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
35566
35568
  exports.normalizeToPosixPath = normalizeToPosixPath;
35569
+ var getTemplatePath = (prefix) => {
35570
+ const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
35571
+ const parts = [tmpRoot];
35572
+ prefix && parts.push(prefix);
35573
+ parts.push((0, compiled_1.nanoid)());
35574
+ return path_1.default.resolve(...parts);
35575
+ };
35576
+ exports.getTemplatePath = getTemplatePath;
35567
35577
  });
35568
35578
  var require_runtimeExports = __commonJSMin((exports) => {
35569
35579
  "use strict";
@@ -36105,6 +36115,7 @@ var require_chainId = __commonJSMin((exports) => {
36105
36115
  IMAGE: "image",
36106
36116
  MEDIA: "media",
36107
36117
  JS: "js",
36118
+ JS_DATA_URI: "js-data-uri",
36108
36119
  TS: "ts",
36109
36120
  CSS: "css",
36110
36121
  LESS: "less",
@@ -36176,8 +36187,8 @@ var require_chainId = __commonJSMin((exports) => {
36176
36187
  MINI_CSS_EXTRACT: "mini-css-extract",
36177
36188
  REACT_FAST_REFRESH: "react-fast-refresh",
36178
36189
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
36179
- MODULE_DEPENDENCY_ERROR: "module-dependency-error",
36180
- SUBRESOURCE_INTEGRITY: "subresource-integrity"
36190
+ SUBRESOURCE_INTEGRITY: "subresource-integrity",
36191
+ ASSETS_RETRY: "ASSETS_RETRY"
36181
36192
  },
36182
36193
  MINIMIZER: {
36183
36194
  JS: "js",
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.18.0",
14
+ "version": "1.18.1-alpha.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -34,12 +34,12 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/runtime": "^7.18.0",
37
- "@modern-js/utils": "1.18.0",
37
+ "@modern-js/utils": "1.18.1-alpha.0",
38
38
  "@modern-js/codesmith": "^1.5.0",
39
- "@modern-js/plugin-i18n": "1.18.0",
40
- "@modern-js/upgrade-generator": "2.3.3",
41
- "@scripts/build": "1.18.0",
42
- "@scripts/jest-config": "1.18.0",
39
+ "@modern-js/plugin-i18n": "1.18.1-alpha.0",
40
+ "@modern-js/upgrade-generator": "2.3.4-alpha.0",
41
+ "@scripts/build": "1.18.1-alpha.0",
42
+ "@scripts/jest-config": "1.18.1-alpha.0",
43
43
  "@types/jest": "^27",
44
44
  "@types/node": "^14",
45
45
  "jest": "^27",