compressing 1.7.0 → 1.9.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/index.d.ts CHANGED
@@ -28,6 +28,8 @@ export namespace gzip {
28
28
 
29
29
  function uncompress(source: sourceType, dest: destType, opts?: any): Promise<void>
30
30
 
31
+ function decompress(source: sourceType, dest: destType, opts?: any): Promise<void>
32
+
31
33
  export class FileStream extends ReadStream {
32
34
 
33
35
  constructor(opts?: {
@@ -59,6 +61,8 @@ export namespace tar {
59
61
 
60
62
  function uncompress(source: sourceType, dest: string, opts?: any): Promise<void>
61
63
 
64
+ function decompress(source: sourceType, dest: string, opts?: any): Promise<void>
65
+
62
66
  export class Stream extends ReadStream {
63
67
 
64
68
  constructor();
@@ -102,6 +106,8 @@ export namespace tgz {
102
106
 
103
107
  function uncompress(source: sourceType, dest: string, opts?: any): Promise<void>
104
108
 
109
+ function decompress(source: sourceType, dest: string, opts?: any): Promise<void>
110
+
105
111
  export class Stream extends ReadStream {
106
112
 
107
113
  constructor();
@@ -147,6 +153,8 @@ export namespace zip {
147
153
 
148
154
  function uncompress(source: sourceType, dest: string, opts?: any): Promise<void>
149
155
 
156
+ function decompress(source: sourceType, dest: string, opts?: any): Promise<void>
157
+
150
158
  export class Stream extends ReadStream {
151
159
 
152
160
  constructor();
package/lib/gzip/index.js CHANGED
@@ -8,3 +8,4 @@ exports.FileStream = GzipFileStream;
8
8
  exports.UncompressStream = GzipUncompressStream;
9
9
  exports.compressFile = utils.makeFileProcessFn(GzipFileStream);
10
10
  exports.uncompress = utils.makeFileProcessFn(GzipUncompressStream);
11
+ exports.decompress = utils.makeFileProcessFn(GzipUncompressStream);
package/lib/tar/index.js CHANGED
@@ -11,3 +11,4 @@ exports.UncompressStream = TarUncompressStream;
11
11
  exports.compressDir = utils.makeCompressDirFn(TarStream);
12
12
  exports.compressFile = utils.makeFileProcessFn(TarFileStream);
13
13
  exports.uncompress = utils.makeUncompressFn(TarUncompressStream);
14
+ exports.decompress = utils.makeUncompressFn(TarUncompressStream);
package/lib/tgz/index.js CHANGED
@@ -11,3 +11,4 @@ exports.UncompressStream = TgzUncompressStream;
11
11
  exports.compressDir = utils.makeCompressDirFn(TgzStream);
12
12
  exports.compressFile = utils.makeFileProcessFn(TgzFileStream);
13
13
  exports.uncompress = utils.makeUncompressFn(TgzUncompressStream);
14
+ exports.decompress = utils.makeUncompressFn(TgzUncompressStream);
package/lib/zip/index.js CHANGED
@@ -11,3 +11,4 @@ exports.UncompressStream = ZipUncompressStream;
11
11
  exports.compressDir = utils.makeCompressDirFn(ZipStream);
12
12
  exports.compressFile = utils.makeFileProcessFn(ZipFileStream);
13
13
  exports.uncompress = utils.makeUncompressFn(ZipUncompressStream);
14
+ exports.decompress = utils.makeUncompressFn(ZipUncompressStream);
@@ -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,13 +1,13 @@
1
1
  {
2
2
  "name": "compressing",
3
- "version": "1.7.0",
3
+ "version": "1.9.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",
9
+ "test": "egg-bin test --espower=false --full-trace && npm run ts-test",
10
+ "cov": "egg-bin cov --espower=false",
11
11
  "lint-fix": "eslint . --fix",
12
12
  "lint": "eslint .",
13
13
  "ci": "npm run lint && npm run ts-test && npm run cov"
@@ -46,20 +46,19 @@
46
46
  "pump": "^3.0.0",
47
47
  "streamifier": "^0.1.1",
48
48
  "tar-stream": "^1.5.2",
49
- "yauzl": "^2.7.0",
49
+ "@eggjs/yauzl": "^2.11.0",
50
50
  "yazl": "^2.4.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/mocha": "^5.2.5",
54
54
  "@types/node": "^10.12.9",
55
55
  "dir-compare": "^1.3.0",
56
- "egg-bin": "^1.9.1",
56
+ "egg-bin": "4",
57
57
  "eslint": "^3.10.2",
58
58
  "eslint-config-egg": "^3.2.0",
59
59
  "git-contributor": "^1.1.0",
60
60
  "mm": "^2.0.0",
61
61
  "mz-modules": "^2.1.0",
62
- "power-assert": "^1.4.2",
63
62
  "rimraf": "^2.6.2",
64
63
  "typescript": "^3.1.6",
65
64
  "uuid": "^3.0.1"