compressing
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -101,4 +101,4 @@ 'use strict'; | ||
} | ||
// directory file names end with '/' | ||
const type = /\/$/.test(entry.fileName) ? 'directory' : 'file'; | ||
// directory file names end with '/' (for Linux and macOS) or '\' (for Windows) | ||
const type = /[\\\/]$/.test(entry.fileName) ? 'directory' : 'file'; | ||
const name = entry.fileName = this[STRIP_NAME](entry.fileName, type); | ||
@@ -105,0 +105,0 @@ |
{ | ||
"name": "compressing", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Everything you need for compressing and uncompressing", | ||
@@ -8,8 +8,9 @@ "main": "index.js", | ||
"contributor": "git-contributor", | ||
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json", | ||
"test": "egg-bin test --ts false && npm run ts-test", | ||
"test:ts": "tsc -p ./test/fixtures/types/tsconfig.json", | ||
"test:js": "egg-bin test --ts false", | ||
"test": "npm run test:js && npm run test:ts", | ||
"cov": "egg-bin cov --ts false", | ||
"lint-fix": "eslint . --fix", | ||
"lint": "eslint .", | ||
"ci": "npm run lint && npm run ts-test && npm run cov" | ||
"ci": "npm run lint && npm run test:ts && npm run cov" | ||
}, | ||
@@ -16,0 +17,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52772