@modern-js/ssg-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.
Files changed (2) hide show
  1. package/dist/index.js +0 -4
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -52414,7 +52414,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
52414
52414
  if (response.status !== 200) {
52415
52415
  throw new Error(`download tar package get bad status code: ${response.status}`);
52416
52416
  }
52417
- const contentLength = Number(response.headers["content-length"]);
52418
52417
  const randomId = Math.floor(Math.random() * 1e4);
52419
52418
  const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
52420
52419
  const dest = _utils.fs.createWriteStream(tempTgzFilePath);
@@ -52427,9 +52426,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
52427
52426
  resolve();
52428
52427
  });
52429
52428
  });
52430
- if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
52431
- throw new Error("download tar package get bad content length");
52432
- }
52433
52429
  await new Promise((resolve, reject) => {
52434
52430
  _utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
52435
52431
  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.19",
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.3",
24
- "@modern-js/codesmith-api-app": "1.6.3",
25
- "@modern-js/codesmith-api-json": "1.6.3",
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/dependence-generator": "2.4.17",
31
- "@modern-js/generator-common": "2.4.17",
32
- "@modern-js/generator-utils": "2.4.17",
33
- "@scripts/build": "1.22.6",
34
- "@scripts/jest-config": "1.22.6"
30
+ "@modern-js/dependence-generator": "2.4.19",
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": {