293 KB
/srv/reproducible-results/rbuild-debian/r-b-build.u714x7Ly/b1/underscore_1.13.4~dfsg+~1.11.4-3_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.u714x7Ly/b2/underscore_1.13.4~dfsg+~1.11.4-3_arm64.changes
353 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·ab489f52a05cb6f576a7f31bbb51ac3b·115632·javascript·optional·libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb1 ·ab489f52a05cb6f576a7f31bbb51ac3b·115632·javascript·optional·libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb
2 ·57254bfe0fe6c2b34651b3b7aac02df0·120376·javascript·optional·node-underscore_1.13.4~dfsg+~1.11.4-3_all.deb2 ·467045f6534b67ccf5401a280f19afc0·120360·javascript·optional·node-underscore_1.13.4~dfsg+~1.11.4-3_all.deb
292 KB
node-underscore_1.13.4~dfsg+~1.11.4-3_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2023-01-02·04:09:24.000000·debian-binary1 -rw-r--r--···0········0········0········4·2023-01-02·04:09:24.000000·debian-binary
2 -rw-r--r--···0········0········0····11616·2023-01-02·04:09:24.000000·control.tar.xz2 -rw-r--r--···0········0········0····11608·2023-01-02·04:09:24.000000·control.tar.xz
3 -rw-r--r--···0········0········0···108568·2023-01-02·04:09:24.000000·data.tar.xz3 -rw-r--r--···0········0········0···108560·2023-01-02·04:09:24.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
291 KB
data.tar.xz
291 KB
data.tar
60.0 KB
file list
    
Offset 19, 327 lines modifiedOffset 19, 327 lines modified
19 -rw-r--r--···0·root·········(0)·root·········(0)······574·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index.js19 -rw-r--r--···0·root·········(0)·root·········(0)······574·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index.js
20 -rw-r--r--···0·root·········(0)·root·········(0)·····1085·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10.js20 -rw-r--r--···0·root·········(0)·root·········(0)·····1085·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10.js
21 -rw-r--r--···0·root·········(0)·root·········(0)······728·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index100.js21 -rw-r--r--···0·root·········(0)·root·········(0)······728·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index100.js
22 -rw-r--r--···0·root·········(0)·root·········(0)······149·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index101.js22 -rw-r--r--···0·root·········(0)·root·········(0)······149·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index101.js
23 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index102.js23 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index102.js
24 -rw-r--r--···0·root·········(0)·root·········(0)······114·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index103.js24 -rw-r--r--···0·root·········(0)·root·········(0)······114·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index103.js
25 -rw-r--r--···0·root·········(0)·root·········(0)······446·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index104.js25 -rw-r--r--···0·root·········(0)·root·········(0)······446·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index104.js
26 -rw-r--r--···0·root·········(0)·root·········(0)······405·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index105.js 
27 -rw-r--r--···0·root·········(0)·root·········(0)······554·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index106.js26 -rw-r--r--···0·root·········(0)·root·········(0)······554·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index105.js
28 -rw-r--r--···0·root·········(0)·root·········(0)······292·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index107.js27 -rw-r--r--···0·root·········(0)·root·········(0)······405·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index106.js
29 -rw-r--r--···0·root·········(0)·root·········(0)······577·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index108.js28 -rw-r--r--···0·root·········(0)·root·········(0)······577·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index107.js
 29 -rw-r--r--···0·root·········(0)·root·········(0)······292·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index108.js
30 -rw-r--r--···0·root·········(0)·root·········(0)······571·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index109.js30 -rw-r--r--···0·root·········(0)·root·········(0)······571·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index109.js
31 -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11.js31 -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11.js
32 -rw-r--r--···0·root·········(0)·root·········(0)······985·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index110.js 
33 -rw-r--r--···0·root·········(0)·root·········(0)······327·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index111.js32 -rw-r--r--···0·root·········(0)·root·········(0)······327·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index110.js
 33 -rw-r--r--···0·root·········(0)·root·········(0)······985·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index111.js
34 -rw-r--r--···0·root·········(0)·root·········(0)······464·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index112.js34 -rw-r--r--···0·root·········(0)·root·········(0)······464·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index112.js
35 -rw-r--r--···0·root·········(0)·root·········(0)······981·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index113.js35 -rw-r--r--···0·root·········(0)·root·········(0)······981·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index113.js
36 -rw-r--r--···0·root·········(0)·root·········(0)······220·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index114.js 
37 -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index115.js36 -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index114.js
 37 -rw-r--r--···0·root·········(0)·root·········(0)······220·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index115.js
38 -rw-r--r--···0·root·········(0)·root·········(0)······134·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index116.js38 -rw-r--r--···0·root·········(0)·root·········(0)······134·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index116.js
39 -rw-r--r--···0·root·········(0)·root·········(0)······192·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index117.js39 -rw-r--r--···0·root·········(0)·root·········(0)······192·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index117.js
40 -rw-r--r--···0·root·········(0)·root·········(0)······580·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index118.js40 -rw-r--r--···0·root·········(0)·root·········(0)······580·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index118.js
41 -rw-r--r--···0·root·········(0)·root·········(0)······681·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index119.js41 -rw-r--r--···0·root·········(0)·root·········(0)······681·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index119.js
42 -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index12.js42 -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index12.js
43 -rw-r--r--···0·root·········(0)·root·········(0)······252·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index120.js43 -rw-r--r--···0·root·········(0)·root·········(0)······252·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index120.js
44 -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index121.js44 -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index121.js
45 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index122.js 
46 -rw-r--r--···0·root·········(0)·root·········(0)·····1001·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index123.js45 -rw-r--r--···0·root·········(0)·root·········(0)·····1001·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index122.js
 46 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index123.js
47 -rw-r--r--···0·root·········(0)·root·········(0)······840·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index124.js47 -rw-r--r--···0·root·········(0)·root·········(0)······840·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index124.js
48 -rw-r--r--···0·root·········(0)·root·········(0)······237·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index125.js 
49 -rw-r--r--···0·root·········(0)·root·········(0)······384·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index126.js48 -rw-r--r--···0·root·········(0)·root·········(0)······384·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index125.js
50 -rw-r--r--···0·root·········(0)·root·········(0)······296·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index127.js49 -rw-r--r--···0·root·········(0)·root·········(0)······237·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index126.js
51 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index128.js50 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index127.js
 51 -rw-r--r--···0·root·········(0)·root·········(0)······296·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index128.js
52 -rw-r--r--···0·root·········(0)·root·········(0)······640·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index129.js52 -rw-r--r--···0·root·········(0)·root·········(0)······640·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index129.js
53 -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index13.js53 -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index13.js
54 -rw-r--r--···0·root·········(0)·root·········(0)······200·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index130.js54 -rw-r--r--···0·root·········(0)·root·········(0)······200·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index130.js
55 -rw-r--r--···0·root·········(0)·root·········(0)······185·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index131.js55 -rw-r--r--···0·root·········(0)·root·········(0)······185·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index131.js
56 -rw-r--r--···0·root·········(0)·root·········(0)······272·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index132.js 
57 -rw-r--r--···0·root·········(0)·root·········(0)······348·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index133.js56 -rw-r--r--···0·root·········(0)·root·········(0)······348·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index132.js
 57 -rw-r--r--···0·root·········(0)·root·········(0)······272·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index133.js
58 -rw-r--r--···0·root·········(0)·root·········(0)·····1219·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index134.js58 -rw-r--r--···0·root·········(0)·root·········(0)·····1219·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index134.js
59 -rw-r--r--···0·root·········(0)·root·········(0)······785·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index135.js59 -rw-r--r--···0·root·········(0)·root·········(0)······785·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index135.js
60 -rw-r--r--···0·root·········(0)·root·········(0)······982·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index136.js60 -rw-r--r--···0·root·········(0)·root·········(0)······982·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index136.js
61 -rw-r--r--···0·root·········(0)·root·········(0)······161·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index137.js61 -rw-r--r--···0·root·········(0)·root·········(0)······161·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index137.js
62 -rw-r--r--···0·root·········(0)·root·········(0)······264·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index138.js62 -rw-r--r--···0·root·········(0)·root·········(0)······264·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index138.js
63 -rw-r--r--···0·root·········(0)·root·········(0)······556·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index139.js63 -rw-r--r--···0·root·········(0)·root·········(0)······722·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index139.js
64 -rw-r--r--···0·root·········(0)·root·········(0)······608·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index14.js64 -rw-r--r--···0·root·········(0)·root·········(0)······608·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index14.js
65 -rw-r--r--···0·root·········(0)·root·········(0)······722·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index140.js65 -rw-r--r--···0·root·········(0)·root·········(0)······556·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index140.js
66 -rw-r--r--···0·root·········(0)·root·········(0)······587·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index141.js66 -rw-r--r--···0·root·········(0)·root·········(0)······587·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index141.js
67 -rw-r--r--···0·root·········(0)·root·········(0)······338·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index142.js67 -rw-r--r--···0·root·········(0)·root·········(0)······338·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index142.js
68 -rw-r--r--···0·root·········(0)·root·········(0)·····3476·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index143.js68 -rw-r--r--···0·root·········(0)·root·········(0)·····3476·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index143.js
69 -rw-r--r--···0·root·········(0)·root·········(0)······385·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index144.js69 -rw-r--r--···0·root·········(0)·root·········(0)······385·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index144.js
70 -rw-r--r--···0·root·········(0)·root·········(0)·····1567·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index145.js70 -rw-r--r--···0·root·········(0)·root·········(0)······313·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index145.js
71 -rw-r--r--···0·root·········(0)·root·········(0)······659·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index146.js71 -rw-r--r--···0·root·········(0)·root·········(0)······659·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index146.js
72 -rw-r--r--···0·root·········(0)·root·········(0)······313·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index147.js 
73 -rw-r--r--···0·root·········(0)·root·········(0)······304·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index148.js72 -rw-r--r--···0·root·········(0)·root·········(0)······304·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index147.js
74 -rw-r--r--···0·root·········(0)·root·········(0)······978·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index149.js73 -rw-r--r--···0·root·········(0)·root·········(0)······978·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index148.js
 74 -rw-r--r--···0·root·········(0)·root·········(0)·····1567·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index149.js
75 -rw-r--r--···0·root·········(0)·root·········(0)·····1006·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index15.js75 -rw-r--r--···0·root·········(0)·root·········(0)·····1006·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index15.js
76 -rw-r--r--···0·root·········(0)·root·········(0)······210·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index150.js 
77 -rw-r--r--···0·root·········(0)·root·········(0)······844·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index151.js76 -rw-r--r--···0·root·········(0)·root·········(0)······844·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index150.js
78 -rw-r--r--···0·root·········(0)·root·········(0)·····1251·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index152.js77 -rw-r--r--···0·root·········(0)·root·········(0)······210·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index151.js
79 -rw-r--r--···0·root·········(0)·root·········(0)······326·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index153.js78 -rw-r--r--···0·root·········(0)·root·········(0)······326·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index152.js
 79 -rw-r--r--···0·root·········(0)·root·········(0)·····1251·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index153.js
80 -rw-r--r--···0·root·········(0)·root·········(0)······285·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index154.js80 -rw-r--r--···0·root·········(0)·root·········(0)······285·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index154.js
81 -rw-r--r--···0·root·········(0)·root·········(0)······471·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index155.js81 -rw-r--r--···0·root·········(0)·root·········(0)······471·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index155.js
82 -rw-r--r--···0·root·········(0)·root·········(0)······335·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index156.js82 -rw-r--r--···0·root·········(0)·root·········(0)······335·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index156.js
83 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index157.js83 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index157.js
84 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index158.js84 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index158.js
85 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index159.js85 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index159.js
86 -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index16.js86 -rw-r--r--···0·root·········(0)·root·········(0)······191·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index16.js
87 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index160.js87 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index160.js
88 -rw-r--r--···0·root·········(0)·root·········(0)······191·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index17.js88 -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index17.js
89 -rw-r--r--···0·root·········(0)·root·········(0)······491·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index18.js89 -rw-r--r--···0·root·········(0)·root·········(0)······491·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index18.js
90 -rw-r--r--···0·root·········(0)·root·········(0)······240·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index19.js90 -rw-r--r--···0·root·········(0)·root·········(0)······240·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index19.js
91 -rw-r--r--···0·root·········(0)·root·········(0)······715·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2.js91 -rw-r--r--···0·root·········(0)·root·········(0)······435·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2.js
92 -rw-r--r--···0·root·········(0)·root·········(0)······119·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index20.js92 -rw-r--r--···0·root·········(0)·root·········(0)······119·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index20.js
93 -rw-r--r--···0·root·········(0)·root·········(0)······436·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index21.js93 -rw-r--r--···0·root·········(0)·root·········(0)······436·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index21.js
94 -rw-r--r--···0·root·········(0)·root·········(0)······289·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index22.js94 -rw-r--r--···0·root·········(0)·root·········(0)······289·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index22.js
95 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index23.js95 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index23.js
96 -rw-r--r--···0·root·········(0)·root·········(0)·····1708·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index24.js96 -rw-r--r--···0·root·········(0)·root·········(0)·····1708·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index24.js
97 -rw-r--r--···0·root·········(0)·root·········(0)······888·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index25.js97 -rw-r--r--···0·root·········(0)·root·········(0)······888·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index25.js
98 -rw-r--r--···0·root·········(0)·root·········(0)·····2593·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index26.js98 -rw-r--r--···0·root·········(0)·root·········(0)·····2593·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index26.js
99 -rw-r--r--···0·root·········(0)·root·········(0)······255·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index27.js99 -rw-r--r--···0·root·········(0)·root·········(0)······255·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index27.js
100 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index28.js 
101 -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index29.js100 -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index28.js
 101 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index29.js
102 -rw-r--r--···0·root·········(0)·root·········(0)······246·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index3.js102 -rw-r--r--···0·root·········(0)·root·········(0)······715·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index3.js
103 -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index30.js103 -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index30.js
104 -rw-r--r--···0·root·········(0)·root·········(0)······263·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index31.js104 -rw-r--r--···0·root·········(0)·root·········(0)······263·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index31.js
105 -rw-r--r--···0·root·········(0)·root·········(0)······187·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index32.js105 -rw-r--r--···0·root·········(0)·root·········(0)······187·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index32.js
106 -rw-r--r--···0·root·········(0)·root·········(0)······268·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index33.js106 -rw-r--r--···0·root·········(0)·root·········(0)······268·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index33.js
107 -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index34.js107 -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index34.js
108 -rw-r--r--···0·root·········(0)·root·········(0)······356·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index35.js108 -rw-r--r--···0·root·········(0)·root·········(0)······356·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index35.js
109 -rw-r--r--···0·root·········(0)·root·········(0)······532·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index36.js109 -rw-r--r--···0·root·········(0)·root·········(0)······532·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index36.js
110 -rw-r--r--···0·root·········(0)·root·········(0)······234·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index37.js 
111 -rw-r--r--···0·root·········(0)·root·········(0)······631·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index38.js110 -rw-r--r--···0·root·········(0)·root·········(0)······631·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index37.js
112 -rw-r--r--···0·root·········(0)·root·········(0)······413·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index39.js111 -rw-r--r--···0·root·········(0)·root·········(0)······413·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index38.js
 112 -rw-r--r--···0·root·········(0)·root·········(0)······234·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index39.js
113 -rw-r--r--···0·root·········(0)·root·········(0)······435·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index4.js113 -rw-r--r--···0·root·········(0)·root·········(0)······246·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index4.js
114 -rw-r--r--···0·root·········(0)·root·········(0)······288·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index40.js114 -rw-r--r--···0·root·········(0)·root·········(0)······288·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index40.js
115 -rw-r--r--···0·root·········(0)·root·········(0)······182·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index41.js115 -rw-r--r--···0·root·········(0)·root·········(0)······182·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index41.js
116 -rw-r--r--···0·root·········(0)·root·········(0)······456·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index42.js116 -rw-r--r--···0·root·········(0)·root·········(0)······456·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index42.js
117 -rw-r--r--···0·root·········(0)·root·········(0)······205·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index43.js 
118 -rw-r--r--···0·root·········(0)·root·········(0)······406·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index44.js117 -rw-r--r--···0·root·········(0)·root·········(0)······406·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index43.js
119 -rw-r--r--···0·root·········(0)·root·········(0)······378·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index45.js118 -rw-r--r--···0·root·········(0)·root·········(0)······378·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index44.js
120 -rw-r--r--···0·root·········(0)·root·········(0)·····1291·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index46.js119 -rw-r--r--···0·root·········(0)·root·········(0)······205·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index45.js
121 -rw-r--r--···0·root·········(0)·root·········(0)······403·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index47.js120 -rw-r--r--···0·root·········(0)·root·········(0)······403·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index46.js
122 -rw-r--r--···0·root·········(0)·root·········(0)······199·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index48.js121 -rw-r--r--···0·root·········(0)·root·········(0)·····1291·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index47.js
123 -rw-r--r--···0·root·········(0)·root·········(0)······248·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index49.js122 -rw-r--r--···0·root·········(0)·root·········(0)······248·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index48.js
 123 -rw-r--r--···0·root·········(0)·root·········(0)······337·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index49.js
124 -rw-r--r--···0·root·········(0)·root·········(0)·····1429·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index5.js124 -rw-r--r--···0·root·········(0)·root·········(0)·····1429·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index5.js
125 -rw-r--r--···0·root·········(0)·root·········(0)······337·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index50.js125 -rw-r--r--···0·root·········(0)·root·········(0)······199·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index50.js
126 -rw-r--r--···0·root·········(0)·root·········(0)······477·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index51.js126 -rw-r--r--···0·root·········(0)·root·········(0)······477·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index51.js
127 -rw-r--r--···0·root·········(0)·root·········(0)······743·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index52.js127 -rw-r--r--···0·root·········(0)·root·········(0)······743·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index52.js
128 -rw-r--r--···0·root·········(0)·root·········(0)······198·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index53.js128 -rw-r--r--···0·root·········(0)·root·········(0)······198·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index53.js
129 -rw-r--r--···0·root·········(0)·root·········(0)······547·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index54.js129 -rw-r--r--···0·root·········(0)·root·········(0)······547·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index54.js
130 -rw-r--r--···0·root·········(0)·root·········(0)······320·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index55.js 
131 -rw-r--r--···0·root·········(0)·root·········(0)······211·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index56.js130 -rw-r--r--···0·root·········(0)·root·········(0)······211·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index55.js
 131 -rw-r--r--···0·root·········(0)·root·········(0)······320·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index56.js
132 -rw-r--r--···0·root·········(0)·root·········(0)······386·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index57.js132 -rw-r--r--···0·root·········(0)·root·········(0)······383·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index57.js
133 -rw-r--r--···0·root·········(0)·root·········(0)······383·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index58.js 
Max diff block lines reached; 39526/61371 bytes (64.41%) of diff not shown.
726 B
./usr/share/nodejs/underscore/amd/index10.js
638 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index21',·'./index106',·'./index25'],·(function(_isArrayLike,·keys,·_optimizeCb)·{1 define(['./index21',·'./index105',·'./index25'],·(function(_isArrayLike,·keys,·_optimizeCb)·{
  
2 ····//·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right.2 ····//·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right.
3 ····function·createReduce(dir)·{3 ····function·createReduce(dir)·{
4 ········//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than4 ········//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than
5 ········//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991)5 ········//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991)
6 ········var·reducer·=·function(obj,·iteratee,·memo,·initial)·{6 ········var·reducer·=·function(obj,·iteratee,·memo,·initial)·{
7 ············var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),7 ············var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
709 B
./usr/share/nodejs/underscore/amd/index100.js
619 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index26',·'./index84',·'./index43',·'./index22'],·(function(_setup,·isDataView,·constant,·_isBufferLike)·{1 define(['./index26',·'./index82',·'./index45',·'./index22'],·(function(_setup,·isDataView,·constant,·_isBufferLike)·{
  
2 ····//·Is·a·given·value·a·typed·array?2 ····//·Is·a·given·value·a·typed·array?
3 ····var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;3 ····var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
  
4 ····function·isTypedArray(obj)·{4 ····function·isTypedArray(obj)·{
5 ········//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available.5 ········//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available.
6 ········//·Otherwise,·fall·back·on·the·above·regular·expression.6 ········//·Otherwise,·fall·back·on·the·above·regular·expression.
524 B
./usr/share/nodejs/underscore/amd/index102.js
434 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28',·'./index29',·'./index24'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{1 define(['./index29',·'./index28',·'./index24'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{
  
2 ····var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');2 ····var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');
  
3 ····return·isWeakMap;3 ····return·isWeakMap;
  
4 }));4 }));
307 B
./usr/share/nodejs/underscore/amd/index103.js
217 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29'],·(function(_tagTester)·{
  
2 ····var·isWeakSet·=·_tagTester('WeakSet');2 ····var·isWeakSet·=·_tagTester('WeakSet');
  
3 ····return·isWeakSet;3 ····return·isWeakSet;
  
4 }));4 }));
616 B
./usr/share/nodejs/underscore/amd/index104.js
526 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index151',·'./index2'],·(function(underscore,·_baseIteratee)·{1 define(['./index150',·'./index3'],·(function(underscore,·_baseIteratee)·{
  
2 ····//·External·wrapper·for·our·callback·generator.·Users·may·customize2 ····//·External·wrapper·for·our·callback·generator.·Users·may·customize
3 ····//·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles.3 ····//·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles.
4 ····//·This·abstraction·hides·the·internal-only·`argCount`·argument.4 ····//·This·abstraction·hides·the·internal-only·`argCount`·argument.
5 ····function·iteratee(value,·context)·{5 ····function·iteratee(value,·context)·{
6 ········return·_baseIteratee(value,·context,·Infinity);6 ········return·_baseIteratee(value,·context,·Infinity);
7 ····}7 ····}
1.15 KB
./usr/share/nodejs/underscore/amd/index105.js
1.06 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 18 lines modified
1 define(['./index133'],·(function(rest)·{1 define(['./index95',·'./index26',·'./index19',·'./index5'],·(function(isObject,·_setup,·_has,·_collectNonEnumProps)·{
  
2 ····//·Get·the·last·element·of·an·array.·Passing·**n**·will·return·the·last·N 
3 ····//·values·in·the·array. 
4 ····function·last(array,·n,·guard)·{ 
5 ········if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; 
6 ········if·(n·==·null·||·guard)·return·array[array.length·-·1]; 
7 ········return·rest(array,·Math.max(0,·array.length·-·n));2 ····//·Retrieve·the·names·of·an·object's·own·properties.
 3 ····//·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`.
 4 ····function·keys(obj)·{
 5 ········if·(!isObject(obj))·return·[];
 6 ········if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj);
 7 ········var·keys·=·[];
 8 ········for·(var·key·in·obj)
 9 ············if·(_has(obj,·key))·keys.push(key);
 10 ········//·Ahem,·IE·<·9.
 11 ········if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys);
 12 ········return·keys;
8 ····}13 ····}
  
9 ····return·last;14 ····return·keys;
  
10 }));15 }));
1.15 KB
./usr/share/nodejs/underscore/amd/index106.js
1.06 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 13 lines modified
1 define(['./index95',·'./index26',·'./index19',·'./index5'],·(function(isObject,·_setup,·_has,·_collectNonEnumProps)·{1 define(['./index132'],·(function(rest)·{
  
 2 ····//·Get·the·last·element·of·an·array.·Passing·**n**·will·return·the·last·N
 3 ····//·values·in·the·array.
 4 ····function·last(array,·n,·guard)·{
 5 ········if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[];
 6 ········if·(n·==·null·||·guard)·return·array[array.length·-·1];
 7 ········return·rest(array,·Math.max(0,·array.length·-·n));
2 ····//·Retrieve·the·names·of·an·object's·own·properties. 
3 ····//·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`. 
4 ····function·keys(obj)·{ 
5 ········if·(!isObject(obj))·return·[]; 
6 ········if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj); 
7 ········var·keys·=·[]; 
8 ········for·(var·key·in·obj) 
9 ············if·(_has(obj,·key))·keys.push(key); 
10 ········//·Ahem,·IE·<·9. 
11 ········if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys); 
12 ········return·keys; 
13 ····}8 ····}
  
14 ····return·keys;9 ····return·last;
  
15 }));10 }));
1.05 KB
./usr/share/nodejs/underscore/amd/index107.js
987 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 18 lines modified
1 define(['./index61',·'./index8'],·(function(findLastIndex,·_createIndexFinder)·{1 define(['./index2',·'./index21',·'./index105'],·(function(_cb,·_isArrayLike,·keys)·{
  
2 ····//·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array, 
3 ····//·or·-1·if·the·item·is·not·included·in·the·array. 
4 ····var·lastIndexOf·=·_createIndexFinder(-1,·findLastIndex);2 ····//·Return·the·results·of·applying·the·iteratee·to·each·element.
 3 ····function·map(obj,·iteratee,·context)·{
 4 ········iteratee·=·_cb(iteratee,·context);
 5 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
 6 ············length·=·(_keys·||·obj).length,
 7 ············results·=·Array(length);
 8 ········for·(var·index·=·0;·index·<·length;·index++)·{
 9 ············var·currentKey·=·_keys·?·_keys[index]·:·index;
 10 ············results[index]·=·iteratee(obj[currentKey],·currentKey,·obj);
 11 ········}
 12 ········return·results;
 13 ····}
  
5 ····return·lastIndexOf;14 ····return·map;
  
6 }));15 }));
1.05 KB
./usr/share/nodejs/underscore/amd/index108.js
987 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 9 lines modified
1 define(['./index4',·'./index21',·'./index106'],·(function(_cb,·_isArrayLike,·keys)·{1 define(['./index61',·'./index7'],·(function(findLastIndex,·_createIndexFinder)·{
  
 2 ····//·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array,
 3 ····//·or·-1·if·the·item·is·not·included·in·the·array.
 4 ····var·lastIndexOf·=·_createIndexFinder(-1,·findLastIndex);
2 ····//·Return·the·results·of·applying·the·iteratee·to·each·element. 
3 ····function·map(obj,·iteratee,·context)·{ 
4 ········iteratee·=·_cb(iteratee,·context); 
5 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), 
6 ············length·=·(_keys·||·obj).length, 
7 ············results·=·Array(length); 
8 ········for·(var·index·=·0;·index·<·length;·index++)·{ 
9 ············var·currentKey·=·_keys·?·_keys[index]·:·index; 
10 ············results[index]·=·iteratee(obj[currentKey],·currentKey,·obj); 
11 ········} 
12 ········return·results; 
13 ····} 
  
14 ····return·map;5 ····return·lastIndexOf;
  
15 }));6 }));
550 B
./usr/share/nodejs/underscore/amd/index109.js
460 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index106'],·(function(_cb,·keys)·{1 define(['./index2',·'./index105'],·(function(_cb,·keys)·{
  
2 ····//·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`.2 ····//·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`.
3 ····//·In·contrast·to·`_.map`·it·returns·an·object.3 ····//·In·contrast·to·`_.map`·it·returns·an·object.
4 ····function·mapObject(obj,·iteratee,·context)·{4 ····function·mapObject(obj,·iteratee,·context)·{
5 ········iteratee·=·_cb(iteratee,·context);5 ········iteratee·=·_cb(iteratee,·context);
6 ········var·_keys·=·keys(obj),6 ········var·_keys·=·keys(obj),
7 ············length·=·_keys.length,7 ············length·=·_keys.length,
1.62 KB
./usr/share/nodejs/underscore/amd/index110.js
1.53 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 14 lines modified
1 define(['./index21',·'./index156',·'./index4',·'./index52'],·(function(_isArrayLike,·values,·_cb,·each)·{1 define(['./index56',·'./index90'],·(function(extendOwn,·isMatch)·{
  
 2 ····//·Returns·a·predicate·for·checking·whether·an·object·has·a·given·set·of
 3 ····//·`key:value`·pairs.
 4 ····function·matcher(attrs)·{
 5 ········attrs·=·extendOwn({},·attrs);
 6 ········return·function(obj)·{
 7 ············return·isMatch(obj,·attrs);
2 ····//·Return·the·maximum·element·(or·element-based·computation). 
3 ····function·max(obj,·iteratee,·context)·{ 
4 ········var·result·=·-Infinity, 
5 ············lastComputed·=·-Infinity, 
6 ············value,·computed; 
7 ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ 
8 ············obj·=·_isArrayLike(obj)·?·obj·:·values(obj); 
9 ············for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ 
10 ················value·=·obj[i]; 
11 ················if·(value·!=·null·&&·value·>·result)·{ 
12 ····················result·=·value; 
13 ················} 
14 ············} 
15 ········}·else·{ 
16 ············iteratee·=·_cb(iteratee,·context); 
17 ············each(obj,·function(v,·index,·list)·{ 
18 ················computed·=·iteratee(v,·index,·list); 
19 ················if·(computed·>·lastComputed·||·(computed·===·-Infinity·&&·result·===·-Infinity))·{ 
20 ····················result·=·v; 
21 ····················lastComputed·=·computed; 
22 ················} 
23 ············}); 
24 ········}8 ········};
25 ········return·result; 
26 ····}9 ····}
  
27 ····return·max;10 ····return·matcher;
  
28 }));11 }));
1.62 KB
./usr/share/nodejs/underscore/amd/index111.js
1.53 KB
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 31 lines modified
1 define(['./index55',·'./index92'],·(function(extendOwn,·isMatch)·{1 define(['./index21',·'./index156',·'./index2',·'./index52'],·(function(_isArrayLike,·values,·_cb,·each)·{
  
2 ····//·Returns·a·predicate·for·checking·whether·an·object·has·a·given·set·of 
3 ····//·`key:value`·pairs. 
4 ····function·matcher(attrs)·{ 
5 ········attrs·=·extendOwn({},·attrs); 
6 ········return·function(obj)·{ 
7 ············return·isMatch(obj,·attrs);2 ····//·Return·the·maximum·element·(or·element-based·computation).
 3 ····function·max(obj,·iteratee,·context)·{
 4 ········var·result·=·-Infinity,
 5 ············lastComputed·=·-Infinity,
 6 ············value,·computed;
 7 ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{
 8 ············obj·=·_isArrayLike(obj)·?·obj·:·values(obj);
 9 ············for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{
 10 ················value·=·obj[i];
 11 ················if·(value·!=·null·&&·value·>·result)·{
 12 ····················result·=·value;
 13 ················}
 14 ············}
 15 ········}·else·{
 16 ············iteratee·=·_cb(iteratee,·context);
 17 ············each(obj,·function(v,·index,·list)·{
 18 ················computed·=·iteratee(v,·index,·list);
 19 ················if·(computed·>·lastComputed·||·(computed·===·-Infinity·&&·result·===·-Infinity))·{
 20 ····················result·=·v;
 21 ····················lastComputed·=·computed;
 22 ················}
 23 ············});
8 ········};24 ········}
 25 ········return·result;
9 ····}26 ····}
  
10 ····return·matcher;27 ····return·max;
  
11 }));28 }));
671 B
./usr/share/nodejs/underscore/amd/index113.js
581 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index21',·'./index156',·'./index4',·'./index52'],·(function(_isArrayLike,·values,·_cb,·each)·{1 define(['./index21',·'./index156',·'./index2',·'./index52'],·(function(_isArrayLike,·values,·_cb,·each)·{
  
2 ····//·Return·the·minimum·element·(or·element-based·computation).2 ····//·Return·the·minimum·element·(or·element-based·computation).
3 ····function·min(obj,·iteratee,·context)·{3 ····function·min(obj,·iteratee,·context)·{
4 ········var·result·=·Infinity,4 ········var·result·=·Infinity,
5 ············lastComputed·=·Infinity,5 ············lastComputed·=·Infinity,
6 ············value,·computed;6 ············value,·computed;
7 ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{7 ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{
1020 B
./usr/share/nodejs/underscore/amd/index114.js
932 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 18 lines modified
1 define((function()·{1 define(['./index150',·'./index52',·'./index65',·'./index26',·'./index4'],·(function(underscore,·each,·functions,·_setup,·_chainResult)·{
  
2 ····//·Returns·a·negated·version·of·the·passed-in·predicate. 
3 ····function·negate(predicate)·{ 
4 ········return·function()·{ 
5 ············return·!predicate.apply(this,·arguments);2 ····//·Add·your·own·custom·functions·to·the·Underscore·object.
 3 ····function·mixin(obj)·{
 4 ········each(functions(obj),·function(name)·{
 5 ············var·func·=·underscore[name]·=·obj[name];
 6 ············underscore.prototype[name]·=·function()·{
 7 ················var·args·=·[this._wrapped];
 8 ················_setup.push.apply(args,·arguments);
 9 ················return·_chainResult(this,·func.apply(underscore,·args));
 10 ············};
6 ········};11 ········});
 12 ········return·underscore;
7 ····}13 ····}
  
8 ····return·negate;14 ····return·mixin;
  
9 }));15 }));
1020 B
./usr/share/nodejs/underscore/amd/index115.js
932 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 12 lines modified
1 define(['./index151',·'./index52',·'./index65',·'./index26',·'./index3'],·(function(underscore,·each,·functions,·_setup,·_chainResult)·{1 define((function()·{
  
 2 ····//·Returns·a·negated·version·of·the·passed-in·predicate.
 3 ····function·negate(predicate)·{
 4 ········return·function()·{
 5 ············return·!predicate.apply(this,·arguments);
2 ····//·Add·your·own·custom·functions·to·the·Underscore·object. 
3 ····function·mixin(obj)·{ 
4 ········each(functions(obj),·function(name)·{ 
5 ············var·func·=·underscore[name]·=·obj[name]; 
6 ············underscore.prototype[name]·=·function()·{ 
7 ················var·args·=·[this._wrapped]; 
8 ················_setup.push.apply(args,·arguments); 
9 ················return·_chainResult(this,·func.apply(underscore,·args)); 
10 ············}; 
11 ········});6 ········};
12 ········return·underscore; 
13 ····}7 ····}
  
14 ····return·mixin;8 ····return·negate;
  
15 }));9 }));
610 B
./usr/share/nodejs/underscore/amd/index118.js
520 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index17'],·(function(_getLength)·{1 define(['./index16'],·(function(_getLength)·{
  
2 ····//·Converts·lists·into·objects.·Pass·either·a·single·array·of·`[key,·value]`2 ····//·Converts·lists·into·objects.·Pass·either·a·single·array·of·`[key,·value]`
3 ····//·pairs,·or·two·parallel·arrays·of·the·same·length·--·one·of·keys,·and·one·of3 ····//·pairs,·or·two·parallel·arrays·of·the·same·length·--·one·of·keys,·and·one·of
4 ····//·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`.4 ····//·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`.
5 ····function·object(list,·values)·{5 ····function·object(list,·values)·{
6 ········var·result·=·{};6 ········var·result·=·{};
7 ········for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{7 ········for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{
759 B
./usr/share/nodejs/underscore/amd/index119.js
669 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index134',·'./index89',·'./index114',·'./index108',·'./index15',·'./index44',·'./index124'],·(function(restArguments,·isFunction,·negate,·map,·_flatten,·contains,·pick)·{1 define(['./index134',·'./index89',·'./index115',·'./index107',·'./index15',·'./index43',·'./index124'],·(function(restArguments,·isFunction,·negate,·map,·_flatten,·contains,·pick)·{
  
2 ····//·Return·a·copy·of·the·object·without·the·disallowed·properties.2 ····//·Return·a·copy·of·the·object·without·the·disallowed·properties.
3 ····var·omit·=·restArguments(function(obj,·keys)·{3 ····var·omit·=·restArguments(function(obj,·keys)·{
4 ········var·iteratee·=·keys[0],4 ········var·iteratee·=·keys[0],
5 ············context;5 ············context;
6 ········if·(isFunction(iteratee))·{6 ········if·(isFunction(iteratee))·{
7 ············iteratee·=·negate(iteratee);7 ············iteratee·=·negate(iteratee);
466 B
./usr/share/nodejs/underscore/amd/index120.js
376 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index123',·'./index35'],·(function(partial,·before)·{1 define(['./index122',·'./index35'],·(function(partial,·before)·{
  
2 ····//·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how2 ····//·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how
3 ····//·often·you·call·it.·Useful·for·lazy·initialization.3 ····//·often·you·call·it.·Useful·for·lazy·initialization.
4 ····var·once·=·partial(before,·2);4 ····var·once·=·partial(before,·2);
  
5 ····return·once;5 ····return·once;
  
468 B
./usr/share/nodejs/underscore/amd/index121.js
378 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index106'],·(function(keys)·{1 define(['./index105'],·(function(keys)·{
  
2 ····//·Convert·an·object·into·a·list·of·`[key,·value]`·pairs.2 ····//·Convert·an·object·into·a·list·of·`[key,·value]`·pairs.
3 ····//·The·opposite·of·`_.object`·with·one·argument.3 ····//·The·opposite·of·`_.object`·with·one·argument.
4 ····function·pairs(obj)·{4 ····function·pairs(obj)·{
5 ········var·_keys·=·keys(obj);5 ········var·_keys·=·keys(obj);
6 ········var·length·=·_keys.length;6 ········var·length·=·_keys.length;
7 ········var·pairs·=·Array(length);7 ········var·pairs·=·Array(length);
1.56 KB
./usr/share/nodejs/underscore/amd/index122.js
1.47 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 26 lines modified
1 define(['./index18'],·(function(_group)·{1 define(['./index134',·'./index14',·'./index150'],·(function(restArguments,·_executeBound,·underscore)·{
  
2 ····//·Split·a·collection·into·two·arrays:·one·whose·elements·all·pass·the·given 
3 ····//·truth·test,·and·one·whose·elements·all·do·not·pass·the·truth·test. 
4 ····var·partition·=·_group(function(result,·value,·pass)·{ 
5 ········result[pass·?·0·:·1].push(value); 
6 ····},·true);2 ····//·Partially·apply·a·function·by·creating·a·version·that·has·had·some·of·its
 3 ····//·arguments·pre-filled,·without·changing·its·dynamic·`this`·context.·`_`·acts
 4 ····//·as·a·placeholder·by·default,·allowing·any·combination·of·arguments·to·be
 5 ····//·pre-filled.·Set·`_.partial.placeholder`·for·a·custom·placeholder·argument.
 6 ····var·partial·=·restArguments(function(func,·boundArgs)·{
 7 ········var·placeholder·=·partial.placeholder;
 8 ········var·bound·=·function()·{
 9 ············var·position·=·0,
 10 ················length·=·boundArgs.length;
 11 ············var·args·=·Array(length);
 12 ············for·(var·i·=·0;·i·<·length;·i++)·{
 13 ················args[i]·=·boundArgs[i]·===·placeholder·?·arguments[position++]·:·boundArgs[i];
 14 ············}
 15 ············while·(position·<·arguments.length)·args.push(arguments[position++]);
 16 ············return·_executeBound(func,·bound,·this,·this,·args);
 17 ········};
 18 ········return·bound;
 19 ····});
  
 20 ····partial.placeholder·=·underscore;
  
7 ····return·partition;21 ····return·partial;
  
8 }));22 }));
1.56 KB
./usr/share/nodejs/underscore/amd/index123.js
1.47 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 11 lines modified
1 define(['./index134',·'./index14',·'./index151'],·(function(restArguments,·_executeBound,·underscore)·{1 define(['./index18'],·(function(_group)·{
  
 2 ····//·Split·a·collection·into·two·arrays:·one·whose·elements·all·pass·the·given
 3 ····//·truth·test,·and·one·whose·elements·all·do·not·pass·the·truth·test.
 4 ····var·partition·=·_group(function(result,·value,·pass)·{
 5 ········result[pass·?·0·:·1].push(value);
 6 ····},·true);
2 ····//·Partially·apply·a·function·by·creating·a·version·that·has·had·some·of·its 
3 ····//·arguments·pre-filled,·without·changing·its·dynamic·`this`·context.·`_`·acts 
4 ····//·as·a·placeholder·by·default,·allowing·any·combination·of·arguments·to·be 
5 ····//·pre-filled.·Set·`_.partial.placeholder`·for·a·custom·placeholder·argument. 
6 ····var·partial·=·restArguments(function(func,·boundArgs)·{ 
7 ········var·placeholder·=·partial.placeholder; 
8 ········var·bound·=·function()·{ 
9 ············var·position·=·0, 
10 ················length·=·boundArgs.length; 
11 ············var·args·=·Array(length); 
12 ············for·(var·i·=·0;·i·<·length;·i++)·{ 
13 ················args[i]·=·boundArgs[i]·===·placeholder·?·arguments[position++]·:·boundArgs[i]; 
14 ············} 
15 ············while·(position·<·arguments.length)·args.push(arguments[position++]); 
16 ············return·_executeBound(func,·bound,·this,·this,·args); 
17 ········}; 
18 ········return·bound; 
19 ····}); 
  
20 ····partial.placeholder·=·underscore; 
  
21 ····return·partial;7 ····return·partition;
  
22 }));8 }));
798 B
./usr/share/nodejs/underscore/amd/index125.js
708 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 14 lines modified
1 define(['./index108',·'./index126'],·(function(map,·property)·{1 define(['./index12',·'./index31'],·(function(_deepGet,·_toPath)·{
  
2 ····//·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property. 
3 ····function·pluck(obj,·key)·{ 
4 ········return·map(obj,·property(key));2 ····//·Creates·a·function·that,·when·passed·an·object,·will·traverse·that·object’s
 3 ····//·properties·down·the·given·`path`,·specified·as·an·array·of·keys·or·indices.
 4 ····function·property(path)·{
 5 ········path·=·_toPath(path);
 6 ········return·function(obj)·{
 7 ············return·_deepGet(obj,·path);
 8 ········};
5 ····}9 ····}
  
6 ····return·pluck;10 ····return·property;
  
7 }));11 }));
798 B
./usr/share/nodejs/underscore/amd/index126.js
708 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 10 lines modified
1 define(['./index12',·'./index31'],·(function(_deepGet,·_toPath)·{1 define(['./index107',·'./index125'],·(function(map,·property)·{
  
 2 ····//·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property.
 3 ····function·pluck(obj,·key)·{
 4 ········return·map(obj,·property(key));
2 ····//·Creates·a·function·that,·when·passed·an·object,·will·traverse·that·object’s 
3 ····//·properties·down·the·given·`path`,·specified·as·an·array·of·keys·or·indices. 
4 ····function·property(path)·{ 
5 ········path·=·_toPath(path); 
6 ········return·function(obj)·{ 
7 ············return·_deepGet(obj,·path); 
8 ········}; 
9 ····}5 ····}
  
10 ····return·property;6 ····return·pluck;
  
11 }));7 }));
766 B
./usr/share/nodejs/underscore/amd/index127.js
676 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 14 lines modified
1 define(['./index116',·'./index66'],·(function(noop,·get)·{1 define((function()·{
  
2 ····//·Generates·a·function·for·a·given·object·that·returns·a·given·property. 
3 ····function·propertyOf(obj)·{ 
4 ········if·(obj·==·null)·return·noop; 
5 ········return·function(path)·{ 
6 ············return·get(obj,·path);2 ····//·Return·a·random·integer·between·`min`·and·`max`·(inclusive).
 3 ····function·random(min,·max)·{
 4 ········if·(max·==·null)·{
 5 ············max·=·min;
 6 ············min·=·0;
7 ········};7 ········}
 8 ········return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1));
8 ····}9 ····}
  
9 ····return·propertyOf;10 ····return·random;
  
10 }));11 }));
766 B
./usr/share/nodejs/underscore/amd/index128.js
676 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 13 lines modified
1 define((function()·{1 define(['./index116',·'./index66'],·(function(noop,·get)·{
  
2 ····//·Return·a·random·integer·between·`min`·and·`max`·(inclusive). 
3 ····function·random(min,·max)·{ 
4 ········if·(max·==·null)·{ 
5 ············max·=·min; 
6 ············min·=·0;2 ····//·Generates·a·function·for·a·given·object·that·returns·a·given·property.
 3 ····function·propertyOf(obj)·{
 4 ········if·(obj·==·null)·return·noop;
 5 ········return·function(path)·{
 6 ············return·get(obj,·path);
7 ········}7 ········};
8 ········return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1)); 
9 ····}8 ····}
  
10 ····return·random;9 ····return·propertyOf;
  
11 }));10 }));
785 B
./usr/share/nodejs/underscore/amd/index132.js
695 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 12 lines modified
1 define(['./index58',·'./index114',·'./index4'],·(function(filter,·negate,·_cb)·{1 define(['./index26'],·(function(_setup)·{
  
2 ····//·Return·all·the·elements·for·which·a·truth·test·fails. 
3 ····function·reject(obj,·predicate,·context)·{ 
4 ········return·filter(obj,·negate(_cb(predicate)),·context);2 ····//·Returns·everything·but·the·first·entry·of·the·`array`.·Especially·useful·on
 3 ····//·the·`arguments`·object.·Passing·an·**n**·will·return·the·rest·N·values·in·the
 4 ····//·`array`.
 5 ····function·rest(array,·n,·guard)·{
 6 ········return·_setup.slice.call(array,·n·==·null·||·guard·?·1·:·n);
5 ····}7 ····}
  
6 ····return·reject;8 ····return·rest;
  
7 }));9 }));
785 B
./usr/share/nodejs/underscore/amd/index133.js
695 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 10 lines modified
1 define(['./index26'],·(function(_setup)·{1 define(['./index57',·'./index115',·'./index2'],·(function(filter,·negate,·_cb)·{
  
 2 ····//·Return·all·the·elements·for·which·a·truth·test·fails.
 3 ····function·reject(obj,·predicate,·context)·{
 4 ········return·filter(obj,·negate(_cb(predicate)),·context);
2 ····//·Returns·everything·but·the·first·entry·of·the·`array`.·Especially·useful·on 
3 ····//·the·`arguments`·object.·Passing·an·**n**·will·return·the·rest·N·values·in·the 
4 ····//·`array`. 
5 ····function·rest(array,·n,·guard)·{ 
6 ········return·_setup.slice.call(array,·n·==·null·||·guard·?·1·:·n); 
7 ····}5 ····}
  
8 ····return·rest;6 ····return·reject;
  
9 }));7 }));
798 B
./usr/share/nodejs/underscore/amd/index136.js
708 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index21',·'./index156',·'./index17',·'./index128',·'./index146'],·(function(_isArrayLike,·values,·_getLength,·random,·toArray)·{1 define(['./index21',·'./index156',·'./index16',·'./index127',·'./index146'],·(function(_isArrayLike,·values,·_getLength,·random,·toArray)·{
  
2 ····//·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the2 ····//·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the
3 ····//·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).3 ····//·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
4 ····//·If·**n**·is·not·specified,·returns·a·single·random·element.4 ····//·If·**n**·is·not·specified,·returns·a·single·random·element.
5 ····//·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`.5 ····//·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`.
6 ····function·sample(obj,·n,·guard)·{6 ····function·sample(obj,·n,·guard)·{
7 ········if·(n·==·null·||·guard)·{7 ········if·(n·==·null·||·guard)·{
467 B
./usr/share/nodejs/underscore/amd/index138.js
377 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index21',·'./index106'],·(function(_isArrayLike,·keys)·{1 define(['./index21',·'./index105'],·(function(_isArrayLike,·keys)·{
  
2 ····//·Return·the·number·of·elements·in·a·collection.2 ····//·Return·the·number·of·elements·in·a·collection.
3 ····function·size(obj)·{3 ····function·size(obj)·{
4 ········if·(obj·==·null)·return·0;4 ········if·(obj·==·null)·return·0;
5 ········return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;5 ········return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;
6 ····}6 ····}
  
1.55 KB
./usr/share/nodejs/underscore/amd/index139.js
1.46 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 26 lines modified
1 define(['./index4',·'./index21',·'./index106'],·(function(_cb,·_isArrayLike,·keys)·{1 define(['./index2',·'./index126',·'./index107'],·(function(_cb,·pluck,·map)·{
  
2 ····//·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.2 ····//·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.
3 ····function·some(obj,·predicate,·context)·{3 ····function·sortBy(obj,·iteratee,·context)·{
 4 ········var·index·=·0;
4 ········predicate·=·_cb(predicate,·context);5 ········iteratee·=·_cb(iteratee,·context);
5 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), 
6 ············length·=·(_keys·||·obj).length; 
7 ········for·(var·index·=·0;·index·<·length;·index++)·{ 
8 ············var·currentKey·=·_keys·?·_keys[index]·:·index; 
9 ············if·(predicate(obj[currentKey],·currentKey,·obj))·return·true;6 ········return·pluck(map(obj,·function(value,·key,·list)·{
 7 ············return·{
 8 ················value:·value,
 9 ················index:·index++,
 10 ················criteria:·iteratee(value,·key,·list)
 11 ············};
 12 ········}).sort(function(left,·right)·{
 13 ············var·a·=·left.criteria;
 14 ············var·b·=·right.criteria;
 15 ············if·(a·!==·b)·{
 16 ················if·(a·>·b·||·a·===·void·0)·return·1;
 17 ················if·(a·<·b·||·b·===·void·0)·return·-1;
10 ········}18 ············}
11 ········return·false;19 ············return·left.index·-·right.index;
 20 ········}),·'value');
12 ····}21 ····}
  
13 ····return·some;22 ····return·sortBy;
  
14 }));23 }));
1.55 KB
./usr/share/nodejs/underscore/amd/index140.js
1.46 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 17 lines modified
1 define(['./index4',·'./index125',·'./index108'],·(function(_cb,·pluck,·map)·{1 define(['./index2',·'./index21',·'./index105'],·(function(_cb,·_isArrayLike,·keys)·{
  
2 ····//·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.2 ····//·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.
3 ····function·sortBy(obj,·iteratee,·context)·{3 ····function·some(obj,·predicate,·context)·{
4 ········var·index·=·0; 
5 ········iteratee·=·_cb(iteratee,·context);4 ········predicate·=·_cb(predicate,·context);
 5 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
 6 ············length·=·(_keys·||·obj).length;
 7 ········for·(var·index·=·0;·index·<·length;·index++)·{
 8 ············var·currentKey·=·_keys·?·_keys[index]·:·index;
 9 ············if·(predicate(obj[currentKey],·currentKey,·obj))·return·true;
6 ········return·pluck(map(obj,·function(value,·key,·list)·{ 
7 ············return·{ 
8 ················value:·value, 
9 ················index:·index++, 
10 ················criteria:·iteratee(value,·key,·list) 
11 ············}; 
12 ········}).sort(function(left,·right)·{ 
13 ············var·a·=·left.criteria; 
14 ············var·b·=·right.criteria; 
15 ············if·(a·!==·b)·{ 
16 ················if·(a·>·b·||·a·===·void·0)·return·1; 
17 ················if·(a·<·b·||·b·===·void·0)·return·-1; 
18 ············}10 ········}
 11 ········return·false;
19 ············return·left.index·-·right.index; 
20 ········}),·'value'); 
21 ····}12 ····}
  
22 ····return·sortBy;13 ····return·some;
  
23 }));14 }));
586 B
./usr/share/nodejs/underscore/amd/index141.js
496 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index17'],·(function(_cb,·_getLength)·{1 define(['./index2',·'./index16'],·(function(_cb,·_getLength)·{
  
2 ····//·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which2 ····//·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which
3 ····//·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search.3 ····//·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search.
4 ····function·sortedIndex(array,·obj,·iteratee,·context)·{4 ····function·sortedIndex(array,·obj,·iteratee,·context)·{
5 ········iteratee·=·_cb(iteratee,·context,·1);5 ········iteratee·=·_cb(iteratee,·context,·1);
6 ········var·value·=·iteratee(obj);6 ········var·value·=·iteratee(obj);
7 ········var·low·=·0,7 ········var·low·=·0,
632 B
./usr/share/nodejs/underscore/amd/index143.js
542 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index48',·'./index151',·'./index144'],·(function(defaults,·underscore,·templateSettings)·{1 define(['./index50',·'./index150',·'./index144'],·(function(defaults,·underscore,·templateSettings)·{
  
2 ····//·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an2 ····//·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an
3 ····//·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is3 ····//·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is
4 ····//·guaranteed·not·to·match.4 ····//·guaranteed·not·to·match.
5 ····var·noMatch·=·/(.)^/;5 ····var·noMatch·=·/(.)^/;
  
6 ····//·Certain·characters·need·to·be·escaped·so·that·they·can·be·put·into·a6 ····//·Certain·characters·need·to·be·escaped·so·that·they·can·be·put·into·a
553 B
./usr/share/nodejs/underscore/amd/index144.js
463 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index151'],·(function(underscore)·{1 define(['./index150'],·(function(underscore)·{
  
2 ····//·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the2 ····//·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the
3 ····//·following·template·settings·to·use·alternative·delimiters.3 ····//·following·template·settings·to·use·alternative·delimiters.
4 ····var·templateSettings·=·underscore.templateSettings·=·{4 ····var·templateSettings·=·underscore.templateSettings·=·{
5 ········evaluate:·/<%([\s\S]+?)%>/g,5 ········evaluate:·/<%([\s\S]+?)%>/g,
6 ········interpolate:·/<%=([\s\S]+?)%>/g,6 ········interpolate:·/<%=([\s\S]+?)%>/g,
7 ········escape:·/<%-([\s\S]+?)%>/g7 ········escape:·/<%-([\s\S]+?)%>/g
2.25 KB
./usr/share/nodejs/underscore/amd/index145.js
2.16 KB
js-beautify {}
    
Offset 1, 51 lines modifiedOffset 1, 13 lines modified
1 define(['./index117'],·(function(now)·{1 define(['./index25'],·(function(_optimizeCb)·{
  
 2 ····//·Run·a·function·**n**·times.
 3 ····function·times(n,·iteratee,·context)·{
 4 ········var·accum·=·Array(Math.max(0,·n));
 5 ········iteratee·=·_optimizeCb(iteratee,·context,·1);
 6 ········for·(var·i·=·0;·i·<·n;·i++)·accum[i]·=·iteratee(i);
 7 ········return·accum;
2 ····//·Returns·a·function,·that,·when·invoked,·will·only·be·triggered·at·most·once 
3 ····//·during·a·given·window·of·time.·Normally,·the·throttled·function·will·run 
4 ····//·as·much·as·it·can,·without·ever·going·more·than·once·per·`wait`·duration; 
5 ····//·but·if·you'd·like·to·disable·the·execution·on·the·leading·edge,·pass 
6 ····//·`{leading:·false}`.·To·disable·execution·on·the·trailing·edge,·ditto. 
7 ····function·throttle(func,·wait,·options)·{ 
8 ········var·timeout,·context,·args,·result; 
9 ········var·previous·=·0; 
10 ········if·(!options)·options·=·{}; 
  
11 ········var·later·=·function()·{ 
12 ············previous·=·options.leading·===·false·?·0·:·now(); 
13 ············timeout·=·null; 
14 ············result·=·func.apply(context,·args); 
15 ············if·(!timeout)·context·=·args·=·null; 
16 ········}; 
  
17 ········var·throttled·=·function()·{ 
18 ············var·_now·=·now(); 
19 ············if·(!previous·&&·options.leading·===·false)·previous·=·_now; 
20 ············var·remaining·=·wait·-·(_now·-·previous); 
21 ············context·=·this; 
22 ············args·=·arguments; 
23 ············if·(remaining·<=·0·||·remaining·>·wait)·{ 
24 ················if·(timeout)·{ 
25 ····················clearTimeout(timeout); 
26 ····················timeout·=·null; 
27 ················} 
28 ················previous·=·_now; 
29 ················result·=·func.apply(context,·args); 
30 ················if·(!timeout)·context·=·args·=·null; 
31 ············}·else·if·(!timeout·&&·options.trailing·!==·false)·{ 
32 ················timeout·=·setTimeout(later,·remaining); 
33 ············} 
34 ············return·result; 
35 ········}; 
  
36 ········throttled.cancel·=·function()·{ 
37 ············clearTimeout(timeout); 
38 ············previous·=·0; 
39 ············timeout·=·context·=·args·=·null; 
40 ········}; 
  
41 ········return·throttled; 
42 ····}8 ····}
  
43 ····return·throttle;9 ····return·times;
  
44 }));10 }));
769 B
./usr/share/nodejs/underscore/amd/index146.js
679 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index78',·'./index26',·'./index97',·'./index21',·'./index108',·'./index70',·'./index156'],·(function(isArray,·_setup,·isString,·_isArrayLike,·map,·identity,·values)·{1 define(['./index78',·'./index26',·'./index97',·'./index21',·'./index107',·'./index69',·'./index156'],·(function(isArray,·_setup,·isString,·_isArrayLike,·map,·identity,·values)·{
  
2 ····//·Safely·create·a·real,·live·array·from·anything·iterable.2 ····//·Safely·create·a·real,·live·array·from·anything·iterable.
3 ····var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;3 ····var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
  
4 ····function·toArray(obj)·{4 ····function·toArray(obj)·{
5 ········if·(!obj)·return·[];5 ········if·(!obj)·return·[];
6 ········if·(isArray(obj))·return·_setup.slice.call(obj);6 ········if·(isArray(obj))·return·_setup.slice.call(obj);
797 B
./usr/share/nodejs/underscore/amd/index147.js
707 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 12 lines modified
1 define(['./index25'],·(function(_optimizeCb)·{1 define(['./index150',·'./index78'],·(function(underscore,·isArray)·{
  
 2 ····//·Normalize·a·(deep)·property·`path`·to·array.
 3 ····//·Like·`_.iteratee`,·this·function·can·be·customized.
 4 ····function·toPath(path)·{
 5 ········return·isArray(path)·?·path·:·[path];
2 ····//·Run·a·function·**n**·times. 
3 ····function·times(n,·iteratee,·context)·{ 
4 ········var·accum·=·Array(Math.max(0,·n)); 
5 ········iteratee·=·_optimizeCb(iteratee,·context,·1); 
6 ········for·(var·i·=·0;·i·<·n;·i++)·accum[i]·=·iteratee(i); 
7 ········return·accum; 
8 ····}6 ····}
 7 ····underscore.toPath·=·toPath;
  
9 ····return·times;8 ····return·toPath;
  
10 }));9 }));
1.54 KB
./usr/share/nodejs/underscore/amd/index148.js
1.45 KB
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 30 lines modified
1 define(['./index151',·'./index78'],·(function(underscore,·isArray)·{1 define(['./index150',·'./index52',·'./index26',·'./index4'],·(function(underscore,·each,·_setup,·_chainResult)·{
  
2 ····//·Normalize·a·(deep)·property·`path`·to·array. 
3 ····//·Like·`_.iteratee`,·this·function·can·be·customized. 
4 ····function·toPath(path)·{ 
5 ········return·isArray(path)·?·path·:·[path];2 ····//·Add·all·mutator·`Array`·functions·to·the·wrapper.
 3 ····each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{
 4 ········var·method·=·_setup.ArrayProto[name];
 5 ········underscore.prototype[name]·=·function()·{
 6 ············var·obj·=·this._wrapped;
 7 ············if·(obj·!=·null)·{
 8 ················method.apply(obj,·arguments);
 9 ················if·((name·===·'shift'·||·name·===·'splice')·&&·obj.length·===·0)·{
 10 ····················delete·obj[0];
 11 ················}
 12 ············}
 13 ············return·_chainResult(this,·obj);
 14 ········};
6 ····}15 ····});
7 ····underscore.toPath·=·toPath; 
  
8 ····return·toPath;16 ····//·Add·all·accessor·`Array`·functions·to·the·wrapper.
 17 ····each(['concat',·'join',·'slice'],·function(name)·{
 18 ········var·method·=·_setup.ArrayProto[name];
 19 ········underscore.prototype[name]·=·function()·{
 20 ············var·obj·=·this._wrapped;
 21 ············if·(obj·!=·null)·obj·=·method.apply(obj,·arguments);
 22 ············return·_chainResult(this,·obj);
 23 ········};
 24 ····});
  
 25 ····return·underscore;
  
9 }));26 }));
2.95 KB
./usr/share/nodejs/underscore/amd/index149.js
2.86 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 51 lines modified
1 define(['./index151',·'./index52',·'./index26',·'./index3'],·(function(underscore,·each,·_setup,·_chainResult)·{1 define(['./index117'],·(function(now)·{
  
2 ····//·Add·all·mutator·`Array`·functions·to·the·wrapper. 
3 ····each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{ 
4 ········var·method·=·_setup.ArrayProto[name]; 
5 ········underscore.prototype[name]·=·function()·{ 
6 ············var·obj·=·this._wrapped; 
7 ············if·(obj·!=·null)·{ 
8 ················method.apply(obj,·arguments); 
9 ················if·((name·===·'shift'·||·name·===·'splice')·&&·obj.length·===·0)·{ 
10 ····················delete·obj[0];2 ····//·Returns·a·function,·that,·when·invoked,·will·only·be·triggered·at·most·once
 3 ····//·during·a·given·window·of·time.·Normally,·the·throttled·function·will·run
 4 ····//·as·much·as·it·can,·without·ever·going·more·than·once·per·`wait`·duration;
 5 ····//·but·if·you'd·like·to·disable·the·execution·on·the·leading·edge,·pass
 6 ····//·`{leading:·false}`.·To·disable·execution·on·the·trailing·edge,·ditto.
 7 ····function·throttle(func,·wait,·options)·{
 8 ········var·timeout,·context,·args,·result;
 9 ········var·previous·=·0;
 10 ········if·(!options)·options·=·{};
  
 11 ········var·later·=·function()·{
 12 ············previous·=·options.leading·===·false·?·0·:·now();
 13 ············timeout·=·null;
 14 ············result·=·func.apply(context,·args);
 15 ············if·(!timeout)·context·=·args·=·null;
 16 ········};
  
 17 ········var·throttled·=·function()·{
 18 ············var·_now·=·now();
 19 ············if·(!previous·&&·options.leading·===·false)·previous·=·_now;
 20 ············var·remaining·=·wait·-·(_now·-·previous);
 21 ············context·=·this;
 22 ············args·=·arguments;
 23 ············if·(remaining·<=·0·||·remaining·>·wait)·{
 24 ················if·(timeout)·{
 25 ····················clearTimeout(timeout);
 26 ····················timeout·=·null;
11 ················}27 ················}
 28 ················previous·=·_now;
 29 ················result·=·func.apply(context,·args);
 30 ················if·(!timeout)·context·=·args·=·null;
 31 ············}·else·if·(!timeout·&&·options.trailing·!==·false)·{
 32 ················timeout·=·setTimeout(later,·remaining);
12 ············}33 ············}
13 ············return·_chainResult(this,·obj);34 ············return·result;
14 ········};35 ········};
15 ····}); 
  
 36 ········throttled.cancel·=·function()·{
 37 ············clearTimeout(timeout);
 38 ············previous·=·0;
 39 ············timeout·=·context·=·args·=·null;
16 ····//·Add·all·accessor·`Array`·functions·to·the·wrapper. 
17 ····each(['concat',·'join',·'slice'],·function(name)·{ 
18 ········var·method·=·_setup.ArrayProto[name]; 
19 ········underscore.prototype[name]·=·function()·{ 
20 ············var·obj·=·this._wrapped; 
21 ············if·(obj·!=·null)·obj·=·method.apply(obj,·arguments); 
22 ············return·_chainResult(this,·obj); 
23 ········};40 ········};
24 ····}); 
  
25 ····return·underscore;41 ········return·throttled;
 42 ····}
  
 43 ····return·throttle;
  
26 }));44 }));
634 B
./usr/share/nodejs/underscore/amd/index15.js
546 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index17',·'./index21',·'./index78',·'./index79'],·(function(_getLength,·_isArrayLike,·isArray,·isArguments)·{1 define(['./index16',·'./index21',·'./index78',·'./index75'],·(function(_getLength,·_isArrayLike,·isArray,·isArguments)·{
  
2 ····//·Internal·implementation·of·a·recursive·`flatten`·function.2 ····//·Internal·implementation·of·a·recursive·`flatten`·function.
3 ····function·flatten(input,·depth,·strict,·output)·{3 ····function·flatten(input,·depth,·strict,·output)·{
4 ········output·=·output·||·[];4 ········output·=·output·||·[];
5 ········if·(!depth·&&·depth·!==·0)·{5 ········if·(!depth·&&·depth·!==·0)·{
6 ············depth·=·Infinity;6 ············depth·=·Infinity;
7 ········}·else·if·(depth·<=·0)·{7 ········}·else·if·(depth·<=·0)·{
1.24 KB
./usr/share/nodejs/underscore/amd/index150.js
1.15 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 29 lines modified
1 define(['./index7',·'./index32'],·(function(_createEscaper,·_unescapeMap)·{1 define(['./index26'],·(function(_setup)·{
  
2 ····//·Function·for·unescaping·strings·from·HTML·interpolation. 
3 ····var·unescape·=·_createEscaper(_unescapeMap);2 ····//·If·Underscore·is·called·as·a·function,·it·returns·a·wrapped·object·that·can
 3 ····//·be·used·OO-style.·This·wrapper·holds·altered·versions·of·all·functions·added
 4 ····//·through·`_.mixin`.·Wrapped·objects·may·be·chained.
 5 ····function·_(obj)·{
 6 ········if·(obj·instanceof·_)·return·obj;
 7 ········if·(!(this·instanceof·_))·return·new·_(obj);
 8 ········this._wrapped·=·obj;
 9 ····}
  
4 ····return·unescape;10 ····_.VERSION·=·_setup.VERSION;
  
 11 ····//·Extracts·the·result·from·a·wrapped·and·chained·object.
 12 ····_.prototype.value·=·function()·{
 13 ········return·this._wrapped;
 14 ····};
  
 15 ····//·Provide·unwrapping·proxies·for·some·methods·used·in·engine·operations
 16 ····//·such·as·arithmetic·and·JSON·stringification.
 17 ····_.prototype.valueOf·=·_.prototype.toJSON·=·_.prototype.value;
  
 18 ····_.prototype.toString·=·function()·{
 19 ········return·String(this._wrapped);
 20 ····};
  
 21 ····return·_;
  
5 }));22 }));
1.24 KB
./usr/share/nodejs/underscore/amd/index151.js
1.15 KB
js-beautify {}
    
Offset 1, 29 lines modifiedOffset 1, 8 lines modified
1 define(['./index26'],·(function(_setup)·{1 define(['./index8',·'./index32'],·(function(_createEscaper,·_unescapeMap)·{
  
 2 ····//·Function·for·unescaping·strings·from·HTML·interpolation.
 3 ····var·unescape·=·_createEscaper(_unescapeMap);
2 ····//·If·Underscore·is·called·as·a·function,·it·returns·a·wrapped·object·that·can 
3 ····//·be·used·OO-style.·This·wrapper·holds·altered·versions·of·all·functions·added 
4 ····//·through·`_.mixin`.·Wrapped·objects·may·be·chained. 
5 ····function·_(obj)·{ 
6 ········if·(obj·instanceof·_)·return·obj; 
7 ········if·(!(this·instanceof·_))·return·new·_(obj); 
8 ········this._wrapped·=·obj; 
9 ····} 
  
 4 ····return·unescape;
10 ····_.VERSION·=·_setup.VERSION; 
  
11 ····//·Extracts·the·result·from·a·wrapped·and·chained·object. 
12 ····_.prototype.value·=·function()·{ 
13 ········return·this._wrapped; 
14 ····}; 
  
15 ····//·Provide·unwrapping·proxies·for·some·methods·used·in·engine·operations 
16 ····//·such·as·arithmetic·and·JSON·stringification. 
17 ····_.prototype.valueOf·=·_.prototype.toJSON·=·_.prototype.value; 
  
18 ····_.prototype.toString·=·function()·{ 
19 ········return·String(this._wrapped); 
20 ····}; 
  
21 ····return·_; 
  
22 }));5 }));
1.88 KB
./usr/share/nodejs/underscore/amd/index152.js
1.79 KB
js-beautify {}
    
Offset 1, 37 lines modifiedOffset 1, 11 lines modified
1 define(['./index81',·'./index4',·'./index17',·'./index44'],·(function(isBoolean,·_cb,·_getLength,·contains)·{1 define(['./index134',·'./index153',·'./index15'],·(function(restArguments,·uniq,·_flatten)·{
  
 2 ····//·Produce·an·array·that·contains·the·union:·each·distinct·element·from·all·of
 3 ····//·the·passed-in·arrays.
 4 ····var·union·=·restArguments(function(arrays)·{
 5 ········return·uniq(_flatten(arrays,·true,·true));
2 ····//·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already 
3 ····//·been·sorted,·you·have·the·option·of·using·a·faster·algorithm. 
4 ····//·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee 
5 ····//·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable 
6 ····//·the·faster·algorithm. 
7 ····function·uniq(array,·isSorted,·iteratee,·context)·{ 
8 ········if·(!isBoolean(isSorted))·{ 
9 ············context·=·iteratee; 
10 ············iteratee·=·isSorted; 
11 ············isSorted·=·false; 
12 ········} 
13 ········if·(iteratee·!=·null)·iteratee·=·_cb(iteratee,·context); 
14 ········var·result·=·[]; 
15 ········var·seen·=·[]; 
16 ········for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{ 
17 ············var·value·=·array[i], 
18 ················computed·=·iteratee·?·iteratee(value,·i,·array)·:·value; 
19 ············if·(isSorted·&&·!iteratee)·{ 
20 ················if·(!i·||·seen·!==·computed)·result.push(value); 
21 ················seen·=·computed; 
22 ············}·else·if·(iteratee)·{ 
23 ················if·(!contains(seen,·computed))·{ 
24 ····················seen.push(computed); 
25 ····················result.push(value); 
26 ················} 
27 ············}·else·if·(!contains(result,·value))·{ 
28 ················result.push(value); 
29 ············} 
30 ········} 
31 ········return·result; 
32 ····}6 ····});
  
33 ····return·uniq;7 ····return·union;
  
34 }));8 }));
1.88 KB
./usr/share/nodejs/underscore/amd/index153.js
1.79 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 37 lines modified
1 define(['./index134',·'./index152',·'./index15'],·(function(restArguments,·uniq,·_flatten)·{1 define(['./index80',·'./index2',·'./index16',·'./index43'],·(function(isBoolean,·_cb,·_getLength,·contains)·{
  
2 ····//·Produce·an·array·that·contains·the·union:·each·distinct·element·from·all·of 
3 ····//·the·passed-in·arrays. 
4 ····var·union·=·restArguments(function(arrays)·{ 
5 ········return·uniq(_flatten(arrays,·true,·true));2 ····//·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already
 3 ····//·been·sorted,·you·have·the·option·of·using·a·faster·algorithm.
 4 ····//·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee
 5 ····//·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable
 6 ····//·the·faster·algorithm.
 7 ····function·uniq(array,·isSorted,·iteratee,·context)·{
 8 ········if·(!isBoolean(isSorted))·{
 9 ············context·=·iteratee;
 10 ············iteratee·=·isSorted;
 11 ············isSorted·=·false;
 12 ········}
 13 ········if·(iteratee·!=·null)·iteratee·=·_cb(iteratee,·context);
 14 ········var·result·=·[];
 15 ········var·seen·=·[];
 16 ········for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{
 17 ············var·value·=·array[i],
 18 ················computed·=·iteratee·?·iteratee(value,·i,·array)·:·value;
 19 ············if·(isSorted·&&·!iteratee)·{
 20 ················if·(!i·||·seen·!==·computed)·result.push(value);
 21 ················seen·=·computed;
 22 ············}·else·if·(iteratee)·{
 23 ················if·(!contains(seen,·computed))·{
 24 ····················seen.push(computed);
 25 ····················result.push(value);
 26 ················}
 27 ············}·else·if·(!contains(result,·value))·{
 28 ················result.push(value);
 29 ············}
 30 ········}
 31 ········return·result;
6 ····});32 ····}
  
7 ····return·union;33 ····return·uniq;
  
8 }));34 }));
567 B
./usr/share/nodejs/underscore/amd/index155.js
477 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index110',·'./index17',·'./index125'],·(function(max,·_getLength,·pluck)·{1 define(['./index111',·'./index16',·'./index126'],·(function(max,·_getLength,·pluck)·{
  
2 ····//·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups2 ····//·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups
3 ····//·each·array's·elements·on·shared·indices.3 ····//·each·array's·elements·on·shared·indices.
4 ····function·unzip(array)·{4 ····function·unzip(array)·{
5 ········var·length·=·(array·&&·max(array,·_getLength).length)·||·0;5 ········var·length·=·(array·&&·max(array,·_getLength).length)·||·0;
6 ········var·result·=·Array(length);6 ········var·result·=·Array(length);
  
452 B
./usr/share/nodejs/underscore/amd/index156.js
362 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index106'],·(function(keys)·{1 define(['./index105'],·(function(keys)·{
  
2 ····//·Retrieve·the·values·of·an·object's·properties.2 ····//·Retrieve·the·values·of·an·object's·properties.
3 ····function·values(obj)·{3 ····function·values(obj)·{
4 ········var·_keys·=·keys(obj);4 ········var·_keys·=·keys(obj);
5 ········var·length·=·_keys.length;5 ········var·length·=·_keys.length;
6 ········var·values·=·Array(length);6 ········var·values·=·Array(length);
7 ········for·(var·i·=·0;·i·<·length;·i++)·{7 ········for·(var·i·=·0;·i·<·length;·i++)·{
490 B
./usr/share/nodejs/underscore/amd/index157.js
400 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index58',·'./index111'],·(function(filter,·matcher)·{1 define(['./index57',·'./index110'],·(function(filter,·matcher)·{
  
2 ····//·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only2 ····//·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only
3 ····//·objects·containing·specific·`key:value`·pairs.3 ····//·objects·containing·specific·`key:value`·pairs.
4 ····function·where(obj,·attrs)·{4 ····function·where(obj,·attrs)·{
5 ········return·filter(obj,·matcher(attrs));5 ········return·filter(obj,·matcher(attrs));
6 ····}6 ····}
  
507 B
./usr/share/nodejs/underscore/amd/index159.js
417 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index123'],·(function(partial)·{1 define(['./index122'],·(function(partial)·{
  
2 ····//·Returns·the·first·function·passed·as·an·argument·to·the·second,2 ····//·Returns·the·first·function·passed·as·an·argument·to·the·second,
3 ····//·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and3 ····//·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and
4 ····//·conditionally·execute·the·original·function.4 ····//·conditionally·execute·the·original·function.
5 ····function·wrap(func,·wrapper)·{5 ····function·wrap(func,·wrapper)·{
6 ········return·partial(wrapper,·func);6 ········return·partial(wrapper,·func);
7 ····}7 ····}
497 B
./usr/share/nodejs/underscore/amd/index16.js
409 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index27'],·(function(_shallowProperty)·{1 define(['./index27'],·(function(_shallowProperty)·{
  
2 ····//·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object.2 ····//·Internal·helper·to·obtain·the·`length`·property·of·an·object.
3 ····var·getByteLength·=·_shallowProperty('byteLength');3 ····var·getLength·=·_shallowProperty('length');
  
4 ····return·getByteLength;4 ····return·getLength;
  
5 }));5 }));
497 B
./usr/share/nodejs/underscore/amd/index17.js
409 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index27'],·(function(_shallowProperty)·{1 define(['./index27'],·(function(_shallowProperty)·{
  
2 ····//·Internal·helper·to·obtain·the·`length`·property·of·an·object.2 ····//·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object.
3 ····var·getLength·=·_shallowProperty('length');3 ····var·getByteLength·=·_shallowProperty('byteLength');
  
4 ····return·getLength;4 ····return·getByteLength;
  
5 }));5 }));
496 B
./usr/share/nodejs/underscore/amd/index18.js
408 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index52'],·(function(_cb,·each)·{1 define(['./index2',·'./index52'],·(function(_cb,·each)·{
  
2 ····//·An·internal·function·used·for·aggregate·"group·by"·operations.2 ····//·An·internal·function·used·for·aggregate·"group·by"·operations.
3 ····function·group(behavior,·partition)·{3 ····function·group(behavior,·partition)·{
4 ········return·function(obj,·iteratee,·context)·{4 ········return·function(obj,·iteratee,·context)·{
5 ············var·result·=·partition·?·[5 ············var·result·=·partition·?·[
6 ················[],6 ················[],
7 ················[]7 ················[]
1.3 KB
./usr/share/nodejs/underscore/amd/index2.js
1.22 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 12 lines modified
1 define(['./index70',·'./index89',·'./index95',·'./index78',·'./index111',·'./index126',·'./index25'],·(function(identity,·isFunction,·isObject,·isArray,·matcher,·property,·_optimizeCb)·{1 define(['./index150',·'./index3',·'./index104'],·(function(underscore,·_baseIteratee,·iteratee)·{
  
 2 ····//·The·function·we·call·internally·to·generate·a·callback.·It·invokes
 3 ····//·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`.
2 ····//·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each 
3 ····//·element·in·a·collection,·returning·the·desired·result··either·`_.identity`, 
4 ····//·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor. 
5 ····function·baseIteratee(value,·context,·argCount)·{4 ····function·cb(value,·context,·argCount)·{
 5 ········if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context);
 6 ········return·_baseIteratee(value,·context,·argCount);
6 ········if·(value·==·null)·return·identity; 
7 ········if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount); 
8 ········if·(isObject(value)·&&·!isArray(value))·return·matcher(value); 
9 ········return·property(value); 
10 ····}7 ····}
  
11 ····return·baseIteratee;8 ····return·cb;
  
12 }));9 }));
310 B
./usr/share/nodejs/underscore/amd/index20.js
222 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29'],·(function(_tagTester)·{
  
2 ····var·hasObjectTag·=·_tagTester('Object');2 ····var·hasObjectTag·=·_tagTester('Object');
  
3 ····return·hasObjectTag;3 ····return·hasObjectTag;
  
4 }));4 }));
649 B
./usr/share/nodejs/underscore/amd/index21.js
561 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index11',·'./index17'],·(function(_createSizePropertyCheck,·_getLength)·{1 define(['./index11',·'./index16'],·(function(_createSizePropertyCheck,·_getLength)·{
  
2 ····//·Internal·helper·for·collection·methods·to·determine·whether·a·collection2 ····//·Internal·helper·for·collection·methods·to·determine·whether·a·collection
3 ····//·should·be·iterated·as·an·array·or·as·an·object.3 ····//·should·be·iterated·as·an·array·or·as·an·object.
4 ····//·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength4 ····//·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
5 ····//·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#20945 ····//·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094
6 ····var·isArrayLike·=·_createSizePropertyCheck(_getLength);6 ····var·isArrayLike·=·_createSizePropertyCheck(_getLength);
  
525 B
./usr/share/nodejs/underscore/amd/index22.js
437 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index11',·'./index16'],·(function(_createSizePropertyCheck,·_getByteLength)·{1 define(['./index11',·'./index17'],·(function(_createSizePropertyCheck,·_getByteLength)·{
  
2 ····//·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against2 ····//·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against
3 ····//·`ArrayBuffer`·et·al.3 ····//·`ArrayBuffer`·et·al.
4 ····var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);4 ····var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);
  
5 ····return·isBufferLike;5 ····return·isBufferLike;
  
726 B
./usr/share/nodejs/underscore/amd/index24.js
638 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['exports',·'./index17',·'./index89',·'./index34'],·(function(exports,·_getLength,·isFunction,·allKeys)·{1 define(['exports',·'./index16',·'./index89',·'./index34'],·(function(exports,·_getLength,·isFunction,·allKeys)·{
  
2 ····//·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for2 ····//·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for
3 ····//·some·types·in·IE·11,·we·use·a·fingerprinting·heuristic·instead,·based3 ····//·some·types·in·IE·11,·we·use·a·fingerprinting·heuristic·instead,·based
4 ····//·on·the·methods.·It's·not·great,·but·it's·the·best·we·got.4 ····//·on·the·methods.·It's·not·great,·but·it's·the·best·we·got.
5 ····//·The·fingerprint·method·lists·are·defined·below.5 ····//·The·fingerprint·method·lists·are·defined·below.
6 ····function·ie11fingerprint(methods)·{6 ····function·ie11fingerprint(methods)·{
7 ········var·length·=·_getLength(methods);7 ········var·length·=·_getLength(methods);
1020 B
./usr/share/nodejs/underscore/amd/index28.js
935 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 14 lines modified
1 define(['./index26'],·(function(_setup)·{1 define(['exports',·'./index26',·'./index20'],·(function(exports,·_setup,·_hasObjectTag)·{
  
2 ····//·Internal·function·for·creating·a·`toString`-based·type·tester. 
3 ····function·tagTester(name)·{ 
4 ········var·tag·=·'[object·'·+·name·+·']'; 
5 ········return·function(obj)·{ 
6 ············return·_setup.toString.call(obj)·===·tag;2 ····//·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`.
 3 ····//·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to
 4 ····//·`Map`,·`WeakMap`·and·`Set`.
 5 ····var·hasStringTagBug·=·(
 6 ············_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8)))
7 ········};7 ········),
8 ····}8 ········isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));
  
9 ····return·tagTester;9 ····exports.hasStringTagBug·=·hasStringTagBug;
 10 ····exports.isIE11·=·isIE11;
  
10 }));11 }));
1020 B
./usr/share/nodejs/underscore/amd/index29.js
935 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 13 lines modified
1 define(['exports',·'./index26',·'./index20'],·(function(exports,·_setup,·_hasObjectTag)·{1 define(['./index26'],·(function(_setup)·{
  
2 ····//·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`. 
3 ····//·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to 
4 ····//·`Map`,·`WeakMap`·and·`Set`. 
5 ····var·hasStringTagBug·=·( 
6 ············_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8)))2 ····//·Internal·function·for·creating·a·`toString`-based·type·tester.
 3 ····function·tagTester(name)·{
 4 ········var·tag·=·'[object·'·+·name·+·']';
 5 ········return·function(obj)·{
 6 ············return·_setup.toString.call(obj)·===·tag;
7 ········),7 ········};
8 ········isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));8 ····}
  
 9 ····return·tagTester;
9 ····exports.hasStringTagBug·=·hasStringTagBug; 
10 ····exports.isIE11·=·isIE11; 
  
11 }));10 }));
1.11 KB
./usr/share/nodejs/underscore/amd/index3.js
1.02 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 15 lines modified
1 define(['./index151'],·(function(underscore)·{1 define(['./index69',·'./index89',·'./index95',·'./index78',·'./index110',·'./index125',·'./index25'],·(function(identity,·isFunction,·isObject,·isArray,·matcher,·property,·_optimizeCb)·{
  
2 ····//·Helper·function·to·continue·chaining·intermediate·results. 
3 ····function·chainResult(instance,·obj)·{ 
4 ········return·instance._chain·?·underscore(obj).chain()·:·obj;2 ····//·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each
 3 ····//·element·in·a·collection,·returning·the·desired·result··either·`_.identity`,
 4 ····//·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor.
 5 ····function·baseIteratee(value,·context,·argCount)·{
 6 ········if·(value·==·null)·return·identity;
 7 ········if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount);
 8 ········if·(isObject(value)·&&·!isArray(value))·return·matcher(value);
 9 ········return·property(value);
5 ····}10 ····}
  
6 ····return·chainResult;11 ····return·baseIteratee;
  
7 }));12 }));
537 B
./usr/share/nodejs/underscore/amd/index30.js
449 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index16'],·(function(_getByteLength)·{1 define(['./index17'],·(function(_getByteLength)·{
  
2 ····//·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer,2 ····//·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer,
3 ····//·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer.3 ····//·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer.
4 ····function·toBufferView(bufferSource)·{4 ····function·toBufferView(bufferSource)·{
5 ········return·new·Uint8Array(5 ········return·new·Uint8Array(
6 ············bufferSource.buffer·||·bufferSource,6 ············bufferSource.buffer·||·bufferSource,
7 ············bufferSource.byteOffset·||·0,7 ············bufferSource.byteOffset·||·0,
463 B
./usr/share/nodejs/underscore/amd/index31.js
375 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index151',·'./index148'],·(function(underscore,·toPath$1)·{1 define(['./index150',·'./index147'],·(function(underscore,·toPath$1)·{
  
2 ····//·Internal·wrapper·for·`_.toPath`·to·enable·minification.2 ····//·Internal·wrapper·for·`_.toPath`·to·enable·minification.
3 ····//·Similar·to·`cb`·for·`_.iteratee`.3 ····//·Similar·to·`cb`·for·`_.iteratee`.
4 ····function·toPath(path)·{4 ····function·toPath(path)·{
5 ········return·underscore.toPath(path);5 ········return·underscore.toPath(path);
6 ····}6 ····}
  
403 B
./usr/share/nodejs/underscore/amd/index32.js
315 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index75',·'./index13'],·(function(invert,·_escapeMap)·{1 define(['./index79',·'./index13'],·(function(invert,·_escapeMap)·{
  
2 ····//·Internal·list·of·HTML·entities·for·unescaping.2 ····//·Internal·list·of·HTML·entities·for·unescaping.
3 ····var·unescapeMap·=·invert(_escapeMap);3 ····var·unescapeMap·=·invert(_escapeMap);
  
4 ····return·unescapeMap;4 ····return·unescapeMap;
  
5 }));5 }));
1.06 KB
./usr/share/nodejs/underscore/amd/index37.js
996 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 19 lines modified
1 define(['./index151'],·(function(underscore)·{1 define(['./index134',·'./index15',·'./index36'],·(function(restArguments,·_flatten,·bind)·{
  
2 ····//·Start·chaining·a·wrapped·Underscore·object. 
3 ····function·chain(obj)·{ 
4 ········var·instance·=·underscore(obj); 
5 ········instance._chain·=·true; 
6 ········return·instance;2 ····//·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments
 3 ····//·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks
 4 ····//·defined·on·an·object·belong·to·it.
 5 ····var·bindAll·=·restArguments(function(obj,·keys)·{
 6 ········keys·=·_flatten(keys,·false,·false);
 7 ········var·index·=·keys.length;
 8 ········if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names');
 9 ········while·(index--)·{
 10 ············var·key·=·keys[index];
 11 ············obj[key]·=·bind(obj[key],·obj);
 12 ········}
 13 ········return·obj;
7 ····}14 ····});
  
8 ····return·chain;15 ····return·bindAll;
  
9 }));16 }));
1.26 KB
./usr/share/nodejs/underscore/amd/index38.js
1.17 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 18 lines modified
1 define(['./index134',·'./index15',·'./index36'],·(function(restArguments,·_flatten,·bind)·{1 define(['./index26'],·(function(_setup)·{
  
2 ····//·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments 
3 ····//·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks 
4 ····//·defined·on·an·object·belong·to·it. 
5 ····var·bindAll·=·restArguments(function(obj,·keys)·{ 
6 ········keys·=·_flatten(keys,·false,·false); 
7 ········var·index·=·keys.length; 
8 ········if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names');2 ····//·Chunk·a·single·array·into·multiple·arrays,·each·containing·`count`·or·fewer
 3 ····//·items.
 4 ····function·chunk(array,·count)·{
 5 ········if·(count·==·null·||·count·<·1)·return·[];
 6 ········var·result·=·[];
 7 ········var·i·=·0,
 8 ············length·=·array.length;
9 ········while·(index--)·{9 ········while·(i·<·length)·{
 10 ············result.push(_setup.slice.call(array,·i,·i·+=·count));
10 ············var·key·=·keys[index]; 
11 ············obj[key]·=·bind(obj[key],·obj); 
12 ········}11 ········}
13 ········return·obj;12 ········return·result;
14 ····});13 ····}
  
15 ····return·bindAll;14 ····return·chunk;
  
16 }));15 }));
862 B
./usr/share/nodejs/underscore/amd/index39.js
774 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 12 lines modified
1 define(['./index26'],·(function(_setup)·{1 define(['./index150'],·(function(underscore)·{
  
 2 ····//·Start·chaining·a·wrapped·Underscore·object.
 3 ····function·chain(obj)·{
 4 ········var·instance·=·underscore(obj);
 5 ········instance._chain·=·true;
 6 ········return·instance;
2 ····//·Chunk·a·single·array·into·multiple·arrays,·each·containing·`count`·or·fewer 
3 ····//·items. 
4 ····function·chunk(array,·count)·{ 
5 ········if·(count·==·null·||·count·<·1)·return·[]; 
6 ········var·result·=·[]; 
7 ········var·i·=·0, 
8 ············length·=·array.length; 
9 ········while·(i·<·length)·{ 
10 ············result.push(_setup.slice.call(array,·i,·i·+=·count)); 
11 ········} 
12 ········return·result; 
13 ····}7 ····}
  
14 ····return·chunk;8 ····return·chain;
  
15 }));9 }));
844 B
./usr/share/nodejs/underscore/amd/index4.js
758 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 10 lines modified
1 define(['./index151',·'./index2',·'./index104'],·(function(underscore,·_baseIteratee,·iteratee)·{1 define(['./index150'],·(function(underscore)·{
  
 2 ····//·Helper·function·to·continue·chaining·intermediate·results.
 3 ····function·chainResult(instance,·obj)·{
 4 ········return·instance._chain·?·underscore(obj).chain()·:·obj;
2 ····//·The·function·we·call·internally·to·generate·a·callback.·It·invokes 
3 ····//·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`. 
4 ····function·cb(value,·context,·argCount)·{ 
5 ········if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context); 
6 ········return·_baseIteratee(value,·context,·argCount); 
7 ····}5 ····}
  
8 ····return·cb;6 ····return·chainResult;
  
9 }));7 }));
507 B
./usr/share/nodejs/underscore/amd/index40.js
419 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index95',·'./index78',·'./index56'],·(function(isObject,·isArray,·extend)·{1 define(['./index95',·'./index78',·'./index55'],·(function(isObject,·isArray,·extend)·{
  
2 ····//·Create·a·(shallow-cloned)·duplicate·of·an·object.2 ····//·Create·a·(shallow-cloned)·duplicate·of·an·object.
3 ····function·clone(obj)·{3 ····function·clone(obj)·{
4 ········if·(!isObject(obj))·return·obj;4 ········if·(!isObject(obj))·return·obj;
5 ········return·isArray(obj)·?·obj.slice()·:·extend({},·obj);5 ········return·isArray(obj)·?·obj.slice()·:·extend({},·obj);
6 ····}6 ····}
  
370 B
./usr/share/nodejs/underscore/amd/index41.js
282 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index58'],·(function(filter)·{1 define(['./index57'],·(function(filter)·{
  
2 ····//·Trim·out·all·falsy·values·from·an·array.2 ····//·Trim·out·all·falsy·values·from·an·array.
3 ····function·compact(array)·{3 ····function·compact(array)·{
4 ········return·filter(array,·Boolean);4 ········return·filter(array,·Boolean);
5 ····}5 ····}
  
6 ····return·compact;6 ····return·compact;
790 B
./usr/share/nodejs/underscore/amd/index43.js
702 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 define((function()·{1 define(['./index21',·'./index156',·'./index73'],·(function(_isArrayLike,·values,·indexOf)·{
  
2 ····//·Predicate-generating·function.·Often·useful·outside·of·Underscore. 
3 ····function·constant(value)·{ 
4 ········return·function()·{ 
5 ············return·value; 
6 ········};2 ····//·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`).
 3 ····function·contains(obj,·item,·fromIndex,·guard)·{
 4 ········if·(!_isArrayLike(obj))·obj·=·values(obj);
 5 ········if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0;
 6 ········return·indexOf(obj,·item,·fromIndex)·>=·0;
7 ····}7 ····}
  
8 ····return·constant;8 ····return·contains;
  
9 }));9 }));
973 B
./usr/share/nodejs/underscore/amd/index44.js
885 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 13 lines modified
1 define(['./index21',·'./index156',·'./index73'],·(function(_isArrayLike,·values,·indexOf)·{1 define(['./index18',·'./index19'],·(function(_group,·_has)·{
  
2 ····//·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`). 
3 ····function·contains(obj,·item,·fromIndex,·guard)·{ 
4 ········if·(!_isArrayLike(obj))·obj·=·values(obj); 
5 ········if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0; 
6 ········return·indexOf(obj,·item,·fromIndex)·>=·0;2 ····//·Counts·instances·of·an·object·that·group·by·a·certain·criterion.·Pass
 3 ····//·either·a·string·attribute·to·count·by,·or·a·function·that·returns·the
 4 ····//·criterion.
 5 ····var·countBy·=·_group(function(result,·value,·key)·{
 6 ········if·(_has(result,·key))·result[key]++;
 7 ········else·result[key]·=·1;
7 ····}8 ····});
  
8 ····return·contains;9 ····return·countBy;
  
9 }));10 }));
774 B
./usr/share/nodejs/underscore/amd/index45.js
686 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 12 lines modified
1 define(['./index18',·'./index19'],·(function(_group,·_has)·{1 define((function()·{
  
 2 ····//·Predicate-generating·function.·Often·useful·outside·of·Underscore.
 3 ····function·constant(value)·{
 4 ········return·function()·{
 5 ············return·value;
 6 ········};
2 ····//·Counts·instances·of·an·object·that·group·by·a·certain·criterion.·Pass 
3 ····//·either·a·string·attribute·to·count·by,·or·a·function·that·returns·the 
4 ····//·criterion. 
5 ····var·countBy·=·_group(function(result,·value,·key)·{ 
6 ········if·(_has(result,·key))·result[key]++; 
7 ········else·result[key]·=·1; 
8 ····});7 ····}
  
9 ····return·countBy;8 ····return·constant;
  
10 }));9 }));
2.01 KB
./usr/share/nodejs/underscore/amd/index46.js
1.93 KB
js-beautify {}
    
Offset 1, 43 lines modifiedOffset 1, 14 lines modified
1 define(['./index134',·'./index117'],·(function(restArguments,·now)·{1 define(['./index',·'./index56'],·(function(_baseCreate,·extendOwn)·{
  
 2 ····//·Creates·an·object·that·inherits·from·the·given·prototype·object.
 3 ····//·If·additional·properties·are·provided·then·they·will·be·added·to·the
 4 ····//·created·object.
 5 ····function·create(prototype,·props)·{
 6 ········var·result·=·_baseCreate(prototype);
 7 ········if·(props)·extendOwn(result,·props);
2 ····//·When·a·sequence·of·calls·of·the·returned·function·ends,·the·argument 
3 ····//·function·is·triggered.·The·end·of·a·sequence·is·defined·by·the·`wait` 
4 ····//·parameter.·If·`immediate`·is·passed,·the·argument·function·will·be 
5 ····//·triggered·at·the·beginning·of·the·sequence·instead·of·at·the·end. 
6 ····function·debounce(func,·wait,·immediate)·{ 
7 ········var·timeout,·previous,·args,·result,·context; 
  
8 ········var·later·=·function()·{ 
9 ············var·passed·=·now()·-·previous; 
10 ············if·(wait·>·passed)·{ 
11 ················timeout·=·setTimeout(later,·wait·-·passed); 
12 ············}·else·{ 
13 ················timeout·=·null; 
14 ················if·(!immediate)·result·=·func.apply(context,·args); 
15 ················//·This·check·is·needed·because·`func`·can·recursively·invoke·`debounced`. 
16 ················if·(!timeout)·args·=·context·=·null; 
17 ············} 
18 ········}; 
  
19 ········var·debounced·=·restArguments(function(_args)·{ 
20 ············context·=·this; 
21 ············args·=·_args; 
22 ············previous·=·now(); 
23 ············if·(!timeout)·{ 
24 ················timeout·=·setTimeout(later,·wait); 
25 ················if·(immediate)·result·=·func.apply(context,·args); 
26 ············} 
27 ············return·result;8 ········return·result;
28 ········}); 
  
29 ········debounced.cancel·=·function()·{ 
30 ············clearTimeout(timeout); 
31 ············timeout·=·args·=·context·=·null; 
32 ········}; 
  
33 ········return·debounced; 
34 ····}9 ····}
  
35 ····return·debounce;10 ····return·create;
  
36 }));11 }));
2.01 KB
./usr/share/nodejs/underscore/amd/index47.js
1.93 KB
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 43 lines modified
1 define(['./index',·'./index55'],·(function(_baseCreate,·extendOwn)·{1 define(['./index134',·'./index117'],·(function(restArguments,·now)·{
  
2 ····//·Creates·an·object·that·inherits·from·the·given·prototype·object. 
3 ····//·If·additional·properties·are·provided·then·they·will·be·added·to·the 
4 ····//·created·object. 
5 ····function·create(prototype,·props)·{ 
6 ········var·result·=·_baseCreate(prototype); 
7 ········if·(props)·extendOwn(result,·props);2 ····//·When·a·sequence·of·calls·of·the·returned·function·ends,·the·argument
 3 ····//·function·is·triggered.·The·end·of·a·sequence·is·defined·by·the·`wait`
 4 ····//·parameter.·If·`immediate`·is·passed,·the·argument·function·will·be
 5 ····//·triggered·at·the·beginning·of·the·sequence·instead·of·at·the·end.
 6 ····function·debounce(func,·wait,·immediate)·{
 7 ········var·timeout,·previous,·args,·result,·context;
  
 8 ········var·later·=·function()·{
 9 ············var·passed·=·now()·-·previous;
 10 ············if·(wait·>·passed)·{
 11 ················timeout·=·setTimeout(later,·wait·-·passed);
 12 ············}·else·{
 13 ················timeout·=·null;
 14 ················if·(!immediate)·result·=·func.apply(context,·args);
 15 ················//·This·check·is·needed·because·`func`·can·recursively·invoke·`debounced`.
 16 ················if·(!timeout)·args·=·context·=·null;
 17 ············}
 18 ········};
  
 19 ········var·debounced·=·restArguments(function(_args)·{
 20 ············context·=·this;
 21 ············args·=·_args;
 22 ············previous·=·now();
 23 ············if·(!timeout)·{
 24 ················timeout·=·setTimeout(later,·wait);
 25 ················if·(immediate)·result·=·func.apply(context,·args);
 26 ············}
8 ········return·result;27 ············return·result;
 28 ········});
  
 29 ········debounced.cancel·=·function()·{
 30 ············clearTimeout(timeout);
 31 ············timeout·=·args·=·context·=·null;
 32 ········};
  
 33 ········return·debounced;
9 ····}34 ····}
  
10 ····return·create;35 ····return·debounce;
  
11 }));36 }));
603 B
./usr/share/nodejs/underscore/amd/index48.js
515 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 9 lines modified
1 define(['./index6',·'./index34'],·(function(_createAssigner,·allKeys)·{1 define(['./index122',·'./index49',·'./index150'],·(function(partial,·delay,·underscore)·{
  
2 ····//·Fill·in·a·given·object·with·default·properties. 
3 ····var·defaults·=·_createAssigner(allKeys,·true);2 ····//·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has
 3 ····//·cleared.
 4 ····var·defer·=·partial(delay,·underscore,·1);
  
4 ····return·defaults;5 ····return·defer;
  
5 }));6 }));
762 B
./usr/share/nodejs/underscore/amd/index49.js
674 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 13 lines modified
1 define(['./index123',·'./index50',·'./index151'],·(function(partial,·delay,·underscore)·{1 define(['./index134'],·(function(restArguments)·{
  
2 ····//·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has 
3 ····//·cleared. 
4 ····var·defer·=·partial(delay,·underscore,·1);2 ····//·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls
 3 ····//·it·with·the·arguments·supplied.
 4 ····var·delay·=·restArguments(function(func,·wait,·args)·{
 5 ········return·setTimeout(function()·{
 6 ············return·func.apply(null,·args);
 7 ········},·wait);
 8 ····});
  
5 ····return·defer;9 ····return·delay;
  
6 }));10 }));
709 B
./usr/share/nodejs/underscore/amd/index50.js
621 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 8 lines modified
1 define(['./index134'],·(function(restArguments)·{1 define(['./index6',·'./index34'],·(function(_createAssigner,·allKeys)·{
  
 2 ····//·Fill·in·a·given·object·with·default·properties.
 3 ····var·defaults·=·_createAssigner(allKeys,·true);
2 ····//·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls 
3 ····//·it·with·the·arguments·supplied. 
4 ····var·delay·=·restArguments(function(func,·wait,·args)·{ 
5 ········return·setTimeout(function()·{ 
6 ············return·func.apply(null,·args); 
7 ········},·wait); 
8 ····}); 
  
9 ····return·delay;4 ····return·defaults;
  
10 }));5 }));
713 B
./usr/share/nodejs/underscore/amd/index51.js
625 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index134',·'./index15',·'./index58',·'./index44'],·(function(restArguments,·_flatten,·filter,·contains)·{1 define(['./index134',·'./index15',·'./index57',·'./index43'],·(function(restArguments,·_flatten,·filter,·contains)·{
  
2 ····//·Take·the·difference·between·one·array·and·a·number·of·other·arrays.2 ····//·Take·the·difference·between·one·array·and·a·number·of·other·arrays.
3 ····//·Only·the·elements·present·in·just·the·first·array·will·remain.3 ····//·Only·the·elements·present·in·just·the·first·array·will·remain.
4 ····var·difference·=·restArguments(function(array,·rest)·{4 ····var·difference·=·restArguments(function(array,·rest)·{
5 ········rest·=·_flatten(rest,·true,·true);5 ········rest·=·_flatten(rest,·true,·true);
6 ········return·filter(array,·function(value)·{6 ········return·filter(array,·function(value)·{
7 ············return·!contains(rest,·value);7 ············return·!contains(rest,·value);
637 B
./usr/share/nodejs/underscore/amd/index52.js
549 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index25',·'./index21',·'./index106'],·(function(_optimizeCb,·_isArrayLike,·keys)·{1 define(['./index25',·'./index21',·'./index105'],·(function(_optimizeCb,·_isArrayLike,·keys)·{
  
2 ····//·The·cornerstone·for·collection·functions,·an·`each`2 ····//·The·cornerstone·for·collection·functions,·an·`each`
3 ····//·implementation,·aka·`forEach`.3 ····//·implementation,·aka·`forEach`.
4 ····//·Handles·raw·objects·in·addition·to·array-likes.·Treats·all4 ····//·Handles·raw·objects·in·addition·to·array-likes.·Treats·all
5 ····//·sparse·array-likes·as·if·they·were·dense.5 ····//·sparse·array-likes·as·if·they·were·dense.
6 ····function·each(obj,·iteratee,·context)·{6 ····function·each(obj,·iteratee,·context)·{
7 ········iteratee·=·_optimizeCb(iteratee,·context);7 ········iteratee·=·_optimizeCb(iteratee,·context);
421 B
./usr/share/nodejs/underscore/amd/index53.js
333 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index7',·'./index13'],·(function(_createEscaper,·_escapeMap)·{1 define(['./index8',·'./index13'],·(function(_createEscaper,·_escapeMap)·{
  
2 ····//·Function·for·escaping·strings·to·HTML·interpolation.2 ····//·Function·for·escaping·strings·to·HTML·interpolation.
3 ····var·escape·=·_createEscaper(_escapeMap);3 ····var·escape·=·_createEscaper(_escapeMap);
  
4 ····return·escape;4 ····return·escape;
  
5 }));5 }));
619 B
./usr/share/nodejs/underscore/amd/index54.js
531 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index21',·'./index106'],·(function(_cb,·_isArrayLike,·keys)·{1 define(['./index2',·'./index21',·'./index105'],·(function(_cb,·_isArrayLike,·keys)·{
  
2 ····//·Determine·whether·all·of·the·elements·pass·a·truth·test.2 ····//·Determine·whether·all·of·the·elements·pass·a·truth·test.
3 ····function·every(obj,·predicate,·context)·{3 ····function·every(obj,·predicate,·context)·{
4 ········predicate·=·_cb(predicate,·context);4 ········predicate·=·_cb(predicate,·context);
5 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),5 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
6 ············length·=·(_keys·||·obj).length;6 ············length·=·(_keys·||·obj).length;
7 ········for·(var·index·=·0;·index·<·length;·index++)·{7 ········for·(var·index·=·0;·index·<·length;·index++)·{
692 B
./usr/share/nodejs/underscore/amd/index55.js
604 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 8 lines modified
1 define(['./index6',·'./index106'],·(function(_createAssigner,·keys)·{1 define(['./index6',·'./index34'],·(function(_createAssigner,·allKeys)·{
  
2 ····//·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in2 ····//·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s).
3 ····//·object(s). 
4 ····//·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 
5 ····var·extendOwn·=·_createAssigner(keys);3 ····var·extend·=·_createAssigner(allKeys);
  
6 ····return·extendOwn;4 ····return·extend;
  
7 }));5 }));
692 B
./usr/share/nodejs/underscore/amd/index56.js
604 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 10 lines modified
1 define(['./index6',·'./index34'],·(function(_createAssigner,·allKeys)·{1 define(['./index6',·'./index105'],·(function(_createAssigner,·keys)·{
  
2 ····//·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s).2 ····//·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in
 3 ····//·object(s).
 4 ····//·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
3 ····var·extend·=·_createAssigner(allKeys);5 ····var·extendOwn·=·_createAssigner(keys);
  
4 ····return·extend;6 ····return·extendOwn;
  
5 }));7 }));
963 B
./usr/share/nodejs/underscore/amd/index57.js
875 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 15 lines modified
1 define(['./index21',·'./index59',·'./index60'],·(function(_isArrayLike,·findIndex,·findKey)·{1 define(['./index2',·'./index52'],·(function(_cb,·each)·{
  
2 ····//·Return·the·first·value·which·passes·a·truth·test.2 ····//·Return·all·the·elements·that·pass·a·truth·test.
3 ····function·find(obj,·predicate,·context)·{3 ····function·filter(obj,·predicate,·context)·{
4 ········var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey; 
5 ········var·key·=·keyFinder(obj,·predicate,·context); 
6 ········if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];4 ········var·results·=·[];
 5 ········predicate·=·_cb(predicate,·context);
 6 ········each(obj,·function(value,·index,·list)·{
 7 ············if·(predicate(value,·index,·list))·results.push(value);
 8 ········});
 9 ········return·results;
7 ····}10 ····}
  
8 ····return·find;11 ····return·filter;
  
9 }));12 }));
778 B
./usr/share/nodejs/underscore/amd/index58.js
690 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index52'],·(function(_cb,·each)·{1 define(['./index9'],·(function(_createPredicateIndexFinder)·{
  
 2 ····//·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test.
 3 ····var·findIndex·=·_createPredicateIndexFinder(1);
2 ····//·Return·all·the·elements·that·pass·a·truth·test. 
3 ····function·filter(obj,·predicate,·context)·{ 
4 ········var·results·=·[]; 
5 ········predicate·=·_cb(predicate,·context); 
6 ········each(obj,·function(value,·index,·list)·{ 
7 ············if·(predicate(value,·index,·list))·results.push(value); 
8 ········}); 
9 ········return·results; 
10 ····} 
  
11 ····return·filter;4 ····return·findIndex;
  
12 }));5 }));
764 B
./usr/share/nodejs/underscore/amd/index59.js
676 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 12 lines modified
1 define(['./index9'],·(function(_createPredicateIndexFinder)·{1 define(['./index21',·'./index58',·'./index60'],·(function(_isArrayLike,·findIndex,·findKey)·{
  
2 ····//·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test.2 ····//·Return·the·first·value·which·passes·a·truth·test.
3 ····var·findIndex·=·_createPredicateIndexFinder(1);3 ····function·find(obj,·predicate,·context)·{
 4 ········var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey;
 5 ········var·key·=·keyFinder(obj,·predicate,·context);
 6 ········if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];
 7 ····}
  
4 ····return·findIndex;8 ····return·find;
  
5 }));9 }));
533 B
./usr/share/nodejs/underscore/amd/index60.js
445 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index106'],·(function(_cb,·keys)·{1 define(['./index2',·'./index105'],·(function(_cb,·keys)·{
  
2 ····//·Returns·the·first·key·on·an·object·that·passes·a·truth·test.2 ····//·Returns·the·first·key·on·an·object·that·passes·a·truth·test.
3 ····function·findKey(obj,·predicate,·context)·{3 ····function·findKey(obj,·predicate,·context)·{
4 ········predicate·=·_cb(predicate,·context);4 ········predicate·=·_cb(predicate,·context);
5 ········var·_keys·=·keys(obj),5 ········var·_keys·=·keys(obj),
6 ············key;6 ············key;
7 ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{7 ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{
486 B
./usr/share/nodejs/underscore/amd/index62.js
398 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index57',·'./index111'],·(function(find,·matcher)·{1 define(['./index59',·'./index110'],·(function(find,·matcher)·{
  
2 ····//·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first2 ····//·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first
3 ····//·object·containing·specific·`key:value`·pairs.3 ····//·object·containing·specific·`key:value`·pairs.
4 ····function·findWhere(obj,·attrs)·{4 ····function·findWhere(obj,·attrs)·{
5 ········return·find(obj,·matcher(attrs));5 ········return·find(obj,·matcher(attrs));
6 ····}6 ····}
  
556 B
./usr/share/nodejs/underscore/amd/index69.js
468 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 10 lines modified
1 define(['./index71',·'./index115'],·(function(index,·mixin)·{1 define((function()·{
  
2 ····//·Default·Export2 ····//·Keep·the·identity·function·around·for·default·iteratees.
 3 ····function·identity(value)·{
 4 ········return·value;
 5 ····}
  
 6 ····return·identity;
3 ····//·Add·all·of·the·Underscore·functions·to·the·wrapper·object. 
4 ····var·_·=·mixin(index); 
5 ····//·Legacy·Node.js·API. 
6 ····_._·=·_; 
  
7 ····return·_; 
  
8 }));7 }));
2.03 KB
./usr/share/nodejs/underscore/amd/index7.js
1.94 KB
js-beautify {}
    
Offset 1, 21 lines modifiedOffset 1, 31 lines modified
1 define(['./index106'],·(function(keys)·{1 define(['./index16',·'./index26',·'./index92'],·(function(_getLength,·_setup,·isNaN)·{
  
2 ····//·Internal·helper·to·generate·functions·for·escaping·and·unescaping·strings 
3 ····//·to/from·HTML·interpolation. 
4 ····function·createEscaper(map)·{ 
5 ········var·escaper·=·function(match)·{ 
6 ············return·map[match];2 ····//·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions.
 3 ····function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{
 4 ········return·function(array,·item,·idx)·{
 5 ············var·i·=·0,
 6 ················length·=·_getLength(array);
 7 ············if·(typeof·idx·==·'number')·{
 8 ················if·(dir·>·0)·{
 9 ····················i·=·idx·>=·0·?·idx·:·Math.max(idx·+·length,·i);
 10 ················}·else·{
 11 ····················length·=·idx·>=·0·?·Math.min(idx·+·1,·length)·:·idx·+·length·+·1;
 12 ················}
 13 ············}·else·if·(sortedIndex·&&·idx·&&·length)·{
 14 ················idx·=·sortedIndex(array,·item);
 15 ················return·array[idx]·===·item·?·idx·:·-1;
7 ········};16 ············}
8 ········//·Regexes·for·identifying·a·key·that·needs·to·be·escaped. 
9 ········var·source·=·'(?:'·+·keys(map).join('|')·+·')'; 
10 ········var·testRegexp·=·RegExp(source); 
11 ········var·replaceRegexp·=·RegExp(source,·'g'); 
12 ········return·function(string)·{ 
13 ············string·=·string·==·null·?·''·:·''·+·string; 
14 ············return·testRegexp.test(string)·?·string.replace(replaceRegexp,·escaper)·:·string;17 ············if·(item·!==·item)·{
 18 ················idx·=·predicateFind(_setup.slice.call(array,·i,·length),·isNaN);
 19 ················return·idx·>=·0·?·idx·+·i·:·-1;
 20 ············}
 21 ············for·(idx·=·dir·>·0·?·i·:·length·-·1;·idx·>=·0·&&·idx·<·length;·idx·+=·dir)·{
 22 ················if·(array[idx]·===·item)·return·idx;
 23 ············}
 24 ············return·-1;
15 ········};25 ········};
16 ····}26 ····}
  
17 ····return·createEscaper;27 ····return·createIndexFinder;
  
18 }));28 }));
556 B
./usr/share/nodejs/underscore/amd/index70.js
468 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 12 lines modified
1 define((function()·{1 define(['./index71',·'./index114'],·(function(index,·mixin)·{
  
 2 ····//·Default·Export
2 ····//·Keep·the·identity·function·around·for·default·iteratees. 
3 ····function·identity(value)·{ 
4 ········return·value; 
5 ····} 
  
6 ····return·identity;3 ····//·Add·all·of·the·Underscore·functions·to·the·wrapper·object.
 4 ····var·_·=·mixin(index);
 5 ····//·Legacy·Node.js·API.
 6 ····_._·=·_;
  
 7 ····return·_;
  
7 }));8 }));
5.94 KB
./usr/share/nodejs/underscore/amd/index71.js
5.85 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['exports',·'./index26',·'./index134',·'./index95',·'./index93',·'./index101',·'./index81',·'./index83',·'./index97',·'./index94',·'./index82',·'./index98',·'./index87',·'./index99',·'./index80',·'./index84',·'./index78',·'./index89',·'./index79',·'./index88',·'./index91',·'./index100',·'./index85',·'./index92',·'./index86',·'./index90',·'./i[·...·truncated·by·diffoscope;·len:·1377,·SHA:·4d78682edd6ef41c5b32015927be05f23f5c4dc788c27be606e5265067cc78e9·...·]'],·(function(exports,·_setup,·restArguments,·isObject,·isNull,·isUndefined,·isBoolean,·isElement,·isString,·isNumber,·isDate,·isRegExp,·isError,·isSymbol,·isArrayBuffer,·isDataView,·isArray,·isFunction,·isArguments,·isFinite,·isNaN,·isTypedArray,·isEmpty,·isMatch,·isEqual,·isMap,·isWeakMap,·isSet,·isWeakSet,·keys,·allKeys,·values,·pairs,·invert,·functions,·extend,·extendOwn,·defaults,·create,·clone,·tap,·get,·has,·mapObject,·identity,·constant,·noop,·toPath,·property,·propertyOf,·matcher,·times,·random,·now,·escape,·unescape,·templateSettings,·template,·result,·uniqueId,·chain,·iteratee,·partial,·bind,·bindAll,·memoize,·delay,·defer,·throttle,·debounce,·wrap,·negate,·compose,·after,·before,·once,·findKey,·findIndex,·findLastIndex,·sortedIndex,·indexOf,·lastIndexOf,·find,·findWhere,·each,·map,·reduce,·reduceRight,·filter,·reject,·every,·some,·contains,·invoke,·pluck,·where,·max,·min,·shuffle,·sample,·sortBy,·groupBy,·indexBy,·countBy,·partition,·toArray,·size,·pick,·omit,·first,·initial,·last,·rest,·compact,·flatten,·without,·uniq,·union,·intersection,·difference,·unzip,·zip,·object,·range,·chunk,·mixin,·underscoreArrayMethods,·underscore)·{1 define(['exports',·'./index26',·'./index134',·'./index95',·'./index93',·'./index101',·'./index80',·'./index84',·'./index97',·'./index94',·'./index83',·'./index96',·'./index86',·'./index99',·'./index81',·'./index82',·'./index78',·'./index89',·'./index75',·'./index88',·'./index92',·'./index100',·'./index87',·'./index90',·'./index85',·'./index91',·'./i[·...·truncated·by·diffoscope;·len:·1377,·SHA:·86e74528572db724d4a2e6994363e900d28f615848dd3f7858b44393e1020b16·...·]'],·(function(exports,·_setup,·restArguments,·isObject,·isNull,·isUndefined,·isBoolean,·isElement,·isString,·isNumber,·isDate,·isRegExp,·isError,·isSymbol,·isArrayBuffer,·isDataView,·isArray,·isFunction,·isArguments,·isFinite,·isNaN,·isTypedArray,·isEmpty,·isMatch,·isEqual,·isMap,·isWeakMap,·isSet,·isWeakSet,·keys,·allKeys,·values,·pairs,·invert,·functions,·extend,·extendOwn,·defaults,·create,·clone,·tap,·get,·has,·mapObject,·identity,·constant,·noop,·toPath,·property,·propertyOf,·matcher,·times,·random,·now,·escape,·unescape,·templateSettings,·template,·result,·uniqueId,·chain,·iteratee,·partial,·bind,·bindAll,·memoize,·delay,·defer,·throttle,·debounce,·wrap,·negate,·compose,·after,·before,·once,·findKey,·findIndex,·findLastIndex,·sortedIndex,·indexOf,·lastIndexOf,·find,·findWhere,·each,·map,·reduce,·reduceRight,·filter,·reject,·every,·some,·contains,·invoke,·pluck,·where,·max,·min,·shuffle,·sample,·sortBy,·groupBy,·indexBy,·countBy,·partition,·toArray,·size,·pick,·omit,·first,·initial,·last,·rest,·compact,·flatten,·without,·uniq,·union,·intersection,·difference,·unzip,·zip,·object,·range,·chunk,·mixin,·underscoreArrayMethods,·underscore)·{
  
2 ····//·Named·Exports2 ····//·Named·Exports
  
3 ····exports.VERSION·=·_setup.VERSION;3 ····exports.VERSION·=·_setup.VERSION;
4 ····exports.restArguments·=·restArguments;4 ····exports.restArguments·=·restArguments;
5 ····exports.isObject·=·isObject;5 ····exports.isObject·=·isObject;
6 ····exports.isNull·=·isNull;6 ····exports.isNull·=·isNull;
660 B
./usr/share/nodejs/underscore/amd/index73.js
572 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index141',·'./index59',·'./index8'],·(function(sortedIndex,·findIndex,·_createIndexFinder)·{1 define(['./index141',·'./index58',·'./index7'],·(function(sortedIndex,·findIndex,·_createIndexFinder)·{
  
2 ····//·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array,2 ····//·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array,
3 ····//·or·-1·if·the·item·is·not·included·in·the·array.3 ····//·or·-1·if·the·item·is·not·included·in·the·array.
4 ····//·If·the·array·is·large·and·already·in·sort·order,·pass·`true`4 ····//·If·the·array·is·large·and·already·in·sort·order,·pass·`true`
5 ····//·for·**isSorted**·to·use·binary·search.5 ····//·for·**isSorted**·to·use·binary·search.
6 ····var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);6 ····var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);
  
1.0 KB
./usr/share/nodejs/underscore/amd/index75.js
937 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 19 lines modified
1 define(['./index106'],·(function(keys)·{1 define(['./index29',·'./index19'],·(function(_tagTester,·_has)·{
  
2 ····//·Invert·the·keys·and·values·of·an·object.·The·values·must·be·serializable. 
3 ····function·invert(obj)·{ 
4 ········var·result·=·{}; 
5 ········var·_keys·=·keys(obj); 
6 ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ 
7 ············result[obj[_keys[i]]]·=·_keys[i];2 ····var·isArguments·=·_tagTester('Arguments');
  
 3 ····//·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where
 4 ····//·there·isn't·any·inspectable·"Arguments"·type.
 5 ····(function()·{
 6 ········if·(!isArguments(arguments))·{
 7 ············isArguments·=·function(obj)·{
 8 ················return·_has(obj,·'callee');
 9 ············};
8 ········}10 ········}
9 ········return·result; 
10 ····}11 ····}());
  
 12 ····var·isArguments$1·=·isArguments;
  
11 ····return·invert;13 ····return·isArguments$1;
  
12 }));14 }));
1.78 KB
./usr/share/nodejs/underscore/amd/index76.js
1.69 KB
js-beautify {}
    
Offset 1, 22 lines modifiedOffset 1, 28 lines modified
1 define(['./index17',·'./index44'],·(function(_getLength,·contains)·{1 define(['./index134',·'./index89',·'./index107',·'./index12',·'./index31'],·(function(restArguments,·isFunction,·map,·_deepGet,·_toPath)·{
  
 2 ····//·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection.
 3 ····var·invoke·=·restArguments(function(obj,·path,·args)·{
 4 ········var·contextPath,·func;
 5 ········if·(isFunction(path))·{
 6 ············func·=·path;
 7 ········}·else·{
 8 ············path·=·_toPath(path);
 9 ············contextPath·=·path.slice(0,·-1);
 10 ············path·=·path[path.length·-·1];
2 ····//·Produce·an·array·that·contains·every·item·shared·between·all·the 
3 ····//·passed-in·arrays. 
4 ····function·intersection(array)·{ 
5 ········var·result·=·[]; 
6 ········var·argsLength·=·arguments.length; 
7 ········for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{ 
8 ············var·item·=·array[i]; 
9 ············if·(contains(result,·item))·continue; 
10 ············var·j; 
11 ············for·(j·=·1;·j·<·argsLength;·j++)·{ 
12 ················if·(!contains(arguments[j],·item))·break; 
13 ············} 
14 ············if·(j·===·argsLength)·result.push(item); 
15 ········}11 ········}
16 ········return·result;12 ········return·map(obj,·function(context)·{
 13 ············var·method·=·func;
 14 ············if·(!method)·{
 15 ················if·(contextPath·&&·contextPath.length)·{
 16 ····················context·=·_deepGet(context,·contextPath);
 17 ················}
 18 ················if·(context·==·null)·return·void·0;
 19 ················method·=·context[path];
 20 ············}
 21 ············return·method·==·null·?·method·:·method.apply(context,·args);
 22 ········});
17 ····}23 ····});
  
18 ····return·intersection;24 ····return·invoke;
  
19 }));25 }));
1.77 KB
./usr/share/nodejs/underscore/amd/index77.js
1.69 KB
js-beautify {}
    
Offset 1, 28 lines modifiedOffset 1, 22 lines modified
1 define(['./index134',·'./index89',·'./index108',·'./index12',·'./index31'],·(function(restArguments,·isFunction,·map,·_deepGet,·_toPath)·{1 define(['./index16',·'./index43'],·(function(_getLength,·contains)·{
  
 2 ····//·Produce·an·array·that·contains·every·item·shared·between·all·the
 3 ····//·passed-in·arrays.
 4 ····function·intersection(array)·{
 5 ········var·result·=·[];
 6 ········var·argsLength·=·arguments.length;
 7 ········for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{
 8 ············var·item·=·array[i];
 9 ············if·(contains(result,·item))·continue;
 10 ············var·j;
 11 ············for·(j·=·1;·j·<·argsLength;·j++)·{
 12 ················if·(!contains(arguments[j],·item))·break;
2 ····//·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection. 
3 ····var·invoke·=·restArguments(function(obj,·path,·args)·{ 
4 ········var·contextPath,·func; 
5 ········if·(isFunction(path))·{ 
6 ············func·=·path; 
7 ········}·else·{ 
8 ············path·=·_toPath(path); 
9 ············contextPath·=·path.slice(0,·-1); 
10 ············path·=·path[path.length·-·1]; 
11 ········} 
12 ········return·map(obj,·function(context)·{ 
13 ············var·method·=·func; 
14 ············if·(!method)·{ 
15 ················if·(contextPath·&&·contextPath.length)·{ 
16 ····················context·=·_deepGet(context,·contextPath); 
17 ················} 
18 ················if·(context·==·null)·return·void·0; 
19 ················method·=·context[path]; 
20 ············}13 ············}
21 ············return·method·==·null·?·method·:·method.apply(context,·args);14 ············if·(j·===·argsLength)·result.push(item);
22 ········});15 ········}
 16 ········return·result;
23 ····});17 ····}
  
24 ····return·invoke;18 ····return·intersection;
  
25 }));19 }));
447 B
./usr/share/nodejs/underscore/amd/index78.js
359 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index26',·'./index28'],·(function(_setup,·_tagTester)·{1 define(['./index26',·'./index29'],·(function(_setup,·_tagTester)·{
  
2 ····//·Is·a·given·value·an·array?2 ····//·Is·a·given·value·an·array?
3 ····//·Delegates·to·ECMA5's·native·`Array.isArray`.3 ····//·Delegates·to·ECMA5's·native·`Array.isArray`.
4 ····var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');4 ····var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');
  
5 ····return·isArray;5 ····return·isArray;
  
1.0 KB
./usr/share/nodejs/underscore/amd/index79.js
937 B
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 15 lines modified
1 define(['./index28',·'./index19'],·(function(_tagTester,·_has)·{1 define(['./index105'],·(function(keys)·{
  
 2 ····//·Invert·the·keys·and·values·of·an·object.·The·values·must·be·serializable.
 3 ····function·invert(obj)·{
 4 ········var·result·=·{};
 5 ········var·_keys·=·keys(obj);
 6 ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{
 7 ············result[obj[_keys[i]]]·=·_keys[i];
2 ····var·isArguments·=·_tagTester('Arguments'); 
  
3 ····//·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where 
4 ····//·there·isn't·any·inspectable·"Arguments"·type. 
5 ····(function()·{ 
6 ········if·(!isArguments(arguments))·{ 
7 ············isArguments·=·function(obj)·{ 
8 ················return·_has(obj,·'callee'); 
9 ············}; 
10 ········}8 ········}
 9 ········return·result;
 10 ····}
11 ····}()); 
  
12 ····var·isArguments$1·=·isArguments; 
  
13 ····return·isArguments$1;11 ····return·invert;
  
14 }));12 }));
2.03 KB
./usr/share/nodejs/underscore/amd/index8.js
1.94 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 21 lines modified
1 define(['./index17',·'./index26',·'./index91'],·(function(_getLength,·_setup,·isNaN)·{1 define(['./index105'],·(function(keys)·{
  
 2 ····//·Internal·helper·to·generate·functions·for·escaping·and·unescaping·strings
 3 ····//·to/from·HTML·interpolation.
 4 ····function·createEscaper(map)·{
 5 ········var·escaper·=·function(match)·{
 6 ············return·map[match];
2 ····//·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions. 
3 ····function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{ 
4 ········return·function(array,·item,·idx)·{ 
5 ············var·i·=·0, 
6 ················length·=·_getLength(array); 
7 ············if·(typeof·idx·==·'number')·{ 
8 ················if·(dir·>·0)·{ 
9 ····················i·=·idx·>=·0·?·idx·:·Math.max(idx·+·length,·i); 
10 ················}·else·{ 
11 ····················length·=·idx·>=·0·?·Math.min(idx·+·1,·length)·:·idx·+·length·+·1; 
12 ················} 
13 ············}·else·if·(sortedIndex·&&·idx·&&·length)·{ 
14 ················idx·=·sortedIndex(array,·item); 
15 ················return·array[idx]·===·item·?·idx·:·-1; 
16 ············}7 ········};
 8 ········//·Regexes·for·identifying·a·key·that·needs·to·be·escaped.
 9 ········var·source·=·'(?:'·+·keys(map).join('|')·+·')';
 10 ········var·testRegexp·=·RegExp(source);
 11 ········var·replaceRegexp·=·RegExp(source,·'g');
 12 ········return·function(string)·{
 13 ············string·=·string·==·null·?·''·:·''·+·string;
 14 ············return·testRegexp.test(string)·?·string.replace(replaceRegexp,·escaper)·:·string;
17 ············if·(item·!==·item)·{ 
18 ················idx·=·predicateFind(_setup.slice.call(array,·i,·length),·isNaN); 
19 ················return·idx·>=·0·?·idx·+·i·:·-1; 
20 ············} 
21 ············for·(idx·=·dir·>·0·?·i·:·length·-·1;·idx·>=·0·&&·idx·<·length;·idx·+=·dir)·{ 
22 ················if·(array[idx]·===·item)·return·idx; 
23 ············} 
24 ············return·-1; 
25 ········};15 ········};
26 ····}16 ····}
  
27 ····return·createIndexFinder;17 ····return·createEscaper;
  
28 }));18 }));
510 B
./usr/share/nodejs/underscore/amd/index80.js
422 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 10 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index26'],·(function(_setup)·{
  
2 ····var·isArrayBuffer·=·_tagTester('ArrayBuffer');2 ····//·Is·a·given·value·a·boolean?
 3 ····function·isBoolean(obj)·{
 4 ········return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]';
 5 ····}
  
3 ····return·isArrayBuffer;6 ····return·isBoolean;
  
4 }));7 }));
510 B
./usr/share/nodejs/underscore/amd/index81.js
422 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 7 lines modified
1 define(['./index26'],·(function(_setup)·{1 define(['./index29'],·(function(_tagTester)·{
  
 2 ····var·isArrayBuffer·=·_tagTester('ArrayBuffer');
2 ····//·Is·a·given·value·a·boolean? 
3 ····function·isBoolean(obj)·{ 
4 ········return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]'; 
5 ····} 
  
6 ····return·isBoolean;3 ····return·isArrayBuffer;
  
7 }));4 }));
783 B
./usr/share/nodejs/underscore/amd/index82.js
695 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 15 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29',·'./index89',·'./index81',·'./index28'],·(function(_tagTester,·isFunction,·isArrayBuffer,·_stringTagBug)·{
  
2 ····var·isDate·=·_tagTester('Date');2 ····var·isDataView·=·_tagTester('DataView');
  
 3 ····//·In·IE·10·-·Edge·13,·we·need·a·different·heuristic
 4 ····//·to·determine·whether·an·object·is·a·`DataView`.
 5 ····function·ie10IsDataView(obj)·{
 6 ········return·obj·!=·null·&&·isFunction(obj.getInt8)·&&·isArrayBuffer(obj.buffer);
 7 ····}
  
 8 ····var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView);
  
3 ····return·isDate;9 ····return·isDataView$1;
  
4 }));10 }));
420 B
./usr/share/nodejs/underscore/amd/index83.js
332 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 7 lines modified
1 define((function()·{1 define(['./index29'],·(function(_tagTester)·{
  
 2 ····var·isDate·=·_tagTester('Date');
2 ····//·Is·a·given·value·a·DOM·element? 
3 ····function·isElement(obj)·{ 
4 ········return·!!(obj·&&·obj.nodeType·===·1); 
5 ····} 
  
6 ····return·isElement;3 ····return·isDate;
  
7 }));4 }));
842 B
./usr/share/nodejs/underscore/amd/index84.js
754 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 10 lines modified
1 define(['./index28',·'./index89',·'./index80',·'./index29'],·(function(_tagTester,·isFunction,·isArrayBuffer,·_stringTagBug)·{1 define((function()·{
  
 2 ····//·Is·a·given·value·a·DOM·element?
 3 ····function·isElement(obj)·{
 4 ········return·!!(obj·&&·obj.nodeType·===·1);
2 ····var·isDataView·=·_tagTester('DataView'); 
  
3 ····//·In·IE·10·-·Edge·13,·we·need·a·different·heuristic 
4 ····//·to·determine·whether·an·object·is·a·`DataView`. 
5 ····function·ie10IsDataView(obj)·{ 
6 ········return·obj·!=·null·&&·isFunction(obj.getInt8)·&&·isArrayBuffer(obj.buffer); 
7 ····}5 ····}
  
 6 ····return·isElement;
8 ····var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView); 
  
9 ····return·isDataView$1; 
  
10 }));7 }));
7.02 KB
./usr/share/nodejs/underscore/amd/index85.js
6.94 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 135 lines modified
1 define(['./index17',·'./index78',·'./index97',·'./index79',·'./index106'],·(function(_getLength,·isArray,·isString,·isArguments,·keys)·{1 define(['./index150',·'./index26',·'./index17',·'./index100',·'./index89',·'./index28',·'./index82',·'./index105',·'./index19',·'./index30'],·(function(underscore,·_setup,·_getByteLength,·isTypedArray,·isFunction,·_stringTagBug,·isDataView,·keys,·_has,·_toBufferView)·{
  
2 ····//·Is·a·given·array,·string,·or·object·empty? 
3 ····//·An·"empty"·object·has·no·enumerable·own-properties. 
4 ····function·isEmpty(obj)·{ 
5 ········if·(obj·==·null)·return·true; 
6 ········//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no 
7 ········//·`.length`.2 ····//·We·use·this·string·twice,·so·give·it·a·name·for·minification.
 3 ····var·tagDataView·=·'[object·DataView]';
  
 4 ····//·Internal·recursive·comparison·function·for·`_.isEqual`.
 5 ····function·eq(a,·b,·aStack,·bStack)·{
 6 ········//·Identical·objects·are·equal.·`0·===·-0`,·but·they·aren't·identical.
 7 ········//·See·the·[Harmony·`egal`·proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).
 8 ········if·(a·===·b)·return·a·!==·0·||·1·/·a·===·1·/·b;
 9 ········//·`null`·or·`undefined`·only·equal·to·itself·(strict·comparison).
 10 ········if·(a·==·null·||·b·==·null)·return·false;
 11 ········//·`NaN`s·are·equivalent,·but·non-reflexive.
 12 ········if·(a·!==·a)·return·b·!==·b;
 13 ········//·Exhaust·primitive·checks
 14 ········var·type·=·typeof·a;
 15 ········if·(type·!==·'function'·&&·type·!==·'object'·&&·typeof·b·!=·'object')·return·false;
 16 ········return·deepEq(a,·b,·aStack,·bStack);
 17 ····}
  
 18 ····//·Internal·recursive·comparison·function·for·`_.isEqual`.
 19 ····function·deepEq(a,·b,·aStack,·bStack)·{
 20 ········//·Unwrap·any·wrapped·objects.
 21 ········if·(a·instanceof·underscore)·a·=·a._wrapped;
 22 ········if·(b·instanceof·underscore)·b·=·b._wrapped;
 23 ········//·Compare·`[[Class]]`·names.
 24 ········var·className·=·_setup.toString.call(a);
 25 ········if·(className·!==·_setup.toString.call(b))·return·false;
 26 ········//·Work·around·a·bug·in·IE·10·-·Edge·13.
 27 ········if·(_stringTagBug.hasStringTagBug·&&·className·==·'[object·Object]'·&&·isDataView(a))·{
 28 ············if·(!isDataView(b))·return·false;
 29 ············className·=·tagDataView;
 30 ········}
 31 ········switch·(className)·{
 32 ············//·These·types·are·compared·by·value.
 33 ············case·'[object·RegExp]':
 34 ················//·RegExps·are·coerced·to·strings·for·comparison·(Note:·''·+·/a/i·===·'/a/i')
 35 ············case·'[object·String]':
 36 ················//·Primitives·and·their·corresponding·object·wrappers·are·equivalent;·thus,·`"5"`·is
 37 ················//·equivalent·to·`new·String("5")`.
 38 ················return·''·+·a·===·''·+·b;
 39 ············case·'[object·Number]':
 40 ················//·`NaN`s·are·equivalent,·but·non-reflexive.
 41 ················//·Object(NaN)·is·equivalent·to·NaN.
 42 ················if·(+a·!==·+a)·return·+b·!==·+b;
 43 ················//·An·`egal`·comparison·is·performed·for·other·numeric·values.
 44 ················return·+a·===·0·?·1·/·+a·===·1·/·b·:·+a·===·+b;
 45 ············case·'[object·Date]':
 46 ············case·'[object·Boolean]':
 47 ················//·Coerce·dates·and·booleans·to·numeric·primitive·values.·Dates·are·compared·by·their
 48 ················//·millisecond·representations.·Note·that·invalid·dates·with·millisecond·representations
 49 ················//·of·`NaN`·are·not·equivalent.
 50 ················return·+a·===·+b;
 51 ············case·'[object·Symbol]':
 52 ················return·_setup.SymbolProto.valueOf.call(a)·===·_setup.SymbolProto.valueOf.call(b);
 53 ············case·'[object·ArrayBuffer]':
 54 ············case·tagDataView:
 55 ················//·Coerce·to·typed·array·so·we·can·fall·through.
 56 ················return·deepEq(_toBufferView(a),·_toBufferView(b),·aStack,·bStack);
 57 ········}
  
 58 ········var·areArrays·=·className·===·'[object·Array]';
 59 ········if·(!areArrays·&&·isTypedArray(a))·{
8 ········var·length·=·_getLength(obj);60 ············var·byteLength·=·_getByteLength(a);
9 ········if·(typeof·length·==·'number'·&&·( 
10 ················isArray(obj)·||·isString(obj)·||·isArguments(obj) 
11 ············))·return·length·===·0; 
12 ········return·_getLength(keys(obj))·===·0;61 ············if·(byteLength·!==·_getByteLength(b))·return·false;
 62 ············if·(a.buffer·===·b.buffer·&&·a.byteOffset·===·b.byteOffset)·return·true;
 63 ············areArrays·=·true;
 64 ········}
 65 ········if·(!areArrays)·{
 66 ············if·(typeof·a·!=·'object'·||·typeof·b·!=·'object')·return·false;
  
 67 ············//·Objects·with·different·constructors·are·not·equivalent,·but·`Object`s·or·`Array`s
 68 ············//·from·different·frames·are.
 69 ············var·aCtor·=·a.constructor,
 70 ················bCtor·=·b.constructor;
 71 ············if·(aCtor·!==·bCtor·&&·!(isFunction(aCtor)·&&·aCtor·instanceof·aCtor·&&
 72 ····················isFunction(bCtor)·&&·bCtor·instanceof·bCtor)·&&
 73 ················('constructor'·in·a·&&·'constructor'·in·b))·{
 74 ················return·false;
 75 ············}
 76 ········}
 77 ········//·Assume·equality·for·cyclic·structures.·The·algorithm·for·detecting·cyclic
 78 ········//·structures·is·adapted·from·ES·5.1·section·15.12.3,·abstract·operation·`JO`.
  
 79 ········//·Initializing·stack·of·traversed·objects.
 80 ········//·It's·done·here·since·we·only·need·them·for·objects·and·arrays·comparison.
 81 ········aStack·=·aStack·||·[];
 82 ········bStack·=·bStack·||·[];
 83 ········var·length·=·aStack.length;
 84 ········while·(length--)·{
 85 ············//·Linear·search.·Performance·is·inversely·proportional·to·the·number·of
 86 ············//·unique·nested·structures.
 87 ············if·(aStack[length]·===·a)·return·bStack[length]·===·b;
 88 ········}
  
 89 ········//·Add·the·first·object·to·the·stack·of·traversed·objects.
 90 ········aStack.push(a);
 91 ········bStack.push(b);
  
 92 ········//·Recursively·compare·objects·and·arrays.
 93 ········if·(areArrays)·{
 94 ············//·Compare·array·lengths·to·determine·if·a·deep·comparison·is·necessary.
 95 ············length·=·a.length;
 96 ············if·(length·!==·b.length)·return·false;
 97 ············//·Deep·compare·the·contents,·ignoring·non-numeric·properties.
 98 ············while·(length--)·{
 99 ················if·(!eq(a[length],·b[length],·aStack,·bStack))·return·false;
 100 ············}
 101 ········}·else·{
 102 ············//·Deep·compare·objects.
 103 ············var·_keys·=·keys(a),
 104 ················key;
 105 ············length·=·_keys.length;
 106 ············//·Ensure·that·both·objects·contain·the·same·number·of·properties·before·comparing·deep·equality.
 107 ············if·(keys(b).length·!==·length)·return·false;
 108 ············while·(length--)·{
 109 ················//·Deep·compare·each·member
 110 ················key·=·_keys[length];
 111 ················if·(!(_has(b,·key)·&&·eq(a[key],·b[key],·aStack,·bStack)))·return·false;
Max diff block lines reached; 52/7077 bytes (0.73%) of diff not shown.
6.47 KB
./usr/share/nodejs/underscore/amd/index86.js
6.38 KB
js-beautify {}
    
Offset 1, 135 lines modifiedOffset 1, 7 lines modified
1 define(['./index151',·'./index26',·'./index16',·'./index100',·'./index89',·'./index29',·'./index84',·'./index106',·'./index19',·'./index30'],·(function(underscore,·_setup,·_getByteLength,·isTypedArray,·isFunction,·_stringTagBug,·isDataView,·keys,·_has,·_toBufferView)·{1 define(['./index29'],·(function(_tagTester)·{
  
 2 ····var·isError·=·_tagTester('Error');
2 ····//·We·use·this·string·twice,·so·give·it·a·name·for·minification. 
3 ····var·tagDataView·=·'[object·DataView]'; 
  
4 ····//·Internal·recursive·comparison·function·for·`_.isEqual`. 
5 ····function·eq(a,·b,·aStack,·bStack)·{ 
6 ········//·Identical·objects·are·equal.·`0·===·-0`,·but·they·aren't·identical. 
7 ········//·See·the·[Harmony·`egal`·proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal). 
8 ········if·(a·===·b)·return·a·!==·0·||·1·/·a·===·1·/·b; 
9 ········//·`null`·or·`undefined`·only·equal·to·itself·(strict·comparison). 
10 ········if·(a·==·null·||·b·==·null)·return·false; 
11 ········//·`NaN`s·are·equivalent,·but·non-reflexive. 
12 ········if·(a·!==·a)·return·b·!==·b; 
13 ········//·Exhaust·primitive·checks 
14 ········var·type·=·typeof·a; 
15 ········if·(type·!==·'function'·&&·type·!==·'object'·&&·typeof·b·!=·'object')·return·false; 
16 ········return·deepEq(a,·b,·aStack,·bStack); 
17 ····} 
  
18 ····//·Internal·recursive·comparison·function·for·`_.isEqual`. 
19 ····function·deepEq(a,·b,·aStack,·bStack)·{ 
20 ········//·Unwrap·any·wrapped·objects. 
21 ········if·(a·instanceof·underscore)·a·=·a._wrapped; 
22 ········if·(b·instanceof·underscore)·b·=·b._wrapped; 
23 ········//·Compare·`[[Class]]`·names. 
24 ········var·className·=·_setup.toString.call(a); 
25 ········if·(className·!==·_setup.toString.call(b))·return·false; 
26 ········//·Work·around·a·bug·in·IE·10·-·Edge·13. 
27 ········if·(_stringTagBug.hasStringTagBug·&&·className·==·'[object·Object]'·&&·isDataView(a))·{ 
28 ············if·(!isDataView(b))·return·false; 
29 ············className·=·tagDataView; 
30 ········} 
31 ········switch·(className)·{ 
32 ············//·These·types·are·compared·by·value. 
33 ············case·'[object·RegExp]': 
34 ················//·RegExps·are·coerced·to·strings·for·comparison·(Note:·''·+·/a/i·===·'/a/i') 
35 ············case·'[object·String]': 
36 ················//·Primitives·and·their·corresponding·object·wrappers·are·equivalent;·thus,·`"5"`·is 
37 ················//·equivalent·to·`new·String("5")`. 
38 ················return·''·+·a·===·''·+·b; 
39 ············case·'[object·Number]': 
40 ················//·`NaN`s·are·equivalent,·but·non-reflexive. 
41 ················//·Object(NaN)·is·equivalent·to·NaN. 
42 ················if·(+a·!==·+a)·return·+b·!==·+b; 
43 ················//·An·`egal`·comparison·is·performed·for·other·numeric·values. 
44 ················return·+a·===·0·?·1·/·+a·===·1·/·b·:·+a·===·+b; 
45 ············case·'[object·Date]': 
46 ············case·'[object·Boolean]': 
47 ················//·Coerce·dates·and·booleans·to·numeric·primitive·values.·Dates·are·compared·by·their 
48 ················//·millisecond·representations.·Note·that·invalid·dates·with·millisecond·representations 
49 ················//·of·`NaN`·are·not·equivalent. 
50 ················return·+a·===·+b; 
51 ············case·'[object·Symbol]': 
52 ················return·_setup.SymbolProto.valueOf.call(a)·===·_setup.SymbolProto.valueOf.call(b); 
53 ············case·'[object·ArrayBuffer]': 
54 ············case·tagDataView: 
55 ················//·Coerce·to·typed·array·so·we·can·fall·through. 
56 ················return·deepEq(_toBufferView(a),·_toBufferView(b),·aStack,·bStack); 
57 ········} 
  
58 ········var·areArrays·=·className·===·'[object·Array]'; 
59 ········if·(!areArrays·&&·isTypedArray(a))·{ 
60 ············var·byteLength·=·_getByteLength(a); 
61 ············if·(byteLength·!==·_getByteLength(b))·return·false; 
62 ············if·(a.buffer·===·b.buffer·&&·a.byteOffset·===·b.byteOffset)·return·true; 
63 ············areArrays·=·true; 
64 ········} 
65 ········if·(!areArrays)·{ 
66 ············if·(typeof·a·!=·'object'·||·typeof·b·!=·'object')·return·false; 
  
67 ············//·Objects·with·different·constructors·are·not·equivalent,·but·`Object`s·or·`Array`s 
68 ············//·from·different·frames·are. 
69 ············var·aCtor·=·a.constructor, 
70 ················bCtor·=·b.constructor; 
71 ············if·(aCtor·!==·bCtor·&&·!(isFunction(aCtor)·&&·aCtor·instanceof·aCtor·&& 
72 ····················isFunction(bCtor)·&&·bCtor·instanceof·bCtor)·&& 
73 ················('constructor'·in·a·&&·'constructor'·in·b))·{ 
74 ················return·false; 
75 ············} 
76 ········} 
77 ········//·Assume·equality·for·cyclic·structures.·The·algorithm·for·detecting·cyclic 
78 ········//·structures·is·adapted·from·ES·5.1·section·15.12.3,·abstract·operation·`JO`. 
  
79 ········//·Initializing·stack·of·traversed·objects. 
80 ········//·It's·done·here·since·we·only·need·them·for·objects·and·arrays·comparison. 
81 ········aStack·=·aStack·||·[]; 
82 ········bStack·=·bStack·||·[]; 
83 ········var·length·=·aStack.length; 
84 ········while·(length--)·{ 
85 ············//·Linear·search.·Performance·is·inversely·proportional·to·the·number·of 
86 ············//·unique·nested·structures. 
87 ············if·(aStack[length]·===·a)·return·bStack[length]·===·b; 
88 ········} 
  
89 ········//·Add·the·first·object·to·the·stack·of·traversed·objects. 
90 ········aStack.push(a); 
91 ········bStack.push(b); 
  
92 ········//·Recursively·compare·objects·and·arrays. 
93 ········if·(areArrays)·{ 
94 ············//·Compare·array·lengths·to·determine·if·a·deep·comparison·is·necessary. 
95 ············length·=·a.length; 
96 ············if·(length·!==·b.length)·return·false; 
97 ············//·Deep·compare·the·contents,·ignoring·non-numeric·properties. 
98 ············while·(length--)·{ 
99 ················if·(!eq(a[length],·b[length],·aStack,·bStack))·return·false; 
100 ············} 
101 ········}·else·{ 
102 ············//·Deep·compare·objects. 
103 ············var·_keys·=·keys(a), 
104 ················key; 
105 ············length·=·_keys.length; 
106 ············//·Ensure·that·both·objects·contain·the·same·number·of·properties·before·comparing·deep·equality. 
107 ············if·(keys(b).length·!==·length)·return·false; 
108 ············while·(length--)·{ 
109 ················//·Deep·compare·each·member 
110 ················key·=·_keys[length]; 
111 ················if·(!(_has(b,·key)·&&·eq(a[key],·b[key],·aStack,·bStack)))·return·false; 
112 ············} 
113 ········} 
114 ········//·Remove·the·first·object·from·the·stack·of·traversed·objects. 
115 ········aStack.pop(); 
116 ········bStack.pop(); 
117 ········return·true; 
118 ····} 
Max diff block lines reached; 6/6510 bytes (0.09%) of diff not shown.
934 B
./usr/share/nodejs/underscore/amd/index87.js
846 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 18 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index16',·'./index78',·'./index97',·'./index75',·'./index105'],·(function(_getLength,·isArray,·isString,·isArguments,·keys)·{
  
2 ····var·isError·=·_tagTester('Error');2 ····//·Is·a·given·array,·string,·or·object·empty?
 3 ····//·An·"empty"·object·has·no·enumerable·own-properties.
 4 ····function·isEmpty(obj)·{
 5 ········if·(obj·==·null)·return·true;
 6 ········//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no
 7 ········//·`.length`.
 8 ········var·length·=·_getLength(obj);
 9 ········if·(typeof·length·==·'number'·&&·(
 10 ················isArray(obj)·||·isString(obj)·||·isArguments(obj)
 11 ············))·return·length·===·0;
 12 ········return·_getLength(keys(obj))·===·0;
 13 ····}
  
3 ····return·isError;14 ····return·isEmpty;
  
4 }));15 }));
649 B
./usr/share/nodejs/underscore/amd/index89.js
561 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index28',·'./index26'],·(function(_tagTester,·_setup)·{1 define(['./index29',·'./index26'],·(function(_tagTester,·_setup)·{
  
2 ····var·isFunction·=·_tagTester('Function');2 ····var·isFunction·=·_tagTester('Function');
  
3 ····//·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old3 ····//·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old
4 ····//·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236).4 ····//·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236).
5 ····var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes;5 ····var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes;
6 ····if·(typeof·/./·!=·'function'·&&·typeof·Int8Array·!=·'object'·&&·typeof·nodelist·!=·'function')·{6 ····if·(typeof·/./·!=·'function'·&&·typeof·Int8Array·!=·'object'·&&·typeof·nodelist·!=·'function')·{
583 B
./usr/share/nodejs/underscore/amd/index9.js
497 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index4',·'./index17'],·(function(_cb,·_getLength)·{1 define(['./index2',·'./index16'],·(function(_cb,·_getLength)·{
  
2 ····//·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`.2 ····//·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`.
3 ····function·createPredicateIndexFinder(dir)·{3 ····function·createPredicateIndexFinder(dir)·{
4 ········return·function(array,·predicate,·context)·{4 ········return·function(array,·predicate,·context)·{
5 ············predicate·=·_cb(predicate,·context);5 ············predicate·=·_cb(predicate,·context);
6 ············var·length·=·_getLength(array);6 ············var·length·=·_getLength(array);
7 ············var·index·=·dir·>·0·?·0·:·length·-·1;7 ············var·index·=·dir·>·0·?·0·:·length·-·1;
913 B
./usr/share/nodejs/underscore/amd/index90.js
825 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 18 lines modified
1 define(['./index28',·'./index29',·'./index24'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{1 define(['./index105'],·(function(keys)·{
  
2 ····var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');2 ····//·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs.
 3 ····function·isMatch(object,·attrs)·{
 4 ········var·_keys·=·keys(attrs),
 5 ············length·=·_keys.length;
 6 ········if·(object·==·null)·return·!length;
 7 ········var·obj·=·Object(object);
 8 ········for·(var·i·=·0;·i·<·length;·i++)·{
 9 ············var·key·=·_keys[i];
 10 ············if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false;
 11 ········}
 12 ········return·true;
 13 ····}
  
3 ····return·isMap;14 ····return·isMatch;
  
4 }));15 }));
605 B
./usr/share/nodejs/underscore/amd/index91.js
517 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 7 lines modified
1 define(['./index26',·'./index94'],·(function(_setup,·isNumber)·{1 define(['./index29',·'./index28',·'./index24'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{
  
 2 ····var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');
2 ····//·Is·the·given·value·`NaN`? 
3 ····function·isNaN(obj)·{ 
4 ········return·isNumber(obj)·&&·_setup._isNaN(obj); 
5 ····} 
  
6 ····return·isNaN;3 ····return·isMap;
  
7 }));4 }));
859 B
./usr/share/nodejs/underscore/amd/index92.js
771 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 10 lines modified
1 define(['./index106'],·(function(keys)·{1 define(['./index26',·'./index94'],·(function(_setup,·isNumber)·{
  
 2 ····//·Is·the·given·value·`NaN`?
 3 ····function·isNaN(obj)·{
 4 ········return·isNumber(obj)·&&·_setup._isNaN(obj);
2 ····//·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs. 
3 ····function·isMatch(object,·attrs)·{ 
4 ········var·_keys·=·keys(attrs), 
5 ············length·=·_keys.length; 
6 ········if·(object·==·null)·return·!length; 
7 ········var·obj·=·Object(object); 
8 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
9 ············var·key·=·_keys[i]; 
10 ············if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false; 
11 ········} 
12 ········return·true; 
13 ····}5 ····}
  
14 ····return·isMatch;6 ····return·isNaN;
  
15 }));7 }));
302 B
./usr/share/nodejs/underscore/amd/index94.js
214 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29'],·(function(_tagTester)·{
  
2 ····var·isNumber·=·_tagTester('Number');2 ····var·isNumber·=·_tagTester('Number');
  
3 ····return·isNumber;3 ····return·isNumber;
  
4 }));4 }));
509 B
./usr/share/nodejs/underscore/amd/index96.js
421 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28',·'./index29',·'./index24'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{1 define(['./index29'],·(function(_tagTester)·{
  
2 ····var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');2 ····var·isRegExp·=·_tagTester('RegExp');
  
3 ····return·isSet;3 ····return·isRegExp;
  
4 }));4 }));
302 B
./usr/share/nodejs/underscore/amd/index97.js
214 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29'],·(function(_tagTester)·{
  
2 ····var·isString·=·_tagTester('String');2 ····var·isString·=·_tagTester('String');
  
3 ····return·isString;3 ····return·isString;
  
4 }));4 }));
509 B
./usr/share/nodejs/underscore/amd/index98.js
421 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29',·'./index28',·'./index24'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{
  
2 ····var·isRegExp·=·_tagTester('RegExp');2 ····var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');
  
3 ····return·isRegExp;3 ····return·isSet;
  
4 }));4 }));
302 B
./usr/share/nodejs/underscore/amd/index99.js
214 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 define(['./index28'],·(function(_tagTester)·{1 define(['./index29'],·(function(_tagTester)·{
  
2 ····var·isSymbol·=·_tagTester('Symbol');2 ····var·isSymbol·=·_tagTester('Symbol');
  
3 ····return·isSymbol;3 ····return·isSymbol;
  
4 }));4 }));
623 B
./usr/share/nodejs/underscore/cjs/index10.js
535 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_isArrayLike·=·require('./index21.js');
2 var·keys·=·require('./index106.js');2 var·keys·=·require('./index105.js');
3 var·_optimizeCb·=·require('./index25.js');3 var·_optimizeCb·=·require('./index25.js');
  
4 //·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right.4 //·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right.
5 function·createReduce(dir)·{5 function·createReduce(dir)·{
6 ····//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than6 ····//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than
7 ····//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991)7 ····//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991)
8 ····var·reducer·=·function(obj,·iteratee,·memo,·initial)·{8 ····var·reducer·=·function(obj,·iteratee,·memo,·initial)·{
644 B
./usr/share/nodejs/underscore/cjs/index100.js
554 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_setup·=·require('./index26.js');1 var·_setup·=·require('./index26.js');
2 var·isDataView·=·require('./index84.js');2 var·isDataView·=·require('./index82.js');
3 var·constant·=·require('./index43.js');3 var·constant·=·require('./index45.js');
4 var·_isBufferLike·=·require('./index22.js');4 var·_isBufferLike·=·require('./index22.js');
  
5 //·Is·a·given·value·a·typed·array?5 //·Is·a·given·value·a·typed·array?
6 var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;6 var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
  
7 function·isTypedArray(obj)·{7 function·isTypedArray(obj)·{
8 ····//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available.8 ····//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available.
531 B
./usr/share/nodejs/underscore/cjs/index102.js
441 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
2 var·_stringTagBug·=·require('./index29.js');2 var·_stringTagBug·=·require('./index28.js');
3 var·_methodFingerprint·=·require('./index24.js');3 var·_methodFingerprint·=·require('./index24.js');
  
4 var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');4 var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');
  
5 module.exports·=·isWeakMap;5 module.exports·=·isWeakMap;
293 B
./usr/share/nodejs/underscore/cjs/index103.js
203 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
  
2 var·isWeakSet·=·_tagTester('WeakSet');2 var·isWeakSet·=·_tagTester('WeakSet');
  
3 module.exports·=·isWeakSet;3 module.exports·=·isWeakSet;
620 B
./usr/share/nodejs/underscore/cjs/index104.js
530 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·underscore·=·require('./index151.js');1 var·underscore·=·require('./index150.js');
2 var·_baseIteratee·=·require('./index2.js');2 var·_baseIteratee·=·require('./index3.js');
  
3 //·External·wrapper·for·our·callback·generator.·Users·may·customize3 //·External·wrapper·for·our·callback·generator.·Users·may·customize
4 //·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles.4 //·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles.
5 //·This·abstraction·hides·the·internal-only·`argCount`·argument.5 //·This·abstraction·hides·the·internal-only·`argCount`·argument.
6 function·iteratee(value,·context)·{6 function·iteratee(value,·context)·{
7 ····return·_baseIteratee(value,·context,·Infinity);7 ····return·_baseIteratee(value,·context,·Infinity);
8 }8 }
1.13 KB
./usr/share/nodejs/underscore/cjs/index105.js
1.04 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 19 lines modified
 1 var·isObject·=·require('./index95.js');
 2 var·_setup·=·require('./index26.js');
1 var·rest·=·require('./index133.js');3 var·_has·=·require('./index19.js');
 4 var·_collectNonEnumProps·=·require('./index5.js');
  
2 //·Get·the·last·element·of·an·array.·Passing·**n**·will·return·the·last·N 
3 //·values·in·the·array. 
4 function·last(array,·n,·guard)·{ 
5 ····if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; 
6 ····if·(n·==·null·||·guard)·return·array[array.length·-·1]; 
7 ····return·rest(array,·Math.max(0,·array.length·-·n));5 //·Retrieve·the·names·of·an·object's·own·properties.
 6 //·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`.
 7 function·keys(obj)·{
 8 ····if·(!isObject(obj))·return·[];
 9 ····if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj);
 10 ····var·keys·=·[];
 11 ····for·(var·key·in·obj)
 12 ········if·(_has(obj,·key))·keys.push(key);
 13 ····//·Ahem,·IE·<·9.
 14 ····if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys);
 15 ····return·keys;
8 }16 }
  
9 module.exports·=·last;17 module.exports·=·keys;
1.13 KB
./usr/share/nodejs/underscore/cjs/index106.js
1.04 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 11 lines modified
1 var·isObject·=·require('./index95.js'); 
2 var·_setup·=·require('./index26.js');1 var·rest·=·require('./index132.js');
3 var·_has·=·require('./index19.js'); 
4 var·_collectNonEnumProps·=·require('./index5.js'); 
  
 2 //·Get·the·last·element·of·an·array.·Passing·**n**·will·return·the·last·N
 3 //·values·in·the·array.
 4 function·last(array,·n,·guard)·{
 5 ····if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[];
 6 ····if·(n·==·null·||·guard)·return·array[array.length·-·1];
 7 ····return·rest(array,·Math.max(0,·array.length·-·n));
5 //·Retrieve·the·names·of·an·object's·own·properties. 
6 //·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`. 
7 function·keys(obj)·{ 
8 ····if·(!isObject(obj))·return·[]; 
9 ····if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj); 
10 ····var·keys·=·[]; 
11 ····for·(var·key·in·obj) 
12 ········if·(_has(obj,·key))·keys.push(key); 
13 ····//·Ahem,·IE·<·9. 
14 ····if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys); 
15 ····return·keys; 
16 }8 }
  
17 module.exports·=·keys;9 module.exports·=·last;
1.04 KB
./usr/share/nodejs/underscore/cjs/index107.js
977 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 18 lines modified
 1 var·_cb·=·require('./index2.js');
 2 var·_isArrayLike·=·require('./index21.js');
1 var·findLastIndex·=·require('./index61.js');3 var·keys·=·require('./index105.js');
2 var·_createIndexFinder·=·require('./index8.js'); 
  
3 //·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array, 
4 //·or·-1·if·the·item·is·not·included·in·the·array. 
5 var·lastIndexOf·=·_createIndexFinder(-1,·findLastIndex);4 //·Return·the·results·of·applying·the·iteratee·to·each·element.
 5 function·map(obj,·iteratee,·context)·{
 6 ····iteratee·=·_cb(iteratee,·context);
 7 ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
 8 ········length·=·(_keys·||·obj).length,
 9 ········results·=·Array(length);
 10 ····for·(var·index·=·0;·index·<·length;·index++)·{
 11 ········var·currentKey·=·_keys·?·_keys[index]·:·index;
 12 ········results[index]·=·iteratee(obj[currentKey],·currentKey,·obj);
 13 ····}
 14 ····return·results;
 15 }
  
6 module.exports·=·lastIndexOf;16 module.exports·=·map;
1.04 KB
./usr/share/nodejs/underscore/cjs/index108.js
977 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 8 lines modified
1 var·_cb·=·require('./index4.js'); 
2 var·_isArrayLike·=·require('./index21.js'); 
3 var·keys·=·require('./index106.js');1 var·findLastIndex·=·require('./index61.js');
 2 var·_createIndexFinder·=·require('./index7.js');
  
 3 //·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array,
 4 //·or·-1·if·the·item·is·not·included·in·the·array.
 5 var·lastIndexOf·=·_createIndexFinder(-1,·findLastIndex);
4 //·Return·the·results·of·applying·the·iteratee·to·each·element. 
5 function·map(obj,·iteratee,·context)·{ 
6 ····iteratee·=·_cb(iteratee,·context); 
7 ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), 
8 ········length·=·(_keys·||·obj).length, 
9 ········results·=·Array(length); 
10 ····for·(var·index·=·0;·index·<·length;·index++)·{ 
11 ········var·currentKey·=·_keys·?·_keys[index]·:·index; 
12 ········results[index]·=·iteratee(obj[currentKey],·currentKey,·obj); 
13 ····} 
14 ····return·results; 
15 } 
  
16 module.exports·=·map;6 module.exports·=·lastIndexOf;
554 B
./usr/share/nodejs/underscore/cjs/index109.js
464 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·keys·=·require('./index106.js');2 var·keys·=·require('./index105.js');
  
3 //·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`.3 //·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`.
4 //·In·contrast·to·`_.map`·it·returns·an·object.4 //·In·contrast·to·`_.map`·it·returns·an·object.
5 function·mapObject(obj,·iteratee,·context)·{5 function·mapObject(obj,·iteratee,·context)·{
6 ····iteratee·=·_cb(iteratee,·context);6 ····iteratee·=·_cb(iteratee,·context);
7 ····var·_keys·=·keys(obj),7 ····var·_keys·=·keys(obj),
8 ········length·=·_keys.length,8 ········length·=·_keys.length,
1.56 KB
./usr/share/nodejs/underscore/cjs/index110.js
1.47 KB
js-beautify {}
    
Offset 1, 32 lines modifiedOffset 1, 13 lines modified
1 var·_isArrayLike·=·require('./index21.js'); 
2 var·values·=·require('./index156.js');1 var·extendOwn·=·require('./index56.js');
3 var·_cb·=·require('./index4.js'); 
4 var·each·=·require('./index52.js');2 var·isMatch·=·require('./index90.js');
  
 3 //·Returns·a·predicate·for·checking·whether·an·object·has·a·given·set·of
 4 //·`key:value`·pairs.
 5 function·matcher(attrs)·{
 6 ····attrs·=·extendOwn({},·attrs);
 7 ····return·function(obj)·{
 8 ········return·isMatch(obj,·attrs);
5 //·Return·the·maximum·element·(or·element-based·computation). 
6 function·max(obj,·iteratee,·context)·{ 
7 ····var·result·=·-Infinity, 
8 ········lastComputed·=·-Infinity, 
9 ········value,·computed; 
10 ····if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ 
11 ········obj·=·_isArrayLike(obj)·?·obj·:·values(obj); 
12 ········for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ 
13 ············value·=·obj[i]; 
14 ············if·(value·!=·null·&&·value·>·result)·{ 
15 ················result·=·value; 
16 ············} 
17 ········} 
18 ····}·else·{ 
19 ········iteratee·=·_cb(iteratee,·context); 
20 ········each(obj,·function(v,·index,·list)·{ 
21 ············computed·=·iteratee(v,·index,·list); 
22 ············if·(computed·>·lastComputed·||·(computed·===·-Infinity·&&·result·===·-Infinity))·{ 
23 ················result·=·v; 
24 ················lastComputed·=·computed; 
25 ············} 
26 ········}); 
27 ····}9 ····};
28 ····return·result; 
29 }10 }
  
30 module.exports·=·max;11 module.exports·=·matcher;
1.56 KB
./usr/share/nodejs/underscore/cjs/index111.js
1.47 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 32 lines modified
 1 var·_isArrayLike·=·require('./index21.js');
1 var·extendOwn·=·require('./index55.js');2 var·values·=·require('./index156.js');
 3 var·_cb·=·require('./index2.js');
2 var·isMatch·=·require('./index92.js');4 var·each·=·require('./index52.js');
  
3 //·Returns·a·predicate·for·checking·whether·an·object·has·a·given·set·of 
4 //·`key:value`·pairs. 
5 function·matcher(attrs)·{ 
6 ····attrs·=·extendOwn({},·attrs); 
7 ····return·function(obj)·{ 
8 ········return·isMatch(obj,·attrs);5 //·Return·the·maximum·element·(or·element-based·computation).
 6 function·max(obj,·iteratee,·context)·{
 7 ····var·result·=·-Infinity,
 8 ········lastComputed·=·-Infinity,
 9 ········value,·computed;
 10 ····if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{
 11 ········obj·=·_isArrayLike(obj)·?·obj·:·values(obj);
 12 ········for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{
 13 ············value·=·obj[i];
 14 ············if·(value·!=·null·&&·value·>·result)·{
 15 ················result·=·value;
 16 ············}
 17 ········}
 18 ····}·else·{
 19 ········iteratee·=·_cb(iteratee,·context);
 20 ········each(obj,·function(v,·index,·list)·{
 21 ············computed·=·iteratee(v,·index,·list);
 22 ············if·(computed·>·lastComputed·||·(computed·===·-Infinity·&&·result·===·-Infinity))·{
 23 ················result·=·v;
 24 ················lastComputed·=·computed;
 25 ············}
 26 ········});
9 ····};27 ····}
 28 ····return·result;
10 }29 }
  
11 module.exports·=·matcher;30 module.exports·=·max;
521 B
./usr/share/nodejs/underscore/cjs/index113.js
431 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_isArrayLike·=·require('./index21.js');
2 var·values·=·require('./index156.js');2 var·values·=·require('./index156.js');
3 var·_cb·=·require('./index4.js');3 var·_cb·=·require('./index2.js');
4 var·each·=·require('./index52.js');4 var·each·=·require('./index52.js');
  
5 //·Return·the·minimum·element·(or·element-based·computation).5 //·Return·the·minimum·element·(or·element-based·computation).
6 function·min(obj,·iteratee,·context)·{6 function·min(obj,·iteratee,·context)·{
7 ····var·result·=·Infinity,7 ····var·result·=·Infinity,
8 ········lastComputed·=·Infinity,8 ········lastComputed·=·Infinity,
9 ········value,·computed;9 ········value,·computed;
1000 B
./usr/share/nodejs/underscore/cjs/index114.js
913 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 20 lines modified
1 //·Returns·a·negated·version·of·the·passed-in·predicate. 
2 function·negate(predicate)·{ 
3 ····return·function()·{ 
4 ········return·!predicate.apply(this,·arguments);1 var·underscore·=·require('./index150.js');
 2 var·each·=·require('./index52.js');
 3 var·functions·=·require('./index65.js');
 4 var·_setup·=·require('./index26.js');
 5 var·_chainResult·=·require('./index4.js');
  
 6 //·Add·your·own·custom·functions·to·the·Underscore·object.
 7 function·mixin(obj)·{
 8 ····each(functions(obj),·function(name)·{
 9 ········var·func·=·underscore[name]·=·obj[name];
 10 ········underscore.prototype[name]·=·function()·{
 11 ············var·args·=·[this._wrapped];
 12 ············_setup.push.apply(args,·arguments);
 13 ············return·_chainResult(this,·func.apply(underscore,·args));
 14 ········};
5 ····};15 ····});
 16 ····return·underscore;
6 }17 }
  
7 module.exports·=·negate;18 module.exports·=·mixin;
1000 B
./usr/share/nodejs/underscore/cjs/index115.js
913 B
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 8 lines modified
 1 //·Returns·a·negated·version·of·the·passed-in·predicate.
 2 function·negate(predicate)·{
 3 ····return·function()·{
 4 ········return·!predicate.apply(this,·arguments);
1 var·underscore·=·require('./index151.js'); 
2 var·each·=·require('./index52.js'); 
3 var·functions·=·require('./index65.js'); 
4 var·_setup·=·require('./index26.js'); 
5 var·_chainResult·=·require('./index3.js'); 
  
6 //·Add·your·own·custom·functions·to·the·Underscore·object. 
7 function·mixin(obj)·{ 
8 ····each(functions(obj),·function(name)·{ 
9 ········var·func·=·underscore[name]·=·obj[name]; 
10 ········underscore.prototype[name]·=·function()·{ 
11 ············var·args·=·[this._wrapped]; 
12 ············_setup.push.apply(args,·arguments); 
13 ············return·_chainResult(this,·func.apply(underscore,·args)); 
14 ········}; 
15 ····});5 ····};
16 ····return·underscore; 
17 }6 }
  
18 module.exports·=·mixin;7 module.exports·=·negate;
578 B
./usr/share/nodejs/underscore/cjs/index118.js
488 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_getLength·=·require('./index17.js');1 var·_getLength·=·require('./index16.js');
  
2 //·Converts·lists·into·objects.·Pass·either·a·single·array·of·`[key,·value]`2 //·Converts·lists·into·objects.·Pass·either·a·single·array·of·`[key,·value]`
3 //·pairs,·or·two·parallel·arrays·of·the·same·length·--·one·of·keys,·and·one·of3 //·pairs,·or·two·parallel·arrays·of·the·same·length·--·one·of·keys,·and·one·of
4 //·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`.4 //·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`.
5 function·object(list,·values)·{5 function·object(list,·values)·{
6 ····var·result·=·{};6 ····var·result·=·{};
7 ····for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{7 ····for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{
738 B
./usr/share/nodejs/underscore/cjs/index119.js
648 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 var·restArguments·=·require('./index134.js');1 var·restArguments·=·require('./index134.js');
2 var·isFunction·=·require('./index89.js');2 var·isFunction·=·require('./index89.js');
3 var·negate·=·require('./index114.js');3 var·negate·=·require('./index115.js');
4 var·map·=·require('./index108.js');4 var·map·=·require('./index107.js');
5 var·_flatten·=·require('./index15.js');5 var·_flatten·=·require('./index15.js');
6 var·contains·=·require('./index44.js');6 var·contains·=·require('./index43.js');
7 var·pick·=·require('./index124.js');7 var·pick·=·require('./index124.js');
  
8 //·Return·a·copy·of·the·object·without·the·disallowed·properties.8 //·Return·a·copy·of·the·object·without·the·disallowed·properties.
9 var·omit·=·restArguments(function(obj,·keys)·{9 var·omit·=·restArguments(function(obj,·keys)·{
10 ····var·iteratee·=·keys[0],10 ····var·iteratee·=·keys[0],
11 ········context;11 ········context;
12 ····if·(isFunction(iteratee))·{12 ····if·(isFunction(iteratee))·{
447 B
./usr/share/nodejs/underscore/cjs/index120.js
357 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·partial·=·require('./index123.js');1 var·partial·=·require('./index122.js');
2 var·before·=·require('./index35.js');2 var·before·=·require('./index35.js');
  
3 //·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how3 //·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how
4 //·often·you·call·it.·Useful·for·lazy·initialization.4 //·often·you·call·it.·Useful·for·lazy·initialization.
5 var·once·=·partial(before,·2);5 var·once·=·partial(before,·2);
  
6 module.exports·=·once;6 module.exports·=·once;
436 B
./usr/share/nodejs/underscore/cjs/index121.js
346 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·keys·=·require('./index106.js');1 var·keys·=·require('./index105.js');
  
2 //·Convert·an·object·into·a·list·of·`[key,·value]`·pairs.2 //·Convert·an·object·into·a·list·of·`[key,·value]`·pairs.
3 //·The·opposite·of·`_.object`·with·one·argument.3 //·The·opposite·of·`_.object`·with·one·argument.
4 function·pairs(obj)·{4 function·pairs(obj)·{
5 ····var·_keys·=·keys(obj);5 ····var·_keys·=·keys(obj);
6 ····var·length·=·_keys.length;6 ····var·length·=·_keys.length;
7 ····var·pairs·=·Array(length);7 ····var·pairs·=·Array(length);
1.49 KB
./usr/share/nodejs/underscore/cjs/index122.js
1.41 KB
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 26 lines modified
 1 var·restArguments·=·require('./index134.js');
1 var·_group·=·require('./index18.js');2 var·_executeBound·=·require('./index14.js');
 3 var·underscore·=·require('./index150.js');
  
2 //·Split·a·collection·into·two·arrays:·one·whose·elements·all·pass·the·given 
3 //·truth·test,·and·one·whose·elements·all·do·not·pass·the·truth·test. 
4 var·partition·=·_group(function(result,·value,·pass)·{ 
5 ····result[pass·?·0·:·1].push(value); 
6 },·true);4 //·Partially·apply·a·function·by·creating·a·version·that·has·had·some·of·its
 5 //·arguments·pre-filled,·without·changing·its·dynamic·`this`·context.·`_`·acts
 6 //·as·a·placeholder·by·default,·allowing·any·combination·of·arguments·to·be
 7 //·pre-filled.·Set·`_.partial.placeholder`·for·a·custom·placeholder·argument.
 8 var·partial·=·restArguments(function(func,·boundArgs)·{
 9 ····var·placeholder·=·partial.placeholder;
 10 ····var·bound·=·function()·{
 11 ········var·position·=·0,
 12 ············length·=·boundArgs.length;
 13 ········var·args·=·Array(length);
 14 ········for·(var·i·=·0;·i·<·length;·i++)·{
 15 ············args[i]·=·boundArgs[i]·===·placeholder·?·arguments[position++]·:·boundArgs[i];
 16 ········}
 17 ········while·(position·<·arguments.length)·args.push(arguments[position++]);
 18 ········return·_executeBound(func,·bound,·this,·this,·args);
 19 ····};
 20 ····return·bound;
 21 });
  
 22 partial.placeholder·=·underscore;
  
7 module.exports·=·partition;23 module.exports·=·partial;
1.49 KB
./usr/share/nodejs/underscore/cjs/index123.js
1.41 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 9 lines modified
1 var·restArguments·=·require('./index134.js'); 
2 var·_executeBound·=·require('./index14.js');1 var·_group·=·require('./index18.js');
3 var·underscore·=·require('./index151.js'); 
  
 2 //·Split·a·collection·into·two·arrays:·one·whose·elements·all·pass·the·given
 3 //·truth·test,·and·one·whose·elements·all·do·not·pass·the·truth·test.
 4 var·partition·=·_group(function(result,·value,·pass)·{
 5 ····result[pass·?·0·:·1].push(value);
 6 },·true);
4 //·Partially·apply·a·function·by·creating·a·version·that·has·had·some·of·its 
5 //·arguments·pre-filled,·without·changing·its·dynamic·`this`·context.·`_`·acts 
6 //·as·a·placeholder·by·default,·allowing·any·combination·of·arguments·to·be 
7 //·pre-filled.·Set·`_.partial.placeholder`·for·a·custom·placeholder·argument. 
8 var·partial·=·restArguments(function(func,·boundArgs)·{ 
9 ····var·placeholder·=·partial.placeholder; 
10 ····var·bound·=·function()·{ 
11 ········var·position·=·0, 
12 ············length·=·boundArgs.length; 
13 ········var·args·=·Array(length); 
14 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
15 ············args[i]·=·boundArgs[i]·===·placeholder·?·arguments[position++]·:·boundArgs[i]; 
16 ········} 
17 ········while·(position·<·arguments.length)·args.push(arguments[position++]); 
18 ········return·_executeBound(func,·bound,·this,·this,·args); 
19 ····}; 
20 ····return·bound; 
21 }); 
  
22 partial.placeholder·=·underscore; 
  
23 module.exports·=·partial;7 module.exports·=·partition;
785 B
./usr/share/nodejs/underscore/cjs/index125.js
695 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 13 lines modified
1 var·map·=·require('./index108.js'); 
2 var·property·=·require('./index126.js');1 var·_deepGet·=·require('./index12.js');
 2 var·_toPath·=·require('./index31.js');
  
3 //·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property. 
4 function·pluck(obj,·key)·{ 
5 ····return·map(obj,·property(key));3 //·Creates·a·function·that,·when·passed·an·object,·will·traverse·that·object’s
 4 //·properties·down·the·given·`path`,·specified·as·an·array·of·keys·or·indices.
 5 function·property(path)·{
 6 ····path·=·_toPath(path);
 7 ····return·function(obj)·{
 8 ········return·_deepGet(obj,·path);
 9 ····};
6 }10 }
  
7 module.exports·=·pluck;11 module.exports·=·property;
785 B
./usr/share/nodejs/underscore/cjs/index126.js
695 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 9 lines modified
1 var·_deepGet·=·require('./index12.js'); 
2 var·_toPath·=·require('./index31.js');1 var·map·=·require('./index107.js');
 2 var·property·=·require('./index125.js');
  
 3 //·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property.
 4 function·pluck(obj,·key)·{
 5 ····return·map(obj,·property(key));
3 //·Creates·a·function·that,·when·passed·an·object,·will·traverse·that·object’s 
4 //·properties·down·the·given·`path`,·specified·as·an·array·of·keys·or·indices. 
5 function·property(path)·{ 
6 ····path·=·_toPath(path); 
7 ····return·function(obj)·{ 
8 ········return·_deepGet(obj,·path); 
9 ····}; 
10 }6 }
  
11 module.exports·=·property;7 module.exports·=·pluck;
706 B
./usr/share/nodejs/underscore/cjs/index127.js
616 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 10 lines modified
 1 //·Return·a·random·integer·between·`min`·and·`max`·(inclusive).
 2 function·random(min,·max)·{
 3 ····if·(max·==·null)·{
 4 ········max·=·min;
 5 ········min·=·0;
1 var·noop·=·require('./index116.js'); 
2 var·get·=·require('./index66.js'); 
  
3 //·Generates·a·function·for·a·given·object·that·returns·a·given·property. 
4 function·propertyOf(obj)·{ 
5 ····if·(obj·==·null)·return·noop; 
6 ····return·function(path)·{ 
7 ········return·get(obj,·path); 
8 ····};6 ····}
 7 ····return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1));
9 }8 }
  
10 module.exports·=·propertyOf;9 module.exports·=·random;
706 B
./usr/share/nodejs/underscore/cjs/index128.js
616 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 12 lines modified
1 //·Return·a·random·integer·between·`min`·and·`max`·(inclusive). 
2 function·random(min,·max)·{ 
3 ····if·(max·==·null)·{ 
4 ········max·=·min; 
5 ········min·=·0;1 var·noop·=·require('./index116.js');
 2 var·get·=·require('./index66.js');
  
 3 //·Generates·a·function·for·a·given·object·that·returns·a·given·property.
 4 function·propertyOf(obj)·{
 5 ····if·(obj·==·null)·return·noop;
 6 ····return·function(path)·{
 7 ········return·get(obj,·path);
6 ····}8 ····};
7 ····return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1)); 
8 }9 }
  
9 module.exports·=·random;10 module.exports·=·propertyOf;
781 B
./usr/share/nodejs/underscore/cjs/index132.js
691 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·filter·=·require('./index58.js'); 
2 var·negate·=·require('./index114.js'); 
3 var·_cb·=·require('./index4.js');1 var·_setup·=·require('./index26.js');
  
4 //·Return·all·the·elements·for·which·a·truth·test·fails. 
5 function·reject(obj,·predicate,·context)·{ 
6 ····return·filter(obj,·negate(_cb(predicate)),·context);2 //·Returns·everything·but·the·first·entry·of·the·`array`.·Especially·useful·on
 3 //·the·`arguments`·object.·Passing·an·**n**·will·return·the·rest·N·values·in·the
 4 //·`array`.
 5 function·rest(array,·n,·guard)·{
 6 ····return·_setup.slice.call(array,·n·==·null·||·guard·?·1·:·n);
7 }7 }
  
8 module.exports·=·reject;8 module.exports·=·rest;
781 B
./usr/share/nodejs/underscore/cjs/index133.js
691 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
 1 var·filter·=·require('./index57.js');
 2 var·negate·=·require('./index115.js');
1 var·_setup·=·require('./index26.js');3 var·_cb·=·require('./index2.js');
  
 4 //·Return·all·the·elements·for·which·a·truth·test·fails.
 5 function·reject(obj,·predicate,·context)·{
 6 ····return·filter(obj,·negate(_cb(predicate)),·context);
2 //·Returns·everything·but·the·first·entry·of·the·`array`.·Especially·useful·on 
3 //·the·`arguments`·object.·Passing·an·**n**·will·return·the·rest·N·values·in·the 
4 //·`array`. 
5 function·rest(array,·n,·guard)·{ 
6 ····return·_setup.slice.call(array,·n·==·null·||·guard·?·1·:·n); 
7 }7 }
  
8 module.exports·=·rest;8 module.exports·=·reject;
755 B
./usr/share/nodejs/underscore/cjs/index136.js
665 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_isArrayLike·=·require('./index21.js');
2 var·values·=·require('./index156.js');2 var·values·=·require('./index156.js');
3 var·_getLength·=·require('./index17.js');3 var·_getLength·=·require('./index16.js');
4 var·random·=·require('./index128.js');4 var·random·=·require('./index127.js');
5 var·toArray·=·require('./index146.js');5 var·toArray·=·require('./index146.js');
  
6 //·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the6 //·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the
7 //·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).7 //·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
8 //·If·**n**·is·not·specified,·returns·a·single·random·element.8 //·If·**n**·is·not·specified,·returns·a·single·random·element.
9 //·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`.9 //·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`.
10 function·sample(obj,·n,·guard)·{10 function·sample(obj,·n,·guard)·{
430 B
./usr/share/nodejs/underscore/cjs/index138.js
340 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_isArrayLike·=·require('./index21.js');
2 var·keys·=·require('./index106.js');2 var·keys·=·require('./index105.js');
  
3 //·Return·the·number·of·elements·in·a·collection.3 //·Return·the·number·of·elements·in·a·collection.
4 function·size(obj)·{4 function·size(obj)·{
5 ····if·(obj·==·null)·return·0;5 ····if·(obj·==·null)·return·0;
6 ····return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;6 ····return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;
7 }7 }
  
1.5 KB
./usr/share/nodejs/underscore/cjs/index139.js
1.41 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 26 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·_isArrayLike·=·require('./index21.js'); 
3 var·keys·=·require('./index106.js');2 var·pluck·=·require('./index126.js');
 3 var·map·=·require('./index107.js');
  
4 //·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.4 //·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.
5 function·some(obj,·predicate,·context)·{5 function·sortBy(obj,·iteratee,·context)·{
 6 ····var·index·=·0;
6 ····predicate·=·_cb(predicate,·context);7 ····iteratee·=·_cb(iteratee,·context);
7 ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), 
8 ········length·=·(_keys·||·obj).length; 
9 ····for·(var·index·=·0;·index·<·length;·index++)·{ 
10 ········var·currentKey·=·_keys·?·_keys[index]·:·index; 
11 ········if·(predicate(obj[currentKey],·currentKey,·obj))·return·true; 
12 ····} 
13 ····return·false;8 ····return·pluck(map(obj,·function(value,·key,·list)·{
 9 ········return·{
 10 ············value:·value,
 11 ············index:·index++,
 12 ············criteria:·iteratee(value,·key,·list)
 13 ········};
 14 ····}).sort(function(left,·right)·{
 15 ········var·a·=·left.criteria;
 16 ········var·b·=·right.criteria;
 17 ········if·(a·!==·b)·{
 18 ············if·(a·>·b·||·a·===·void·0)·return·1;
 19 ············if·(a·<·b·||·b·===·void·0)·return·-1;
 20 ········}
 21 ········return·left.index·-·right.index;
 22 ····}),·'value');
14 }23 }
  
15 module.exports·=·some;24 module.exports·=·sortBy;
1.5 KB
./usr/share/nodejs/underscore/cjs/index140.js
1.41 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 17 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
 2 var·_isArrayLike·=·require('./index21.js');
2 var·pluck·=·require('./index125.js');3 var·keys·=·require('./index105.js');
3 var·map·=·require('./index108.js'); 
  
4 //·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.4 //·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.
5 function·sortBy(obj,·iteratee,·context)·{5 function·some(obj,·predicate,·context)·{
6 ····var·index·=·0; 
7 ····iteratee·=·_cb(iteratee,·context);6 ····predicate·=·_cb(predicate,·context);
 7 ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
 8 ········length·=·(_keys·||·obj).length;
 9 ····for·(var·index·=·0;·index·<·length;·index++)·{
 10 ········var·currentKey·=·_keys·?·_keys[index]·:·index;
 11 ········if·(predicate(obj[currentKey],·currentKey,·obj))·return·true;
 12 ····}
 13 ····return·false;
8 ····return·pluck(map(obj,·function(value,·key,·list)·{ 
9 ········return·{ 
10 ············value:·value, 
11 ············index:·index++, 
12 ············criteria:·iteratee(value,·key,·list) 
13 ········}; 
14 ····}).sort(function(left,·right)·{ 
15 ········var·a·=·left.criteria; 
16 ········var·b·=·right.criteria; 
17 ········if·(a·!==·b)·{ 
18 ············if·(a·>·b·||·a·===·void·0)·return·1; 
19 ············if·(a·<·b·||·b·===·void·0)·return·-1; 
20 ········} 
21 ········return·left.index·-·right.index; 
22 ····}),·'value'); 
23 }14 }
  
24 module.exports·=·sortBy;15 module.exports·=·some;
590 B
./usr/share/nodejs/underscore/cjs/index141.js
500 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·_getLength·=·require('./index17.js');2 var·_getLength·=·require('./index16.js');
  
3 //·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which3 //·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which
4 //·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search.4 //·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search.
5 function·sortedIndex(array,·obj,·iteratee,·context)·{5 function·sortedIndex(array,·obj,·iteratee,·context)·{
6 ····iteratee·=·_cb(iteratee,·context,·1);6 ····iteratee·=·_cb(iteratee,·context,·1);
7 ····var·value·=·iteratee(obj);7 ····var·value·=·iteratee(obj);
8 ····var·low·=·0,8 ····var·low·=·0,
530 B
./usr/share/nodejs/underscore/cjs/index143.js
440 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·defaults·=·require('./index48.js');1 var·defaults·=·require('./index50.js');
2 var·underscore·=·require('./index151.js');2 var·underscore·=·require('./index150.js');
3 require('./index144.js');3 require('./index144.js');
  
4 //·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an4 //·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an
5 //·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is5 //·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is
6 //·guaranteed·not·to·match.6 //·guaranteed·not·to·match.
7 var·noMatch·=·/(.)^/;7 var·noMatch·=·/(.)^/;
  
521 B
./usr/share/nodejs/underscore/cjs/index144.js
431 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·underscore·=·require('./index151.js');1 var·underscore·=·require('./index150.js');
  
2 //·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the2 //·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the
3 //·following·template·settings·to·use·alternative·delimiters.3 //·following·template·settings·to·use·alternative·delimiters.
4 var·templateSettings·=·underscore.templateSettings·=·{4 var·templateSettings·=·underscore.templateSettings·=·{
5 ····evaluate:·/<%([\s\S]+?)%>/g,5 ····evaluate:·/<%([\s\S]+?)%>/g,
6 ····interpolate:·/<%=([\s\S]+?)%>/g,6 ····interpolate:·/<%=([\s\S]+?)%>/g,
7 ····escape:·/<%-([\s\S]+?)%>/g7 ····escape:·/<%-([\s\S]+?)%>/g
2.06 KB
./usr/share/nodejs/underscore/cjs/index145.js
1.97 KB
js-beautify {}
    
Offset 1, 49 lines modifiedOffset 1, 11 lines modified
1 var·now·=·require('./index117.js');1 var·_optimizeCb·=·require('./index25.js');
  
 2 //·Run·a·function·**n**·times.
 3 function·times(n,·iteratee,·context)·{
 4 ····var·accum·=·Array(Math.max(0,·n));
 5 ····iteratee·=·_optimizeCb(iteratee,·context,·1);
 6 ····for·(var·i·=·0;·i·<·n;·i++)·accum[i]·=·iteratee(i);
 7 ····return·accum;
2 //·Returns·a·function,·that,·when·invoked,·will·only·be·triggered·at·most·once 
3 //·during·a·given·window·of·time.·Normally,·the·throttled·function·will·run 
4 //·as·much·as·it·can,·without·ever·going·more·than·once·per·`wait`·duration; 
5 //·but·if·you'd·like·to·disable·the·execution·on·the·leading·edge,·pass 
6 //·`{leading:·false}`.·To·disable·execution·on·the·trailing·edge,·ditto. 
7 function·throttle(func,·wait,·options)·{ 
8 ····var·timeout,·context,·args,·result; 
9 ····var·previous·=·0; 
10 ····if·(!options)·options·=·{}; 
  
11 ····var·later·=·function()·{ 
12 ········previous·=·options.leading·===·false·?·0·:·now(); 
13 ········timeout·=·null; 
14 ········result·=·func.apply(context,·args); 
15 ········if·(!timeout)·context·=·args·=·null; 
16 ····}; 
  
17 ····var·throttled·=·function()·{ 
18 ········var·_now·=·now(); 
19 ········if·(!previous·&&·options.leading·===·false)·previous·=·_now; 
20 ········var·remaining·=·wait·-·(_now·-·previous); 
21 ········context·=·this; 
22 ········args·=·arguments; 
23 ········if·(remaining·<=·0·||·remaining·>·wait)·{ 
24 ············if·(timeout)·{ 
25 ················clearTimeout(timeout); 
26 ················timeout·=·null; 
27 ············} 
28 ············previous·=·_now; 
29 ············result·=·func.apply(context,·args); 
30 ············if·(!timeout)·context·=·args·=·null; 
31 ········}·else·if·(!timeout·&&·options.trailing·!==·false)·{ 
32 ············timeout·=·setTimeout(later,·remaining); 
33 ········} 
34 ········return·result; 
35 ····}; 
  
36 ····throttled.cancel·=·function()·{ 
37 ········clearTimeout(timeout); 
38 ········previous·=·0; 
39 ········timeout·=·context·=·args·=·null; 
40 ····}; 
  
41 ····return·throttled; 
42 }8 }
  
43 module.exports·=·throttle;9 module.exports·=·times;
700 B
./usr/share/nodejs/underscore/cjs/index146.js
610 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 var·isArray·=·require('./index78.js');1 var·isArray·=·require('./index78.js');
2 var·_setup·=·require('./index26.js');2 var·_setup·=·require('./index26.js');
3 var·isString·=·require('./index97.js');3 var·isString·=·require('./index97.js');
4 var·_isArrayLike·=·require('./index21.js');4 var·_isArrayLike·=·require('./index21.js');
5 var·map·=·require('./index108.js');5 var·map·=·require('./index107.js');
6 var·identity·=·require('./index70.js');6 var·identity·=·require('./index69.js');
7 var·values·=·require('./index156.js');7 var·values·=·require('./index156.js');
  
8 //·Safely·create·a·real,·live·array·from·anything·iterable.8 //·Safely·create·a·real,·live·array·from·anything·iterable.
9 var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;9 var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
  
10 function·toArray(obj)·{10 function·toArray(obj)·{
11 ····if·(!obj)·return·[];11 ····if·(!obj)·return·[];
763 B
./usr/share/nodejs/underscore/cjs/index147.js
673 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 var·_optimizeCb·=·require('./index25.js');1 var·underscore·=·require('./index150.js');
 2 var·isArray·=·require('./index78.js');
  
 3 //·Normalize·a·(deep)·property·`path`·to·array.
 4 //·Like·`_.iteratee`,·this·function·can·be·customized.
 5 function·toPath(path)·{
 6 ····return·isArray(path)·?·path·:·[path];
2 //·Run·a·function·**n**·times. 
3 function·times(n,·iteratee,·context)·{ 
4 ····var·accum·=·Array(Math.max(0,·n)); 
5 ····iteratee·=·_optimizeCb(iteratee,·context,·1); 
6 ····for·(var·i·=·0;·i·<·n;·i++)·accum[i]·=·iteratee(i); 
7 ····return·accum; 
8 }7 }
 8 underscore.toPath·=·toPath;
  
9 module.exports·=·times;9 module.exports·=·toPath;
1.49 KB
./usr/share/nodejs/underscore/cjs/index148.js
1.4 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 31 lines modified
1 var·underscore·=·require('./index151.js');1 var·underscore·=·require('./index150.js');
2 var·isArray·=·require('./index78.js');2 var·each·=·require('./index52.js');
 3 var·_setup·=·require('./index26.js');
 4 var·_chainResult·=·require('./index4.js');
  
3 //·Normalize·a·(deep)·property·`path`·to·array. 
4 //·Like·`_.iteratee`,·this·function·can·be·customized. 
5 function·toPath(path)·{ 
6 ····return·isArray(path)·?·path·:·[path]; 
7 } 
8 underscore.toPath·=·toPath;5 //·Add·all·mutator·`Array`·functions·to·the·wrapper.
 6 each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{
 7 ····var·method·=·_setup.ArrayProto[name];
 8 ····underscore.prototype[name]·=·function()·{
 9 ········var·obj·=·this._wrapped;
 10 ········if·(obj·!=·null)·{
 11 ············method.apply(obj,·arguments);
 12 ············if·((name·===·'shift'·||·name·===·'splice')·&&·obj.length·===·0)·{
 13 ················delete·obj[0];
 14 ············}
 15 ········}
 16 ········return·_chainResult(this,·obj);
 17 ····};
 18 });
  
9 module.exports·=·toPath;19 //·Add·all·accessor·`Array`·functions·to·the·wrapper.
 20 each(['concat',·'join',·'slice'],·function(name)·{
 21 ····var·method·=·_setup.ArrayProto[name];
 22 ····underscore.prototype[name]·=·function()·{
 23 ········var·obj·=·this._wrapped;
 24 ········if·(obj·!=·null)·obj·=·method.apply(obj,·arguments);
 25 ········return·_chainResult(this,·obj);
 26 ····};
 27 });
  
 28 module.exports·=·underscore;
2.77 KB
./usr/share/nodejs/underscore/cjs/index149.js
2.68 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 49 lines modified
1 var·underscore·=·require('./index151.js');1 var·now·=·require('./index117.js');
2 var·each·=·require('./index52.js'); 
3 var·_setup·=·require('./index26.js'); 
4 var·_chainResult·=·require('./index3.js'); 
  
5 //·Add·all·mutator·`Array`·functions·to·the·wrapper. 
6 each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{ 
7 ····var·method·=·_setup.ArrayProto[name]; 
8 ····underscore.prototype[name]·=·function()·{ 
9 ········var·obj·=·this._wrapped; 
10 ········if·(obj·!=·null)·{ 
11 ············method.apply(obj,·arguments); 
12 ············if·((name·===·'shift'·||·name·===·'splice')·&&·obj.length·===·0)·{ 
13 ················delete·obj[0];2 //·Returns·a·function,·that,·when·invoked,·will·only·be·triggered·at·most·once
 3 //·during·a·given·window·of·time.·Normally,·the·throttled·function·will·run
 4 //·as·much·as·it·can,·without·ever·going·more·than·once·per·`wait`·duration;
 5 //·but·if·you'd·like·to·disable·the·execution·on·the·leading·edge,·pass
 6 //·`{leading:·false}`.·To·disable·execution·on·the·trailing·edge,·ditto.
 7 function·throttle(func,·wait,·options)·{
 8 ····var·timeout,·context,·args,·result;
 9 ····var·previous·=·0;
 10 ····if·(!options)·options·=·{};
  
 11 ····var·later·=·function()·{
 12 ········previous·=·options.leading·===·false·?·0·:·now();
 13 ········timeout·=·null;
 14 ········result·=·func.apply(context,·args);
 15 ········if·(!timeout)·context·=·args·=·null;
 16 ····};
  
 17 ····var·throttled·=·function()·{
 18 ········var·_now·=·now();
 19 ········if·(!previous·&&·options.leading·===·false)·previous·=·_now;
 20 ········var·remaining·=·wait·-·(_now·-·previous);
 21 ········context·=·this;
 22 ········args·=·arguments;
 23 ········if·(remaining·<=·0·||·remaining·>·wait)·{
 24 ············if·(timeout)·{
 25 ················clearTimeout(timeout);
 26 ················timeout·=·null;
14 ············}27 ············}
 28 ············previous·=·_now;
 29 ············result·=·func.apply(context,·args);
 30 ············if·(!timeout)·context·=·args·=·null;
 31 ········}·else·if·(!timeout·&&·options.trailing·!==·false)·{
 32 ············timeout·=·setTimeout(later,·remaining);
15 ········}33 ········}
16 ········return·_chainResult(this,·obj);34 ········return·result;
17 ····};35 ····};
18 }); 
  
 36 ····throttled.cancel·=·function()·{
 37 ········clearTimeout(timeout);
 38 ········previous·=·0;
 39 ········timeout·=·context·=·args·=·null;
19 //·Add·all·accessor·`Array`·functions·to·the·wrapper. 
20 each(['concat',·'join',·'slice'],·function(name)·{ 
21 ····var·method·=·_setup.ArrayProto[name]; 
22 ····underscore.prototype[name]·=·function()·{ 
23 ········var·obj·=·this._wrapped; 
24 ········if·(obj·!=·null)·obj·=·method.apply(obj,·arguments); 
25 ········return·_chainResult(this,·obj); 
26 ····};40 ····};
27 }); 
  
 41 ····return·throttled;
 42 }
  
28 module.exports·=·underscore;43 module.exports·=·throttle;
627 B
./usr/share/nodejs/underscore/cjs/index15.js
539 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 var·_getLength·=·require('./index17.js');1 var·_getLength·=·require('./index16.js');
2 var·_isArrayLike·=·require('./index21.js');2 var·_isArrayLike·=·require('./index21.js');
3 var·isArray·=·require('./index78.js');3 var·isArray·=·require('./index78.js');
4 var·isArguments·=·require('./index79.js');4 var·isArguments·=·require('./index75.js');
  
5 //·Internal·implementation·of·a·recursive·`flatten`·function.5 //·Internal·implementation·of·a·recursive·`flatten`·function.
6 function·flatten(input,·depth,·strict,·output)·{6 function·flatten(input,·depth,·strict,·output)·{
7 ····output·=·output·||·[];7 ····output·=·output·||·[];
8 ····if·(!depth·&&·depth·!==·0)·{8 ····if·(!depth·&&·depth·!==·0)·{
9 ········depth·=·Infinity;9 ········depth·=·Infinity;
10 ····}·else·if·(depth·<=·0)·{10 ····}·else·if·(depth·<=·0)·{
1.17 KB
./usr/share/nodejs/underscore/cjs/index150.js
1.08 KB
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 27 lines modified
1 var·_createEscaper·=·require('./index7.js'); 
2 var·_unescapeMap·=·require('./index32.js');1 var·_setup·=·require('./index26.js');
  
3 //·Function·for·unescaping·strings·from·HTML·interpolation. 
4 var·unescape·=·_createEscaper(_unescapeMap);2 //·If·Underscore·is·called·as·a·function,·it·returns·a·wrapped·object·that·can
 3 //·be·used·OO-style.·This·wrapper·holds·altered·versions·of·all·functions·added
 4 //·through·`_.mixin`.·Wrapped·objects·may·be·chained.
 5 function·_(obj)·{
 6 ····if·(obj·instanceof·_)·return·obj;
 7 ····if·(!(this·instanceof·_))·return·new·_(obj);
 8 ····this._wrapped·=·obj;
 9 }
  
 10 _.VERSION·=·_setup.VERSION;
  
 11 //·Extracts·the·result·from·a·wrapped·and·chained·object.
 12 _.prototype.value·=·function()·{
 13 ····return·this._wrapped;
 14 };
  
 15 //·Provide·unwrapping·proxies·for·some·methods·used·in·engine·operations
 16 //·such·as·arithmetic·and·JSON·stringification.
 17 _.prototype.valueOf·=·_.prototype.toJSON·=·_.prototype.value;
  
 18 _.prototype.toString·=·function()·{
 19 ····return·String(this._wrapped);
 20 };
  
5 module.exports·=·unescape;21 module.exports·=·_;
1.17 KB
./usr/share/nodejs/underscore/cjs/index151.js
1.08 KB
js-beautify {}
    
Offset 1, 27 lines modifiedOffset 1, 7 lines modified
 1 var·_createEscaper·=·require('./index8.js');
1 var·_setup·=·require('./index26.js');2 var·_unescapeMap·=·require('./index32.js');
  
 3 //·Function·for·unescaping·strings·from·HTML·interpolation.
 4 var·unescape·=·_createEscaper(_unescapeMap);
2 //·If·Underscore·is·called·as·a·function,·it·returns·a·wrapped·object·that·can 
3 //·be·used·OO-style.·This·wrapper·holds·altered·versions·of·all·functions·added 
4 //·through·`_.mixin`.·Wrapped·objects·may·be·chained. 
5 function·_(obj)·{ 
6 ····if·(obj·instanceof·_)·return·obj; 
7 ····if·(!(this·instanceof·_))·return·new·_(obj); 
8 ····this._wrapped·=·obj; 
9 } 
  
10 _.VERSION·=·_setup.VERSION; 
  
11 //·Extracts·the·result·from·a·wrapped·and·chained·object. 
12 _.prototype.value·=·function()·{ 
13 ····return·this._wrapped; 
14 }; 
  
15 //·Provide·unwrapping·proxies·for·some·methods·used·in·engine·operations 
16 //·such·as·arithmetic·and·JSON·stringification. 
17 _.prototype.valueOf·=·_.prototype.toJSON·=·_.prototype.value; 
  
18 _.prototype.toString·=·function()·{ 
19 ····return·String(this._wrapped); 
20 }; 
  
21 module.exports·=·_;5 module.exports·=·unescape;
1.82 KB
./usr/share/nodejs/underscore/cjs/index152.js
1.73 KB
js-beautify {}
    
Offset 1, 38 lines modifiedOffset 1, 11 lines modified
1 var·isBoolean·=·require('./index81.js');1 var·restArguments·=·require('./index134.js');
2 var·_cb·=·require('./index4.js');2 var·uniq·=·require('./index153.js');
3 var·_getLength·=·require('./index17.js');3 var·_flatten·=·require('./index15.js');
4 var·contains·=·require('./index44.js'); 
  
 4 //·Produce·an·array·that·contains·the·union:·each·distinct·element·from·all·of
 5 //·the·passed-in·arrays.
 6 var·union·=·restArguments(function(arrays)·{
 7 ····return·uniq(_flatten(arrays,·true,·true));
 8 });
5 //·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already 
6 //·been·sorted,·you·have·the·option·of·using·a·faster·algorithm. 
7 //·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee 
8 //·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable 
9 //·the·faster·algorithm. 
10 function·uniq(array,·isSorted,·iteratee,·context)·{ 
11 ····if·(!isBoolean(isSorted))·{ 
12 ········context·=·iteratee; 
13 ········iteratee·=·isSorted; 
14 ········isSorted·=·false; 
15 ····} 
16 ····if·(iteratee·!=·null)·iteratee·=·_cb(iteratee,·context); 
17 ····var·result·=·[]; 
18 ····var·seen·=·[]; 
19 ····for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{ 
20 ········var·value·=·array[i], 
21 ············computed·=·iteratee·?·iteratee(value,·i,·array)·:·value; 
22 ········if·(isSorted·&&·!iteratee)·{ 
23 ············if·(!i·||·seen·!==·computed)·result.push(value); 
24 ············seen·=·computed; 
25 ········}·else·if·(iteratee)·{ 
26 ············if·(!contains(seen,·computed))·{ 
27 ················seen.push(computed); 
28 ················result.push(value); 
29 ············} 
30 ········}·else·if·(!contains(result,·value))·{ 
31 ············result.push(value); 
32 ········} 
33 ····} 
34 ····return·result; 
35 } 
  
36 module.exports·=·uniq;9 module.exports·=·union;
1.82 KB
./usr/share/nodejs/underscore/cjs/index153.js
1.73 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 38 lines modified
1 var·restArguments·=·require('./index134.js');1 var·isBoolean·=·require('./index80.js');
2 var·uniq·=·require('./index152.js');2 var·_cb·=·require('./index2.js');
3 var·_flatten·=·require('./index15.js');3 var·_getLength·=·require('./index16.js');
 4 var·contains·=·require('./index43.js');
  
4 //·Produce·an·array·that·contains·the·union:·each·distinct·element·from·all·of 
5 //·the·passed-in·arrays. 
6 var·union·=·restArguments(function(arrays)·{ 
7 ····return·uniq(_flatten(arrays,·true,·true)); 
8 });5 //·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already
 6 //·been·sorted,·you·have·the·option·of·using·a·faster·algorithm.
 7 //·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee
 8 //·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable
 9 //·the·faster·algorithm.
 10 function·uniq(array,·isSorted,·iteratee,·context)·{
 11 ····if·(!isBoolean(isSorted))·{
 12 ········context·=·iteratee;
 13 ········iteratee·=·isSorted;
 14 ········isSorted·=·false;
 15 ····}
 16 ····if·(iteratee·!=·null)·iteratee·=·_cb(iteratee,·context);
 17 ····var·result·=·[];
 18 ····var·seen·=·[];
 19 ····for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{
 20 ········var·value·=·array[i],
 21 ············computed·=·iteratee·?·iteratee(value,·i,·array)·:·value;
 22 ········if·(isSorted·&&·!iteratee)·{
 23 ············if·(!i·||·seen·!==·computed)·result.push(value);
 24 ············seen·=·computed;
 25 ········}·else·if·(iteratee)·{
 26 ············if·(!contains(seen,·computed))·{
 27 ················seen.push(computed);
 28 ················result.push(value);
 29 ············}
 30 ········}·else·if·(!contains(result,·value))·{
 31 ············result.push(value);
 32 ········}
 33 ····}
 34 ····return·result;
 35 }
  
9 module.exports·=·union;36 module.exports·=·uniq;
613 B
./usr/share/nodejs/underscore/cjs/index155.js
523 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·max·=·require('./index110.js');1 var·max·=·require('./index111.js');
2 var·_getLength·=·require('./index17.js');2 var·_getLength·=·require('./index16.js');
3 var·pluck·=·require('./index125.js');3 var·pluck·=·require('./index126.js');
  
4 //·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups4 //·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups
5 //·each·array's·elements·on·shared·indices.5 //·each·array's·elements·on·shared·indices.
6 function·unzip(array)·{6 function·unzip(array)·{
7 ····var·length·=·(array·&&·max(array,·_getLength).length)·||·0;7 ····var·length·=·(array·&&·max(array,·_getLength).length)·||·0;
8 ····var·result·=·Array(length);8 ····var·result·=·Array(length);
  
420 B
./usr/share/nodejs/underscore/cjs/index156.js
330 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·keys·=·require('./index106.js');1 var·keys·=·require('./index105.js');
  
2 //·Retrieve·the·values·of·an·object's·properties.2 //·Retrieve·the·values·of·an·object's·properties.
3 function·values(obj)·{3 function·values(obj)·{
4 ····var·_keys·=·keys(obj);4 ····var·_keys·=·keys(obj);
5 ····var·length·=·_keys.length;5 ····var·length·=·_keys.length;
6 ····var·values·=·Array(length);6 ····var·values·=·Array(length);
7 ····for·(var·i·=·0;·i·<·length;·i++)·{7 ····for·(var·i·=·0;·i·<·length;·i++)·{
498 B
./usr/share/nodejs/underscore/cjs/index157.js
408 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·filter·=·require('./index58.js');1 var·filter·=·require('./index57.js');
2 var·matcher·=·require('./index111.js');2 var·matcher·=·require('./index110.js');
  
3 //·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only3 //·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only
4 //·objects·containing·specific·`key:value`·pairs.4 //·objects·containing·specific·`key:value`·pairs.
5 function·where(obj,·attrs)·{5 function·where(obj,·attrs)·{
6 ····return·filter(obj,·matcher(attrs));6 ····return·filter(obj,·matcher(attrs));
7 }7 }
  
475 B
./usr/share/nodejs/underscore/cjs/index159.js
385 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·partial·=·require('./index123.js');1 var·partial·=·require('./index122.js');
  
2 //·Returns·the·first·function·passed·as·an·argument·to·the·second,2 //·Returns·the·first·function·passed·as·an·argument·to·the·second,
3 //·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and3 //·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and
4 //·conditionally·execute·the·original·function.4 //·conditionally·execute·the·original·function.
5 function·wrap(func,·wrapper)·{5 function·wrap(func,·wrapper)·{
6 ····return·partial(wrapper,·func);6 ····return·partial(wrapper,·func);
7 }7 }
481 B
./usr/share/nodejs/underscore/cjs/index16.js
393 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
1 var·_shallowProperty·=·require('./index27.js');1 var·_shallowProperty·=·require('./index27.js');
  
2 //·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object.2 //·Internal·helper·to·obtain·the·`length`·property·of·an·object.
3 var·getByteLength·=·_shallowProperty('byteLength');3 var·getLength·=·_shallowProperty('length');
  
4 module.exports·=·getByteLength;4 module.exports·=·getLength;
481 B
./usr/share/nodejs/underscore/cjs/index17.js
393 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
1 var·_shallowProperty·=·require('./index27.js');1 var·_shallowProperty·=·require('./index27.js');
  
2 //·Internal·helper·to·obtain·the·`length`·property·of·an·object.2 //·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object.
3 var·getLength·=·_shallowProperty('length');3 var·getByteLength·=·_shallowProperty('byteLength');
  
4 module.exports·=·getLength;4 module.exports·=·getByteLength;
447 B
./usr/share/nodejs/underscore/cjs/index18.js
359 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·each·=·require('./index52.js');2 var·each·=·require('./index52.js');
  
3 //·An·internal·function·used·for·aggregate·"group·by"·operations.3 //·An·internal·function·used·for·aggregate·"group·by"·operations.
4 function·group(behavior,·partition)·{4 function·group(behavior,·partition)·{
5 ····return·function(obj,·iteratee,·context)·{5 ····return·function(obj,·iteratee,·context)·{
6 ········var·result·=·partition·?·[6 ········var·result·=·partition·?·[
7 ············[],7 ············[],
1.38 KB
./usr/share/nodejs/underscore/cjs/index2.js
1.3 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 12 lines modified
 1 var·underscore·=·require('./index150.js');
 2 var·_baseIteratee·=·require('./index3.js');
1 var·identity·=·require('./index70.js');3 var·iteratee·=·require('./index104.js');
2 var·isFunction·=·require('./index89.js'); 
3 var·isObject·=·require('./index95.js'); 
4 var·isArray·=·require('./index78.js'); 
5 var·matcher·=·require('./index111.js'); 
6 var·property·=·require('./index126.js'); 
7 var·_optimizeCb·=·require('./index25.js'); 
  
 4 //·The·function·we·call·internally·to·generate·a·callback.·It·invokes
 5 //·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`.
8 //·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each 
9 //·element·in·a·collection,·returning·the·desired·result··either·`_.identity`, 
10 //·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor. 
11 function·baseIteratee(value,·context,·argCount)·{6 function·cb(value,·context,·argCount)·{
 7 ····if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context);
 8 ····return·_baseIteratee(value,·context,·argCount);
12 ····if·(value·==·null)·return·identity; 
13 ····if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount); 
14 ····if·(isObject(value)·&&·!isArray(value))·return·matcher(value); 
15 ····return·property(value); 
16 }9 }
  
17 module.exports·=·baseIteratee;10 module.exports·=·cb;
296 B
./usr/share/nodejs/underscore/cjs/index20.js
208 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
  
2 var·hasObjectTag·=·_tagTester('Object');2 var·hasObjectTag·=·_tagTester('Object');
  
3 module.exports·=·hasObjectTag;3 module.exports·=·hasObjectTag;
600 B
./usr/share/nodejs/underscore/cjs/index21.js
512 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_createSizePropertyCheck·=·require('./index11.js');1 var·_createSizePropertyCheck·=·require('./index11.js');
2 var·_getLength·=·require('./index17.js');2 var·_getLength·=·require('./index16.js');
  
3 //·Internal·helper·for·collection·methods·to·determine·whether·a·collection3 //·Internal·helper·for·collection·methods·to·determine·whether·a·collection
4 //·should·be·iterated·as·an·array·or·as·an·object.4 //·should·be·iterated·as·an·array·or·as·an·object.
5 //·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength5 //·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
6 //·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#20946 //·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094
7 var·isArrayLike·=·_createSizePropertyCheck(_getLength);7 var·isArrayLike·=·_createSizePropertyCheck(_getLength);
  
488 B
./usr/share/nodejs/underscore/cjs/index22.js
400 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_createSizePropertyCheck·=·require('./index11.js');1 var·_createSizePropertyCheck·=·require('./index11.js');
2 var·_getByteLength·=·require('./index16.js');2 var·_getByteLength·=·require('./index17.js');
  
3 //·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against3 //·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against
4 //·`ArrayBuffer`·et·al.4 //·`ArrayBuffer`·et·al.
5 var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);5 var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);
  
6 module.exports·=·isBufferLike;6 module.exports·=·isBufferLike;
567 B
./usr/share/nodejs/underscore/cjs/index24.js
479 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_getLength·=·require('./index17.js');1 var·_getLength·=·require('./index16.js');
2 var·isFunction·=·require('./index89.js');2 var·isFunction·=·require('./index89.js');
3 var·allKeys·=·require('./index34.js');3 var·allKeys·=·require('./index34.js');
  
4 //·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for4 //·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for
5 //·some·types·in·IE·11,·we·use·a·fingerprinting·heuristic·instead,·based5 //·some·types·in·IE·11,·we·use·a·fingerprinting·heuristic·instead,·based
6 //·on·the·methods.·It's·not·great,·but·it's·the·best·we·got.6 //·on·the·methods.·It's·not·great,·but·it's·the·best·we·got.
7 //·The·fingerprint·method·lists·are·defined·below.7 //·The·fingerprint·method·lists·are·defined·below.
908 B
./usr/share/nodejs/underscore/cjs/index28.js
820 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 13 lines modified
1 var·_setup·=·require('./index26.js');1 var·_setup·=·require('./index26.js');
 2 var·_hasObjectTag·=·require('./index20.js');
  
2 //·Internal·function·for·creating·a·`toString`-based·type·tester. 
3 function·tagTester(name)·{ 
4 ····var·tag·=·'[object·'·+·name·+·']'; 
5 ····return·function(obj)·{ 
6 ········return·_setup.toString.call(obj)·===·tag; 
7 ····}; 
8 }3 //·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`.
 4 //·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to
 5 //·`Map`,·`WeakMap`·and·`Set`.
 6 var·hasStringTagBug·=·(
 7 ········_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8)))
 8 ····),
 9 ····isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));
  
9 module.exports·=·tagTester;10 exports.hasStringTagBug·=·hasStringTagBug;
 11 exports.isIE11·=·isIE11;
908 B
./usr/share/nodejs/underscore/cjs/index29.js
820 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 11 lines modified
1 var·_setup·=·require('./index26.js');1 var·_setup·=·require('./index26.js');
2 var·_hasObjectTag·=·require('./index20.js'); 
  
3 //·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`. 
4 //·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to 
5 //·`Map`,·`WeakMap`·and·`Set`. 
6 var·hasStringTagBug·=·( 
7 ········_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8))) 
8 ····), 
9 ····isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));2 //·Internal·function·for·creating·a·`toString`-based·type·tester.
 3 function·tagTester(name)·{
 4 ····var·tag·=·'[object·'·+·name·+·']';
 5 ····return·function(obj)·{
 6 ········return·_setup.toString.call(obj)·===·tag;
 7 ····};
 8 }
  
 9 module.exports·=·tagTester;
10 exports.hasStringTagBug·=·hasStringTagBug; 
11 exports.isIE11·=·isIE11; 
1.16 KB
./usr/share/nodejs/underscore/cjs/index3.js
1.08 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 19 lines modified
 1 var·identity·=·require('./index69.js');
 2 var·isFunction·=·require('./index89.js');
 3 var·isObject·=·require('./index95.js');
 4 var·isArray·=·require('./index78.js');
1 var·underscore·=·require('./index151.js');5 var·matcher·=·require('./index110.js');
 6 var·property·=·require('./index125.js');
 7 var·_optimizeCb·=·require('./index25.js');
  
2 //·Helper·function·to·continue·chaining·intermediate·results. 
3 function·chainResult(instance,·obj)·{ 
4 ····return·instance._chain·?·underscore(obj).chain()·:·obj;8 //·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each
 9 //·element·in·a·collection,·returning·the·desired·result··either·`_.identity`,
 10 //·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor.
 11 function·baseIteratee(value,·context,·argCount)·{
 12 ····if·(value·==·null)·return·identity;
 13 ····if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount);
 14 ····if·(isObject(value)·&&·!isArray(value))·return·matcher(value);
 15 ····return·property(value);
5 }16 }
  
6 module.exports·=·chainResult;17 module.exports·=·baseIteratee;
505 B
./usr/share/nodejs/underscore/cjs/index30.js
417 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_getByteLength·=·require('./index16.js');1 var·_getByteLength·=·require('./index17.js');
  
2 //·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer,2 //·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer,
3 //·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer.3 //·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer.
4 function·toBufferView(bufferSource)·{4 function·toBufferView(bufferSource)·{
5 ····return·new·Uint8Array(5 ····return·new·Uint8Array(
6 ········bufferSource.buffer·||·bufferSource,6 ········bufferSource.buffer·||·bufferSource,
7 ········bufferSource.byteOffset·||·0,7 ········bufferSource.byteOffset·||·0,
441 B
./usr/share/nodejs/underscore/cjs/index31.js
353 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·underscore·=·require('./index151.js');1 var·underscore·=·require('./index150.js');
2 require('./index148.js');2 require('./index147.js');
  
3 //·Internal·wrapper·for·`_.toPath`·to·enable·minification.3 //·Internal·wrapper·for·`_.toPath`·to·enable·minification.
4 //·Similar·to·`cb`·for·`_.iteratee`.4 //·Similar·to·`cb`·for·`_.iteratee`.
5 function·toPath(path)·{5 function·toPath(path)·{
6 ····return·underscore.toPath(path);6 ····return·underscore.toPath(path);
7 }7 }
  
378 B
./usr/share/nodejs/underscore/cjs/index32.js
290 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 var·invert·=·require('./index75.js');1 var·invert·=·require('./index79.js');
2 var·_escapeMap·=·require('./index13.js');2 var·_escapeMap·=·require('./index13.js');
  
3 //·Internal·list·of·HTML·entities·for·unescaping.3 //·Internal·list·of·HTML·entities·for·unescaping.
4 var·unescapeMap·=·invert(_escapeMap);4 var·unescapeMap·=·invert(_escapeMap);
  
5 module.exports·=·unescapeMap;5 module.exports·=·unescapeMap;
1.02 KB
./usr/share/nodejs/underscore/cjs/index37.js
952 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 19 lines modified
 1 var·restArguments·=·require('./index134.js');
 2 var·_flatten·=·require('./index15.js');
1 var·underscore·=·require('./index151.js');3 var·bind·=·require('./index36.js');
  
2 //·Start·chaining·a·wrapped·Underscore·object. 
3 function·chain(obj)·{ 
4 ····var·instance·=·underscore(obj); 
5 ····instance._chain·=·true; 
6 ····return·instance; 
7 }4 //·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments
 5 //·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks
 6 //·defined·on·an·object·belong·to·it.
 7 var·bindAll·=·restArguments(function(obj,·keys)·{
 8 ····keys·=·_flatten(keys,·false,·false);
 9 ····var·index·=·keys.length;
 10 ····if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names');
 11 ····while·(index--)·{
 12 ········var·key·=·keys[index];
 13 ········obj[key]·=·bind(obj[key],·obj);
 14 ····}
 15 ····return·obj;
 16 });
  
8 module.exports·=·chain;17 module.exports·=·bindAll;
1.2 KB
./usr/share/nodejs/underscore/cjs/index38.js
1.11 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 16 lines modified
1 var·restArguments·=·require('./index134.js'); 
2 var·_flatten·=·require('./index15.js'); 
3 var·bind·=·require('./index36.js');1 var·_setup·=·require('./index26.js');
  
 2 //·Chunk·a·single·array·into·multiple·arrays,·each·containing·`count`·or·fewer
 3 //·items.
 4 function·chunk(array,·count)·{
 5 ····if·(count·==·null·||·count·<·1)·return·[];
 6 ····var·result·=·[];
 7 ····var·i·=·0,
 8 ········length·=·array.length;
 9 ····while·(i·<·length)·{
 10 ········result.push(_setup.slice.call(array,·i,·i·+=·count));
4 //·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments 
5 //·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks 
6 //·defined·on·an·object·belong·to·it. 
7 var·bindAll·=·restArguments(function(obj,·keys)·{ 
8 ····keys·=·_flatten(keys,·false,·false); 
9 ····var·index·=·keys.length; 
10 ····if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names'); 
11 ····while·(index--)·{ 
12 ········var·key·=·keys[index]; 
13 ········obj[key]·=·bind(obj[key],·obj); 
14 ····}11 ····}
15 ····return·obj; 
16 });12 ····return·result;
 13 }
  
17 module.exports·=·bindAll;14 module.exports·=·chunk;
790 B
./usr/share/nodejs/underscore/cjs/index39.js
702 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 10 lines modified
1 var·_setup·=·require('./index26.js');1 var·underscore·=·require('./index150.js');
  
 2 //·Start·chaining·a·wrapped·Underscore·object.
 3 function·chain(obj)·{
 4 ····var·instance·=·underscore(obj);
 5 ····instance._chain·=·true;
 6 ····return·instance;
2 //·Chunk·a·single·array·into·multiple·arrays,·each·containing·`count`·or·fewer 
3 //·items. 
4 function·chunk(array,·count)·{ 
5 ····if·(count·==·null·||·count·<·1)·return·[]; 
6 ····var·result·=·[]; 
7 ····var·i·=·0, 
8 ········length·=·array.length; 
9 ····while·(i·<·length)·{ 
10 ········result.push(_setup.slice.call(array,·i,·i·+=·count)); 
11 ····} 
12 ····return·result; 
13 }7 }
  
14 module.exports·=·chunk;8 module.exports·=·chain;
839 B
./usr/share/nodejs/underscore/cjs/index4.js
753 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 8 lines modified
1 var·underscore·=·require('./index151.js');1 var·underscore·=·require('./index150.js');
2 var·_baseIteratee·=·require('./index2.js'); 
3 var·iteratee·=·require('./index104.js'); 
  
 2 //·Helper·function·to·continue·chaining·intermediate·results.
 3 function·chainResult(instance,·obj)·{
 4 ····return·instance._chain·?·underscore(obj).chain()·:·obj;
4 //·The·function·we·call·internally·to·generate·a·callback.·It·invokes 
5 //·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`. 
6 function·cb(value,·context,·argCount)·{ 
7 ····if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context); 
8 ····return·_baseIteratee(value,·context,·argCount); 
9 }5 }
  
10 module.exports·=·cb;6 module.exports·=·chainResult;
472 B
./usr/share/nodejs/underscore/cjs/index40.js
384 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·isObject·=·require('./index95.js');1 var·isObject·=·require('./index95.js');
2 var·isArray·=·require('./index78.js');2 var·isArray·=·require('./index78.js');
3 var·extend·=·require('./index56.js');3 var·extend·=·require('./index55.js');
  
4 //·Create·a·(shallow-cloned)·duplicate·of·an·object.4 //·Create·a·(shallow-cloned)·duplicate·of·an·object.
5 function·clone(obj)·{5 function·clone(obj)·{
6 ····if·(!isObject(obj))·return·obj;6 ····if·(!isObject(obj))·return·obj;
7 ····return·isArray(obj)·?·obj.slice()·:·extend({},·obj);7 ····return·isArray(obj)·?·obj.slice()·:·extend({},·obj);
8 }8 }
  
352 B
./usr/share/nodejs/underscore/cjs/index41.js
264 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·filter·=·require('./index58.js');1 var·filter·=·require('./index57.js');
  
2 //·Trim·out·all·falsy·values·from·an·array.2 //·Trim·out·all·falsy·values·from·an·array.
3 function·compact(array)·{3 function·compact(array)·{
4 ····return·filter(array,·Boolean);4 ····return·filter(array,·Boolean);
5 }5 }
  
6 module.exports·=·compact;6 module.exports·=·compact;
759 B
./usr/share/nodejs/underscore/cjs/index43.js
671 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 12 lines modified
1 //·Predicate-generating·function.·Often·useful·outside·of·Underscore. 
2 function·constant(value)·{ 
3 ····return·function()·{ 
4 ········return·value; 
5 ····};1 var·_isArrayLike·=·require('./index21.js');
 2 var·values·=·require('./index156.js');
 3 var·indexOf·=·require('./index73.js');
  
 4 //·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`).
 5 function·contains(obj,·item,·fromIndex,·guard)·{
 6 ····if·(!_isArrayLike(obj))·obj·=·values(obj);
 7 ····if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0;
 8 ····return·indexOf(obj,·item,·fromIndex)·>=·0;
6 }9 }
  
7 module.exports·=·constant;10 module.exports·=·contains;
971 B
./usr/share/nodejs/underscore/cjs/index44.js
883 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_group·=·require('./index18.js');
2 var·values·=·require('./index156.js');2 var·_has·=·require('./index19.js');
3 var·indexOf·=·require('./index73.js'); 
  
4 //·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`). 
5 function·contains(obj,·item,·fromIndex,·guard)·{ 
6 ····if·(!_isArrayLike(obj))·obj·=·values(obj); 
7 ····if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0; 
8 ····return·indexOf(obj,·item,·fromIndex)·>=·0; 
9 }3 //·Counts·instances·of·an·object·that·group·by·a·certain·criterion.·Pass
 4 //·either·a·string·attribute·to·count·by,·or·a·function·that·returns·the
 5 //·criterion.
 6 var·countBy·=·_group(function(result,·value,·key)·{
 7 ····if·(_has(result,·key))·result[key]++;
 8 ····else·result[key]·=·1;
 9 });
  
10 module.exports·=·contains;10 module.exports·=·countBy;
717 B
./usr/share/nodejs/underscore/cjs/index45.js
629 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 8 lines modified
1 var·_group·=·require('./index18.js'); 
2 var·_has·=·require('./index19.js');1 //·Predicate-generating·function.·Often·useful·outside·of·Underscore.
 2 function·constant(value)·{
 3 ····return·function()·{
 4 ········return·value;
 5 ····};
 6 }
  
3 //·Counts·instances·of·an·object·that·group·by·a·certain·criterion.·Pass 
4 //·either·a·string·attribute·to·count·by,·or·a·function·that·returns·the 
5 //·criterion. 
6 var·countBy·=·_group(function(result,·value,·key)·{ 
7 ····if·(_has(result,·key))·result[key]++; 
8 ····else·result[key]·=·1; 
9 }); 
  
10 module.exports·=·countBy;7 module.exports·=·constant;
1.89 KB
./usr/share/nodejs/underscore/cjs/index46.js
1.8 KB
js-beautify {}
    
Offset 1, 42 lines modifiedOffset 1, 13 lines modified
1 var·restArguments·=·require('./index134.js');1 var·_baseCreate·=·require('./index.js');
2 var·now·=·require('./index117.js');2 var·extendOwn·=·require('./index56.js');
  
 3 //·Creates·an·object·that·inherits·from·the·given·prototype·object.
 4 //·If·additional·properties·are·provided·then·they·will·be·added·to·the
 5 //·created·object.
 6 function·create(prototype,·props)·{
 7 ····var·result·=·_baseCreate(prototype);
 8 ····if·(props)·extendOwn(result,·props);
3 //·When·a·sequence·of·calls·of·the·returned·function·ends,·the·argument 
4 //·function·is·triggered.·The·end·of·a·sequence·is·defined·by·the·`wait` 
5 //·parameter.·If·`immediate`·is·passed,·the·argument·function·will·be 
6 //·triggered·at·the·beginning·of·the·sequence·instead·of·at·the·end. 
7 function·debounce(func,·wait,·immediate)·{ 
8 ····var·timeout,·previous,·args,·result,·context; 
  
9 ····var·later·=·function()·{ 
10 ········var·passed·=·now()·-·previous; 
11 ········if·(wait·>·passed)·{ 
12 ············timeout·=·setTimeout(later,·wait·-·passed); 
13 ········}·else·{ 
14 ············timeout·=·null; 
15 ············if·(!immediate)·result·=·func.apply(context,·args); 
16 ············//·This·check·is·needed·because·`func`·can·recursively·invoke·`debounced`. 
17 ············if·(!timeout)·args·=·context·=·null; 
18 ········} 
19 ····}; 
  
20 ····var·debounced·=·restArguments(function(_args)·{ 
21 ········context·=·this; 
22 ········args·=·_args; 
23 ········previous·=·now(); 
24 ········if·(!timeout)·{ 
25 ············timeout·=·setTimeout(later,·wait); 
26 ············if·(immediate)·result·=·func.apply(context,·args); 
27 ········} 
28 ········return·result;9 ····return·result;
29 ····}); 
  
30 ····debounced.cancel·=·function()·{ 
31 ········clearTimeout(timeout); 
32 ········timeout·=·args·=·context·=·null; 
33 ····}; 
  
34 ····return·debounced; 
35 }10 }
  
36 module.exports·=·debounce;11 module.exports·=·create;
1.89 KB
./usr/share/nodejs/underscore/cjs/index47.js
1.8 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 42 lines modified
1 var·_baseCreate·=·require('./index.js');1 var·restArguments·=·require('./index134.js');
2 var·extendOwn·=·require('./index55.js');2 var·now·=·require('./index117.js');
  
3 //·Creates·an·object·that·inherits·from·the·given·prototype·object. 
4 //·If·additional·properties·are·provided·then·they·will·be·added·to·the 
5 //·created·object. 
6 function·create(prototype,·props)·{ 
7 ····var·result·=·_baseCreate(prototype); 
8 ····if·(props)·extendOwn(result,·props);3 //·When·a·sequence·of·calls·of·the·returned·function·ends,·the·argument
 4 //·function·is·triggered.·The·end·of·a·sequence·is·defined·by·the·`wait`
 5 //·parameter.·If·`immediate`·is·passed,·the·argument·function·will·be
 6 //·triggered·at·the·beginning·of·the·sequence·instead·of·at·the·end.
 7 function·debounce(func,·wait,·immediate)·{
 8 ····var·timeout,·previous,·args,·result,·context;
  
 9 ····var·later·=·function()·{
 10 ········var·passed·=·now()·-·previous;
 11 ········if·(wait·>·passed)·{
 12 ············timeout·=·setTimeout(later,·wait·-·passed);
 13 ········}·else·{
 14 ············timeout·=·null;
 15 ············if·(!immediate)·result·=·func.apply(context,·args);
 16 ············//·This·check·is·needed·because·`func`·can·recursively·invoke·`debounced`.
 17 ············if·(!timeout)·args·=·context·=·null;
 18 ········}
 19 ····};
  
 20 ····var·debounced·=·restArguments(function(_args)·{
 21 ········context·=·this;
 22 ········args·=·_args;
 23 ········previous·=·now();
 24 ········if·(!timeout)·{
 25 ············timeout·=·setTimeout(later,·wait);
 26 ············if·(immediate)·result·=·func.apply(context,·args);
 27 ········}
9 ····return·result;28 ········return·result;
 29 ····});
  
 30 ····debounced.cancel·=·function()·{
 31 ········clearTimeout(timeout);
 32 ········timeout·=·args·=·context·=·null;
 33 ····};
  
 34 ····return·debounced;
10 }35 }
  
11 module.exports·=·create;36 module.exports·=·debounce;
633 B
./usr/share/nodejs/underscore/cjs/index48.js
545 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 9 lines modified
1 var·_createAssigner·=·require('./index6.js');1 var·partial·=·require('./index122.js');
2 var·allKeys·=·require('./index34.js');2 var·delay·=·require('./index49.js');
 3 var·underscore·=·require('./index150.js');
  
3 //·Fill·in·a·given·object·with·default·properties. 
4 var·defaults·=·_createAssigner(allKeys,·true);4 //·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has
 5 //·cleared.
 6 var·defer·=·partial(delay,·underscore,·1);
  
5 module.exports·=·defaults;7 module.exports·=·defer;
754 B
./usr/share/nodejs/underscore/cjs/index49.js
666 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 11 lines modified
1 var·partial·=·require('./index123.js');1 var·restArguments·=·require('./index134.js');
2 var·delay·=·require('./index50.js'); 
3 var·underscore·=·require('./index151.js'); 
  
4 //·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has 
5 //·cleared. 
6 var·defer·=·partial(delay,·underscore,·1);2 //·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls
 3 //·it·with·the·arguments·supplied.
 4 var·delay·=·restArguments(function(func,·wait,·args)·{
 5 ····return·setTimeout(function()·{
 6 ········return·func.apply(null,·args);
 7 ····},·wait);
 8 });
  
7 module.exports·=·defer;9 module.exports·=·delay;
687 B
./usr/share/nodejs/underscore/cjs/index50.js
599 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 7 lines modified
 1 var·_createAssigner·=·require('./index6.js');
1 var·restArguments·=·require('./index134.js');2 var·allKeys·=·require('./index34.js');
  
 3 //·Fill·in·a·given·object·with·default·properties.
 4 var·defaults·=·_createAssigner(allKeys,·true);
2 //·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls 
3 //·it·with·the·arguments·supplied. 
4 var·delay·=·restArguments(function(func,·wait,·args)·{ 
5 ····return·setTimeout(function()·{ 
6 ········return·func.apply(null,·args); 
7 ····},·wait); 
8 }); 
  
9 module.exports·=·delay;5 module.exports·=·defaults;
703 B
./usr/share/nodejs/underscore/cjs/index51.js
615 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 var·restArguments·=·require('./index134.js');1 var·restArguments·=·require('./index134.js');
2 var·_flatten·=·require('./index15.js');2 var·_flatten·=·require('./index15.js');
3 var·filter·=·require('./index58.js');3 var·filter·=·require('./index57.js');
4 var·contains·=·require('./index44.js');4 var·contains·=·require('./index43.js');
  
5 //·Take·the·difference·between·one·array·and·a·number·of·other·arrays.5 //·Take·the·difference·between·one·array·and·a·number·of·other·arrays.
6 //·Only·the·elements·present·in·just·the·first·array·will·remain.6 //·Only·the·elements·present·in·just·the·first·array·will·remain.
7 var·difference·=·restArguments(function(array,·rest)·{7 var·difference·=·restArguments(function(array,·rest)·{
8 ····rest·=·_flatten(rest,·true,·true);8 ····rest·=·_flatten(rest,·true,·true);
9 ····return·filter(array,·function(value)·{9 ····return·filter(array,·function(value)·{
10 ········return·!contains(rest,·value);10 ········return·!contains(rest,·value);
590 B
./usr/share/nodejs/underscore/cjs/index52.js
502 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_optimizeCb·=·require('./index25.js');1 var·_optimizeCb·=·require('./index25.js');
2 var·_isArrayLike·=·require('./index21.js');2 var·_isArrayLike·=·require('./index21.js');
3 var·keys·=·require('./index106.js');3 var·keys·=·require('./index105.js');
  
4 //·The·cornerstone·for·collection·functions,·an·`each`4 //·The·cornerstone·for·collection·functions,·an·`each`
5 //·implementation,·aka·`forEach`.5 //·implementation,·aka·`forEach`.
6 //·Handles·raw·objects·in·addition·to·array-likes.·Treats·all6 //·Handles·raw·objects·in·addition·to·array-likes.·Treats·all
7 //·sparse·array-likes·as·if·they·were·dense.7 //·sparse·array-likes·as·if·they·were·dense.
8 function·each(obj,·iteratee,·context)·{8 function·each(obj,·iteratee,·context)·{
9 ····iteratee·=·_optimizeCb(iteratee,·context);9 ····iteratee·=·_optimizeCb(iteratee,·context);
396 B
./usr/share/nodejs/underscore/cjs/index53.js
308 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 var·_createEscaper·=·require('./index7.js');1 var·_createEscaper·=·require('./index8.js');
2 var·_escapeMap·=·require('./index13.js');2 var·_escapeMap·=·require('./index13.js');
  
3 //·Function·for·escaping·strings·to·HTML·interpolation.3 //·Function·for·escaping·strings·to·HTML·interpolation.
4 var·escape·=·_createEscaper(_escapeMap);4 var·escape·=·_createEscaper(_escapeMap);
  
5 module.exports·=·escape;5 module.exports·=·escape;
616 B
./usr/share/nodejs/underscore/cjs/index54.js
528 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·_isArrayLike·=·require('./index21.js');2 var·_isArrayLike·=·require('./index21.js');
3 var·keys·=·require('./index106.js');3 var·keys·=·require('./index105.js');
  
4 //·Determine·whether·all·of·the·elements·pass·a·truth·test.4 //·Determine·whether·all·of·the·elements·pass·a·truth·test.
5 function·every(obj,·predicate,·context)·{5 function·every(obj,·predicate,·context)·{
6 ····predicate·=·_cb(predicate,·context);6 ····predicate·=·_cb(predicate,·context);
7 ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),7 ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
8 ········length·=·(_keys·||·obj).length;8 ········length·=·(_keys·||·obj).length;
9 ····for·(var·index·=·0;·index·<·length;·index++)·{9 ····for·(var·index·=·0;·index·<·length;·index++)·{
652 B
./usr/share/nodejs/underscore/cjs/index55.js
564 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 7 lines modified
1 var·_createAssigner·=·require('./index6.js');1 var·_createAssigner·=·require('./index6.js');
2 var·keys·=·require('./index106.js');2 var·allKeys·=·require('./index34.js');
  
3 //·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in3 //·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s).
4 //·object(s). 
5 //·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 
6 var·extendOwn·=·_createAssigner(keys);4 var·extend·=·_createAssigner(allKeys);
  
7 module.exports·=·extendOwn;5 module.exports·=·extend;
652 B
./usr/share/nodejs/underscore/cjs/index56.js
564 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 9 lines modified
1 var·_createAssigner·=·require('./index6.js');1 var·_createAssigner·=·require('./index6.js');
2 var·allKeys·=·require('./index34.js');2 var·keys·=·require('./index105.js');
  
3 //·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s).3 //·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in
 4 //·object(s).
 5 //·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
4 var·extend·=·_createAssigner(allKeys);6 var·extendOwn·=·_createAssigner(keys);
  
5 module.exports·=·extend;7 module.exports·=·extendOwn;
957 B
./usr/share/nodejs/underscore/cjs/index57.js
869 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 14 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_cb·=·require('./index2.js');
2 var·findIndex·=·require('./index59.js');2 var·each·=·require('./index52.js');
3 var·findKey·=·require('./index60.js'); 
  
4 //·Return·the·first·value·which·passes·a·truth·test.3 //·Return·all·the·elements·that·pass·a·truth·test.
5 function·find(obj,·predicate,·context)·{4 function·filter(obj,·predicate,·context)·{
6 ····var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey; 
7 ····var·key·=·keyFinder(obj,·predicate,·context); 
8 ····if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];5 ····var·results·=·[];
 6 ····predicate·=·_cb(predicate,·context);
 7 ····each(obj,·function(value,·index,·list)·{
 8 ········if·(predicate(value,·index,·list))·results.push(value);
 9 ····});
 10 ····return·results;
9 }11 }
  
10 module.exports·=·find;12 module.exports·=·filter;
748 B
./usr/share/nodejs/underscore/cjs/index58.js
660 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 6 lines modified
 1 var·_createPredicateIndexFinder·=·require('./index9.js');
1 var·_cb·=·require('./index4.js'); 
2 var·each·=·require('./index52.js'); 
  
 2 //·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test.
 3 var·findIndex·=·_createPredicateIndexFinder(1);
3 //·Return·all·the·elements·that·pass·a·truth·test. 
4 function·filter(obj,·predicate,·context)·{ 
5 ····var·results·=·[]; 
6 ····predicate·=·_cb(predicate,·context); 
7 ····each(obj,·function(value,·index,·list)·{ 
8 ········if·(predicate(value,·index,·list))·results.push(value); 
9 ····}); 
10 ····return·results; 
11 } 
  
12 module.exports·=·filter;4 module.exports·=·findIndex;
764 B
./usr/share/nodejs/underscore/cjs/index59.js
676 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 12 lines modified
1 var·_createPredicateIndexFinder·=·require('./index9.js');1 var·_isArrayLike·=·require('./index21.js');
 2 var·findIndex·=·require('./index58.js');
 3 var·findKey·=·require('./index60.js');
  
2 //·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test.4 //·Return·the·first·value·which·passes·a·truth·test.
3 var·findIndex·=·_createPredicateIndexFinder(1);5 function·find(obj,·predicate,·context)·{
 6 ····var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey;
 7 ····var·key·=·keyFinder(obj,·predicate,·context);
 8 ····if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];
 9 }
  
4 module.exports·=·findIndex;10 module.exports·=·find;
537 B
./usr/share/nodejs/underscore/cjs/index60.js
449 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·keys·=·require('./index106.js');2 var·keys·=·require('./index105.js');
  
3 //·Returns·the·first·key·on·an·object·that·passes·a·truth·test.3 //·Returns·the·first·key·on·an·object·that·passes·a·truth·test.
4 function·findKey(obj,·predicate,·context)·{4 function·findKey(obj,·predicate,·context)·{
5 ····predicate·=·_cb(predicate,·context);5 ····predicate·=·_cb(predicate,·context);
6 ····var·_keys·=·keys(obj),6 ····var·_keys·=·keys(obj),
7 ········key;7 ········key;
8 ····for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{8 ····for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{
494 B
./usr/share/nodejs/underscore/cjs/index62.js
406 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·find·=·require('./index57.js');1 var·find·=·require('./index59.js');
2 var·matcher·=·require('./index111.js');2 var·matcher·=·require('./index110.js');
  
3 //·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first3 //·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first
4 //·object·containing·specific·`key:value`·pairs.4 //·object·containing·specific·`key:value`·pairs.
5 function·findWhere(obj,·attrs)·{5 function·findWhere(obj,·attrs)·{
6 ····return·find(obj,·matcher(attrs));6 ····return·find(obj,·matcher(attrs));
7 }7 }
  
515 B
./usr/share/nodejs/underscore/cjs/index69.js
427 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 6 lines modified
1 var·index·=·require('./index71.js'); 
2 var·mixin·=·require('./index115.js');1 //·Keep·the·identity·function·around·for·default·iteratees.
 2 function·identity(value)·{
 3 ····return·value;
 4 }
  
3 //·Default·Export 
  
4 //·Add·all·of·the·Underscore·functions·to·the·wrapper·object. 
5 var·_·=·mixin(index); 
6 //·Legacy·Node.js·API. 
7 _._·=·_; 
  
8 module.exports·=·_;5 module.exports·=·identity;
1.91 KB
./usr/share/nodejs/underscore/cjs/index7.js
1.82 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 31 lines modified
 1 var·_getLength·=·require('./index16.js');
1 var·keys·=·require('./index106.js');2 var·_setup·=·require('./index26.js');
 3 var·isNaN·=·require('./index92.js');
  
2 //·Internal·helper·to·generate·functions·for·escaping·and·unescaping·strings 
3 //·to/from·HTML·interpolation. 
4 function·createEscaper(map)·{ 
5 ····var·escaper·=·function(match)·{ 
6 ········return·map[match]; 
7 ····}; 
8 ····//·Regexes·for·identifying·a·key·that·needs·to·be·escaped. 
9 ····var·source·=·'(?:'·+·keys(map).join('|')·+·')'; 
10 ····var·testRegexp·=·RegExp(source); 
11 ····var·replaceRegexp·=·RegExp(source,·'g'); 
12 ····return·function(string)·{ 
13 ········string·=·string·==·null·?·''·:·''·+·string; 
14 ········return·testRegexp.test(string)·?·string.replace(replaceRegexp,·escaper)·:·string;4 //·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions.
 5 function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{
 6 ····return·function(array,·item,·idx)·{
 7 ········var·i·=·0,
 8 ············length·=·_getLength(array);
 9 ········if·(typeof·idx·==·'number')·{
 10 ············if·(dir·>·0)·{
 11 ················i·=·idx·>=·0·?·idx·:·Math.max(idx·+·length,·i);
 12 ············}·else·{
 13 ················length·=·idx·>=·0·?·Math.min(idx·+·1,·length)·:·idx·+·length·+·1;
 14 ············}
 15 ········}·else·if·(sortedIndex·&&·idx·&&·length)·{
 16 ············idx·=·sortedIndex(array,·item);
 17 ············return·array[idx]·===·item·?·idx·:·-1;
 18 ········}
 19 ········if·(item·!==·item)·{
 20 ············idx·=·predicateFind(_setup.slice.call(array,·i,·length),·isNaN);
 21 ············return·idx·>=·0·?·idx·+·i·:·-1;
 22 ········}
 23 ········for·(idx·=·dir·>·0·?·i·:·length·-·1;·idx·>=·0·&&·idx·<·length;·idx·+=·dir)·{
 24 ············if·(array[idx]·===·item)·return·idx;
 25 ········}
 26 ········return·-1;
15 ····};27 ····};
16 }28 }
  
17 module.exports·=·createEscaper;29 module.exports·=·createIndexFinder;
515 B
./usr/share/nodejs/underscore/cjs/index70.js
427 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 11 lines modified
 1 var·index·=·require('./index71.js');
 2 var·mixin·=·require('./index114.js');
1 //·Keep·the·identity·function·around·for·default·iteratees. 
2 function·identity(value)·{ 
3 ····return·value; 
4 } 
  
 3 //·Default·Export
  
 4 //·Add·all·of·the·Underscore·functions·to·the·wrapper·object.
 5 var·_·=·mixin(index);
 6 //·Legacy·Node.js·API.
 7 _._·=·_;
  
5 module.exports·=·identity;8 module.exports·=·_;
7.62 KB
./usr/share/nodejs/underscore/cjs/index71.js
7.53 KB
js-beautify {}
    
Offset 3, 136 lines modifiedOffset 3, 136 lines modified
3 });3 });
  
4 var·_setup·=·require('./index26.js');4 var·_setup·=·require('./index26.js');
5 var·restArguments·=·require('./index134.js');5 var·restArguments·=·require('./index134.js');
6 var·isObject·=·require('./index95.js');6 var·isObject·=·require('./index95.js');
7 var·isNull·=·require('./index93.js');7 var·isNull·=·require('./index93.js');
8 var·isUndefined·=·require('./index101.js');8 var·isUndefined·=·require('./index101.js');
9 var·isBoolean·=·require('./index81.js');9 var·isBoolean·=·require('./index80.js');
10 var·isElement·=·require('./index83.js');10 var·isElement·=·require('./index84.js');
11 var·isString·=·require('./index97.js');11 var·isString·=·require('./index97.js');
12 var·isNumber·=·require('./index94.js');12 var·isNumber·=·require('./index94.js');
13 var·isDate·=·require('./index82.js');13 var·isDate·=·require('./index83.js');
14 var·isRegExp·=·require('./index98.js');14 var·isRegExp·=·require('./index96.js');
15 var·isError·=·require('./index87.js');15 var·isError·=·require('./index86.js');
16 var·isSymbol·=·require('./index99.js');16 var·isSymbol·=·require('./index99.js');
17 var·isArrayBuffer·=·require('./index80.js');17 var·isArrayBuffer·=·require('./index81.js');
18 var·isDataView·=·require('./index84.js');18 var·isDataView·=·require('./index82.js');
19 var·isArray·=·require('./index78.js');19 var·isArray·=·require('./index78.js');
20 var·isFunction·=·require('./index89.js');20 var·isFunction·=·require('./index89.js');
21 var·isArguments·=·require('./index79.js');21 var·isArguments·=·require('./index75.js');
22 var·isFinite·=·require('./index88.js');22 var·isFinite·=·require('./index88.js');
23 var·isNaN·=·require('./index91.js');23 var·isNaN·=·require('./index92.js');
24 var·isTypedArray·=·require('./index100.js');24 var·isTypedArray·=·require('./index100.js');
25 var·isEmpty·=·require('./index85.js');25 var·isEmpty·=·require('./index87.js');
26 var·isMatch·=·require('./index92.js');26 var·isMatch·=·require('./index90.js');
27 var·isEqual·=·require('./index86.js');27 var·isEqual·=·require('./index85.js');
28 var·isMap·=·require('./index90.js');28 var·isMap·=·require('./index91.js');
29 var·isWeakMap·=·require('./index102.js');29 var·isWeakMap·=·require('./index102.js');
30 var·isSet·=·require('./index96.js');30 var·isSet·=·require('./index98.js');
31 var·isWeakSet·=·require('./index103.js');31 var·isWeakSet·=·require('./index103.js');
32 var·keys·=·require('./index106.js');32 var·keys·=·require('./index105.js');
33 var·allKeys·=·require('./index34.js');33 var·allKeys·=·require('./index34.js');
34 var·values·=·require('./index156.js');34 var·values·=·require('./index156.js');
35 var·pairs·=·require('./index121.js');35 var·pairs·=·require('./index121.js');
36 var·invert·=·require('./index75.js');36 var·invert·=·require('./index79.js');
37 var·functions·=·require('./index65.js');37 var·functions·=·require('./index65.js');
38 var·extend·=·require('./index56.js');38 var·extend·=·require('./index55.js');
39 var·extendOwn·=·require('./index55.js');39 var·extendOwn·=·require('./index56.js');
40 var·defaults·=·require('./index48.js');40 var·defaults·=·require('./index50.js');
41 var·create·=·require('./index47.js');41 var·create·=·require('./index46.js');
42 var·clone·=·require('./index40.js');42 var·clone·=·require('./index40.js');
43 var·tap·=·require('./index142.js');43 var·tap·=·require('./index142.js');
44 var·get·=·require('./index66.js');44 var·get·=·require('./index66.js');
45 var·has·=·require('./index68.js');45 var·has·=·require('./index68.js');
46 var·mapObject·=·require('./index109.js');46 var·mapObject·=·require('./index109.js');
47 var·identity·=·require('./index70.js');47 var·identity·=·require('./index69.js');
48 var·constant·=·require('./index43.js');48 var·constant·=·require('./index45.js');
49 var·noop·=·require('./index116.js');49 var·noop·=·require('./index116.js');
50 var·toPath·=·require('./index148.js');50 var·toPath·=·require('./index147.js');
51 var·property·=·require('./index126.js');51 var·property·=·require('./index125.js');
52 var·propertyOf·=·require('./index127.js');52 var·propertyOf·=·require('./index128.js');
53 var·matcher·=·require('./index111.js');53 var·matcher·=·require('./index110.js');
54 var·times·=·require('./index147.js');54 var·times·=·require('./index145.js');
55 var·random·=·require('./index128.js');55 var·random·=·require('./index127.js');
56 var·now·=·require('./index117.js');56 var·now·=·require('./index117.js');
57 var·escape·=·require('./index53.js');57 var·escape·=·require('./index53.js');
58 var·unescape·=·require('./index150.js');58 var·unescape·=·require('./index151.js');
59 var·templateSettings·=·require('./index144.js');59 var·templateSettings·=·require('./index144.js');
60 var·template·=·require('./index143.js');60 var·template·=·require('./index143.js');
61 var·result·=·require('./index135.js');61 var·result·=·require('./index135.js');
62 var·uniqueId·=·require('./index154.js');62 var·uniqueId·=·require('./index154.js');
63 var·chain·=·require('./index37.js');63 var·chain·=·require('./index39.js');
64 var·iteratee·=·require('./index104.js');64 var·iteratee·=·require('./index104.js');
65 var·partial·=·require('./index123.js');65 var·partial·=·require('./index122.js');
66 var·bind·=·require('./index36.js');66 var·bind·=·require('./index36.js');
67 var·bindAll·=·require('./index38.js');67 var·bindAll·=·require('./index37.js');
68 var·memoize·=·require('./index112.js');68 var·memoize·=·require('./index112.js');
69 var·delay·=·require('./index50.js');69 var·delay·=·require('./index49.js');
70 var·defer·=·require('./index49.js');70 var·defer·=·require('./index48.js');
71 var·throttle·=·require('./index145.js');71 var·throttle·=·require('./index149.js');
72 var·debounce·=·require('./index46.js');72 var·debounce·=·require('./index47.js');
73 var·wrap·=·require('./index159.js');73 var·wrap·=·require('./index159.js');
74 var·negate·=·require('./index114.js');74 var·negate·=·require('./index115.js');
75 var·compose·=·require('./index42.js');75 var·compose·=·require('./index42.js');
76 var·after·=·require('./index33.js');76 var·after·=·require('./index33.js');
77 var·before·=·require('./index35.js');77 var·before·=·require('./index35.js');
78 var·once·=·require('./index120.js');78 var·once·=·require('./index120.js');
79 var·findKey·=·require('./index60.js');79 var·findKey·=·require('./index60.js');
80 var·findIndex·=·require('./index59.js');80 var·findIndex·=·require('./index58.js');
81 var·findLastIndex·=·require('./index61.js');81 var·findLastIndex·=·require('./index61.js');
82 var·sortedIndex·=·require('./index141.js');82 var·sortedIndex·=·require('./index141.js');
83 var·indexOf·=·require('./index73.js');83 var·indexOf·=·require('./index73.js');
84 var·lastIndexOf·=·require('./index107.js');84 var·lastIndexOf·=·require('./index108.js');
85 var·find·=·require('./index57.js');85 var·find·=·require('./index59.js');
86 var·findWhere·=·require('./index62.js');86 var·findWhere·=·require('./index62.js');
87 var·each·=·require('./index52.js');87 var·each·=·require('./index52.js');
88 var·map·=·require('./index108.js');88 var·map·=·require('./index107.js');
89 var·reduce·=·require('./index130.js');89 var·reduce·=·require('./index130.js');
90 var·reduceRight·=·require('./index131.js');90 var·reduceRight·=·require('./index131.js');
91 var·filter·=·require('./index58.js');91 var·filter·=·require('./index57.js');
92 var·reject·=·require('./index132.js');92 var·reject·=·require('./index133.js');
93 var·every·=·require('./index54.js');93 var·every·=·require('./index54.js');
94 var·some·=·require('./index139.js');94 var·some·=·require('./index140.js');
95 var·contains·=·require('./index44.js');95 var·contains·=·require('./index43.js');
96 var·invoke·=·require('./index77.js');96 var·invoke·=·require('./index76.js');
97 var·pluck·=·require('./index125.js');97 var·pluck·=·require('./index126.js');
98 var·where·=·require('./index157.js');98 var·where·=·require('./index157.js');
99 var·max·=·require('./index110.js');99 var·max·=·require('./index111.js');
100 var·min·=·require('./index113.js');100 var·min·=·require('./index113.js');
101 var·shuffle·=·require('./index137.js');101 var·shuffle·=·require('./index137.js');
102 var·sample·=·require('./index136.js');102 var·sample·=·require('./index136.js');
103 var·sortBy·=·require('./index140.js');103 var·sortBy·=·require('./index139.js');
104 var·groupBy·=·require('./index67.js');104 var·groupBy·=·require('./index67.js');
105 var·indexBy·=·require('./index72.js');105 var·indexBy·=·require('./index72.js');
106 var·countBy·=·require('./index45.js');106 var·countBy·=·require('./index44.js');
107 var·partition·=·require('./index122.js');107 var·partition·=·require('./index123.js');
108 var·toArray·=·require('./index146.js');108 var·toArray·=·require('./index146.js');
109 var·size·=·require('./index138.js');109 var·size·=·require('./index138.js');
110 var·pick·=·require('./index124.js');110 var·pick·=·require('./index124.js');
111 var·omit·=·require('./index119.js');111 var·omit·=·require('./index119.js');
112 var·first·=·require('./index63.js');112 var·first·=·require('./index63.js');
113 var·initial·=·require('./index74.js');113 var·initial·=·require('./index74.js');
114 var·last·=·require('./index105.js');114 var·last·=·require('./index106.js');
115 var·rest·=·require('./index133.js');115 var·rest·=·require('./index132.js');
116 var·compact·=·require('./index41.js');116 var·compact·=·require('./index41.js');
117 var·flatten·=·require('./index64.js');117 var·flatten·=·require('./index64.js');
118 var·without·=·require('./index158.js');118 var·without·=·require('./index158.js');
119 var·uniq·=·require('./index152.js');119 var·uniq·=·require('./index153.js');
120 var·union·=·require('./index153.js');120 var·union·=·require('./index152.js');
121 var·intersection·=·require('./index76.js');121 var·intersection·=·require('./index77.js');
122 var·difference·=·require('./index51.js');122 var·difference·=·require('./index51.js');
123 var·unzip·=·require('./index155.js');123 var·unzip·=·require('./index155.js');
124 var·zip·=·require('./index160.js');124 var·zip·=·require('./index160.js');
125 var·object·=·require('./index118.js');125 var·object·=·require('./index118.js');
126 var·range·=·require('./index129.js');126 var·range·=·require('./index129.js');
127 var·chunk·=·require('./index39.js');127 var·chunk·=·require('./index38.js');
128 var·mixin·=·require('./index115.js');128 var·mixin·=·require('./index114.js');
Max diff block lines reached; 151/7684 bytes (1.97%) of diff not shown.
661 B
./usr/share/nodejs/underscore/cjs/index73.js
573 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·sortedIndex·=·require('./index141.js');1 var·sortedIndex·=·require('./index141.js');
2 var·findIndex·=·require('./index59.js');2 var·findIndex·=·require('./index58.js');
3 var·_createIndexFinder·=·require('./index8.js');3 var·_createIndexFinder·=·require('./index7.js');
  
4 //·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array,4 //·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array,
5 //·or·-1·if·the·item·is·not·included·in·the·array.5 //·or·-1·if·the·item·is·not·included·in·the·array.
6 //·If·the·array·is·large·and·already·in·sort·order,·pass·`true`6 //·If·the·array·is·large·and·already·in·sort·order,·pass·`true`
7 //·for·**isSorted**·to·use·binary·search.7 //·for·**isSorted**·to·use·binary·search.
8 var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);8 var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);
  
963 B
./usr/share/nodejs/underscore/cjs/index75.js
875 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 18 lines modified
 1 var·_tagTester·=·require('./index29.js');
1 var·keys·=·require('./index106.js');2 var·_has·=·require('./index19.js');
  
2 //·Invert·the·keys·and·values·of·an·object.·The·values·must·be·serializable. 
3 function·invert(obj)·{ 
4 ····var·result·=·{}; 
5 ····var·_keys·=·keys(obj); 
6 ····for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ 
7 ········result[obj[_keys[i]]]·=·_keys[i];3 var·isArguments·=·_tagTester('Arguments');
  
 4 //·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where
 5 //·there·isn't·any·inspectable·"Arguments"·type.
 6 (function()·{
 7 ····if·(!isArguments(arguments))·{
 8 ········isArguments·=·function(obj)·{
 9 ············return·_has(obj,·'callee');
 10 ········};
8 ····}11 ····}
9 ····return·result; 
10 }12 }());
  
 13 var·isArguments$1·=·isArguments;
  
11 module.exports·=·invert;14 module.exports·=·isArguments$1;
1.71 KB
./usr/share/nodejs/underscore/cjs/index76.js
1.63 KB
js-beautify {}
    
Offset 1, 21 lines modifiedOffset 1, 30 lines modified
 1 var·restArguments·=·require('./index134.js');
 2 var·isFunction·=·require('./index89.js');
 3 var·map·=·require('./index107.js');
 4 var·_deepGet·=·require('./index12.js');
1 var·_getLength·=·require('./index17.js');5 var·_toPath·=·require('./index31.js');
2 var·contains·=·require('./index44.js'); 
  
 6 //·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection.
 7 var·invoke·=·restArguments(function(obj,·path,·args)·{
 8 ····var·contextPath,·func;
 9 ····if·(isFunction(path))·{
 10 ········func·=·path;
 11 ····}·else·{
 12 ········path·=·_toPath(path);
 13 ········contextPath·=·path.slice(0,·-1);
 14 ········path·=·path[path.length·-·1];
3 //·Produce·an·array·that·contains·every·item·shared·between·all·the 
4 //·passed-in·arrays. 
5 function·intersection(array)·{ 
6 ····var·result·=·[]; 
7 ····var·argsLength·=·arguments.length; 
8 ····for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{ 
9 ········var·item·=·array[i]; 
10 ········if·(contains(result,·item))·continue; 
11 ········var·j; 
12 ········for·(j·=·1;·j·<·argsLength;·j++)·{ 
13 ············if·(!contains(arguments[j],·item))·break; 
14 ········} 
15 ········if·(j·===·argsLength)·result.push(item); 
16 ····}15 ····}
17 ····return·result; 
18 }16 ····return·map(obj,·function(context)·{
 17 ········var·method·=·func;
 18 ········if·(!method)·{
 19 ············if·(contextPath·&&·contextPath.length)·{
 20 ················context·=·_deepGet(context,·contextPath);
 21 ············}
 22 ············if·(context·==·null)·return·void·0;
 23 ············method·=·context[path];
 24 ········}
 25 ········return·method·==·null·?·method·:·method.apply(context,·args);
 26 ····});
 27 });
  
19 module.exports·=·intersection;28 module.exports·=·invoke;
1.71 KB
./usr/share/nodejs/underscore/cjs/index77.js
1.62 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 21 lines modified
1 var·restArguments·=·require('./index134.js'); 
2 var·isFunction·=·require('./index89.js'); 
3 var·map·=·require('./index108.js'); 
4 var·_deepGet·=·require('./index12.js'); 
5 var·_toPath·=·require('./index31.js');1 var·_getLength·=·require('./index16.js');
 2 var·contains·=·require('./index43.js');
  
 3 //·Produce·an·array·that·contains·every·item·shared·between·all·the
 4 //·passed-in·arrays.
 5 function·intersection(array)·{
 6 ····var·result·=·[];
 7 ····var·argsLength·=·arguments.length;
 8 ····for·(var·i·=·0,·length·=·_getLength(array);·i·<·length;·i++)·{
 9 ········var·item·=·array[i];
 10 ········if·(contains(result,·item))·continue;
 11 ········var·j;
 12 ········for·(j·=·1;·j·<·argsLength;·j++)·{
 13 ············if·(!contains(arguments[j],·item))·break;
6 //·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection. 
7 var·invoke·=·restArguments(function(obj,·path,·args)·{ 
8 ····var·contextPath,·func; 
9 ····if·(isFunction(path))·{ 
10 ········func·=·path; 
11 ····}·else·{ 
12 ········path·=·_toPath(path); 
13 ········contextPath·=·path.slice(0,·-1); 
14 ········path·=·path[path.length·-·1]; 
15 ····} 
16 ····return·map(obj,·function(context)·{ 
17 ········var·method·=·func; 
18 ········if·(!method)·{ 
19 ············if·(contextPath·&&·contextPath.length)·{ 
20 ················context·=·_deepGet(context,·contextPath); 
21 ············} 
22 ············if·(context·==·null)·return·void·0; 
23 ············method·=·context[path]; 
24 ········}14 ········}
25 ········return·method·==·null·?·method·:·method.apply(context,·args);15 ········if·(j·===·argsLength)·result.push(item);
26 ····});16 ····}
27 });17 ····return·result;
 18 }
  
28 module.exports·=·invoke;19 module.exports·=·intersection;
428 B
./usr/share/nodejs/underscore/cjs/index78.js
340 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_setup·=·require('./index26.js');1 var·_setup·=·require('./index26.js');
2 var·_tagTester·=·require('./index28.js');2 var·_tagTester·=·require('./index29.js');
  
3 //·Is·a·given·value·an·array?3 //·Is·a·given·value·an·array?
4 //·Delegates·to·ECMA5's·native·`Array.isArray`.4 //·Delegates·to·ECMA5's·native·`Array.isArray`.
5 var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');5 var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');
  
6 module.exports·=·isArray;6 module.exports·=·isArray;
963 B
./usr/share/nodejs/underscore/cjs/index79.js
875 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 13 lines modified
1 var·_tagTester·=·require('./index28.js'); 
2 var·_has·=·require('./index19.js');1 var·keys·=·require('./index105.js');
  
 2 //·Invert·the·keys·and·values·of·an·object.·The·values·must·be·serializable.
 3 function·invert(obj)·{
 4 ····var·result·=·{};
 5 ····var·_keys·=·keys(obj);
 6 ····for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{
 7 ········result[obj[_keys[i]]]·=·_keys[i];
3 var·isArguments·=·_tagTester('Arguments'); 
  
4 //·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where 
5 //·there·isn't·any·inspectable·"Arguments"·type. 
6 (function()·{ 
7 ····if·(!isArguments(arguments))·{ 
8 ········isArguments·=·function(obj)·{ 
9 ············return·_has(obj,·'callee'); 
10 ········}; 
11 ····}8 ····}
 9 ····return·result;
 10 }
12 }()); 
  
13 var·isArguments$1·=·isArguments; 
  
14 module.exports·=·isArguments$1;11 module.exports·=·invert;
1.91 KB
./usr/share/nodejs/underscore/cjs/index8.js
1.82 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 19 lines modified
1 var·_getLength·=·require('./index17.js'); 
2 var·_setup·=·require('./index26.js'); 
3 var·isNaN·=·require('./index91.js');1 var·keys·=·require('./index105.js');
  
 2 //·Internal·helper·to·generate·functions·for·escaping·and·unescaping·strings
 3 //·to/from·HTML·interpolation.
 4 function·createEscaper(map)·{
 5 ····var·escaper·=·function(match)·{
 6 ········return·map[match];
 7 ····};
 8 ····//·Regexes·for·identifying·a·key·that·needs·to·be·escaped.
 9 ····var·source·=·'(?:'·+·keys(map).join('|')·+·')';
 10 ····var·testRegexp·=·RegExp(source);
 11 ····var·replaceRegexp·=·RegExp(source,·'g');
 12 ····return·function(string)·{
 13 ········string·=·string·==·null·?·''·:·''·+·string;
 14 ········return·testRegexp.test(string)·?·string.replace(replaceRegexp,·escaper)·:·string;
4 //·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions. 
5 function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{ 
6 ····return·function(array,·item,·idx)·{ 
7 ········var·i·=·0, 
8 ············length·=·_getLength(array); 
9 ········if·(typeof·idx·==·'number')·{ 
10 ············if·(dir·>·0)·{ 
11 ················i·=·idx·>=·0·?·idx·:·Math.max(idx·+·length,·i); 
12 ············}·else·{ 
13 ················length·=·idx·>=·0·?·Math.min(idx·+·1,·length)·:·idx·+·length·+·1; 
14 ············} 
15 ········}·else·if·(sortedIndex·&&·idx·&&·length)·{ 
16 ············idx·=·sortedIndex(array,·item); 
17 ············return·array[idx]·===·item·?·idx·:·-1; 
18 ········} 
19 ········if·(item·!==·item)·{ 
20 ············idx·=·predicateFind(_setup.slice.call(array,·i,·length),·isNaN); 
21 ············return·idx·>=·0·?·idx·+·i·:·-1; 
22 ········} 
23 ········for·(idx·=·dir·>·0·?·i·:·length·-·1;·idx·>=·0·&&·idx·<·length;·idx·+=·dir)·{ 
24 ············if·(array[idx]·===·item)·return·idx; 
25 ········} 
26 ········return·-1; 
27 ····};15 ····};
28 }16 }
  
29 module.exports·=·createIndexFinder;17 module.exports·=·createEscaper;
485 B
./usr/share/nodejs/underscore/cjs/index80.js
397 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 8 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_setup·=·require('./index26.js');
  
2 var·isArrayBuffer·=·_tagTester('ArrayBuffer');2 //·Is·a·given·value·a·boolean?
 3 function·isBoolean(obj)·{
 4 ····return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]';
 5 }
  
3 module.exports·=·isArrayBuffer;6 module.exports·=·isBoolean;
485 B
./usr/share/nodejs/underscore/cjs/index81.js
397 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 5 lines modified
1 var·_setup·=·require('./index26.js');1 var·_tagTester·=·require('./index29.js');
  
 2 var·isArrayBuffer·=·_tagTester('ArrayBuffer');
2 //·Is·a·given·value·a·boolean? 
3 function·isBoolean(obj)·{ 
4 ····return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]'; 
5 } 
  
6 module.exports·=·isBoolean;3 module.exports·=·isArrayBuffer;
801 B
./usr/share/nodejs/underscore/cjs/index82.js
713 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 16 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
 2 var·isFunction·=·require('./index89.js');
 3 var·isArrayBuffer·=·require('./index81.js');
 4 var·_stringTagBug·=·require('./index28.js');
  
2 var·isDate·=·_tagTester('Date');5 var·isDataView·=·_tagTester('DataView');
  
 6 //·In·IE·10·-·Edge·13,·we·need·a·different·heuristic
 7 //·to·determine·whether·an·object·is·a·`DataView`.
 8 function·ie10IsDataView(obj)·{
 9 ····return·obj·!=·null·&&·isFunction(obj.getInt8)·&&·isArrayBuffer(obj.buffer);
 10 }
  
 11 var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView);
  
3 module.exports·=·isDate;12 module.exports·=·isDataView$1;
377 B
./usr/share/nodejs/underscore/cjs/index83.js
289 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 5 lines modified
 1 var·_tagTester·=·require('./index29.js');
1 //·Is·a·given·value·a·DOM·element? 
2 function·isElement(obj)·{ 
3 ····return·!!(obj·&&·obj.nodeType·===·1); 
4 } 
  
 2 var·isDate·=·_tagTester('Date');
  
5 module.exports·=·isElement;3 module.exports·=·isDate;
833 B
./usr/share/nodejs/underscore/cjs/index84.js
745 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 6 lines modified
 1 //·Is·a·given·value·a·DOM·element?
 2 function·isElement(obj)·{
 3 ····return·!!(obj·&&·obj.nodeType·===·1);
1 var·_tagTester·=·require('./index28.js'); 
2 var·isFunction·=·require('./index89.js'); 
3 var·isArrayBuffer·=·require('./index80.js'); 
4 var·_stringTagBug·=·require('./index29.js'); 
  
5 var·isDataView·=·_tagTester('DataView'); 
  
6 //·In·IE·10·-·Edge·13,·we·need·a·different·heuristic 
7 //·to·determine·whether·an·object·is·a·`DataView`. 
8 function·ie10IsDataView(obj)·{ 
9 ····return·obj·!=·null·&&·isFunction(obj.getInt8)·&&·isArrayBuffer(obj.buffer); 
10 }4 }
  
 5 module.exports·=·isElement;
11 var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView); 
  
12 module.exports·=·isDataView$1; 
6.74 KB
./usr/share/nodejs/underscore/cjs/index85.js
6.65 KB
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 142 lines modified
 1 var·underscore·=·require('./index150.js');
 2 var·_setup·=·require('./index26.js');
1 var·_getLength·=·require('./index17.js');3 var·_getByteLength·=·require('./index17.js');
2 var·isArray·=·require('./index78.js');4 var·isTypedArray·=·require('./index100.js');
3 var·isString·=·require('./index97.js');5 var·isFunction·=·require('./index89.js');
 6 var·_stringTagBug·=·require('./index28.js');
4 var·isArguments·=·require('./index79.js');7 var·isDataView·=·require('./index82.js');
5 var·keys·=·require('./index106.js');8 var·keys·=·require('./index105.js');
 9 var·_has·=·require('./index19.js');
 10 var·_toBufferView·=·require('./index30.js');
  
6 //·Is·a·given·array,·string,·or·object·empty? 
7 //·An·"empty"·object·has·no·enumerable·own-properties. 
8 function·isEmpty(obj)·{ 
9 ····if·(obj·==·null)·return·true; 
10 ····//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no 
11 ····//·`.length`.11 //·We·use·this·string·twice,·so·give·it·a·name·for·minification.
 12 var·tagDataView·=·'[object·DataView]';
  
 13 //·Internal·recursive·comparison·function·for·`_.isEqual`.
 14 function·eq(a,·b,·aStack,·bStack)·{
 15 ····//·Identical·objects·are·equal.·`0·===·-0`,·but·they·aren't·identical.
 16 ····//·See·the·[Harmony·`egal`·proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).
 17 ····if·(a·===·b)·return·a·!==·0·||·1·/·a·===·1·/·b;
 18 ····//·`null`·or·`undefined`·only·equal·to·itself·(strict·comparison).
 19 ····if·(a·==·null·||·b·==·null)·return·false;
 20 ····//·`NaN`s·are·equivalent,·but·non-reflexive.
 21 ····if·(a·!==·a)·return·b·!==·b;
 22 ····//·Exhaust·primitive·checks
 23 ····var·type·=·typeof·a;
 24 ····if·(type·!==·'function'·&&·type·!==·'object'·&&·typeof·b·!=·'object')·return·false;
 25 ····return·deepEq(a,·b,·aStack,·bStack);
 26 }
  
 27 //·Internal·recursive·comparison·function·for·`_.isEqual`.
 28 function·deepEq(a,·b,·aStack,·bStack)·{
 29 ····//·Unwrap·any·wrapped·objects.
 30 ····if·(a·instanceof·underscore)·a·=·a._wrapped;
 31 ····if·(b·instanceof·underscore)·b·=·b._wrapped;
 32 ····//·Compare·`[[Class]]`·names.
 33 ····var·className·=·_setup.toString.call(a);
 34 ····if·(className·!==·_setup.toString.call(b))·return·false;
 35 ····//·Work·around·a·bug·in·IE·10·-·Edge·13.
 36 ····if·(_stringTagBug.hasStringTagBug·&&·className·==·'[object·Object]'·&&·isDataView(a))·{
 37 ········if·(!isDataView(b))·return·false;
 38 ········className·=·tagDataView;
 39 ····}
 40 ····switch·(className)·{
 41 ········//·These·types·are·compared·by·value.
 42 ········case·'[object·RegExp]':
 43 ············//·RegExps·are·coerced·to·strings·for·comparison·(Note:·''·+·/a/i·===·'/a/i')
 44 ········case·'[object·String]':
 45 ············//·Primitives·and·their·corresponding·object·wrappers·are·equivalent;·thus,·`"5"`·is
 46 ············//·equivalent·to·`new·String("5")`.
 47 ············return·''·+·a·===·''·+·b;
 48 ········case·'[object·Number]':
 49 ············//·`NaN`s·are·equivalent,·but·non-reflexive.
 50 ············//·Object(NaN)·is·equivalent·to·NaN.
 51 ············if·(+a·!==·+a)·return·+b·!==·+b;
 52 ············//·An·`egal`·comparison·is·performed·for·other·numeric·values.
 53 ············return·+a·===·0·?·1·/·+a·===·1·/·b·:·+a·===·+b;
 54 ········case·'[object·Date]':
 55 ········case·'[object·Boolean]':
 56 ············//·Coerce·dates·and·booleans·to·numeric·primitive·values.·Dates·are·compared·by·their
 57 ············//·millisecond·representations.·Note·that·invalid·dates·with·millisecond·representations
 58 ············//·of·`NaN`·are·not·equivalent.
 59 ············return·+a·===·+b;
 60 ········case·'[object·Symbol]':
 61 ············return·_setup.SymbolProto.valueOf.call(a)·===·_setup.SymbolProto.valueOf.call(b);
 62 ········case·'[object·ArrayBuffer]':
 63 ········case·tagDataView:
 64 ············//·Coerce·to·typed·array·so·we·can·fall·through.
 65 ············return·deepEq(_toBufferView(a),·_toBufferView(b),·aStack,·bStack);
 66 ····}
  
 67 ····var·areArrays·=·className·===·'[object·Array]';
 68 ····if·(!areArrays·&&·isTypedArray(a))·{
12 ····var·length·=·_getLength(obj);69 ········var·byteLength·=·_getByteLength(a);
13 ····if·(typeof·length·==·'number'·&&·( 
14 ············isArray(obj)·||·isString(obj)·||·isArguments(obj) 
15 ········))·return·length·===·0; 
16 ····return·_getLength(keys(obj))·===·0;70 ········if·(byteLength·!==·_getByteLength(b))·return·false;
 71 ········if·(a.buffer·===·b.buffer·&&·a.byteOffset·===·b.byteOffset)·return·true;
 72 ········areArrays·=·true;
 73 ····}
 74 ····if·(!areArrays)·{
 75 ········if·(typeof·a·!=·'object'·||·typeof·b·!=·'object')·return·false;
  
 76 ········//·Objects·with·different·constructors·are·not·equivalent,·but·`Object`s·or·`Array`s
 77 ········//·from·different·frames·are.
 78 ········var·aCtor·=·a.constructor,
 79 ············bCtor·=·b.constructor;
 80 ········if·(aCtor·!==·bCtor·&&·!(isFunction(aCtor)·&&·aCtor·instanceof·aCtor·&&
 81 ················isFunction(bCtor)·&&·bCtor·instanceof·bCtor)·&&
 82 ············('constructor'·in·a·&&·'constructor'·in·b))·{
 83 ············return·false;
 84 ········}
 85 ····}
 86 ····//·Assume·equality·for·cyclic·structures.·The·algorithm·for·detecting·cyclic
 87 ····//·structures·is·adapted·from·ES·5.1·section·15.12.3,·abstract·operation·`JO`.
  
 88 ····//·Initializing·stack·of·traversed·objects.
 89 ····//·It's·done·here·since·we·only·need·them·for·objects·and·arrays·comparison.
 90 ····aStack·=·aStack·||·[];
 91 ····bStack·=·bStack·||·[];
 92 ····var·length·=·aStack.length;
 93 ····while·(length--)·{
 94 ········//·Linear·search.·Performance·is·inversely·proportional·to·the·number·of
 95 ········//·unique·nested·structures.
 96 ········if·(aStack[length]·===·a)·return·bStack[length]·===·b;
 97 ····}
  
 98 ····//·Add·the·first·object·to·the·stack·of·traversed·objects.
 99 ····aStack.push(a);
 100 ····bStack.push(b);
  
 101 ····//·Recursively·compare·objects·and·arrays.
 102 ····if·(areArrays)·{
 103 ········//·Compare·array·lengths·to·determine·if·a·deep·comparison·is·necessary.
 104 ········length·=·a.length;
 105 ········if·(length·!==·b.length)·return·false;
 106 ········//·Deep·compare·the·contents,·ignoring·non-numeric·properties.
 107 ········while·(length--)·{
 108 ············if·(!eq(a[length],·b[length],·aStack,·bStack))·return·false;
 109 ········}
 110 ····}·else·{
 111 ········//·Deep·compare·objects.
Max diff block lines reached; 56/6781 bytes (0.83%) of diff not shown.
6.15 KB
./usr/share/nodejs/underscore/cjs/index86.js
6.06 KB
js-beautify {}
    
Offset 1, 142 lines modifiedOffset 1, 5 lines modified
1 var·underscore·=·require('./index151.js'); 
2 var·_setup·=·require('./index26.js'); 
3 var·_getByteLength·=·require('./index16.js'); 
4 var·isTypedArray·=·require('./index100.js'); 
5 var·isFunction·=·require('./index89.js'); 
6 var·_stringTagBug·=·require('./index29.js'); 
7 var·isDataView·=·require('./index84.js'); 
8 var·keys·=·require('./index106.js'); 
9 var·_has·=·require('./index19.js');1 var·_tagTester·=·require('./index29.js');
10 var·_toBufferView·=·require('./index30.js'); 
  
 2 var·isError·=·_tagTester('Error');
11 //·We·use·this·string·twice,·so·give·it·a·name·for·minification. 
12 var·tagDataView·=·'[object·DataView]'; 
  
13 //·Internal·recursive·comparison·function·for·`_.isEqual`. 
14 function·eq(a,·b,·aStack,·bStack)·{ 
15 ····//·Identical·objects·are·equal.·`0·===·-0`,·but·they·aren't·identical. 
16 ····//·See·the·[Harmony·`egal`·proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal). 
17 ····if·(a·===·b)·return·a·!==·0·||·1·/·a·===·1·/·b; 
18 ····//·`null`·or·`undefined`·only·equal·to·itself·(strict·comparison). 
19 ····if·(a·==·null·||·b·==·null)·return·false; 
20 ····//·`NaN`s·are·equivalent,·but·non-reflexive. 
21 ····if·(a·!==·a)·return·b·!==·b; 
22 ····//·Exhaust·primitive·checks 
23 ····var·type·=·typeof·a; 
24 ····if·(type·!==·'function'·&&·type·!==·'object'·&&·typeof·b·!=·'object')·return·false; 
25 ····return·deepEq(a,·b,·aStack,·bStack); 
26 } 
  
27 //·Internal·recursive·comparison·function·for·`_.isEqual`. 
28 function·deepEq(a,·b,·aStack,·bStack)·{ 
29 ····//·Unwrap·any·wrapped·objects. 
30 ····if·(a·instanceof·underscore)·a·=·a._wrapped; 
31 ····if·(b·instanceof·underscore)·b·=·b._wrapped; 
32 ····//·Compare·`[[Class]]`·names. 
33 ····var·className·=·_setup.toString.call(a); 
34 ····if·(className·!==·_setup.toString.call(b))·return·false; 
35 ····//·Work·around·a·bug·in·IE·10·-·Edge·13. 
36 ····if·(_stringTagBug.hasStringTagBug·&&·className·==·'[object·Object]'·&&·isDataView(a))·{ 
37 ········if·(!isDataView(b))·return·false; 
38 ········className·=·tagDataView; 
39 ····} 
40 ····switch·(className)·{ 
41 ········//·These·types·are·compared·by·value. 
42 ········case·'[object·RegExp]': 
43 ············//·RegExps·are·coerced·to·strings·for·comparison·(Note:·''·+·/a/i·===·'/a/i') 
44 ········case·'[object·String]': 
45 ············//·Primitives·and·their·corresponding·object·wrappers·are·equivalent;·thus,·`"5"`·is 
46 ············//·equivalent·to·`new·String("5")`. 
47 ············return·''·+·a·===·''·+·b; 
48 ········case·'[object·Number]': 
49 ············//·`NaN`s·are·equivalent,·but·non-reflexive. 
50 ············//·Object(NaN)·is·equivalent·to·NaN. 
51 ············if·(+a·!==·+a)·return·+b·!==·+b; 
52 ············//·An·`egal`·comparison·is·performed·for·other·numeric·values. 
53 ············return·+a·===·0·?·1·/·+a·===·1·/·b·:·+a·===·+b; 
54 ········case·'[object·Date]': 
55 ········case·'[object·Boolean]': 
56 ············//·Coerce·dates·and·booleans·to·numeric·primitive·values.·Dates·are·compared·by·their 
57 ············//·millisecond·representations.·Note·that·invalid·dates·with·millisecond·representations 
58 ············//·of·`NaN`·are·not·equivalent. 
59 ············return·+a·===·+b; 
60 ········case·'[object·Symbol]': 
61 ············return·_setup.SymbolProto.valueOf.call(a)·===·_setup.SymbolProto.valueOf.call(b); 
62 ········case·'[object·ArrayBuffer]': 
63 ········case·tagDataView: 
64 ············//·Coerce·to·typed·array·so·we·can·fall·through. 
65 ············return·deepEq(_toBufferView(a),·_toBufferView(b),·aStack,·bStack); 
66 ····} 
  
67 ····var·areArrays·=·className·===·'[object·Array]'; 
68 ····if·(!areArrays·&&·isTypedArray(a))·{ 
69 ········var·byteLength·=·_getByteLength(a); 
70 ········if·(byteLength·!==·_getByteLength(b))·return·false; 
71 ········if·(a.buffer·===·b.buffer·&&·a.byteOffset·===·b.byteOffset)·return·true; 
72 ········areArrays·=·true; 
73 ····} 
74 ····if·(!areArrays)·{ 
75 ········if·(typeof·a·!=·'object'·||·typeof·b·!=·'object')·return·false; 
  
76 ········//·Objects·with·different·constructors·are·not·equivalent,·but·`Object`s·or·`Array`s 
77 ········//·from·different·frames·are. 
78 ········var·aCtor·=·a.constructor, 
79 ············bCtor·=·b.constructor; 
80 ········if·(aCtor·!==·bCtor·&&·!(isFunction(aCtor)·&&·aCtor·instanceof·aCtor·&& 
81 ················isFunction(bCtor)·&&·bCtor·instanceof·bCtor)·&& 
82 ············('constructor'·in·a·&&·'constructor'·in·b))·{ 
83 ············return·false; 
84 ········} 
85 ····} 
86 ····//·Assume·equality·for·cyclic·structures.·The·algorithm·for·detecting·cyclic 
87 ····//·structures·is·adapted·from·ES·5.1·section·15.12.3,·abstract·operation·`JO`. 
  
88 ····//·Initializing·stack·of·traversed·objects. 
89 ····//·It's·done·here·since·we·only·need·them·for·objects·and·arrays·comparison. 
90 ····aStack·=·aStack·||·[]; 
91 ····bStack·=·bStack·||·[]; 
92 ····var·length·=·aStack.length; 
93 ····while·(length--)·{ 
94 ········//·Linear·search.·Performance·is·inversely·proportional·to·the·number·of 
95 ········//·unique·nested·structures. 
96 ········if·(aStack[length]·===·a)·return·bStack[length]·===·b; 
97 ····} 
  
98 ····//·Add·the·first·object·to·the·stack·of·traversed·objects. 
99 ····aStack.push(a); 
100 ····bStack.push(b); 
  
101 ····//·Recursively·compare·objects·and·arrays. 
102 ····if·(areArrays)·{ 
103 ········//·Compare·array·lengths·to·determine·if·a·deep·comparison·is·necessary. 
104 ········length·=·a.length; 
105 ········if·(length·!==·b.length)·return·false; 
106 ········//·Deep·compare·the·contents,·ignoring·non-numeric·properties. 
107 ········while·(length--)·{ 
108 ············if·(!eq(a[length],·b[length],·aStack,·bStack))·return·false; 
109 ········} 
110 ····}·else·{ 
111 ········//·Deep·compare·objects. 
112 ········var·_keys·=·keys(a), 
113 ············key; 
114 ········length·=·_keys.length; 
115 ········//·Ensure·that·both·objects·contain·the·same·number·of·properties·before·comparing·deep·equality. 
116 ········if·(keys(b).length·!==·length)·return·false; 
117 ········while·(length--)·{ 
118 ············//·Deep·compare·each·member 
Max diff block lines reached; -1/6180 bytes (-0.02%) of diff not shown.
950 B
./usr/share/nodejs/underscore/cjs/index87.js
862 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 20 lines modified
 1 var·_getLength·=·require('./index16.js');
 2 var·isArray·=·require('./index78.js');
 3 var·isString·=·require('./index97.js');
 4 var·isArguments·=·require('./index75.js');
1 var·_tagTester·=·require('./index28.js');5 var·keys·=·require('./index105.js');
  
2 var·isError·=·_tagTester('Error');6 //·Is·a·given·array,·string,·or·object·empty?
 7 //·An·"empty"·object·has·no·enumerable·own-properties.
 8 function·isEmpty(obj)·{
 9 ····if·(obj·==·null)·return·true;
 10 ····//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no
 11 ····//·`.length`.
 12 ····var·length·=·_getLength(obj);
 13 ····if·(typeof·length·==·'number'·&&·(
 14 ············isArray(obj)·||·isString(obj)·||·isArguments(obj)
 15 ········))·return·length·===·0;
 16 ····return·_getLength(keys(obj))·===·0;
 17 }
  
3 module.exports·=·isError;18 module.exports·=·isEmpty;
520 B
./usr/share/nodejs/underscore/cjs/index89.js
432 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
2 var·_setup·=·require('./index26.js');2 var·_setup·=·require('./index26.js');
  
3 var·isFunction·=·_tagTester('Function');3 var·isFunction·=·_tagTester('Function');
  
4 //·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old4 //·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old
5 //·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236).5 //·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236).
6 var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes;6 var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes;
587 B
./usr/share/nodejs/underscore/cjs/index9.js
501 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_cb·=·require('./index4.js');1 var·_cb·=·require('./index2.js');
2 var·_getLength·=·require('./index17.js');2 var·_getLength·=·require('./index16.js');
  
3 //·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`.3 //·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`.
4 function·createPredicateIndexFinder(dir)·{4 function·createPredicateIndexFinder(dir)·{
5 ····return·function(array,·predicate,·context)·{5 ····return·function(array,·predicate,·context)·{
6 ········predicate·=·_cb(predicate,·context);6 ········predicate·=·_cb(predicate,·context);
7 ········var·length·=·_getLength(array);7 ········var·length·=·_getLength(array);
8 ········var·index·=·dir·>·0·?·0·:·length·-·1;8 ········var·index·=·dir·>·0·?·0·:·length·-·1;
893 B
./usr/share/nodejs/underscore/cjs/index90.js
805 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 16 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·keys·=·require('./index105.js');
2 var·_stringTagBug·=·require('./index29.js'); 
3 var·_methodFingerprint·=·require('./index24.js'); 
  
4 var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');2 //·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs.
 3 function·isMatch(object,·attrs)·{
 4 ····var·_keys·=·keys(attrs),
 5 ········length·=·_keys.length;
 6 ····if·(object·==·null)·return·!length;
 7 ····var·obj·=·Object(object);
 8 ····for·(var·i·=·0;·i·<·length;·i++)·{
 9 ········var·key·=·_keys[i];
 10 ········if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false;
 11 ····}
 12 ····return·true;
 13 }
  
5 module.exports·=·isMap;14 module.exports·=·isMatch;
634 B
./usr/share/nodejs/underscore/cjs/index91.js
546 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 7 lines modified
1 var·_setup·=·require('./index26.js');1 var·_tagTester·=·require('./index29.js');
 2 var·_stringTagBug·=·require('./index28.js');
2 var·isNumber·=·require('./index94.js');3 var·_methodFingerprint·=·require('./index24.js');
  
 4 var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');
3 //·Is·the·given·value·`NaN`? 
4 function·isNaN(obj)·{ 
5 ····return·isNumber(obj)·&&·_setup._isNaN(obj); 
6 } 
  
7 module.exports·=·isNaN;5 module.exports·=·isMap;
812 B
./usr/share/nodejs/underscore/cjs/index92.js
724 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 9 lines modified
1 var·keys·=·require('./index106.js');1 var·_setup·=·require('./index26.js');
 2 var·isNumber·=·require('./index94.js');
  
 3 //·Is·the·given·value·`NaN`?
 4 function·isNaN(obj)·{
 5 ····return·isNumber(obj)·&&·_setup._isNaN(obj);
2 //·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs. 
3 function·isMatch(object,·attrs)·{ 
4 ····var·_keys·=·keys(attrs), 
5 ········length·=·_keys.length; 
6 ····if·(object·==·null)·return·!length; 
7 ····var·obj·=·Object(object); 
8 ····for·(var·i·=·0;·i·<·length;·i++)·{ 
9 ········var·key·=·_keys[i]; 
10 ········if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false; 
11 ····} 
12 ····return·true; 
13 }6 }
  
14 module.exports·=·isMatch;7 module.exports·=·isNaN;
288 B
./usr/share/nodejs/underscore/cjs/index94.js
200 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
  
2 var·isNumber·=·_tagTester('Number');2 var·isNumber·=·_tagTester('Number');
  
3 module.exports·=·isNumber;3 module.exports·=·isNumber;
533 B
./usr/share/nodejs/underscore/cjs/index96.js
445 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 5 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
2 var·_stringTagBug·=·require('./index29.js'); 
3 var·_methodFingerprint·=·require('./index24.js'); 
  
4 var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');2 var·isRegExp·=·_tagTester('RegExp');
  
5 module.exports·=·isSet;3 module.exports·=·isRegExp;
288 B
./usr/share/nodejs/underscore/cjs/index97.js
200 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
  
2 var·isString·=·_tagTester('String');2 var·isString·=·_tagTester('String');
  
3 module.exports·=·isString;3 module.exports·=·isString;
533 B
./usr/share/nodejs/underscore/cjs/index98.js
445 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 7 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
 2 var·_stringTagBug·=·require('./index28.js');
 3 var·_methodFingerprint·=·require('./index24.js');
  
2 var·isRegExp·=·_tagTester('RegExp');4 var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');
  
3 module.exports·=·isRegExp;5 module.exports·=·isSet;
288 B
./usr/share/nodejs/underscore/cjs/index99.js
200 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 var·_tagTester·=·require('./index28.js');1 var·_tagTester·=·require('./index29.js');
  
2 var·isSymbol·=·_tagTester('Symbol');2 var·isSymbol·=·_tagTester('Symbol');
  
3 module.exports·=·isSymbol;3 module.exports·=·isSymbol;