compressing 1.6.3 → 1.7.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.
Files changed (2) hide show
  1. package/lib/utils.js +1 -1
  2. package/package.json +3 -2
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++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compressing",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "description": "Everything you need for compressing and uncompressing",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,7 +8,8 @@
8
8
  "ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
9
9
  "test": "egg-bin test && npm run ts-test",
10
10
  "cov": "egg-bin cov",
11
- "lint": "eslint . --fix",
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": {