@modern-js/bff-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 +8 -8
package/dist/index.js CHANGED
@@ -85065,7 +85065,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
85065
85065
  if (response.status !== 200) {
85066
85066
  throw new Error(`download tar package get bad status code: ${response.status}`);
85067
85067
  }
85068
- const contentLength = Number(response.headers["content-length"]);
85069
85068
  const randomId = Math.floor(Math.random() * 1e4);
85070
85069
  const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
85071
85070
  const dest = _utils.fs.createWriteStream(tempTgzFilePath);
@@ -85078,9 +85077,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
85078
85077
  resolve();
85079
85078
  });
85080
85079
  });
85081
- if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
85082
- throw new Error("download tar package get bad content length");
85083
- }
85084
85080
  await new Promise((resolve, reject) => {
85085
85081
  _utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
85086
85082
  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
  "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.3",
25
- "@modern-js/codesmith-api-app": "1.6.3",
26
- "@modern-js/codesmith-api-json": "1.6.3",
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-utils": "2.4.17",
32
- "@scripts/build": "1.22.6",
33
- "@scripts/jest-config": "1.22.6",
34
- "@modern-js/generator-common": "2.4.17"
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": {