@modern-js/server-generator 2.3.3 → 2.3.4
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 +14 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -35555,8 +35555,10 @@ var require_path = __commonJSMin((exports) => {
|
|
|
35555
35555
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35556
35556
|
};
|
|
35557
35557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35558
|
-
exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
35558
|
+
exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
35559
35559
|
var path_1 = __importDefault(__require("path"));
|
|
35560
|
+
var os_1 = __importDefault(__require("os"));
|
|
35561
|
+
var fs_1 = __importDefault(__require("fs"));
|
|
35560
35562
|
var compiled_1 = require_compiled();
|
|
35561
35563
|
var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
|
|
35562
35564
|
exports.isPathString = isPathString;
|
|
@@ -35566,6 +35568,14 @@ var require_path = __commonJSMin((exports) => {
|
|
|
35566
35568
|
exports.normalizeOutputPath = normalizeOutputPath;
|
|
35567
35569
|
var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
|
|
35568
35570
|
exports.normalizeToPosixPath = normalizeToPosixPath;
|
|
35571
|
+
var getTemplatePath = (prefix) => {
|
|
35572
|
+
const tmpRoot = fs_1.default.realpathSync(os_1.default.tmpdir());
|
|
35573
|
+
const parts = [tmpRoot];
|
|
35574
|
+
prefix && parts.push(prefix);
|
|
35575
|
+
parts.push((0, compiled_1.nanoid)());
|
|
35576
|
+
return path_1.default.resolve(...parts);
|
|
35577
|
+
};
|
|
35578
|
+
exports.getTemplatePath = getTemplatePath;
|
|
35569
35579
|
});
|
|
35570
35580
|
var require_runtimeExports = __commonJSMin((exports) => {
|
|
35571
35581
|
"use strict";
|
|
@@ -36107,6 +36117,7 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36107
36117
|
IMAGE: "image",
|
|
36108
36118
|
MEDIA: "media",
|
|
36109
36119
|
JS: "js",
|
|
36120
|
+
JS_DATA_URI: "js-data-uri",
|
|
36110
36121
|
TS: "ts",
|
|
36111
36122
|
CSS: "css",
|
|
36112
36123
|
LESS: "less",
|
|
@@ -36178,8 +36189,8 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36178
36189
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
36179
36190
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
36180
36191
|
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
36181
|
-
|
|
36182
|
-
|
|
36192
|
+
SUBRESOURCE_INTEGRITY: "subresource-integrity",
|
|
36193
|
+
ASSETS_RETRY: "ASSETS_RETRY"
|
|
36183
36194
|
},
|
|
36184
36195
|
MINIMIZER: {
|
|
36185
36196
|
JS: "js",
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.3.
|
|
14
|
+
"version": "2.3.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./src/index.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@modern-js/codesmith": "^1.5.0",
|
|
25
25
|
"@modern-js/codesmith-api-app": "^1.5.0",
|
|
26
26
|
"@modern-js/codesmith-api-json": "^1.5.0",
|
|
27
|
-
"@modern-js/generator-common": "2.3.
|
|
28
|
-
"@modern-js/generator-utils": "2.3.
|
|
29
|
-
"@scripts/build": "1.18.
|
|
30
|
-
"@scripts/jest-config": "1.18.
|
|
27
|
+
"@modern-js/generator-common": "2.3.4",
|
|
28
|
+
"@modern-js/generator-utils": "2.3.4",
|
|
29
|
+
"@scripts/build": "1.18.1",
|
|
30
|
+
"@scripts/jest-config": "1.18.1",
|
|
31
31
|
"@types/jest": "^27",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^27",
|