12.0 KB
node-decompress-response version 3.3.0-1~jan+unchanged1 (unchanged) vs.
node-decompress-response version 4.2.1-1~jan+nur1 (fresh-releases)
11.8 KB
node-decompress-response_3.3.0-1~jan+unchanged1_all.deb vs.
node-decompress-response_4.2.1-1~jan+nur1_all.deb
536 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2017-09-27·07:35:48.000000·debian-binary1 -rw-r--r--···0········0········0········4·2019-09-23·16:08:27.000000·debian-binary
2 -rw-r--r--···0········0········0······792·2017-09-27·07:35:48.000000·control.tar.xz2 -rw-r--r--···0········0········0······792·2019-09-23·16:08:27.000000·control.tar.xz
3 -rw-r--r--···0········0········0·····2472·2017-09-27·07:35:48.000000·data.tar.xz3 -rw-r--r--···0········0········0·····2860·2019-09-23·16:08:27.000000·data.tar.xz
1.27 KB
control.tar.xz
1.24 KB
control.tar
596 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······568·2017-09-27·07:35:48.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······562·2019-09-23·16:08:27.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)······419·2017-09-27·07:35:48.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)······419·2019-09-23·16:08:27.000000·./md5sums
602 B
./control
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 Package:·node-decompress-response1 Package:·node-decompress-response
2 Version:·3.3.0-1~jan+unchanged12 Version:·4.2.1-1~jan+nur1
3 Architecture:·all3 Architecture:·all
4 Maintainer:·Debian·Javascript·Maintainers·<pkg-javascript-devel@lists.alioth.debian.org>4 Maintainer:·Debian·Javascript·Maintainers·<pkg-javascript-devel@lists.alioth.debian.org>
5 Installed-Size:·155 Installed-Size:·16
6 Depends:·nodejs,·node-mimic-response·(>=·1.0.0)6 Depends:·nodejs,·node-mimic-response·(>=·1.0.0)
7 Section:·javascript7 Section:·javascript
8 Priority:·optional8 Priority:·optional
9 Homepage:·https://github.com/sindresorhus/decompress-response#readme9 Homepage:·https://github.com/sindresorhus/decompress-response#readme
10 Description:·Decompress·a·HTTP·response·if·needed10 Description:·Decompress·a·HTTP·response·if·needed
11 ·Decompresses·the·response·from·http.request·if·it's·gzipped·or·deflated,11 ·Decompresses·the·response·from·http.request·if·it's·gzipped·or·deflated,
12 ·otherwise·just·passes·it·through.12 ·otherwise·just·passes·it·through.
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
9.94 KB
data.tar.xz
9.92 KB
data.tar
3.02 KB
file list
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/lib/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/lib/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/lib/nodejs/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/lib/nodejs/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/lib/nodejs/decompress-response/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/lib/nodejs/decompress-response/
6 -rw-r--r--···0·root·········(0)·root·········(0)······628·2017-06-02·19:43:46.000000·./usr/lib/nodejs/decompress-response/index.js6 -rw-r--r--···0·root·········(0)·root·········(0)·····1023·2019-08-12·21:43:34.000000·./usr/lib/nodejs/decompress-response/index.js
7 -rw-r--r--···0·root·········(0)·root·········(0)······951·2017-06-02·19:43:46.000000·./usr/lib/nodejs/decompress-response/package.json7 -rw-r--r--···0·root·········(0)·root·········(0)······826·2019-08-12·21:43:34.000000·./usr/lib/nodejs/decompress-response/package.json
8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/share/8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/share/
9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/share/doc/9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/share/doc/
10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-09-27·07:35:48.000000·./usr/share/doc/node-decompress-response/10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-23·16:08:27.000000·./usr/share/doc/node-decompress-response/
11 -rw-r--r--···0·root·········(0)·root·········(0)······265·2017-09-27·07:35:48.000000·./usr/share/doc/node-decompress-response/changelog.Debian.gz11 -rw-r--r--···0·root·········(0)·root·········(0)······284·2019-09-23·16:08:27.000000·./usr/share/doc/node-decompress-response/changelog.Debian.gz
12 -rw-r--r--···0·root·········(0)·root·········(0)·····1501·2017-09-27·07:35:48.000000·./usr/share/doc/node-decompress-response/copyright12 -rw-r--r--···0·root·········(0)·root·········(0)·····1501·2019-09-23·16:08:27.000000·./usr/share/doc/node-decompress-response/copyright
13 -rw-r--r--···0·root·········(0)·root·········(0)······841·2017-06-02·19:43:46.000000·./usr/share/doc/node-decompress-response/readme.md13 -rw-r--r--···0·root·········(0)·root·········(0)·····1502·2019-08-12·21:43:34.000000·./usr/share/doc/node-decompress-response/readme.md
1.72 KB
./usr/lib/nodejs/decompress-response/index.js
1.63 KB
js-beautify {}
    
Offset 1, 29 lines modifiedOffset 1, 42 lines modified
1 'use·strict';1 'use·strict';
2 const·PassThrough·=·require('stream').PassThrough;2 const·{
 3 ····PassThrough:·PassThroughStream
 4 }·=·require('stream');
3 const·zlib·=·require('zlib');5 const·zlib·=·require('zlib');
4 const·mimicResponse·=·require('mimic-response');6 const·mimicResponse·=·require('mimic-response');
  
5 module.exports·=·response·=>·{ 
6 ····//·TODO:·Use·Array#includes·when·targeting·Node.js·6 
7 ····if·(['gzip',·'deflate'].indexOf(response.headers['content-encoding'])·===·-1)·{7 const·decompressResponse·=·response·=>·{
 8 ····const·contentEncoding·=·(response.headers['content-encoding']·||·'').toLowerCase();
  
 9 ····if·(!['gzip',·'deflate',·'br'].includes(contentEncoding))·{
8 ········return·response;10 ········return·response;
9 ····}11 ····}
  
10 ····const·unzip·=·zlib.createUnzip();12 ····const·isBrotli·=·contentEncoding·===·'br';
 13 ····if·(isBrotli·&&·typeof·zlib.createBrotliDecompress·!==·'function')·{
 14 ········return·response;
 15 ····}
  
 16 ····const·decompress·=·isBrotli·?·zlib.createBrotliDecompress()·:·zlib.createUnzip();
11 ····const·stream·=·new·PassThrough();17 ····const·stream·=·new·PassThroughStream();
  
12 ····mimicResponse(response,·stream);18 ····mimicResponse(response,·stream);
  
13 ····unzip.on('error',·err·=>·{19 ····decompress.on('error',·error·=>·{
 20 ········//·Ignore·empty·response
14 ········if·(err.code·===·'Z_BUF_ERROR')·{21 ········if·(error.code·===·'Z_BUF_ERROR')·{
15 ············stream.end();22 ············stream.end();
16 ············return;23 ············return;
17 ········}24 ········}
  
18 ········stream.emit('error',·err);25 ········stream.emit('error',·error);
19 ····});26 ····});
  
20 ····response.pipe(unzip).pipe(stream);27 ····response.pipe(decompress).pipe(stream);
  
21 ····return·stream;28 ····return·stream;
22 };29 };
  
 30 module.exports·=·decompressResponse;
 31 //·TODO:·remove·this·in·the·next·major·version
 32 module.exports.default·=·decompressResponse;
2.42 KB
./usr/lib/nodejs/decompress-response/package.json
2.33 KB
/tmp/diffoscope_fjkx5f_6_mpz5_xv512/tmpflxvdedfDebTarContainer/0/6.json vs.
/tmp/diffoscope_fjkx5f_6_mpz5_xv512/tmptyuiv4dsDebTarContainer/0/6.json
Differences: {'replace': "OrderedDict([('name', 'decompress-response'), ('version', '4.2.1'), ('description', " "'Decompress a HTTP response if needed'), ('license', 'MIT'), ('repository', " "'sindresorhus/decompress-response'), ('author', OrderedDict([('name', 'Sindre " "Sorhus'), ('email', 'sindresorhus@gmail.com'), ('url', 'sindresorhus.com')])), " "('engines', OrderedDict([('node', '>=8')])), ('scripts', OrderedDict([('test', 'xo && " "ava && tsd')])), ('fi […]
    
Offset 1, 23 lines modifiedOffset 1, 31 lines modified
1 {1 {
 2 ····"author":·{
 3 ········"email":·"sindresorhus@gmail.com",
 4 ········"name":·"Sindre·Sorhus",
 5 ········"url":·"sindresorhus.com"
 6 ····},
2 ····"dependencies":·{7 ····"dependencies":·{
3 ········"mimic-response":·"^1.0.0"8 ········"mimic-response":·"^2.0.0"
4 ····},9 ····},
5 ····"description":·"Decompress·a·HTTP·response·if·needed",10 ····"description":·"Decompress·a·HTTP·response·if·needed",
6 ····"devDependencies":·{11 ····"devDependencies":·{
 12 ········"@types/node":·"^12.7.1",
7 ········"ava":·"*",13 ········"ava":·"^2.2.0",
8 ········"get-stream":·"^3.0.0",14 ········"get-stream":·"^5.0.0",
9 ········"pify":·"^3.0.0",15 ········"pify":·"^4.0.1",
 16 ········"tsd":·"^0.7.1",
10 ········"xo":·"*"17 ········"xo":·"^0.24.0"
11 ····},18 ····},
12 ····"engines":·{19 ····"engines":·{
13 ········"node":·">=4"20 ········"node":·">=8"
14 ····},21 ····},
15 ····"files":·[22 ····"files":·[
16 ········"index.js"23 ········"index.js",
 24 ········"index.d.ts"
17 ····],25 ····],
18 ····"keywords":·[26 ····"keywords":·[
19 ········"decompress",27 ········"decompress",
20 ········"response",28 ········"response",
21 ········"http",29 ········"http",
22 ········"https",30 ········"https",
23 ········"zlib",31 ········"zlib",
Offset 25, 29 lines modifiedOffset 33, 18 lines modified
25 ········"zip",33 ········"zip",
26 ········"deflate",34 ········"deflate",
27 ········"unzip",35 ········"unzip",
28 ········"ungzip",36 ········"ungzip",
29 ········"incoming",37 ········"incoming",
30 ········"message",38 ········"message",
31 ········"stream",39 ········"stream",
32 ········"compressed"40 ········"compressed",
 41 ········"brotli"
33 ····],42 ····],
34 ····"license":·"MIT",43 ····"license":·"MIT",
35 ····"maintainers":·[ 
36 ········{ 
37 ············"email":·"sindresorhus@gmail.com", 
38 ············"name":·"Sindre·Sorhus", 
39 ············"url":·"sindresorhus.com" 
40 ········}, 
41 ········{ 
42 ············"email":·"floatdrop@gmail.com", 
43 ············"name":·"Vsevolod·Strukchinsky", 
44 ············"url":·"github.com/floatdrop" 
45 ········} 
46 ····], 
47 ····"name":·"decompress-response",44 ····"name":·"decompress-response",
48 ····"repository":·"sindresorhus/decompress-response",45 ····"repository":·"sindresorhus/decompress-response",
49 ····"scripts":·{46 ····"scripts":·{
50 ········"test":·"xo·&&·ava"47 ········"test":·"xo·&&·ava·&&·tsd"
51 ····},48 ····},
52 ····"version":·"3.3.0"49 ····"version":·"4.2.1"
53 }50 }
754 B
./usr/share/doc/node-decompress-response/changelog.Debian.gz
634 B
changelog.Debian
    
Offset 1, 11 lines modifiedOffset 1, 13 lines modified
1 node-decompress-response·(3.3.0-1~jan+unchanged1)·unchanged;·urgency=medium1 node-decompress-response·(4.2.1-1~jan+nur1)·fresh-releases;·urgency=medium
  
 2 ··*·New·upstream·release.
 3 ··*·New·upstream·release.
2 ··*·Build·for·debian-janitor·apt·repository.4 ··*·Build·for·debian-janitor·apt·repository.
  
3 ·--·Debian·Janitor·<janitor@jelmer.uk>··Sun,·02·Feb·2020·02:21:18·+00005 ·--·Debian·Janitor·<janitor@jelmer.uk>··Mon,·23·Sep·2019·16:08:27·+0000
  
4 node-decompress-response·(3.3.0-1)·unstable;·urgency=low6 node-decompress-response·(3.3.0-1)·unstable;·urgency=low
  
5 ··*·Initial·release·(Closes:·#876960)7 ··*·Initial·release·(Closes:·#876960)
  
6 ·--·Preyass·Chandran·<preyassc@hotmail.com>··Wed,·27·Sep·2017·12:36:21·+00008 ·--·Preyass·Chandran·<preyassc@hotmail.com>··Wed,·27·Sep·2017·12:36:21·+0000
2.01 KB
./usr/share/doc/node-decompress-response/readme.md
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 #·decompress-response·[![Build·Status](https://travis-ci.org/sindresorhus/decompress-response.svg?branch=master)](https://travis-ci.org/sindresorhus/decompress-response)1 #·decompress-response·[![Build·Status](https://travis-ci.org/sindresorhus/decompress-response.svg?branch=master)](https://travis-ci.org/sindresorhus/decompress-response)
  
2 >·Decompress·a·HTTP·response·if·needed2 >·Decompress·a·HTTP·response·if·needed
  
3 Decompresses·the·[response](https://nodejs.org/api/http.html#http_class_http_incomingmessage)·from·[`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback)·if·it's·gzipped·or·deflated,·otherwise·just·passes·it·through.3 Decompresses·the·[response](https://nodejs.org/api/http.html#http_class_http_incomingmessage)·from·[`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback)·if·it's·gzipped,·deflated·or·compressed·with·Brotli,·otherwise·just·passes·it·through.
  
4 Used·by·[`got`](https://github.com/sindresorhus/got).4 Used·by·[`got`](https://github.com/sindresorhus/got).
  
  
5 ##·Install5 ##·Install
  
6 ```6 ```
Offset 16, 16 lines modifiedOffset 16, 37 lines modified
  
16 ##·Usage16 ##·Usage
  
17 ```js17 ```js
18 const·http·=·require('http');18 const·http·=·require('http');
19 const·decompressResponse·=·require('decompress-response');19 const·decompressResponse·=·require('decompress-response');
  
20 http.get('http://sindresorhus.com',·response·=>·{20 http.get('https://sindresorhus.com',·response·=>·{
21 »       response·=·decompressResponse(response);21 »       response·=·decompressResponse(response);
22 });22 });
23 ```23 ```
  
  
24 ##·License24 ##·API
  
25 MIT·©·[Sindre·Sorhus](https://sindresorhus.com)25 ###·decompressResponse(response)
  
 26 Returns·the·decompressed·HTTP·response·stream.
  
 27 ####·response
  
 28 Type:·[`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
  
 29 The·HTTP·incoming·stream·with·compressed·data.
  
  
 30 ---
  
 31 <div·align="center">
 32 »       <b>
 33 »       »       <a·href="https://tidelift.com/subscription/pkg/npm-unzip-response?utm_source=npm-unzip-response&utm_medium=referral&utm_campaign=readme">Get·professional·support·for·this·package·with·a·Tidelift·subscription</a>
 34 »       </b>
 35 »       <br>
 36 »       <sub>
 37 »       »       Tidelift·helps·make·open·source·sustainable·for·maintainers·while·giving·companies<br>assurances·about·security,·maintenance,·and·licensing·for·their·dependencies.
 38 »       </sub>
 39 </div>
45.0 B
encoding
    
Offset 1, 1 lines modifiedOffset 1, 1 lines modified
1 utf-81 us-ascii