@modern-js/server-generator 2.4.17 → 2.4.19
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 +0 -4
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -85064,7 +85064,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
85064
85064
|
if (response.status !== 200) {
|
|
85065
85065
|
throw new Error(`download tar package get bad status code: ${response.status}`);
|
|
85066
85066
|
}
|
|
85067
|
-
const contentLength = Number(response.headers["content-length"]);
|
|
85068
85067
|
const randomId = Math.floor(Math.random() * 1e4);
|
|
85069
85068
|
const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
|
|
85070
85069
|
const dest = _utils.fs.createWriteStream(tempTgzFilePath);
|
|
@@ -85077,9 +85076,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
85077
85076
|
resolve();
|
|
85078
85077
|
});
|
|
85079
85078
|
});
|
|
85080
|
-
if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
|
|
85081
|
-
throw new Error("download tar package get bad content length");
|
|
85082
|
-
}
|
|
85083
85079
|
await new Promise((resolve, reject) => {
|
|
85084
85080
|
_utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
|
|
85085
85081
|
strip: 1,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.4.
|
|
14
|
+
"version": "2.4.19",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./src/index.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/runtime": "^7.18.0",
|
|
24
|
-
"@modern-js/codesmith": "1.6.
|
|
25
|
-
"@modern-js/codesmith-api-app": "1.6.
|
|
26
|
-
"@modern-js/codesmith-api-json": "1.6.
|
|
24
|
+
"@modern-js/codesmith": "1.6.4",
|
|
25
|
+
"@modern-js/codesmith-api-app": "1.6.4",
|
|
26
|
+
"@modern-js/codesmith-api-json": "1.6.4",
|
|
27
27
|
"@types/jest": "^27",
|
|
28
28
|
"@types/node": "^14",
|
|
29
29
|
"jest": "^27",
|
|
30
30
|
"typescript": "^4",
|
|
31
|
-
"@modern-js/generator-common": "2.4.
|
|
32
|
-
"@modern-js/generator-utils": "2.4.
|
|
33
|
-
"@scripts/build": "1.22.
|
|
34
|
-
"@scripts/jest-config": "1.22.
|
|
31
|
+
"@modern-js/generator-common": "2.4.19",
|
|
32
|
+
"@modern-js/generator-utils": "2.4.19",
|
|
33
|
+
"@scripts/build": "1.22.8",
|
|
34
|
+
"@scripts/jest-config": "1.22.8"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false,
|
|
37
37
|
"modernConfig": {
|