@modern-js/create 1.22.6 → 1.22.7
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
|
@@ -75139,7 +75139,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
75139
75139
|
if (response.status !== 200) {
|
|
75140
75140
|
throw new Error(`download tar package get bad status code: ${response.status}`);
|
|
75141
75141
|
}
|
|
75142
|
-
const contentLength = Number(response.headers["content-length"]);
|
|
75143
75142
|
const randomId = Math.floor(Math.random() * 1e4);
|
|
75144
75143
|
const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
|
|
75145
75144
|
const dest = _utils.fs.createWriteStream(tempTgzFilePath);
|
|
@@ -75152,9 +75151,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
75152
75151
|
resolve();
|
|
75153
75152
|
});
|
|
75154
75153
|
});
|
|
75155
|
-
if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
|
|
75156
|
-
throw new Error("download tar package get bad content length");
|
|
75157
|
-
}
|
|
75158
75154
|
await new Promise((resolve, reject) => {
|
|
75159
75155
|
_utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
|
|
75160
75156
|
strip: 1,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.22.
|
|
14
|
+
"version": "1.22.7",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/runtime": "^7.18.0",
|
|
37
|
-
"@modern-js/codesmith": "1.6.
|
|
37
|
+
"@modern-js/codesmith": "1.6.4",
|
|
38
38
|
"@types/jest": "^27",
|
|
39
39
|
"@types/node": "^14",
|
|
40
40
|
"jest": "^27",
|
|
41
41
|
"ts-node": "^10.1.0",
|
|
42
42
|
"typescript": "^4",
|
|
43
|
-
"@modern-js/generator-plugin-plugin": "2.4.
|
|
44
|
-
"@modern-js/plugin-i18n": "1.22.
|
|
45
|
-
"@modern-js/repo-generator": "2.4.
|
|
46
|
-
"@modern-js/utils": "1.22.
|
|
47
|
-
"@scripts/build": "1.22.
|
|
48
|
-
"@scripts/jest-config": "1.22.
|
|
43
|
+
"@modern-js/generator-plugin-plugin": "2.4.18",
|
|
44
|
+
"@modern-js/plugin-i18n": "1.22.7",
|
|
45
|
+
"@modern-js/repo-generator": "2.4.18",
|
|
46
|
+
"@modern-js/utils": "1.22.7",
|
|
47
|
+
"@scripts/build": "1.22.7",
|
|
48
|
+
"@scripts/jest-config": "1.22.7"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|