@modern-js/upgrade-generator 2.4.17 → 2.4.18
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 +9 -9
package/dist/index.js
CHANGED
|
@@ -52415,7 +52415,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
52415
52415
|
if (response.status !== 200) {
|
|
52416
52416
|
throw new Error(`download tar package get bad status code: ${response.status}`);
|
|
52417
52417
|
}
|
|
52418
|
-
const contentLength = Number(response.headers["content-length"]);
|
|
52419
52418
|
const randomId = Math.floor(Math.random() * 1e4);
|
|
52420
52419
|
const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
|
|
52421
52420
|
const dest = _utils.fs.createWriteStream(tempTgzFilePath);
|
|
@@ -52428,9 +52427,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
52428
52427
|
resolve();
|
|
52429
52428
|
});
|
|
52430
52429
|
});
|
|
52431
|
-
if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
|
|
52432
|
-
throw new Error("download tar package get bad content length");
|
|
52433
|
-
}
|
|
52434
52430
|
await new Promise((resolve, reject) => {
|
|
52435
52431
|
_utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
|
|
52436
52432
|
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.18",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/runtime": "^7.18.0",
|
|
23
|
-
"@modern-js/codesmith": "1.6.
|
|
24
|
-
"@modern-js/codesmith-api-app": "1.6.
|
|
25
|
-
"@modern-js/codesmith-api-json": "1.6.
|
|
23
|
+
"@modern-js/codesmith": "1.6.4",
|
|
24
|
+
"@modern-js/codesmith-api-app": "1.6.4",
|
|
25
|
+
"@modern-js/codesmith-api-json": "1.6.4",
|
|
26
26
|
"@types/jest": "^27",
|
|
27
27
|
"@types/node": "^14",
|
|
28
28
|
"jest": "^27",
|
|
29
29
|
"typescript": "^4",
|
|
30
|
-
"@modern-js/generator-common": "2.4.
|
|
31
|
-
"@modern-js/generator-utils": "2.4.
|
|
32
|
-
"@modern-js/plugin-i18n": "1.22.
|
|
33
|
-
"@scripts/build": "1.22.
|
|
34
|
-
"@scripts/jest-config": "1.22.
|
|
30
|
+
"@modern-js/generator-common": "2.4.18",
|
|
31
|
+
"@modern-js/generator-utils": "2.4.18",
|
|
32
|
+
"@modern-js/plugin-i18n": "1.22.7",
|
|
33
|
+
"@scripts/build": "1.22.7",
|
|
34
|
+
"@scripts/jest-config": "1.22.7"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false,
|
|
37
37
|
"publishConfig": {
|