8.51 KB
node-strip-indent version 2.0.0-1~jan+unchanged1 (unchanged) vs.
node-strip-indent version 3.0.0-1~jan+nur1 (fresh-releases)
8.39 KB
node-strip-indent_2.0.0-1~jan+unchanged1_all.deb vs.
node-strip-indent_3.0.0-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·2016-10-25·06:28:17.000000·debian-binary1 -rw-r--r--···0········0········0········4·2019-11-28·08:23:07.000000·debian-binary
2 -rw-r--r--···0········0········0······812·2016-10-25·06:28:17.000000·control.tar.xz2 -rw-r--r--···0········0········0······808·2019-11-28·08:23:07.000000·control.tar.xz
3 -rw-r--r--···0········0········0·····2352·2016-10-25·06:28:17.000000·data.tar.xz3 -rw-r--r--···0········0········0·····2272·2019-11-28·08:23:07.000000·data.tar.xz
1.03 KB
control.tar.xz
1.01 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·2016-10-25·06:28:17.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······629·2016-10-25·06:28:17.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······623·2019-11-28·08:23:07.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)······384·2016-10-25·06:28:17.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)······384·2019-11-28·08:23:07.000000·./md5sums
365 B
./control
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 Package:·node-strip-indent1 Package:·node-strip-indent
2 Version:·2.0.0-1~jan+unchanged12 Version:·3.0.0-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:·15
6 Depends:·nodejs6 Depends:·nodejs
7 Section:·web7 Section:·web
8 Priority:·optional8 Priority:·optional
9 Homepage:·https://github.com/sindresorhus/strip-indent#readme9 Homepage:·https://github.com/sindresorhus/strip-indent#readme
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
6.75 KB
data.tar.xz
6.73 KB
data.tar
2.92 KB
file list
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/lib/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/lib/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/lib/nodejs/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/lib/nodejs/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/lib/nodejs/strip-indent/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/lib/nodejs/strip-indent/
6 -rw-r--r--···0·root·········(0)·root·········(0)······365·2016-04-22·05:47:21.000000·./usr/lib/nodejs/strip-indent/index.js6 -rw-r--r--···0·root·········(0)·root·········(0)······257·2019-04-17·02:20:10.000000·./usr/lib/nodejs/strip-indent/index.js
7 -rw-r--r--···0·root·········(0)·root·········(0)······690·2016-04-22·05:47:21.000000·./usr/lib/nodejs/strip-indent/package.json7 -rw-r--r--···0·root·········(0)·root·········(0)······693·2019-04-17·02:20:10.000000·./usr/lib/nodejs/strip-indent/package.json
8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/share/8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/share/
9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/share/doc/9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/share/doc/
10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2016-10-25·06:28:17.000000·./usr/share/doc/node-strip-indent/10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-11-28·08:23:07.000000·./usr/share/doc/node-strip-indent/
11 -rw-r--r--···0·root·········(0)·root·········(0)······264·2016-10-25·06:28:17.000000·./usr/share/doc/node-strip-indent/changelog.Debian.gz11 -rw-r--r--···0·root·········(0)·root·········(0)······280·2019-11-28·08:23:07.000000·./usr/share/doc/node-strip-indent/changelog.Debian.gz
12 -rw-r--r--···0·root·········(0)·root·········(0)·····1475·2016-10-25·06:28:17.000000·./usr/share/doc/node-strip-indent/copyright12 -rw-r--r--···0·root·········(0)·root·········(0)·····1475·2019-11-28·08:23:07.000000·./usr/share/doc/node-strip-indent/copyright
13 -rw-r--r--···0·root·········(0)·root·········(0)······862·2016-04-22·05:47:21.000000·./usr/share/doc/node-strip-indent/readme.md13 -rw-r--r--···0·root·········(0)·root·········(0)······843·2019-04-17·02:20:10.000000·./usr/share/doc/node-strip-indent/readme.md
788 B
./usr/lib/nodejs/strip-indent/index.js
712 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 14 lines modified
1 'use·strict';1 'use·strict';
 2 const·minIndent·=·require('min-indent');
2 module.exports·=·str·=>·{ 
3 ····const·match·=·str.match(/^[·\t]*(?=\S)/gm); 
  
4 ····if·(!match)·{3 module.exports·=·string·=>·{
 4 ····const·indent·=·minIndent(string);
  
 5 ····if·(indent·===·0)·{
5 ········return·str;6 ········return·string;
6 ····}7 ····}
  
7 ····//·TODO:·use·spread·operator·when·targeting·Node.js·6 
8 ····const·indent·=·Math.min.apply(Math,·match.map(x·=>·x.length));·//·eslint-disable-line 
9 ····const·re·=·new·RegExp(`^[·\\t]{${indent}}`,·'gm');8 ····const·regex·=·new·RegExp(`^[·\\t]{${indent}}`,·'gm');
  
10 ····return·indent·>·0·?·str.replace(re,·'')·:·str;9 ····return·string.replace(regex,·'');
11 };10 };
1.86 KB
./usr/lib/nodejs/strip-indent/package.json
1.77 KB
/tmp/diffoscope_1rhq6ibi_mp9xrfikxg/tmpc84ld4lpDebTarContainer/0/6.json vs.
/tmp/diffoscope_1rhq6ibi_mp9xrfikxg/tmp2vsrgwjhDebTarContainer/0/6.json
Differences: {'replace': "OrderedDict([('name', 'strip-indent'), ('version', '3.0.0'), ('description', 'Strip " "leading whitespace from each line in a string'), ('license', 'MIT'), ('repository', " "'sindresorhus/strip-indent'), ('author', OrderedDict([('name', 'Sindre Sorhus'), " "('email', 'sindresorhus@gmail.com'), ('url', 'sindresorhus.com')])), ('engines', " "OrderedDict([('node', '>=8')])), ('scripts', OrderedDict([('test', 'xo && ava && " "tsd')])), ('f […]
    
Offset 1, 41 lines modifiedOffset 1, 42 lines modified
1 {1 {
2 ····"author":·{2 ····"author":·{
3 ········"email":·"sindresorhus@gmail.com",3 ········"email":·"sindresorhus@gmail.com",
4 ········"name":·"Sindre·Sorhus",4 ········"name":·"Sindre·Sorhus",
5 ········"url":·"sindresorhus.com"5 ········"url":·"sindresorhus.com"
6 ····},6 ····},
 7 ····"dependencies":·{
 8 ········"min-indent":·"^1.0.0"
 9 ····},
7 ····"description":·"Strip·leading·whitespace·from·each·line·in·a·string",10 ····"description":·"Strip·leading·whitespace·from·each·line·in·a·string",
8 ····"devDependencies":·{11 ····"devDependencies":·{
9 ········"ava":·"*",12 ········"ava":·"^1.4.1",
 13 ········"tsd":·"^0.7.2",
10 ········"xo":·"*"14 ········"xo":·"^0.24.0"
11 ····},15 ····},
12 ····"engines":·{16 ····"engines":·{
13 ········"node":·">=4"17 ········"node":·">=8"
14 ····},18 ····},
15 ····"files":·[19 ····"files":·[
16 ········"index.js"20 ········"index.js",
 21 ········"index.d.ts"
17 ····],22 ····],
18 ····"keywords":·[23 ····"keywords":·[
19 ········"strip",24 ········"strip",
20 ········"indent",25 ········"indent",
21 ········"indentation",26 ········"indentation",
22 ········"normalize",27 ········"normalize",
23 ········"remove",28 ········"remove",
24 ········"delete",29 ········"delete",
25 ········"whitespace",30 ········"whitespace",
26 ········"space",31 ········"space",
27 ········"tab",32 ········"tab",
28 ········"string",33 ········"string"
29 ········"str" 
30 ····],34 ····],
31 ····"license":·"MIT",35 ····"license":·"MIT",
32 ····"name":·"strip-indent",36 ····"name":·"strip-indent",
33 ····"repository":·"sindresorhus/strip-indent",37 ····"repository":·"sindresorhus/strip-indent",
34 ····"scripts":·{38 ····"scripts":·{
35 ········"test":·"xo·&&·ava"39 ········"test":·"xo·&&·ava·&&·tsd"
36 ····},40 ····},
37 ····"version":·"2.0.0",41 ····"version":·"3.0.0"
38 ····"xo":·{ 
39 ········"esnext":·true 
40 ····} 
41 }42 }
687 B
./usr/share/doc/node-strip-indent/changelog.Debian.gz
581 B
changelog.Debian
    
Offset 1, 11 lines modifiedOffset 1, 12 lines modified
1 node-strip-indent·(2.0.0-1~jan+unchanged1)·unchanged;·urgency=medium1 node-strip-indent·(3.0.0-1~jan+nur1)·fresh-releases;·urgency=medium
  
 2 ··*·New·upstream·release.
2 ··*·Build·for·debian-janitor·apt·repository.3 ··*·Build·for·debian-janitor·apt·repository.
  
3 ·--·Debian·Janitor·<janitor@jelmer.uk>··Mon,·29·Jun·2020·07:15:37·+00004 ·--·Debian·Janitor·<janitor@jelmer.uk>··Thu,·28·Nov·2019·08:23:07·+0000
  
4 node-strip-indent·(2.0.0-1)·unstable;·urgency=low5 node-strip-indent·(2.0.0-1)·unstable;·urgency=low
  
5 ··*·Initial·release·(Closes:·#841998)6 ··*·Initial·release·(Closes:·#841998)
  
6 ·--·Sruthi·Chandran·<srud@disroot.org>··Tue,·25·Oct·2016·11:57:50·+05307 ·--·Sruthi·Chandran·<srud@disroot.org>··Tue,·25·Oct·2016·11:57:50·+0530
507 B
./usr/share/doc/node-strip-indent/readme.md
    
Offset 6, 30 lines modifiedOffset 6, 30 lines modified
  
6 Useful·for·removing·redundant·indentation.6 Useful·for·removing·redundant·indentation.
  
  
7 ##·Install7 ##·Install
  
8 ```8 ```
9 $·npm·install·--save·strip-indent9 $·npm·install·strip-indent
10 ```10 ```
  
  
11 ##·Usage11 ##·Usage
  
12 ```js12 ```js
13 const·stripIndent·=·require('strip-indent');13 const·stripIndent·=·require('strip-indent');
  
14 const·str·=·'\tunicorn\n\t\tcake';14 const·string·=·'\tunicorn\n\t\tcake';
15 /*15 /*
16 »       unicorn16 »       unicorn
17 »       »       cake17 »       »       cake
18 */18 */
  
19 stripIndent('\tunicorn\n\t\tcake');19 stripIndent(string);
20 /*20 /*
21 unicorn21 unicorn
22 »       cake22 »       cake
23 */23 */
24 ```24 ```