@modern-js/upgrade 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.
Files changed (2) hide show
  1. package/dist/index.js +0 -4
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -75136,7 +75136,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
75136
75136
  if (response.status !== 200) {
75137
75137
  throw new Error(`download tar package get bad status code: ${response.status}`);
75138
75138
  }
75139
- const contentLength = Number(response.headers["content-length"]);
75140
75139
  const randomId = Math.floor(Math.random() * 1e4);
75141
75140
  const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
75142
75141
  const dest = _utils.fs.createWriteStream(tempTgzFilePath);
@@ -75149,9 +75148,6 @@ var require_downloadPackage = __commonJSMin((exports) => {
75149
75148
  resolve();
75150
75149
  });
75151
75150
  });
75152
- if ((await _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
75153
- throw new Error("download tar package get bad content length");
75154
- }
75155
75151
  await new Promise((resolve, reject) => {
75156
75152
  _utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
75157
75153
  strip: 1,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.22.6",
14
+ "version": "1.22.7",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -34,17 +34,17 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/runtime": "^7.18.0",
37
- "@modern-js/codesmith": "1.6.3",
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/utils": "1.22.6",
44
- "@modern-js/plugin-i18n": "1.22.6",
45
- "@modern-js/upgrade-generator": "2.4.17",
46
- "@scripts/build": "1.22.6",
47
- "@scripts/jest-config": "1.22.6"
43
+ "@modern-js/utils": "1.22.7",
44
+ "@modern-js/plugin-i18n": "1.22.7",
45
+ "@modern-js/upgrade-generator": "2.4.18",
46
+ "@scripts/build": "1.22.7",
47
+ "@scripts/jest-config": "1.22.7"
48
48
  },
49
49
  "sideEffects": false,
50
50
  "publishConfig": {