compressing 1.10.0 → 1.10.1

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.
@@ -98,8 +98,8 @@ class ZipUncompressStream extends UncompressBaseStream {
98
98
  entry.fileName = iconv.decode(entry.fileName, this._zipFileNameEncoding);
99
99
  }
100
100
  }
101
- // directory file names end with '/'
102
- const type = /\/$/.test(entry.fileName) ? 'directory' : 'file';
101
+ // directory file names end with '/' (for Linux and macOS) or '\' (for Windows)
102
+ const type = /[\\\/]$/.test(entry.fileName) ? 'directory' : 'file';
103
103
  const name = entry.fileName = this[STRIP_NAME](entry.fileName, type);
104
104
 
105
105
  const header = { name, type, yauzl: entry, mode };
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "compressing",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Everything you need for compressing and uncompressing",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "contributor": "git-contributor",
8
- "ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
9
- "test": "egg-bin test --ts false && npm run ts-test",
8
+ "test:ts": "tsc -p ./test/fixtures/types/tsconfig.json",
9
+ "test:js": "egg-bin test --ts false",
10
+ "test": "npm run test:js && npm run test:ts",
10
11
  "cov": "egg-bin cov --ts false",
11
12
  "lint-fix": "eslint . --fix",
12
13
  "lint": "eslint .",
13
- "ci": "npm run lint && npm run ts-test && npm run cov"
14
+ "ci": "npm run lint && npm run test:ts && npm run cov"
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",