@modern-js/entry-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.
Files changed (2) hide show
  1. package/dist/index.js +0 -4
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -85066,7 +85066,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
85066
85066
  if (response.status !== 200) {
85067
85067
  throw new Error(`download tar package get bad status code: ${response.status}`);
85068
85068
  }
85069
- const contentLength = Number(response.headers["content-length"]);
85070
85069
  const randomId = Math.floor(Math.random() * 1e4);
85071
85070
  const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
85072
85071
  const dest = _utils.fs.createWriteStream(tempTgzFilePath);
@@ -85079,9 +85078,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
85079
85078
  resolve();
85080
85079
  });
85081
85080
  });
85082
- if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
85083
- throw new Error("download tar package get bad content length");
85084
- }
85085
85081
  await new Promise((resolve, reject) => {
85086
85082
  _utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
85087
85083
  strip: 1,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.4.17",
14
+ "version": "2.4.18",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -20,19 +20,19 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "@babel/runtime": "^7.18.0",
23
- "@modern-js/codesmith": "1.6.3",
24
- "@modern-js/codesmith-api-app": "1.6.3",
25
- "@modern-js/codesmith-api-handlebars": "1.6.3",
23
+ "@modern-js/codesmith": "1.6.4",
24
+ "@modern-js/codesmith-api-app": "1.6.4",
25
+ "@modern-js/codesmith-api-handlebars": "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.17",
31
- "@modern-js/generator-utils": "2.4.17",
32
- "@modern-js/plugin-i18n": "1.22.6",
33
- "@modern-js/utils": "1.22.6",
34
- "@scripts/build": "1.22.6",
35
- "@scripts/jest-config": "1.22.6"
30
+ "@modern-js/generator-utils": "2.4.18",
31
+ "@modern-js/generator-common": "2.4.18",
32
+ "@modern-js/plugin-i18n": "1.22.7",
33
+ "@modern-js/utils": "1.22.7",
34
+ "@scripts/build": "1.22.7",
35
+ "@scripts/jest-config": "1.22.7"
36
36
  },
37
37
  "sideEffects": false,
38
38
  "modernConfig": {