compressing 1.6.3 → 1.8.0
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/lib/utils.js +1 -1
- package/lib/zip/uncompress_stream.js +1 -1
- package/package.json +7 -7
package/lib/utils.js
CHANGED
|
@@ -116,7 +116,7 @@ exports.makeUncompressFn = StreamClass => {
|
|
|
116
116
|
if (err) return reject(err);
|
|
117
117
|
|
|
118
118
|
entryCount++;
|
|
119
|
-
pump(stream, fs.createWriteStream(fullpath, { mode: header.mode }), err => {
|
|
119
|
+
pump(stream, fs.createWriteStream(fullpath, { mode: opts.mode || header.mode }), err => {
|
|
120
120
|
if (err) return reject(err);
|
|
121
121
|
|
|
122
122
|
successCount++;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// https://github.com/thejoshwolfe/yauzl#no-streaming-unzip-api
|
|
4
4
|
|
|
5
|
-
const yauzl = require('yauzl');
|
|
5
|
+
const yauzl = require('@eggjs/yauzl');
|
|
6
6
|
const stream = require('stream');
|
|
7
7
|
const UncompressBaseStream = require('../base_write_stream');
|
|
8
8
|
const utils = require('../utils');
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compressing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Everything you need for compressing and uncompressing",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"contributor": "git-contributor",
|
|
8
8
|
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
|
|
9
|
-
"test": "egg-bin test && npm run ts-test",
|
|
10
|
-
"cov": "egg-bin cov",
|
|
11
|
-
"lint": "eslint . --fix",
|
|
9
|
+
"test": "egg-bin test --espower=false --full-trace && npm run ts-test",
|
|
10
|
+
"cov": "egg-bin cov --espower=false",
|
|
11
|
+
"lint-fix": "eslint . --fix",
|
|
12
|
+
"lint": "eslint .",
|
|
12
13
|
"ci": "npm run lint && npm run ts-test && npm run cov"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
@@ -45,20 +46,19 @@
|
|
|
45
46
|
"pump": "^3.0.0",
|
|
46
47
|
"streamifier": "^0.1.1",
|
|
47
48
|
"tar-stream": "^1.5.2",
|
|
48
|
-
"yauzl": "^2.
|
|
49
|
+
"@eggjs/yauzl": "^2.11.0",
|
|
49
50
|
"yazl": "^2.4.2"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@types/mocha": "^5.2.5",
|
|
53
54
|
"@types/node": "^10.12.9",
|
|
54
55
|
"dir-compare": "^1.3.0",
|
|
55
|
-
"egg-bin": "
|
|
56
|
+
"egg-bin": "4",
|
|
56
57
|
"eslint": "^3.10.2",
|
|
57
58
|
"eslint-config-egg": "^3.2.0",
|
|
58
59
|
"git-contributor": "^1.1.0",
|
|
59
60
|
"mm": "^2.0.0",
|
|
60
61
|
"mz-modules": "^2.1.0",
|
|
61
|
-
"power-assert": "^1.4.2",
|
|
62
62
|
"rimraf": "^2.6.2",
|
|
63
63
|
"typescript": "^3.1.6",
|
|
64
64
|
"uuid": "^3.0.1"
|