488 KB
/srv/reproducible-results/rbuild-debian/r-b-build.6Iodm6CO/b1/underscore_1.13.4~dfsg+~1.11.4-3_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.6Iodm6CO/b2/underscore_1.13.4~dfsg+~1.11.4-3_amd64.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 ·86ef9886b77443dcc4b4235293055401·120520·javascript·optional·node-underscore_1.13.4~dfsg+~1.11.4-3_all.deb2 ·6d7091938127fcebf575f7183b0af5a2·120468·javascript·optional·node-underscore_1.13.4~dfsg+~1.11.4-3_all.deb
487 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····11612·2023-01-02·04:09:24.000000·control.tar.xz2 -rw-r--r--···0········0········0····11568·2023-01-02·04:09:24.000000·control.tar.xz
3 -rw-r--r--···0········0········0···108716·2023-01-02·04:09:24.000000·data.tar.xz3 -rw-r--r--···0········0········0···108708·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
487 KB
data.tar.xz
487 KB
data.tar
82.2 KB
file list
    
Offset 12, 335 lines modifiedOffset 12, 335 lines modified
12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/
13 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/13 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/
14 -rw-r--r--···0·root·········(0)·root·········(0)·····1697·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.mts14 -rw-r--r--···0·root·········(0)·root·········(0)·····1697·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.mts
15 -rw-r--r--···0·root·········(0)·root·········(0)···242854·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.ts15 -rw-r--r--···0·root·········(0)·root·········(0)···242854·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.ts
16 -rw-r--r--···0·root·········(0)·root·········(0)·····2254·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/package.json16 -rw-r--r--···0·root·········(0)·root·········(0)·····2254·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/package.json
17 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/17 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/
18 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/18 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/
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)······575·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.js 
21 -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)······446·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index101.js 
23 -rw-r--r--···0·root·········(0)·root·········(0)······554·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index102.js 
24 -rw-r--r--···0·root·········(0)·root·········(0)······405·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index103.js 
25 -rw-r--r--···0·root·········(0)·root·········(0)······577·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index104.js 
26 -rw-r--r--···0·root·········(0)·root·········(0)······292·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index105.js 
27 -rw-r--r--···0·root·········(0)·root·········(0)······571·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index106.js 
28 -rw-r--r--···0·root·········(0)·root·········(0)······254·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index107.js 
29 -rw-r--r--···0·root·········(0)·root·········(0)······327·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index108.js 
30 -rw-r--r--···0·root·········(0)·root·········(0)······464·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index109.js 
31 -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11.js20 -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10.js
32 -rw-r--r--···0·root·········(0)·root·········(0)······985·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index110.js21 -rw-r--r--···0·root·········(0)·root·········(0)······845·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index100.js
33 -rw-r--r--···0·root·········(0)·root·········(0)······220·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index111.js22 -rw-r--r--···0·root·········(0)·root·········(0)······423·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index101.js
34 -rw-r--r--···0·root·········(0)·root·········(0)······981·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index112.js23 -rw-r--r--···0·root·········(0)·root·········(0)······396·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index102.js
35 -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index113.js24 -rw-r--r--···0·root·········(0)·root·········(0)······613·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index103.js
36 -rw-r--r--···0·root·········(0)·root·········(0)······580·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index114.js25 -rw-r--r--···0·root·········(0)·root·········(0)······350·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index104.js
 26 -rw-r--r--···0·root·········(0)·root·········(0)······850·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index105.js
 27 -rw-r--r--···0·root·········(0)·root·········(0)······456·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index106.js
 28 -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index107.js
 29 -rw-r--r--···0·root·········(0)·root·········(0)······126·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index108.js
 30 -rw-r--r--···0·root·········(0)·root·········(0)······230·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index109.js
37 -rw-r--r--···0·root·········(0)·root·········(0)······134·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index115.js31 -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11.js
38 -rw-r--r--···0·root·········(0)·root·········(0)······192·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index116.js32 -rw-r--r--···0·root·········(0)·root·········(0)······105·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index110.js
 33 -rw-r--r--···0·root·········(0)·root·········(0)······515·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index111.js
39 -rw-r--r--···0·root·········(0)·root·········(0)······681·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index117.js34 -rw-r--r--···0·root·········(0)·root·········(0)······161·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index112.js
 35 -rw-r--r--···0·root·········(0)·root·········(0)······210·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index113.js
 36 -rw-r--r--···0·root·········(0)·root·········(0)·····5643·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index114.js
 37 -rw-r--r--···0·root·········(0)·root·········(0)······108·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index115.js
 38 -rw-r--r--···0·root·········(0)·root·········(0)······244·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index116.js
 39 -rw-r--r--···0·root·········(0)·root·········(0)······588·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index117.js
40 -rw-r--r--···0·root·········(0)·root·········(0)······252·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index118.js40 -rw-r--r--···0·root·········(0)·root·········(0)······254·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index118.js
41 -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index119.js41 -rw-r--r--···0·root·········(0)·root·········(0)······453·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index119.js
42 -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index12.js42 -rw-r--r--···0·root·········(0)·root·········(0)······609·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index12.js
43 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index120.js43 -rw-r--r--···0·root·········(0)·root·········(0)······138·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index120.js
44 -rw-r--r--···0·root·········(0)·root·········(0)······840·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index121.js44 -rw-r--r--···0·root·········(0)·root·········(0)······198·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index121.js
45 -rw-r--r--···0·root·········(0)·root·········(0)·····1001·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index122.js45 -rw-r--r--···0·root·········(0)·root·········(0)······111·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index122.js
46 -rw-r--r--···0·root·········(0)·root·········(0)······237·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index123.js46 -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index123.js
47 -rw-r--r--···0·root·········(0)·root·········(0)······384·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index124.js47 -rw-r--r--···0·root·········(0)·root·········(0)······111·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index124.js
48 -rw-r--r--···0·root·········(0)·root·········(0)······296·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index125.js48 -rw-r--r--···0·root·········(0)·root·········(0)······254·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index125.js
 49 -rw-r--r--···0·root·········(0)·root·········(0)······111·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index126.js
 50 -rw-r--r--···0·root·········(0)·root·········(0)······111·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index127.js
 51 -rw-r--r--···0·root·········(0)·root·········(0)······729·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index128.js
49 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index126.js52 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index129.js
50 -rw-r--r--···0·root·········(0)·root·········(0)······640·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index127.js 
51 -rw-r--r--···0·root·········(0)·root·········(0)······200·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index128.js 
52 -rw-r--r--···0·root·········(0)·root·········(0)······185·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index129.js 
53 -rw-r--r--···0·root·········(0)·root·········(0)······608·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index13.js53 -rw-r--r--···0·root·········(0)·root·········(0)·····1008·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index13.js
54 -rw-r--r--···0·root·········(0)·root·········(0)······272·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index130.js54 -rw-r--r--···0·root·········(0)·root·········(0)······114·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index130.js
55 -rw-r--r--···0·root·········(0)·root·········(0)······348·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index131.js55 -rw-r--r--···0·root·········(0)·root·········(0)······149·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index131.js
56 -rw-r--r--···0·root·········(0)·root·········(0)·····1219·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index132.js 
57 -rw-r--r--···0·root·········(0)·root·········(0)······785·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index133.js56 -rw-r--r--···0·root·········(0)·root·········(0)······447·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index132.js
 57 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index133.js
 58 -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index134.js
 59 -rw-r--r--···0·root·········(0)·root·········(0)······404·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index135.js
 60 -rw-r--r--···0·root·········(0)·root·········(0)······292·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index136.js
 61 -rw-r--r--···0·root·········(0)·root·········(0)······579·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index137.js
 62 -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index138.js
 63 -rw-r--r--···0·root·········(0)·root·········(0)······328·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index139.js
 64 -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index14.js
 65 -rw-r--r--···0·root·········(0)·root·········(0)······436·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index140.js
 66 -rw-r--r--···0·root·········(0)·root·········(0)······464·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index141.js
58 -rw-r--r--···0·root·········(0)·root·········(0)······982·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index134.js67 -rw-r--r--···0·root·········(0)·root·········(0)······982·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index142.js
59 -rw-r--r--···0·root·········(0)·root·········(0)······264·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index135.js 
60 -rw-r--r--···0·root·········(0)·root·········(0)······161·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index136.js 
61 -rw-r--r--···0·root·········(0)·root·········(0)······556·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index137.js 
62 -rw-r--r--···0·root·········(0)·root·········(0)······722·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index138.js 
63 -rw-r--r--···0·root·········(0)·root·········(0)······587·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index139.js68 -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index143.js
64 -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index14.js 
65 -rw-r--r--···0·root·········(0)·root·········(0)······338·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index140.js 
66 -rw-r--r--···0·root·········(0)·root·········(0)·····3476·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index141.js 
67 -rw-r--r--···0·root·········(0)·root·········(0)······114·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index142.js 
68 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index143.js69 -rw-r--r--···0·root·········(0)·root·········(0)······220·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index144.js
69 -rw-r--r--···0·root·········(0)·root·········(0)·····1567·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index144.js 
70 -rw-r--r--···0·root·········(0)·root·········(0)······313·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index145.js70 -rw-r--r--···0·root·········(0)·root·········(0)······134·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)······192·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index146.js
72 -rw-r--r--···0·root·········(0)·root·········(0)······304·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index147.js72 -rw-r--r--···0·root·········(0)·root·········(0)······580·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index147.js
73 -rw-r--r--···0·root·········(0)·root·········(0)······844·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index148.js73 -rw-r--r--···0·root·········(0)·root·········(0)······681·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index148.js
74 -rw-r--r--···0·root·········(0)·root·········(0)······978·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index149.js74 -rw-r--r--···0·root·········(0)·root·········(0)······252·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index149.js
 75 -rw-r--r--···0·root·········(0)·root·········(0)······191·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index15.js
 76 -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index150.js
75 -rw-r--r--···0·root·········(0)·root·········(0)·····1006·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index15.js77 -rw-r--r--···0·root·········(0)·root·········(0)·····1000·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index151.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)······326·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index151.js 
78 -rw-r--r--···0·root·········(0)·root·········(0)·····1251·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index152.js 
79 -rw-r--r--···0·root·········(0)·root·········(0)······471·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.js 
81 -rw-r--r--···0·root·········(0)·root·········(0)······335·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index155.js 
82 -rw-r--r--···0·root·········(0)·root·········(0)······293·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.js 
84 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index158.js78 -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index152.js
 79 -rw-r--r--···0·root·········(0)·root·········(0)······840·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index153.js
85 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index159.js80 -rw-r--r--···0·root·········(0)·root·········(0)······237·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index154.js
 81 -rw-r--r--···0·root·········(0)·root·········(0)······384·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index155.js
 82 -rw-r--r--···0·root·········(0)·root·········(0)······296·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index156.js
 83 -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index157.js
 84 -rw-r--r--···0·root·········(0)·root·········(0)······627·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index158.js
 85 -rw-r--r--···0·root·········(0)·root·········(0)······844·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index159.js
86 -rw-r--r--···0·root·········(0)·root·········(0)······191·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index16.js86 -rw-r--r--···0·root·········(0)·root·········(0)······493·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index16.js
87 -rw-r--r--···0·root·········(0)·root·········(0)······385·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index160.js87 -rw-r--r--···0·root·········(0)·root·········(0)······986·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index160.js
88 -rw-r--r--···0·root·········(0)·root·········(0)······240·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index17.js88 -rw-r--r--···0·root·········(0)·root·········(0)······240·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index17.js
89 -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index18.js 
90 -rw-r--r--···0·root·········(0)·root·········(0)······119·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index19.js89 -rw-r--r--···0·root·········(0)·root·········(0)······119·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index18.js
91 -rw-r--r--···0·root·········(0)·root·········(0)······715·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2.js90 -rw-r--r--···0·root·········(0)·root·········(0)······435·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index19.js
92 -rw-r--r--···0·root·········(0)·root·········(0)······491·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.js91 -rw-r--r--···0·root·········(0)·root·········(0)······246·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2.js
94 -rw-r--r--···0·root·········(0)·root·········(0)······289·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index22.js92 -rw-r--r--···0·root·········(0)·root·········(0)······288·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index20.js
95 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index23.js93 -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index21.js
 94 -rw-r--r--···0·root·········(0)·root·········(0)·····1709·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index22.js
96 -rw-r--r--···0·root·········(0)·root·········(0)······888·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index24.js95 -rw-r--r--···0·root·········(0)·root·········(0)······888·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index23.js
 96 -rw-r--r--···0·root·········(0)·root·········(0)·····2593·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index24.js
97 -rw-r--r--···0·root·········(0)·root·········(0)······255·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index25.js97 -rw-r--r--···0·root·········(0)·root·········(0)······255·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index25.js
98 -rw-r--r--···0·root·········(0)·root·········(0)·····1708·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index26.js 
99 -rw-r--r--···0·root·········(0)·root·········(0)·····2593·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index27.js 
100 -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index28.js98 -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index26.js
101 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index29.js99 -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index27.js
102 -rw-r--r--···0·root·········(0)·root·········(0)······435·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index3.js 
103 -rw-r--r--···0·root·········(0)·root·········(0)······187·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.js 
Max diff block lines reached; 59473/84200 bytes (70.63%) of diff not shown.
485 B
./usr/share/nodejs/underscore/amd/index.js
401 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index94',·'./index27'],·(function(isObject,·_setup)·{1 define(['./index123',·'./index24'],·(function(isObject,·_setup)·{
  
2 ····//·Create·a·naked·function·reference·for·surrogate-prototype-swapping.2 ····//·Create·a·naked·function·reference·for·surrogate-prototype-swapping.
3 ····function·ctor()·{3 ····function·ctor()·{
4 ········return·function()·{};4 ········return·function()·{};
5 ····}5 ····}
  
6 ····//·An·internal·function·for·creating·a·new·object·that·inherits·from·another.6 ····//·An·internal·function·for·creating·a·new·object·that·inherits·from·another.
1.69 KB
./usr/share/nodejs/underscore/amd/index10.js
1.61 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 15 lines modified
1 define(['./index21',·'./index102',·'./index24'],·(function(_isArrayLike,·keys,·_optimizeCb)·{1 define((function()·{
  
 2 ····//·Internal·function·to·obtain·a·nested·property·in·`obj`·along·`path`.
 3 ····function·deepGet(obj,·path)·{
 4 ········var·length·=·path.length;
 5 ········for·(var·i·=·0;·i·<·length;·i++)·{
 6 ············if·(obj·==·null)·return·void·0;
 7 ············obj·=·obj[path[i]];
2 ····//·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right. 
3 ····function·createReduce(dir)·{ 
4 ········//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than 
5 ········//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991) 
6 ········var·reducer·=·function(obj,·iteratee,·memo,·initial)·{ 
7 ············var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), 
8 ················length·=·(_keys·||·obj).length, 
9 ················index·=·dir·>·0·?·0·:·length·-·1; 
10 ············if·(!initial)·{ 
11 ················memo·=·obj[_keys·?·_keys[index]·:·index]; 
12 ················index·+=·dir; 
13 ············} 
14 ············for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{ 
15 ················var·currentKey·=·_keys·?·_keys[index]·:·index; 
16 ················memo·=·iteratee(memo,·obj[currentKey],·currentKey,·obj); 
17 ············} 
18 ············return·memo; 
19 ········};8 ········}
 9 ········return·length·?·obj·:·void·0;
  
20 ········return·function(obj,·iteratee,·memo,·context)·{ 
21 ············var·initial·=·arguments.length·>=·3; 
22 ············return·reducer(obj,·_optimizeCb(iteratee,·context,·4),·memo,·initial); 
23 ········}; 
24 ····}10 ····}
  
25 ····return·createReduce;11 ····return·deepGet;
  
26 }));12 }));
1.78 KB
./usr/share/nodejs/underscore/amd/index100.js
1.7 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 29 lines modified
1 define(['./index27',·'./index82',·'./index42',·'./index22'],·(function(_setup,·isDataView,·constant,·_isBufferLike)·{1 define(['./index99',·'./index143'],·(function(index,·mixin)·{
  
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\]/;2 ····//·Default·Export
 3 ····//·==============
 4 ····//·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export
 5 ····//·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS.
 6 ····//·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package
 7 ····//·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source
 8 ····//·of)·the·module·you·are·interfacing·with·when·you·do·any·of·the·following:
 9 ····//
 10 ····//·```js
 11 ····//·//·CommonJS
 12 ····//·var·_·=·require('underscore');
 13 ····//
 14 ····//·//·AMD
 15 ····//·define(['underscore'],·function(_)·{...});
 16 ····//
 17 ····//·//·UMD·in·the·browser
 18 ····//·//·_·is·available·as·a·global·variable
 19 ····//·```
  
 20 ····//·Add·all·of·the·Underscore·functions·to·the·wrapper·object.
 21 ····var·_·=·mixin(index);
 22 ····//·Legacy·Node.js·API.
 23 ····_._·=·_;
4 ····function·isTypedArray(obj)·{ 
5 ········//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available. 
6 ········//·Otherwise,·fall·back·on·the·above·regular·expression. 
7 ········return·_setup.nativeIsView·?·(_setup.nativeIsView(obj)·&&·!isDataView(obj))·: 
8 ············_isBufferLike(obj)·&&·typedArrayPattern.test(_setup.toString.call(obj)); 
9 ····} 
  
 24 ····return·_;
10 ····var·isTypedArray$1·=·_setup.supportsArrayBuffer·?·isTypedArray·:·constant(false); 
  
11 ····return·isTypedArray$1; 
  
12 }));25 }));
1.03 KB
./usr/share/nodejs/underscore/amd/index101.js
961 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 11 lines modified
1 define(['./index148',·'./index2'],·(function(underscore,·_baseIteratee)·{1 define(['./index77',·'./index56',·'./index6'],·(function(sortedIndex,·findIndex,·_createIndexFinder)·{
  
 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.
 4 ····//·If·the·array·is·large·and·already·in·sort·order,·pass·`true`
 5 ····//·for·**isSorted**·to·use·binary·search.
 6 ····var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);
2 ····//·External·wrapper·for·our·callback·generator.·Users·may·customize 
3 ····//·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles. 
4 ····//·This·abstraction·hides·the·internal-only·`argCount`·argument. 
5 ····function·iteratee(value,·context)·{ 
6 ········return·_baseIteratee(value,·context,·Infinity); 
7 ····} 
8 ····underscore.iteratee·=·iteratee; 
  
9 ····return·iteratee;7 ····return·indexOf;
  
10 }));8 }));
1.13 KB
./usr/share/nodejs/underscore/amd/index102.js
1.05 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 12 lines modified
1 define(['./index94',·'./index27',·'./index17',·'./index4'],·(function(isObject,·_setup,·_has,·_collectNonEnumProps)·{1 define(['./index24'],·(function(_setup)·{
  
 2 ····//·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on
 3 ····//·the·arguments·object.·Passing·**n**·will·return·all·the·values·in
 4 ····//·the·array,·excluding·the·last·N.
 5 ····function·initial(array,·n,·guard)·{
 6 ········return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·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 ····}7 ····}
  
14 ····return·keys;8 ····return·initial;
  
15 }));9 }));
1.23 KB
./usr/share/nodejs/underscore/amd/index103.js
1.15 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 22 lines modified
1 define(['./index131'],·(function(rest)·{1 define(['./index15',·'./index42'],·(function(_getLength,·contains)·{
  
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 ····//·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 ········}
 16 ········return·result;
8 ····}17 ····}
  
9 ····return·last;18 ····return·intersection;
  
10 }));19 }));
1.12 KB
./usr/share/nodejs/underscore/amd/index104.js
1.03 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 15 lines modified
1 define(['./index3',·'./index21',·'./index102'],·(function(_cb,·_isArrayLike,·keys)·{1 define(['./index134'],·(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 ····//·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 ········}8 ········}
12 ········return·results;9 ········return·result;
13 ····}10 ····}
  
14 ····return·map;11 ····return·invert;
  
15 }));12 }));
1.4 KB
./usr/share/nodejs/underscore/amd/index105.js
1.31 KB
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 28 lines modified
1 define(['./index58',·'./index6'],·(function(findLastIndex,·_createIndexFinder)·{1 define(['./index70',·'./index117',·'./index137',·'./index10',·'./index29'],·(function(restArguments,·isFunction,·map,·_deepGet,·_toPath)·{
  
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 ····//·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 ············}
 21 ············return·method·==·null·?·method·:·method.apply(context,·args);
 22 ········});
 23 ····});
  
5 ····return·lastIndexOf;24 ····return·invoke;
  
6 }));25 }));
1.24 KB
./usr/share/nodejs/underscore/amd/index106.js
1.15 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 19 lines modified
1 define(['./index3',·'./index102'],·(function(_cb,·keys)·{1 define(['./index27',·'./index17'],·(function(_tagTester,·_has)·{
  
 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 ············};
2 ····//·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`. 
3 ····//·In·contrast·to·`_.map`·it·returns·an·object. 
4 ····function·mapObject(obj,·iteratee,·context)·{ 
5 ········iteratee·=·_cb(iteratee,·context); 
6 ········var·_keys·=·keys(obj), 
7 ············length·=·_keys.length, 
8 ············results·=·{}; 
9 ········for·(var·index·=·0;·index·<·length;·index++)·{ 
10 ············var·currentKey·=·_keys[index]; 
11 ············results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj); 
12 ········}10 ········}
13 ········return·results; 
14 ····}11 ····}());
  
 12 ····var·isArguments$1·=·isArguments;
  
15 ····return·mapObject;13 ····return·isArguments$1;
  
16 }));14 }));
641 B
./usr/share/nodejs/underscore/amd/index107.js
551 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 9 lines modified
1 define(['./index29',·'./index28',·'./index26'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{1 define(['./index24',·'./index27'],·(function(_setup,·_tagTester)·{
  
2 ····var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');2 ····//·Is·a·given·value·an·array?
 3 ····//·Delegates·to·ECMA5's·native·`Array.isArray`.
 4 ····var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');
  
3 ····return·isSet;5 ····return·isArray;
  
4 }));6 }));
629 B
./usr/share/nodejs/underscore/amd/index108.js
539 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 7 lines modified
1 define(['./index54',·'./index90'],·(function(extendOwn,·isMatch)·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isArrayBuffer·=·_tagTester('ArrayBuffer');
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); 
8 ········}; 
9 ····} 
  
10 ····return·matcher;3 ····return·isArrayBuffer;
  
11 }));4 }));
896 B
./usr/share/nodejs/underscore/amd/index109.js
806 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 10 lines modified
1 define(['./index17'],·(function(_has)·{1 define(['./index24'],·(function(_setup)·{
  
 2 ····//·Is·a·given·value·a·boolean?
 3 ····function·isBoolean(obj)·{
 4 ········return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]';
2 ····//·Memoize·an·expensive·function·by·storing·its·results. 
3 ····function·memoize(func,·hasher)·{ 
4 ········var·memoize·=·function(key)·{ 
5 ············var·cache·=·memoize.cache; 
6 ············var·address·=·''·+·(hasher·?·hasher.apply(this,·arguments)·:·key); 
7 ············if·(!_has(cache,·address))·cache[address]·=·func.apply(this,·arguments); 
8 ············return·cache[address]; 
9 ········}; 
10 ········memoize.cache·=·{}; 
11 ········return·memoize; 
12 ····}5 ····}
  
13 ····return·memoize;6 ····return·isBoolean;
  
14 }));7 }));
760 B
./usr/share/nodejs/underscore/amd/index11.js
672 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
1 define((function()·{1 define((function()·{
  
2 ····//·Internal·function·to·obtain·a·nested·property·in·`obj`·along·`path`. 
3 ····function·deepGet(obj,·path)·{ 
4 ········var·length·=·path.length; 
5 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
6 ············if·(obj·==·null)·return·void·0; 
7 ············obj·=·obj[path[i]]; 
8 ········} 
9 ········return·length·?·obj·:·void·0;2 ····//·Internal·list·of·HTML·entities·for·escaping.
 3 ····var·escapeMap·=·{
 4 ········'&':·'&amp;',
 5 ········'<':·'&lt;',
 6 ········'>':·'&gt;',
 7 ········'"':·'&quot;',
 8 ········"'":·'&#x27;',
 9 ········'`':·'&#x60;'
10 ····}10 ····};
  
11 ····return·deepGet;11 ····return·escapeMap;
  
12 }));12 }));
1.38 KB
./usr/share/nodejs/underscore/amd/index110.js
1.29 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 7 lines modified
1 define(['./index21',·'./index155',·'./index3',·'./index50'],·(function(_isArrayLike,·values,·_cb,·each)·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isDate·=·_tagTester('Date');
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 ········} 
25 ········return·result; 
26 ····} 
  
27 ····return·max;3 ····return·isDate;
  
28 }));4 }));
917 B
./usr/share/nodejs/underscore/amd/index111.js
827 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 15 lines modified
1 define((function()·{1 define(['./index27',·'./index117',·'./index108',·'./index26'],·(function(_tagTester,·isFunction,·isArrayBuffer,·_stringTagBug)·{
  
2 ····//·Returns·a·negated·version·of·the·passed-in·predicate. 
3 ····function·negate(predicate)·{ 
4 ········return·function()·{ 
5 ············return·!predicate.apply(this,·arguments); 
6 ········};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 ····}7 ····}
  
8 ····return·negate;8 ····var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView);
  
 9 ····return·isDataView$1;
  
9 }));10 }));
1.43 KB
./usr/share/nodejs/underscore/amd/index112.js
1.35 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 10 lines modified
1 define(['./index21',·'./index155',·'./index3',·'./index50'],·(function(_isArrayLike,·values,·_cb,·each)·{1 define((function()·{
  
 2 ····//·Is·a·given·value·a·DOM·element?
 3 ····function·isElement(obj)·{
 4 ········return·!!(obj·&&·obj.nodeType·===·1);
2 ····//·Return·the·minimum·element·(or·element-based·computation). 
3 ····function·min(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 ········} 
25 ········return·result; 
26 ····}5 ····}
  
27 ····return·min;6 ····return·isElement;
  
28 }));7 }));
1000 B
./usr/share/nodejs/underscore/amd/index113.js
911 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 8 lines modified
1 define(['./index148',·'./index50',·'./index65',·'./index27',·'./index7'],·(function(underscore,·each,·functions,·_setup,·_chainResult)·{1 define(['./index5',·'./index30'],·(function(_createEscaper,·_unescapeMap)·{
  
 2 ····//·Function·for·unescaping·strings·from·HTML·interpolation.
 3 ····var·unescape·=·_createEscaper(_unescapeMap);
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 ········}); 
12 ········return·underscore; 
13 ····} 
  
14 ····return·mixin;4 ····return·unescape;
  
15 }));5 }));
6.97 KB
./usr/share/nodejs/underscore/amd/index114.js
6.88 KB
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 135 lines modified
1 define(['./index16'],·(function(_getLength)·{1 define(['./index159',·'./index24',·'./index14',·'./index128',·'./index117',·'./index26',·'./index111',·'./index134',·'./index17',·'./index28'],·(function(underscore,·_setup,·_getByteLength,·isTypedArray,·isFunction,·_stringTagBug,·isDataView,·keys,·_has,·_toBufferView)·{
  
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·of 
4 ····//·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`. 
5 ····function·object(list,·values)·{ 
6 ········var·result·=·{}; 
7 ········for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{ 
8 ············if·(values)·{ 
9 ················result[list[i]]·=·values[i]; 
10 ············}·else·{ 
11 ················result[list[i][0]]·=·list[i][1];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;
12 ············}75 ············}
13 ········}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];
Max diff block lines reached; 51/7021 bytes (0.73%) of diff not shown.
393 B
./usr/share/nodejs/underscore/amd/index115.js
303 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 7 lines modified
1 define((function()·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isError·=·_tagTester('Error');
2 ····//·Predicate-generating·function.·Often·useful·outside·of·Underscore. 
3 ····function·noop()·{} 
  
4 ····return·noop;3 ····return·isError;
  
5 }));4 }));
602 B
./usr/share/nodejs/underscore/amd/index116.js
512 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 define((function()·{1 define(['./index24',·'./index126'],·(function(_setup,·isSymbol)·{
  
2 ····//·A·(possibly·faster)·way·to·get·the·current·timestamp·as·an·integer. 
3 ····var·now·=·Date.now·||·function()·{ 
4 ········return·new·Date().getTime();2 ····//·Is·a·given·object·a·finite·number?
 3 ····function·isFinite(obj)·{
 4 ········return·!isSymbol(obj)·&&·_setup._isFinite(obj)·&&·!isNaN(parseFloat(obj));
5 ····};5 ····}
  
6 ····return·now;6 ····return·isFinite;
  
7 }));7 }));
1.5 KB
./usr/share/nodejs/underscore/amd/index117.js
1.41 KB
js-beautify {}
    
Offset 1, 21 lines modifiedOffset 1, 18 lines modified
1 define(['./index132',·'./index88',·'./index111',·'./index104',·'./index15',·'./index43',·'./index121'],·(function(restArguments,·isFunction,·negate,·map,·_flatten,·contains,·pick)·{1 define(['./index27',·'./index24'],·(function(_tagTester,·_setup)·{
  
 2 ····var·isFunction·=·_tagTester('Function');
2 ····//·Return·a·copy·of·the·object·without·the·disallowed·properties. 
3 ····var·omit·=·restArguments(function(obj,·keys)·{ 
4 ········var·iteratee·=·keys[0], 
5 ············context; 
6 ········if·(isFunction(iteratee))·{ 
7 ············iteratee·=·negate(iteratee); 
8 ············if·(keys.length·>·1)·context·=·keys[1]; 
9 ········}·else·{ 
10 ············keys·=·map(_flatten(keys,·false,·false),·String); 
11 ············iteratee·=·function(value,·key)·{ 
12 ················return·!contains(keys,·key); 
13 ············}; 
14 ········} 
15 ········return·pick(obj,·iteratee,·context); 
16 ····}); 
  
17 ····return·omit;3 ····//·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old
 4 ····//·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236).
 5 ····var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes;
 6 ····if·(typeof·/./·!=·'function'·&&·typeof·Int8Array·!=·'object'·&&·typeof·nodelist·!=·'function')·{
 7 ········isFunction·=·function(obj)·{
 8 ············return·typeof·obj·==·'function'·||·false;
 9 ········};
 10 ····}
  
 11 ····var·isFunction$1·=·isFunction;
  
 12 ····return·isFunction$1;
  
18 }));13 }));
660 B
./usr/share/nodejs/underscore/amd/index118.js
570 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 7 lines modified
1 define(['./index122',·'./index36'],·(function(partial,·before)·{1 define(['./index27',·'./index26',·'./index22'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{
  
 2 ····var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');
2 ····//·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how 
3 ····//·often·you·call·it.·Useful·for·lazy·initialization. 
4 ····var·once·=·partial(before,·2); 
  
5 ····return·once;3 ····return·isMap;
  
6 }));4 }));
1.02 KB
./usr/share/nodejs/underscore/amd/index119.js
955 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 18 lines modified
1 define(['./index102'],·(function(keys)·{1 define(['./index134'],·(function(keys)·{
  
 2 ····//·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs.
 3 ····function·isMatch(object,·attrs)·{
2 ····//·Convert·an·object·into·a·list·of·`[key,·value]`·pairs. 
3 ····//·The·opposite·of·`_.object`·with·one·argument. 
4 ····function·pairs(obj)·{ 
5 ········var·_keys·=·keys(obj);4 ········var·_keys·=·keys(attrs),
6 ········var·length·=·_keys.length;5 ············length·=·_keys.length;
7 ········var·pairs·=·Array(length);6 ········if·(object·==·null)·return·!length;
 7 ········var·obj·=·Object(object);
8 ········for·(var·i·=·0;·i·<·length;·i++)·{8 ········for·(var·i·=·0;·i·<·length;·i++)·{
9 ············pairs[i]·=·[_keys[i],·obj[_keys[i]]];9 ············var·key·=·_keys[i];
 10 ············if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false;
10 ········}11 ········}
11 ········return·pairs;12 ········return·true;
12 ····}13 ····}
  
13 ····return·pairs;14 ····return·isMatch;
  
14 }));15 }));
1.03 KB
./usr/share/nodejs/underscore/amd/index12.js
969 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 16 lines modified
1 define((function()·{1 define(['./index',·'./index123'],·(function(_baseCreate,·isObject)·{
  
2 ····//·Internal·list·of·HTML·entities·for·escaping. 
3 ····var·escapeMap·=·{ 
4 ········'&':·'&amp;', 
5 ········'<':·'&lt;', 
6 ········'>':·'&gt;', 
7 ········'"':·'&quot;', 
8 ········"'":·'&#x27;', 
9 ········'`':·'&#x60;'2 ····//·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional
 3 ····//·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a
 4 ····//·normal·function.
 5 ····function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{
 6 ········if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args);
 7 ········var·self·=·_baseCreate(sourceFunc.prototype);
 8 ········var·result·=·sourceFunc.apply(self,·args);
 9 ········if·(isObject(result))·return·result;
 10 ········return·self;
10 ····};11 ····}
  
11 ····return·escapeMap;12 ····return·executeBound;
  
12 }));13 }));
636 B
./usr/share/nodejs/underscore/amd/index120.js
546 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 10 lines modified
1 define(['./index20'],·(function(_group)·{1 define((function()·{
  
 2 ····//·Is·a·given·value·equal·to·null?
 3 ····function·isNull(obj)·{
 4 ········return·obj·===·null;
 5 ····}
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); 
  
7 ····return·partition;6 ····return·isNull;
  
8 }));7 }));
1.28 KB
./usr/share/nodejs/underscore/amd/index121.js
1.19 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 10 lines modified
1 define(['./index132',·'./index88',·'./index24',·'./index34',·'./index23',·'./index15'],·(function(restArguments,·isFunction,·_optimizeCb,·allKeys,·_keyInObj,·_flatten)·{1 define(['./index24',·'./index122'],·(function(_setup,·isNumber)·{
  
 2 ····//·Is·the·given·value·`NaN`?
 3 ····function·isNaN(obj)·{
 4 ········return·isNumber(obj)·&&·_setup._isNaN(obj);
2 ····//·Return·a·copy·of·the·object·only·containing·the·allowed·properties. 
3 ····var·pick·=·restArguments(function(obj,·keys)·{ 
4 ········var·result·=·{}, 
5 ············iteratee·=·keys[0]; 
6 ········if·(obj·==·null)·return·result; 
7 ········if·(isFunction(iteratee))·{ 
8 ············if·(keys.length·>·1)·iteratee·=·_optimizeCb(iteratee,·keys[1]); 
9 ············keys·=·allKeys(obj); 
10 ········}·else·{ 
11 ············iteratee·=·_keyInObj; 
12 ············keys·=·_flatten(keys,·false,·false); 
13 ············obj·=·Object(obj); 
14 ········} 
15 ········for·(var·i·=·0,·length·=·keys.length;·i·<·length;·i++)·{ 
16 ············var·key·=·keys[i]; 
17 ············var·value·=·obj[key]; 
18 ············if·(iteratee(value,·key,·obj))·result[key]·=·value; 
19 ········} 
20 ········return·result; 
21 ····});5 ····}
  
22 ····return·pick;6 ····return·isNaN;
  
23 }));7 }));
1.33 KB
./usr/share/nodejs/underscore/amd/index122.js
1.24 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 7 lines modified
1 define(['./index132',·'./index13',·'./index148'],·(function(restArguments,·_executeBound,·underscore)·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isNumber·=·_tagTester('Number');
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 ····}); 
  
 3 ····return·isNumber;
20 ····partial.placeholder·=·underscore; 
  
21 ····return·partial; 
  
22 }));4 }));
608 B
./usr/share/nodejs/underscore/amd/index123.js
518 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 11 lines modified
1 define(['./index104',·'./index124'],·(function(map,·property)·{1 define((function()·{
  
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 ····//·Is·a·given·variable·an·object?
 3 ····function·isObject(obj)·{
 4 ········var·type·=·typeof·obj;
 5 ········return·type·===·'function'·||·(type·===·'object'·&&·!!obj);
5 ····}6 ····}
  
6 ····return·pluck;7 ····return·isObject;
  
7 }));8 }));
669 B
./usr/share/nodejs/underscore/amd/index124.js
579 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 7 lines modified
1 define(['./index11',·'./index31'],·(function(_deepGet,·_toPath)·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isRegExp·=·_tagTester('RegExp');
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 ····} 
  
10 ····return·property;3 ····return·isRegExp;
  
11 }));4 }));
723 B
./usr/share/nodejs/underscore/amd/index125.js
633 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 7 lines modified
1 define(['./index115',·'./index66'],·(function(noop,·get)·{1 define(['./index27',·'./index26',·'./index22'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{
  
 2 ····var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');
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 ········}; 
8 ····} 
  
9 ····return·propertyOf;3 ····return·isSet;
  
10 }));4 }));
561 B
./usr/share/nodejs/underscore/amd/index126.js
471 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 7 lines modified
1 define((function()·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isSymbol·=·_tagTester('Symbol');
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 ········} 
8 ········return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1)); 
9 ····} 
  
10 ····return·random;3 ····return·isSymbol;
  
11 }));4 }));
984 B
./usr/share/nodejs/underscore/amd/index127.js
894 B
js-beautify {}
    
Offset 1, 27 lines modifiedOffset 1, 7 lines modified
1 define((function()·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isString·=·_tagTester('String');
2 ····//·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of 
3 ····//·the·native·Python·`range()`·function.·See 
4 ····//·[the·Python·documentation](https://docs.python.org/library/functions.html#range). 
5 ····function·range(start,·stop,·step)·{ 
6 ········if·(stop·==·null)·{ 
7 ············stop·=·start·||·0; 
8 ············start·=·0; 
9 ········} 
10 ········if·(!step)·{ 
11 ············step·=·stop·<·start·?·-1·:·1; 
12 ········} 
  
13 ········var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0); 
14 ········var·range·=·Array(length); 
  
15 ········for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{ 
16 ············range[idx]·=·start; 
17 ········} 
  
18 ········return·range; 
19 ····} 
  
20 ····return·range;3 ····return·isString;
  
21 }));4 }));
1.08 KB
./usr/share/nodejs/underscore/amd/index128.js
1020 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 17 lines modified
1 define(['./index10'],·(function(_createReduce)·{1 define(['./index24',·'./index111',·'./index41',·'./index20'],·(function(_setup,·isDataView,·constant,·_isBufferLike)·{
  
 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\]/;
2 ····//·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`, 
3 ····//·or·`foldl`. 
4 ····var·reduce·=·_createReduce(1); 
  
5 ····return·reduce;4 ····function·isTypedArray(obj)·{
 5 ········//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available.
 6 ········//·Otherwise,·fall·back·on·the·above·regular·expression.
 7 ········return·_setup.nativeIsView·?·(_setup.nativeIsView(obj)·&&·!isDataView(obj))·:
 8 ············_isBufferLike(obj)·&&·typedArrayPattern.test(_setup.toString.call(obj));
 9 ····}
  
 10 ····var·isTypedArray$1·=·_setup.supportsArrayBuffer·?·isTypedArray·:·constant(false);
  
 11 ····return·isTypedArray$1;
  
6 }));12 }));
605 B
./usr/share/nodejs/underscore/amd/index129.js
515 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 7 lines modified
1 define(['./index10'],·(function(_createReduce)·{1 define(['./index27',·'./index26',·'./index22'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{
  
 2 ····var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');
2 ····//·The·right-associative·version·of·reduce,·also·known·as·`foldr`. 
3 ····var·reduceRight·=·_createReduce(-1); 
  
4 ····return·reduceRight;3 ····return·isWeakMap;
  
5 }));4 }));
1.94 KB
./usr/share/nodejs/underscore/amd/index13.js
1.86 KB
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 33 lines modified
1 define(['./index',·'./index94'],·(function(_baseCreate,·isObject)·{1 define(['./index15',·'./index19',·'./index107',·'./index106'],·(function(_getLength,·_isArrayLike,·isArray,·isArguments)·{
  
2 ····//·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional 
3 ····//·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a 
4 ····//·normal·function. 
5 ····function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{ 
6 ········if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args); 
7 ········var·self·=·_baseCreate(sourceFunc.prototype); 
8 ········var·result·=·sourceFunc.apply(self,·args); 
9 ········if·(isObject(result))·return·result;2 ····//·Internal·implementation·of·a·recursive·`flatten`·function.
 3 ····function·flatten(input,·depth,·strict,·output)·{
 4 ········output·=·output·||·[];
 5 ········if·(!depth·&&·depth·!==·0)·{
 6 ············depth·=·Infinity;
 7 ········}·else·if·(depth·<=·0)·{
 8 ············return·output.concat(input);
 9 ········}
 10 ········var·idx·=·output.length;
 11 ········for·(var·i·=·0,·length·=·_getLength(input);·i·<·length;·i++)·{
 12 ············var·value·=·input[i];
 13 ············if·(_isArrayLike(value)·&&·(isArray(value)·||·isArguments(value)))·{
 14 ················//·Flatten·current·level·of·array·or·arguments·object.
 15 ················if·(depth·>·1)·{
 16 ····················flatten(value,·depth·-·1,·strict,·output);
 17 ····················idx·=·output.length;
 18 ················}·else·{
 19 ····················var·j·=·0,
 20 ························len·=·value.length;
 21 ····················while·(j·<·len)·output[idx++]·=·value[j++];
 22 ················}
 23 ············}·else·if·(!strict)·{
 24 ················output[idx++]·=·value;
 25 ············}
 26 ········}
10 ········return·self;27 ········return·output;
11 ····}28 ····}
  
12 ····return·executeBound;29 ····return·flatten;
  
13 }));30 }));
542 B
./usr/share/nodejs/underscore/amd/index130.js
452 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 7 lines modified
1 define(['./index59',·'./index111',·'./index3'],·(function(filter,·negate,·_cb)·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·isWeakSet·=·_tagTester('WeakSet');
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); 
5 ····} 
  
6 ····return·reject;3 ····return·isWeakSet;
  
7 }));4 }));
662 B
./usr/share/nodejs/underscore/amd/index131.js
572 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 10 lines modified
1 define(['./index27'],·(function(_setup)·{1 define((function()·{
  
 2 ····//·Is·a·given·variable·undefined?
 3 ····function·isUndefined(obj)·{
 4 ········return·obj·===·void·0;
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·isUndefined;
  
9 }));7 }));
2.0 KB
./usr/share/nodejs/underscore/amd/index132.js
1.91 KB
js-beautify {}
    
Offset 1, 36 lines modifiedOffset 1, 13 lines modified
1 define((function()·{1 define(['./index159',·'./index62'],·(function(underscore,·_baseIteratee)·{
  
 2 ····//·External·wrapper·for·our·callback·generator.·Users·may·customize
 3 ····//·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles.
 4 ····//·This·abstraction·hides·the·internal-only·`argCount`·argument.
 5 ····function·iteratee(value,·context)·{
 6 ········return·_baseIteratee(value,·context,·Infinity);
2 ····//·Some·functions·take·a·variable·number·of·arguments,·or·a·few·expected 
3 ····//·arguments·at·the·beginning·and·then·a·variable·number·of·values·to·operate 
4 ····//·on.·This·helper·accumulates·all·remaining·arguments·past·the·function’s 
5 ····//·argument·length·(or·an·explicit·`startIndex`),·into·an·array·that·becomes 
6 ····//·the·last·argument.·Similar·to·ES6’s·"rest·parameter". 
7 ····function·restArguments(func,·startIndex)·{ 
8 ········startIndex·=·startIndex·==·null·?·func.length·-·1·:·+startIndex; 
9 ········return·function()·{ 
10 ············var·length·=·Math.max(arguments.length·-·startIndex,·0), 
11 ················rest·=·Array(length), 
12 ················index·=·0; 
13 ············for·(;·index·<·length;·index++)·{ 
14 ················rest[index]·=·arguments[index·+·startIndex]; 
15 ············} 
16 ············switch·(startIndex)·{ 
17 ················case·0: 
18 ····················return·func.call(this,·rest); 
19 ················case·1: 
20 ····················return·func.call(this,·arguments[0],·rest); 
21 ················case·2: 
22 ····················return·func.call(this,·arguments[0],·arguments[1],·rest); 
23 ············} 
24 ············var·args·=·Array(startIndex·+·1); 
25 ············for·(index·=·0;·index·<·startIndex;·index++)·{ 
26 ················args[index]·=·arguments[index]; 
27 ············} 
28 ············args[startIndex]·=·rest; 
29 ············return·func.apply(this,·args); 
30 ········}; 
31 ····}7 ····}
 8 ····underscore.iteratee·=·iteratee;
  
32 ····return·restArguments;9 ····return·iteratee;
  
33 }));10 }));
1.3 KB
./usr/share/nodejs/underscore/amd/index133.js
1.22 KB
js-beautify {}
    
Offset 1, 25 lines modifiedOffset 1, 11 lines modified
1 define(['./index88',·'./index31'],·(function(isFunction,·_toPath)·{1 define(['./index16'],·(function(_group)·{
  
 2 ····//·Indexes·the·object's·values·by·a·criterion,·similar·to·`_.groupBy`,·but·for
 3 ····//·when·you·know·that·your·index·values·will·be·unique.
 4 ····var·indexBy·=·_group(function(result,·value,·key)·{
 5 ········result[key]·=·value;
2 ····//·Traverses·the·children·of·`obj`·along·`path`.·If·a·child·is·a·function,·it 
3 ····//·is·invoked·with·its·parent·as·context.·Returns·the·value·of·the·final 
4 ····//·child,·or·`fallback`·if·any·child·is·undefined. 
5 ····function·result(obj,·path,·fallback)·{ 
6 ········path·=·_toPath(path); 
7 ········var·length·=·path.length; 
8 ········if·(!length)·{ 
9 ············return·isFunction(fallback)·?·fallback.call(obj)·:·fallback; 
10 ········} 
11 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
12 ············var·prop·=·obj·==·null·?·void·0·:·obj[path[i]]; 
13 ············if·(prop·===·void·0)·{ 
14 ················prop·=·fallback; 
15 ················i·=·length;·//·Ensure·we·don't·continue·iterating. 
16 ············} 
17 ············obj·=·isFunction(prop)·?·prop.call(obj)·:·prop; 
18 ········} 
19 ········return·obj; 
20 ····}6 ····});
  
21 ····return·result;7 ····return·indexBy;
  
22 }));8 }));
1.79 KB
./usr/share/nodejs/underscore/amd/index134.js
1.7 KB
js-beautify {}
    
Offset 1, 27 lines modifiedOffset 1, 18 lines modified
1 define(['./index21',·'./index155',·'./index16',·'./index126',·'./index146'],·(function(_isArrayLike,·values,·_getLength,·random,·toArray)·{1 define(['./index123',·'./index24',·'./index17',·'./index3'],·(function(isObject,·_setup,·_has,·_collectNonEnumProps)·{
  
 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;
2 ····//·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). 
4 ····//·If·**n**·is·not·specified,·returns·a·single·random·element. 
5 ····//·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`. 
6 ····function·sample(obj,·n,·guard)·{ 
7 ········if·(n·==·null·||·guard)·{ 
8 ············if·(!_isArrayLike(obj))·obj·=·values(obj); 
9 ············return·obj[random(obj.length·-·1)]; 
10 ········} 
11 ········var·sample·=·toArray(obj); 
12 ········var·length·=·_getLength(sample); 
13 ········n·=·Math.max(Math.min(n,·length),·0); 
14 ········var·last·=·length·-·1; 
15 ········for·(var·index·=·0;·index·<·n;·index++)·{ 
16 ············var·rand·=·random(index,·last); 
17 ············var·temp·=·sample[index]; 
18 ············sample[index]·=·sample[rand]; 
19 ············sample[rand]·=·temp; 
20 ········} 
21 ········return·sample.slice(0,·n); 
22 ····}13 ····}
  
23 ····return·sample;14 ····return·keys;
  
24 }));15 }));
845 B
./usr/share/nodejs/underscore/amd/index135.js
755 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 13 lines modified
1 define(['./index21',·'./index102'],·(function(_isArrayLike,·keys)·{1 define(['./index69'],·(function(rest)·{
  
2 ····//·Return·the·number·of·elements·in·a·collection. 
3 ····function·size(obj)·{ 
4 ········if·(obj·==·null)·return·0; 
5 ········return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;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));
6 ····}8 ····}
  
7 ····return·size;9 ····return·last;
  
8 }));10 }));
617 B
./usr/share/nodejs/underscore/amd/index136.js
527 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 9 lines modified
1 define(['./index134'],·(function(sample)·{1 define(['./index59',·'./index6'],·(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 ····//·Shuffle·a·collection. 
3 ····function·shuffle(obj)·{ 
4 ········return·sample(obj,·Infinity); 
5 ····} 
  
6 ····return·shuffle;5 ····return·lastIndexOf;
  
7 }));6 }));
1.17 KB
./usr/share/nodejs/underscore/amd/index137.js
1.08 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 18 lines modified
1 define(['./index3',·'./index21',·'./index102'],·(function(_cb,·_isArrayLike,·keys)·{1 define(['./index140',·'./index19',·'./index134'],·(function(_cb,·_isArrayLike,·keys)·{
  
2 ····//·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.2 ····//·Return·the·results·of·applying·the·iteratee·to·each·element.
3 ····function·some(obj,·predicate,·context)·{3 ····function·map(obj,·iteratee,·context)·{
4 ········predicate·=·_cb(predicate,·context);4 ········iteratee·=·_cb(iteratee,·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 ············results·=·Array(length);
7 ········for·(var·index·=·0;·index·<·length;·index++)·{8 ········for·(var·index·=·0;·index·<·length;·index++)·{
8 ············var·currentKey·=·_keys·?·_keys[index]·:·index;9 ············var·currentKey·=·_keys·?·_keys[index]·:·index;
9 ············if·(predicate(obj[currentKey],·currentKey,·obj))·return·true;10 ············results[index]·=·iteratee(obj[currentKey],·currentKey,·obj);
10 ········}11 ········}
11 ········return·false;12 ········return·results;
12 ····}13 ····}
  
13 ····return·some;14 ····return·map;
  
14 }));15 }));
1.53 KB
./usr/share/nodejs/underscore/amd/index138.js
1.45 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 19 lines modified
1 define(['./index3',·'./index123',·'./index104'],·(function(_cb,·pluck,·map)·{1 define(['./index140',·'./index134'],·(function(_cb,·keys)·{
  
2 ····//·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.2 ····//·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`.
 3 ····//·In·contrast·to·`_.map`·it·returns·an·object.
3 ····function·sortBy(obj,·iteratee,·context)·{4 ····function·mapObject(obj,·iteratee,·context)·{
4 ········var·index·=·0; 
5 ········iteratee·=·_cb(iteratee,·context);5 ········iteratee·=·_cb(iteratee,·context);
6 ········return·pluck(map(obj,·function(value,·key,·list)·{6 ········var·_keys·=·keys(obj),
 7 ············length·=·_keys.length,
7 ············return·{8 ············results·=·{};
 9 ········for·(var·index·=·0;·index·<·length;·index++)·{
 10 ············var·currentKey·=·_keys[index];
 11 ············results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj);
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 ············}12 ········}
 13 ········return·results;
19 ············return·left.index·-·right.index; 
20 ········}),·'value'); 
21 ····}14 ····}
  
22 ····return·sortBy;15 ····return·mapObject;
  
23 }));16 }));
1.13 KB
./usr/share/nodejs/underscore/amd/index139.js
1.05 KB
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 14 lines modified
1 define(['./index3',·'./index16'],·(function(_cb,·_getLength)·{1 define(['./index54',·'./index119'],·(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 ····//·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. 
4 ····function·sortedIndex(array,·obj,·iteratee,·context)·{ 
5 ········iteratee·=·_cb(iteratee,·context,·1); 
6 ········var·value·=·iteratee(obj); 
7 ········var·low·=·0, 
8 ············high·=·_getLength(array); 
9 ········while·(low·<·high)·{ 
10 ············var·mid·=·Math.floor((low·+·high)·/·2); 
11 ············if·(iteratee(array[mid])·<·value)·low·=·mid·+·1; 
12 ············else·high·=·mid; 
13 ········}8 ········};
14 ········return·low; 
15 ····}9 ····}
  
16 ····return·sortedIndex;10 ····return·matcher;
  
17 }));11 }));
795 B
./usr/share/nodejs/underscore/amd/index14.js
707 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 8 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index25'],·(function(_shallowProperty)·{
  
 2 ····//·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object.
 3 ····var·getByteLength·=·_shallowProperty('byteLength');
2 ····//·Common·internal·logic·for·`isArrayLike`·and·`isBufferLike`. 
3 ····function·createSizePropertyCheck(getSizeProperty)·{ 
4 ········return·function(collection)·{ 
5 ············var·sizeProperty·=·getSizeProperty(collection); 
6 ············return·typeof·sizeProperty·==·'number'·&&·sizeProperty·>=·0·&&·sizeProperty·<=·_setup.MAX_ARRAY_INDEX; 
7 ········} 
8 ····} 
  
9 ····return·createSizePropertyCheck;4 ····return·getByteLength;
  
10 }));5 }));
952 B
./usr/share/nodejs/underscore/amd/index140.js
862 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 12 lines modified
1 define((function()·{1 define(['./index159',·'./index62',·'./index132'],·(function(underscore,·_baseIteratee,·iteratee)·{
  
 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);
2 ····//·Invokes·`interceptor`·with·the·`obj`·and·then·returns·`obj`. 
3 ····//·The·primary·purpose·of·this·method·is·to·"tap·into"·a·method·chain,·in 
4 ····//·order·to·perform·operations·on·intermediate·results·within·the·chain. 
5 ····function·tap(obj,·interceptor)·{ 
6 ········interceptor(obj); 
7 ········return·obj; 
8 ····}7 ····}
  
9 ····return·tap;8 ····return·cb;
  
10 }));9 }));
4.45 KB
./usr/share/nodejs/underscore/amd/index141.js
4.36 KB
js-beautify {}
    
Offset 1, 103 lines modifiedOffset 1, 17 lines modified
1 define(['./index51',·'./index148',·'./index160'],·(function(defaults,·underscore,·templateSettings)·{1 define(['./index17'],·(function(_has)·{
  
 2 ····//·Memoize·an·expensive·function·by·storing·its·results.
 3 ····function·memoize(func,·hasher)·{
2 ····//·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an 
3 ····//·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is 
4 ····//·guaranteed·not·to·match. 
5 ····var·noMatch·=·/(.)^/; 
  
6 ····//·Certain·characters·need·to·be·escaped·so·that·they·can·be·put·into·a 
7 ····//·string·literal. 
8 ····var·escapes·=·{ 
9 ········"'":·"'", 
10 ········'\\':·'\\', 
11 ········'\r':·'r', 
12 ········'\n':·'n', 
13 ········'\u2028':·'u2028', 
14 ········'\u2029':·'u2029' 
15 ····}; 
  
16 ····var·escapeRegExp·=·/\\|'|\r|\n|\u2028|\u2029/g; 
  
17 ····function·escapeChar(match)·{ 
18 ········return·'\\'·+·escapes[match]; 
19 ····} 
  
20 ····//·In·order·to·prevent·third-party·code·injection·through 
21 ····//·`_.templateSettings.variable`,·we·test·it·against·the·following·regular 
22 ····//·expression.·It·is·intentionally·a·bit·more·liberal·than·just·matching·valid 
23 ····//·identifiers,·but·still·prevents·possible·loopholes·through·defaults·or 
24 ····//·destructuring·assignment. 
25 ····var·bareIdentifier·=·/^\s*(\w|\$)+\s*$/; 
  
26 ····//·JavaScript·micro-templating,·similar·to·John·Resig's·implementation. 
27 ····//·Underscore·templating·handles·arbitrary·delimiters,·preserves·whitespace, 
28 ····//·and·correctly·escapes·quotes·within·interpolated·code. 
29 ····//·NB:·`oldSettings`·only·exists·for·backwards·compatibility. 
30 ····function·template(text,·settings,·oldSettings)·{ 
31 ········if·(!settings·&&·oldSettings)·settings·=·oldSettings; 
32 ········settings·=·defaults({},·settings,·underscore.templateSettings); 
  
33 ········//·Combine·delimiters·into·one·regular·expression·via·alternation. 
34 ········var·matcher·=·RegExp([ 
35 ············(settings.escape·||·noMatch).source, 
36 ············(settings.interpolate·||·noMatch).source, 
37 ············(settings.evaluate·||·noMatch).source 
38 ········].join('|')·+·'|$',·'g'); 
  
39 ········//·Compile·the·template·source,·escaping·string·literals·appropriately. 
40 ········var·index·=·0; 
41 ········var·source·=·"__p+='"; 
42 ········text.replace(matcher,·function(match,·escape,·interpolate,·evaluate,·offset)·{ 
43 ············source·+=·text.slice(index,·offset).replace(escapeRegExp,·escapeChar); 
44 ············index·=·offset·+·match.length; 
  
45 ············if·(escape)·{ 
46 ················source·+=·"'+\n((__t=("·+·escape·+·"))==null?'':_.escape(__t))+\n'"; 
47 ············}·else·if·(interpolate)·{ 
48 ················source·+=·"'+\n((__t=("·+·interpolate·+·"))==null?'':__t)+\n'"; 
49 ············}·else·if·(evaluate)·{ 
50 ················source·+=·"';\n"·+·evaluate·+·"\n__p+='"; 
51 ············} 
  
52 ············//·Adobe·VMs·need·the·match·returned·to·produce·the·correct·offset. 
53 ············return·match; 
54 ········}); 
55 ········source·+=·"';\n"; 
  
56 ········var·argument·=·settings.variable; 
57 ········if·(argument)·{ 
58 ············//·Insure·against·third-party·code·injection.·(CVE-2021-23358) 
59 ············if·(!bareIdentifier.test(argument))·throw·new·Error( 
60 ················'variable·is·not·a·bare·identifier:·'·+·argument 
61 ············); 
62 ········}·else·{ 
63 ············//·If·a·variable·is·not·specified,·place·data·values·in·local·scope. 
64 ············source·=·'with(obj||{}){\n'·+·source·+·'}\n'; 
65 ············argument·=·'obj'; 
66 ········} 
  
67 ········source·=·"var·__t,__p='',__j=Array.prototype.join,"·+ 
68 ············"print=function(){__p+=__j.call(arguments,'');};\n"·+ 
69 ············source·+·'return·__p;\n'; 
  
70 ········var·render; 
71 ········try·{ 
72 ············render·=·new·Function(argument,·'_',·source); 
73 ········}·catch·(e)·{ 
74 ············e.source·=·source; 
75 ············throw·e; 
76 ········} 
  
77 ········var·template·=·function(data)·{4 ········var·memoize·=·function(key)·{
78 ············return·render.call(this,·data,·underscore);5 ············var·cache·=·memoize.cache;
 6 ············var·address·=·''·+·(hasher·?·hasher.apply(this,·arguments)·:·key);
 7 ············if·(!_has(cache,·address))·cache[address]·=·func.apply(this,·arguments);
 8 ············return·cache[address];
79 ········};9 ········};
 10 ········memoize.cache·=·{};
  
80 ········//·Provide·the·compiled·source·as·a·convenience·for·precompilation. 
81 ········template.source·=·'function('·+·argument·+·'){\n'·+·source·+·'}'; 
  
82 ········return·template;11 ········return·memoize;
83 ····}12 ····}
  
84 ····return·template;13 ····return·memoize;
  
85 }));14 }));
1.39 KB
./usr/share/nodejs/underscore/amd/index142.js
1.3 KB
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 31 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index19',·'./index90',·'./index140',·'./index50'],·(function(_isArrayLike,·values,·_cb,·each)·{
  
2 ····var·isWeakSet·=·_tagTester('WeakSet');2 ····//·Return·the·minimum·element·(or·element-based·computation).
 3 ····function·min(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 ········}
 25 ········return·result;
 26 ····}
  
3 ····return·isWeakSet;27 ····return·min;
  
4 }));28 }));
1.03 KB
./usr/share/nodejs/underscore/amd/index143.js
967 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 18 lines modified
1 define(['./index29',·'./index28',·'./index26'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{1 define(['./index159',·'./index50',·'./index64',·'./index24',·'./index2'],·(function(underscore,·each,·functions,·_setup,·_chainResult)·{
  
2 ····var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');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 ········});
 12 ········return·underscore;
 13 ····}
  
3 ····return·isWeakMap;14 ····return·mixin;
  
4 }));15 }));
2.14 KB
./usr/share/nodejs/underscore/amd/index144.js
2.06 KB
js-beautify {}
    
Offset 1, 51 lines modifiedOffset 1, 12 lines modified
1 define(['./index116'],·(function(now)·{1 define((function()·{
  
 2 ····//·Returns·a·negated·version·of·the·passed-in·predicate.
 3 ····function·negate(predicate)·{
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()·{4 ········return·function()·{
 5 ············return·!predicate.apply(this,·arguments);
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 ········};6 ········};
  
36 ········throttled.cancel·=·function()·{ 
37 ············clearTimeout(timeout); 
38 ············previous·=·0; 
39 ············timeout·=·context·=·args·=·null; 
40 ········}; 
  
41 ········return·throttled; 
42 ····}7 ····}
  
43 ····return·throttle;8 ····return·negate;
  
44 }));9 }));
623 B
./usr/share/nodejs/underscore/amd/index145.js
533 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 8 lines modified
1 define(['./index24'],·(function(_optimizeCb)·{1 define((function()·{
  
 2 ····//·Predicate-generating·function.·Often·useful·outside·of·Underscore.
 3 ····function·noop()·{}
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 ····} 
  
9 ····return·times;4 ····return·noop;
  
10 }));5 }));
1.04 KB
./usr/share/nodejs/underscore/amd/index146.js
971 B
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 10 lines modified
1 define(['./index79',·'./index27',·'./index97',·'./index21',·'./index104',·'./index68',·'./index155'],·(function(isArray,·_setup,·isString,·_isArrayLike,·map,·identity,·values)·{1 define((function()·{
  
2 ····//·Safely·create·a·real,·live·array·from·anything·iterable. 
3 ····var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;2 ····//·A·(possibly·faster)·way·to·get·the·current·timestamp·as·an·integer.
 3 ····var·now·=·Date.now·||·function()·{
 4 ········return·new·Date().getTime();
 5 ····};
  
4 ····function·toArray(obj)·{ 
5 ········if·(!obj)·return·[]; 
6 ········if·(isArray(obj))·return·_setup.slice.call(obj); 
7 ········if·(isString(obj))·{ 
8 ············//·Keep·surrogate·pair·characters·together. 
9 ············return·obj.match(reStrSymbol); 
10 ········} 
11 ········if·(_isArrayLike(obj))·return·map(obj,·identity); 
12 ········return·values(obj); 
13 ····} 
  
14 ····return·toArray;6 ····return·now;
  
15 }));7 }));
1.08 KB
./usr/share/nodejs/underscore/amd/index147.js
1020 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 20 lines modified
1 define(['./index148',·'./index79'],·(function(underscore,·isArray)·{1 define(['./index15'],·(function(_getLength)·{
  
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 ····//·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·of
 4 ····//·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`.
 5 ····function·object(list,·values)·{
 6 ········var·result·=·{};
 7 ········for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{
 8 ············if·(values)·{
 9 ················result[list[i]]·=·values[i];
 10 ············}·else·{
 11 ················result[list[i][0]]·=·list[i][1];
 12 ············}
 13 ········}
 14 ········return·result;
6 ····}15 ····}
7 ····underscore.toPath·=·toPath; 
  
8 ····return·toPath;16 ····return·object;
  
9 }));17 }));
1.78 KB
./usr/share/nodejs/underscore/amd/index148.js
1.69 KB
js-beautify {}
    
Offset 1, 29 lines modifiedOffset 1, 21 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index70',·'./index117',·'./index144',·'./index137',·'./index13',·'./index42',·'./index153'],·(function(restArguments,·isFunction,·negate,·map,·_flatten,·contains,·pick)·{
  
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;2 ····//·Return·a·copy·of·the·object·without·the·disallowed·properties.
 3 ····var·omit·=·restArguments(function(obj,·keys)·{
 4 ········var·iteratee·=·keys[0],
 5 ············context;
 6 ········if·(isFunction(iteratee))·{
 7 ············iteratee·=·negate(iteratee);
 8 ············if·(keys.length·>·1)·context·=·keys[1];
 9 ········}·else·{
 10 ············keys·=·map(_flatten(keys,·false,·false),·String);
 11 ············iteratee·=·function(value,·key)·{
 12 ················return·!contains(keys,·key);
 13 ············};
 14 ········}
 15 ········return·pick(obj,·iteratee,·context);
9 ····}16 ····});
  
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·_;17 ····return·omit;
  
22 }));18 }));
1.48 KB
./usr/share/nodejs/underscore/amd/index149.js
1.39 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 9 lines modified
1 define(['./index148',·'./index50',·'./index27',·'./index7'],·(function(underscore,·each,·_setup,·_chainResult)·{1 define(['./index151',·'./index33'],·(function(partial,·before)·{
  
 2 ····//·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how
 3 ····//·often·you·call·it.·Useful·for·lazy·initialization.
 4 ····var·once·=·partial(before,·2);
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 ········}; 
15 ····}); 
  
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;5 ····return·once;
  
26 }));6 }));
1.51 KB
./usr/share/nodejs/underscore/amd/index15.js
1.42 KB
js-beautify {}
    
Offset 1, 33 lines modifiedOffset 1, 8 lines modified
1 define(['./index16',·'./index21',·'./index79',·'./index78'],·(function(_getLength,·_isArrayLike,·isArray,·isArguments)·{1 define(['./index25'],·(function(_shallowProperty)·{
  
 2 ····//·Internal·helper·to·obtain·the·`length`·property·of·an·object.
 3 ····var·getLength·=·_shallowProperty('length');
2 ····//·Internal·implementation·of·a·recursive·`flatten`·function. 
3 ····function·flatten(input,·depth,·strict,·output)·{ 
4 ········output·=·output·||·[]; 
5 ········if·(!depth·&&·depth·!==·0)·{ 
6 ············depth·=·Infinity; 
7 ········}·else·if·(depth·<=·0)·{ 
8 ············return·output.concat(input); 
9 ········} 
10 ········var·idx·=·output.length; 
11 ········for·(var·i·=·0,·length·=·_getLength(input);·i·<·length;·i++)·{ 
12 ············var·value·=·input[i]; 
13 ············if·(_isArrayLike(value)·&&·(isArray(value)·||·isArguments(value)))·{ 
14 ················//·Flatten·current·level·of·array·or·arguments·object. 
15 ················if·(depth·>·1)·{ 
16 ····················flatten(value,·depth·-·1,·strict,·output); 
17 ····················idx·=·output.length; 
18 ················}·else·{ 
19 ····················var·j·=·0, 
20 ························len·=·value.length; 
21 ····················while·(j·<·len)·output[idx++]·=·value[j++]; 
22 ················} 
23 ············}·else·if·(!strict)·{ 
24 ················output[idx++]·=·value; 
25 ············} 
26 ········} 
27 ········return·output; 
28 ····} 
  
29 ····return·flatten;4 ····return·getLength;
  
30 }));5 }));
806 B
./usr/share/nodejs/underscore/amd/index150.js
716 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 17 lines modified
1 define(['./index9',·'./index30'],·(function(_createEscaper,·_unescapeMap)·{1 define(['./index134'],·(function(keys)·{
  
2 ····//·Function·for·unescaping·strings·from·HTML·interpolation. 
3 ····var·unescape·=·_createEscaper(_unescapeMap);2 ····//·Convert·an·object·into·a·list·of·`[key,·value]`·pairs.
 3 ····//·The·opposite·of·`_.object`·with·one·argument.
 4 ····function·pairs(obj)·{
 5 ········var·_keys·=·keys(obj);
 6 ········var·length·=·_keys.length;
 7 ········var·pairs·=·Array(length);
 8 ········for·(var·i·=·0;·i·<·length;·i++)·{
 9 ············pairs[i]·=·[_keys[i],·obj[_keys[i]]];
 10 ········}
 11 ········return·pairs;
 12 ····}
  
4 ····return·unescape;13 ····return·pairs;
  
5 }));14 }));
1.54 KB
./usr/share/nodejs/underscore/amd/index151.js
1.46 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 26 lines modified
1 define(['./index132',·'./index152',·'./index15'],·(function(restArguments,·uniq,·_flatten)·{1 define(['./index70',·'./index12',·'./index159'],·(function(restArguments,·_executeBound,·underscore)·{
  
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 ····//·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;
6 ····});19 ····});
  
7 ····return·union;20 ····partial.placeholder·=·underscore;
  
 21 ····return·partial;
  
8 }));22 }));
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',·'./index3',·'./index16',·'./index43'],·(function(isBoolean,·_cb,·_getLength,·contains)·{1 define(['./index16'],·(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 ····//·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 ····} 
  
33 ····return·uniq;7 ····return·partition;
  
34 }));8 }));
1.54 KB
./usr/share/nodejs/underscore/amd/index153.js
1.45 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 26 lines modified
1 define(['./index110',·'./index16',·'./index123'],·(function(max,·_getLength,·pluck)·{1 define(['./index70',·'./index117',·'./index23',·'./index32',·'./index21',·'./index13'],·(function(restArguments,·isFunction,·_optimizeCb,·allKeys,·_keyInObj,·_flatten)·{
  
2 ····//·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups 
3 ····//·each·array's·elements·on·shared·indices. 
4 ····function·unzip(array)·{ 
5 ········var·length·=·(array·&&·max(array,·_getLength).length)·||·0; 
6 ········var·result·=·Array(length); 
  
7 ········for·(var·index·=·0;·index·<·length;·index++)·{ 
8 ············result[index]·=·pluck(array,·index);2 ····//·Return·a·copy·of·the·object·only·containing·the·allowed·properties.
 3 ····var·pick·=·restArguments(function(obj,·keys)·{
 4 ········var·result·=·{},
 5 ············iteratee·=·keys[0];
 6 ········if·(obj·==·null)·return·result;
 7 ········if·(isFunction(iteratee))·{
 8 ············if·(keys.length·>·1)·iteratee·=·_optimizeCb(iteratee,·keys[1]);
 9 ············keys·=·allKeys(obj);
 10 ········}·else·{
 11 ············iteratee·=·_keyInObj;
 12 ············keys·=·_flatten(keys,·false,·false);
 13 ············obj·=·Object(obj);
 14 ········}
 15 ········for·(var·i·=·0,·length·=·keys.length;·i·<·length;·i++)·{
 16 ············var·key·=·keys[i];
 17 ············var·value·=·obj[key];
 18 ············if·(iteratee(value,·key,·obj))·result[key]·=·value;
9 ········}19 ········}
10 ········return·result;20 ········return·result;
11 ····}21 ····});
  
12 ····return·unzip;22 ····return·pick;
  
13 }));23 }));
694 B
./usr/share/nodejs/underscore/amd/index154.js
604 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 10 lines modified
1 define((function()·{1 define(['./index137',·'./index155'],·(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 ····//·Generate·a·unique·integer·id·(unique·within·the·entire·client·session). 
3 ····//·Useful·for·temporary·DOM·ids. 
4 ····var·idCounter·=·0; 
  
5 ····function·uniqueId(prefix)·{ 
6 ········var·id·=·++idCounter·+·''; 
7 ········return·prefix·?·prefix·+·id·:·id; 
8 ····}5 ····}
  
9 ····return·uniqueId;6 ····return·pluck;
  
10 }));7 }));
928 B
./usr/share/nodejs/underscore/amd/index155.js
838 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 14 lines modified
1 define(['./index102'],·(function(keys)·{1 define(['./index10',·'./index29'],·(function(_deepGet,·_toPath)·{
  
 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);
2 ····//·Retrieve·the·values·of·an·object's·properties. 
3 ····function·values(obj)·{ 
4 ········var·_keys·=·keys(obj); 
5 ········var·length·=·_keys.length; 
6 ········var·values·=·Array(length); 
7 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
8 ············values[i]·=·obj[_keys[i]]; 
9 ········}8 ········};
10 ········return·values; 
11 ····}9 ····}
  
12 ····return·values;10 ····return·property;
  
13 }));11 }));
768 B
./usr/share/nodejs/underscore/amd/index156.js
678 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 13 lines modified
1 define(['./index59',·'./index108'],·(function(filter,·matcher)·{1 define(['./index145',·'./index95'],·(function(noop,·get)·{
  
2 ····//·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only 
3 ····//·objects·containing·specific·`key:value`·pairs. 
4 ····function·where(obj,·attrs)·{ 
5 ········return·filter(obj,·matcher(attrs));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 ········};
6 ····}8 ····}
  
7 ····return·where;9 ····return·propertyOf;
  
8 }));10 }));
753 B
./usr/share/nodejs/underscore/amd/index157.js
663 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 14 lines modified
1 define(['./index132',·'./index53'],·(function(restArguments,·difference)·{1 define((function()·{
  
2 ····//·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s). 
3 ····var·without·=·restArguments(function(array,·otherArrays)·{ 
4 ········return·difference(array,·otherArrays);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 ········}
 8 ········return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1));
5 ····});9 ····}
  
6 ····return·without;10 ····return·random;
  
7 }));11 }));
1.14 KB
./usr/share/nodejs/underscore/amd/index158.js
1.05 KB
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 18 lines modified
1 define(['./index122'],·(function(partial)·{1 define(['./index15',·'./index107',·'./index127',·'./index106',·'./index134'],·(function(_getLength,·isArray,·isString,·isArguments,·keys)·{
  
2 ····//·Returns·the·first·function·passed·as·an·argument·to·the·second, 
3 ····//·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and 
4 ····//·conditionally·execute·the·original·function. 
5 ····function·wrap(func,·wrapper)·{ 
6 ········return·partial(wrapper,·func);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;
7 ····}13 ····}
  
8 ····return·wrap;14 ····return·isEmpty;
  
9 }));15 }));
1.26 KB
./usr/share/nodejs/underscore/amd/index159.js
1.17 KB
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 29 lines modified
1 define(['./index132',·'./index153'],·(function(restArguments,·unzip)·{1 define(['./index24'],·(function(_setup)·{
  
2 ····//·Zip·together·multiple·lists·into·a·single·array·--·elements·that·share 
3 ····//·an·index·go·together. 
4 ····var·zip·=·restArguments(unzip);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 ····return·zip;21 ····return·_;
  
6 }));22 }));
949 B
./usr/share/nodejs/underscore/amd/index16.js
861 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 21 lines modified
1 define(['./index25'],·(function(_shallowProperty)·{1 define(['./index140',·'./index50'],·(function(_cb,·each)·{
  
2 ····//·Internal·helper·to·obtain·the·`length`·property·of·an·object. 
3 ····var·getLength·=·_shallowProperty('length');2 ····//·An·internal·function·used·for·aggregate·"group·by"·operations.
 3 ····function·group(behavior,·partition)·{
 4 ········return·function(obj,·iteratee,·context)·{
 5 ············var·result·=·partition·?·[
 6 ················[],
 7 ················[]
 8 ············]·:·{};
 9 ············iteratee·=·_cb(iteratee,·context);
 10 ············each(obj,·function(value,·index)·{
 11 ················var·key·=·iteratee(value,·index,·obj);
 12 ················behavior(result,·value,·key);
 13 ············});
 14 ············return·result;
 15 ········};
 16 ····}
  
4 ····return·getLength;17 ····return·group;
  
5 }));18 }));
1.68 KB
./usr/share/nodejs/underscore/amd/index160.js
1.59 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 31 lines modified
1 define(['./index148'],·(function(underscore)·{1 define(['./index19',·'./index90',·'./index140',·'./index50'],·(function(_isArrayLike,·values,·_cb,·each)·{
  
2 ····//·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the 
3 ····//·following·template·settings·to·use·alternative·delimiters. 
4 ····var·templateSettings·=·underscore.templateSettings·=·{ 
5 ········evaluate:·/<%([\s\S]+?)%>/g, 
6 ········interpolate:·/<%=([\s\S]+?)%>/g, 
7 ········escape:·/<%-([\s\S]+?)%>/g2 ····//·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 ········}
 25 ········return·result;
8 ····};26 ····}
  
9 ····return·templateSettings;27 ····return·max;
  
10 }));28 }));
428 B
./usr/share/nodejs/underscore/amd/index17.js
340 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index24'],·(function(_setup)·{
  
2 ····//·Internal·function·to·check·whether·`key`·is·an·own·property·name·of·`obj`.2 ····//·Internal·function·to·check·whether·`key`·is·an·own·property·name·of·`obj`.
3 ····function·has(obj,·key)·{3 ····function·has(obj,·key)·{
4 ········return·obj·!=·null·&&·_setup.hasOwnProperty.call(obj,·key);4 ········return·obj·!=·null·&&·_setup.hasOwnProperty.call(obj,·key);
5 ····}5 ····}
  
6 ····return·has;6 ····return·has;
474 B
./usr/share/nodejs/underscore/amd/index18.js
386 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 7 lines modified
1 define(['./index25'],·(function(_shallowProperty)·{1 define(['./index27'],·(function(_tagTester)·{
  
 2 ····var·hasObjectTag·=·_tagTester('Object');
2 ····//·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object. 
3 ····var·getByteLength·=·_shallowProperty('byteLength'); 
  
4 ····return·getByteLength;3 ····return·hasObjectTag;
  
5 }));4 }));
715 B
./usr/share/nodejs/underscore/amd/index19.js
627 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 11 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index8',·'./index15'],·(function(_createSizePropertyCheck,·_getLength)·{
  
2 ····var·hasObjectTag·=·_tagTester('Object');2 ····//·Internal·helper·for·collection·methods·to·determine·whether·a·collection
 3 ····//·should·be·iterated·as·an·array·or·as·an·object.
 4 ····//·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
 5 ····//·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094
 6 ····var·isArrayLike·=·_createSizePropertyCheck(_getLength);
  
3 ····return·hasObjectTag;7 ····return·isArrayLike;
  
4 }));8 }));
1.11 KB
./usr/share/nodejs/underscore/amd/index2.js
1.02 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 10 lines modified
1 define(['./index68',·'./index88',·'./index94',·'./index79',·'./index108',·'./index124',·'./index24'],·(function(identity,·isFunction,·isObject,·isArray,·matcher,·property,·_optimizeCb)·{1 define(['./index159'],·(function(underscore)·{
  
 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); 
10 ····}5 ····}
  
11 ····return·baseIteratee;6 ····return·chainResult;
  
12 }));7 }));
1.02 KB
./usr/share/nodejs/underscore/amd/index20.js
960 B
js-beautify {}
    
Offset 1, 21 lines modifiedOffset 1, 9 lines modified
1 define(['./index3',·'./index50'],·(function(_cb,·each)·{1 define(['./index8',·'./index14'],·(function(_createSizePropertyCheck,·_getByteLength)·{
  
 2 ····//·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against
 3 ····//·`ArrayBuffer`·et·al.
 4 ····var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);
2 ····//·An·internal·function·used·for·aggregate·"group·by"·operations. 
3 ····function·group(behavior,·partition)·{ 
4 ········return·function(obj,·iteratee,·context)·{ 
5 ············var·result·=·partition·?·[ 
6 ················[], 
7 ················[] 
8 ············]·:·{}; 
9 ············iteratee·=·_cb(iteratee,·context); 
10 ············each(obj,·function(value,·index)·{ 
11 ················var·key·=·iteratee(value,·index,·obj); 
12 ················behavior(result,·value,·key); 
13 ············}); 
14 ············return·result; 
15 ········}; 
16 ····} 
  
17 ····return·group;5 ····return·isBufferLike;
  
18 }));6 }));
837 B
./usr/share/nodejs/underscore/amd/index21.js
749 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 define(['./index14',·'./index16'],·(function(_createSizePropertyCheck,·_getLength)·{1 define((function()·{
  
2 ····//·Internal·helper·for·collection·methods·to·determine·whether·a·collection 
3 ····//·should·be·iterated·as·an·array·or·as·an·object. 
4 ····//·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength 
5 ····//·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094 
6 ····var·isArrayLike·=·_createSizePropertyCheck(_getLength);2 ····//·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable
 3 ····//·property·name·of·`obj`.
 4 ····function·keyInObj(value,·key,·obj)·{
 5 ········return·key·in·obj;
 6 ····}
  
7 ····return·isArrayLike;7 ····return·keyInObj;
  
8 }));8 }));
2.25 KB
./usr/share/nodejs/underscore/amd/index22.js
2.16 KB
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 42 lines modified
1 define(['./index14',·'./index18'],·(function(_createSizePropertyCheck,·_getByteLength)·{1 define(['exports',·'./index15',·'./index117',·'./index32'],·(function(exports,·_getLength,·isFunction,·allKeys)·{
  
2 ····//·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against 
3 ····//·`ArrayBuffer`·et·al. 
4 ····var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);2 ····//·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for
 3 ····//·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.
 5 ····//·The·fingerprint·method·lists·are·defined·below.
 6 ····function·ie11fingerprint(methods)·{
 7 ········var·length·=·_getLength(methods);
 8 ········return·function(obj)·{
 9 ············if·(obj·==·null)·return·false;
 10 ············//·`Map`,·`WeakMap`·and·`Set`·have·no·enumerable·keys.
 11 ············var·keys·=·allKeys(obj);
 12 ············if·(_getLength(keys))·return·false;
 13 ············for·(var·i·=·0;·i·<·length;·i++)·{
 14 ················if·(!isFunction(obj[methods[i]]))·return·false;
 15 ············}
 16 ············//·If·we·are·testing·against·`WeakMap`,·we·need·to·ensure·that
 17 ············//·`obj`·doesn't·have·a·`forEach`·method·in·order·to·distinguish
 18 ············//·it·from·a·regular·`Map`.
 19 ············return·methods·!==·weakMapMethods·||·!isFunction(obj[forEachName]);
 20 ········};
 21 ····}
  
5 ····return·isBufferLike;22 ····//·In·the·interest·of·compact·minification,·we·write
 23 ····//·each·string·in·the·fingerprints·only·once.
 24 ····var·forEachName·=·'forEach',
 25 ········hasName·=·'has',
 26 ········commonInit·=·['clear',·'delete'],
 27 ········mapTail·=·['get',·hasName,·'set'];
  
 28 ····//·`Map`,·`WeakMap`·and·`Set`·each·have·slightly·different
 29 ····//·combinations·of·the·above·sublists.
 30 ····var·mapMethods·=·commonInit.concat(forEachName,·mapTail),
 31 ········weakMapMethods·=·commonInit.concat(mapTail),
 32 ········setMethods·=·['add'].concat(commonInit,·forEachName,·hasName);
  
 33 ····exports.ie11fingerprint·=·ie11fingerprint;
 34 ····exports.mapMethods·=·mapMethods;
 35 ····exports.setMethods·=·setMethods;
 36 ····exports.weakMapMethods·=·weakMapMethods;
  
6 }));37 }));
1.41 KB
./usr/share/nodejs/underscore/amd/index23.js
1.32 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 30 lines modified
1 define((function()·{1 define((function()·{
  
2 ····//·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable 
3 ····//·property·name·of·`obj`. 
4 ····function·keyInObj(value,·key,·obj)·{ 
5 ········return·key·in·obj;2 ····//·Internal·function·that·returns·an·efficient·(for·current·engines)·version
 3 ····//·of·the·passed-in·callback,·to·be·repeatedly·applied·in·other·Underscore
 4 ····//·functions.
 5 ····function·optimizeCb(func,·context,·argCount)·{
 6 ········if·(context·===·void·0)·return·func;
 7 ········switch·(argCount·==·null·?·3·:·argCount)·{
 8 ············case·1:
 9 ················return·function(value)·{
 10 ····················return·func.call(context,·value);
 11 ················};
 12 ················//·The·2-argument·case·is·omitted·because·we’re·not·using·it.
 13 ············case·3:
 14 ················return·function(value,·index,·collection)·{
 15 ····················return·func.call(context,·value,·index,·collection);
 16 ················};
 17 ············case·4:
 18 ················return·function(accumulator,·value,·index,·collection)·{
 19 ····················return·func.call(context,·accumulator,·value,·index,·collection);
 20 ················};
 21 ········}
 22 ········return·function()·{
 23 ············return·func.apply(context,·arguments);
 24 ········};
6 ····}25 ····}
  
7 ····return·keyInObj;26 ····return·optimizeCb;
  
8 }));27 }));
3.9 KB
./usr/share/nodejs/underscore/amd/index24.js
3.81 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 71 lines modified
1 define((function()·{1 define(['exports'],·(function(exports)·{
  
 2 ····//·Current·version.
 3 ····var·VERSION·=·'1.13.4';
2 ····//·Internal·function·that·returns·an·efficient·(for·current·engines)·version 
3 ····//·of·the·passed-in·callback,·to·be·repeatedly·applied·in·other·Underscore 
4 ····//·functions. 
5 ····function·optimizeCb(func,·context,·argCount)·{ 
6 ········if·(context·===·void·0)·return·func; 
7 ········switch·(argCount·==·null·?·3·:·argCount)·{ 
8 ············case·1: 
9 ················return·function(value)·{ 
10 ····················return·func.call(context,·value); 
11 ················}; 
12 ················//·The·2-argument·case·is·omitted·because·we’re·not·using·it. 
13 ············case·3: 
14 ················return·function(value,·index,·collection)·{ 
15 ····················return·func.call(context,·value,·index,·collection); 
16 ················}; 
17 ············case·4: 
18 ················return·function(accumulator,·value,·index,·collection)·{ 
19 ····················return·func.call(context,·accumulator,·value,·index,·collection); 
20 ················}; 
21 ········} 
22 ········return·function()·{ 
23 ············return·func.apply(context,·arguments); 
24 ········}; 
25 ····} 
  
26 ····return·optimizeCb;4 ····//·Establish·the·root·object,·`window`·(`self`)·in·the·browser,·`global`
 5 ····//·on·the·server,·or·`this`·in·some·virtual·machines.·We·use·`self`
 6 ····//·instead·of·`window`·for·`WebWorker`·support.
 7 ····var·root·=·(typeof·self·==·'object'·&&·self.self·===·self·&&·self)·||
 8 ········(typeof·global·==·'object'·&&·global.global·===·global·&&·global)·||
 9 ········Function('return·this')()·||·{};
  
 10 ····//·Save·bytes·in·the·minified·(but·not·gzipped)·version:
 11 ····var·ArrayProto·=·Array.prototype,
 12 ········ObjProto·=·Object.prototype;
 13 ····var·SymbolProto·=·typeof·Symbol·!==·'undefined'·?·Symbol.prototype·:·null;
  
 14 ····//·Create·quick·reference·variables·for·speed·access·to·core·prototypes.
 15 ····var·push·=·ArrayProto.push,
 16 ········slice·=·ArrayProto.slice,
 17 ········toString·=·ObjProto.toString,
 18 ········hasOwnProperty·=·ObjProto.hasOwnProperty;
  
 19 ····//·Modern·feature·detection.
 20 ····var·supportsArrayBuffer·=·typeof·ArrayBuffer·!==·'undefined',
 21 ········supportsDataView·=·typeof·DataView·!==·'undefined';
  
 22 ····//·All·**ECMAScript·5+**·native·function·implementations·that·we·hope·to·use
 23 ····//·are·declared·here.
 24 ····var·nativeIsArray·=·Array.isArray,
 25 ········nativeKeys·=·Object.keys,
 26 ········nativeCreate·=·Object.create,
 27 ········nativeIsView·=·supportsArrayBuffer·&&·ArrayBuffer.isView;
  
 28 ····//·Create·references·to·these·builtin·functions·because·we·override·them.
 29 ····var·_isNaN·=·isNaN,
 30 ········_isFinite·=·isFinite;
  
 31 ····//·Keys·in·IE·<·9·that·won't·be·iterated·by·`for·key·in·...`·and·thus·missed.
 32 ····var·hasEnumBug·=·!{
 33 ········toString:·null
 34 ····}.propertyIsEnumerable('toString');
 35 ····var·nonEnumerableProps·=·['valueOf',·'isPrototypeOf',·'toString',
 36 ········'propertyIsEnumerable',·'hasOwnProperty',·'toLocaleString'
 37 ····];
  
 38 ····//·The·largest·integer·that·can·be·represented·exactly.
 39 ····var·MAX_ARRAY_INDEX·=·Math.pow(2,·53)·-·1;
  
 40 ····exports.ArrayProto·=·ArrayProto;
 41 ····exports.MAX_ARRAY_INDEX·=·MAX_ARRAY_INDEX;
 42 ····exports.ObjProto·=·ObjProto;
 43 ····exports.SymbolProto·=·SymbolProto;
 44 ····exports.VERSION·=·VERSION;
 45 ····exports._isFinite·=·_isFinite;
 46 ····exports._isNaN·=·_isNaN;
 47 ····exports.hasEnumBug·=·hasEnumBug;
 48 ····exports.hasOwnProperty·=·hasOwnProperty;
 49 ····exports.nativeCreate·=·nativeCreate;
 50 ····exports.nativeIsArray·=·nativeIsArray;
 51 ····exports.nativeIsView·=·nativeIsView;
 52 ····exports.nativeKeys·=·nativeKeys;
 53 ····exports.nonEnumerableProps·=·nonEnumerableProps;
 54 ····exports.push·=·push;
 55 ····exports.root·=·root;
 56 ····exports.slice·=·slice;
 57 ····exports.supportsArrayBuffer·=·supportsArrayBuffer;
 58 ····exports.supportsDataView·=·supportsDataView;
 59 ····exports.toString·=·toString;
  
27 }));60 }));
2.5 KB
./usr/share/nodejs/underscore/amd/index26.js
2.42 KB
js-beautify {}
    
Offset 1, 42 lines modifiedOffset 1, 14 lines modified
1 define(['exports',·'./index16',·'./index88',·'./index34'],·(function(exports,·_getLength,·isFunction,·allKeys)·{1 define(['exports',·'./index24',·'./index18'],·(function(exports,·_setup,·_hasObjectTag)·{
  
 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 ····//·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for 
3 ····//·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. 
5 ····//·The·fingerprint·method·lists·are·defined·below. 
6 ····function·ie11fingerprint(methods)·{ 
7 ········var·length·=·_getLength(methods); 
8 ········return·function(obj)·{ 
9 ············if·(obj·==·null)·return·false; 
10 ············//·`Map`,·`WeakMap`·and·`Set`·have·no·enumerable·keys. 
11 ············var·keys·=·allKeys(obj); 
12 ············if·(_getLength(keys))·return·false; 
13 ············for·(var·i·=·0;·i·<·length;·i++)·{ 
14 ················if·(!isFunction(obj[methods[i]]))·return·false; 
15 ············} 
16 ············//·If·we·are·testing·against·`WeakMap`,·we·need·to·ensure·that 
17 ············//·`obj`·doesn't·have·a·`forEach`·method·in·order·to·distinguish 
18 ············//·it·from·a·regular·`Map`. 
19 ············return·methods·!==·weakMapMethods·||·!isFunction(obj[forEachName]); 
20 ········};7 ········),
21 ····}8 ········isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));
  
 9 ····exports.hasStringTagBug·=·hasStringTagBug;
 10 ····exports.isIE11·=·isIE11;
22 ····//·In·the·interest·of·compact·minification,·we·write 
23 ····//·each·string·in·the·fingerprints·only·once. 
24 ····var·forEachName·=·'forEach', 
25 ········hasName·=·'has', 
26 ········commonInit·=·['clear',·'delete'], 
27 ········mapTail·=·['get',·hasName,·'set']; 
  
28 ····//·`Map`,·`WeakMap`·and·`Set`·each·have·slightly·different 
29 ····//·combinations·of·the·above·sublists. 
30 ····var·mapMethods·=·commonInit.concat(forEachName,·mapTail), 
31 ········weakMapMethods·=·commonInit.concat(mapTail), 
32 ········setMethods·=·['add'].concat(commonInit,·forEachName,·hasName); 
  
33 ····exports.ie11fingerprint·=·ie11fingerprint; 
34 ····exports.mapMethods·=·mapMethods; 
35 ····exports.setMethods·=·setMethods; 
36 ····exports.weakMapMethods·=·weakMapMethods; 
  
37 }));11 }));
3.15 KB
./usr/share/nodejs/underscore/amd/index27.js
3.07 KB
js-beautify {}
    
Offset 1, 71 lines modifiedOffset 1, 13 lines modified
1 define(['exports'],·(function(exports)·{1 define(['./index24'],·(function(_setup)·{
  
2 ····//·Current·version. 
3 ····var·VERSION·=·'1.13.4';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 ····return·tagTester;
4 ····//·Establish·the·root·object,·`window`·(`self`)·in·the·browser,·`global` 
5 ····//·on·the·server,·or·`this`·in·some·virtual·machines.·We·use·`self` 
6 ····//·instead·of·`window`·for·`WebWorker`·support. 
7 ····var·root·=·(typeof·self·==·'object'·&&·self.self·===·self·&&·self)·|| 
8 ········(typeof·global·==·'object'·&&·global.global·===·global·&&·global)·|| 
9 ········Function('return·this')()·||·{}; 
  
10 ····//·Save·bytes·in·the·minified·(but·not·gzipped)·version: 
11 ····var·ArrayProto·=·Array.prototype, 
12 ········ObjProto·=·Object.prototype; 
13 ····var·SymbolProto·=·typeof·Symbol·!==·'undefined'·?·Symbol.prototype·:·null; 
  
14 ····//·Create·quick·reference·variables·for·speed·access·to·core·prototypes. 
15 ····var·push·=·ArrayProto.push, 
16 ········slice·=·ArrayProto.slice, 
17 ········toString·=·ObjProto.toString, 
18 ········hasOwnProperty·=·ObjProto.hasOwnProperty; 
  
19 ····//·Modern·feature·detection. 
20 ····var·supportsArrayBuffer·=·typeof·ArrayBuffer·!==·'undefined', 
21 ········supportsDataView·=·typeof·DataView·!==·'undefined'; 
  
22 ····//·All·**ECMAScript·5+**·native·function·implementations·that·we·hope·to·use 
23 ····//·are·declared·here. 
24 ····var·nativeIsArray·=·Array.isArray, 
25 ········nativeKeys·=·Object.keys, 
26 ········nativeCreate·=·Object.create, 
27 ········nativeIsView·=·supportsArrayBuffer·&&·ArrayBuffer.isView; 
  
28 ····//·Create·references·to·these·builtin·functions·because·we·override·them. 
29 ····var·_isNaN·=·isNaN, 
30 ········_isFinite·=·isFinite; 
  
31 ····//·Keys·in·IE·<·9·that·won't·be·iterated·by·`for·key·in·...`·and·thus·missed. 
32 ····var·hasEnumBug·=·!{ 
33 ········toString:·null 
34 ····}.propertyIsEnumerable('toString'); 
35 ····var·nonEnumerableProps·=·['valueOf',·'isPrototypeOf',·'toString', 
36 ········'propertyIsEnumerable',·'hasOwnProperty',·'toLocaleString' 
37 ····]; 
  
38 ····//·The·largest·integer·that·can·be·represented·exactly. 
39 ····var·MAX_ARRAY_INDEX·=·Math.pow(2,·53)·-·1; 
  
40 ····exports.ArrayProto·=·ArrayProto; 
41 ····exports.MAX_ARRAY_INDEX·=·MAX_ARRAY_INDEX; 
42 ····exports.ObjProto·=·ObjProto; 
43 ····exports.SymbolProto·=·SymbolProto; 
44 ····exports.VERSION·=·VERSION; 
45 ····exports._isFinite·=·_isFinite; 
46 ····exports._isNaN·=·_isNaN; 
47 ····exports.hasEnumBug·=·hasEnumBug; 
48 ····exports.hasOwnProperty·=·hasOwnProperty; 
49 ····exports.nativeCreate·=·nativeCreate; 
50 ····exports.nativeIsArray·=·nativeIsArray; 
51 ····exports.nativeIsView·=·nativeIsView; 
52 ····exports.nativeKeys·=·nativeKeys; 
53 ····exports.nonEnumerableProps·=·nonEnumerableProps; 
54 ····exports.push·=·push; 
55 ····exports.root·=·root; 
56 ····exports.slice·=·slice; 
57 ····exports.supportsArrayBuffer·=·supportsArrayBuffer; 
58 ····exports.supportsDataView·=·supportsDataView; 
59 ····exports.toString·=·toString; 
  
60 }));10 }));
1.12 KB
./usr/share/nodejs/underscore/amd/index28.js
1.03 KB
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 15 lines modified
1 define(['exports',·'./index27',·'./index19'],·(function(exports,·_setup,·_hasObjectTag)·{1 define(['./index14'],·(function(_getByteLength)·{
  
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·to·wrap·or·shallow-copy·an·ArrayBuffer,
 3 ····//·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer.
 4 ····function·toBufferView(bufferSource)·{
 5 ········return·new·Uint8Array(
 6 ············bufferSource.buffer·||·bufferSource,
 7 ············bufferSource.byteOffset·||·0,
 8 ············_getByteLength(bufferSource)
7 ········),9 ········);
8 ········isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));10 ····}
  
 11 ····return·toBufferView;
9 ····exports.hasStringTagBug·=·hasStringTagBug; 
10 ····exports.isIE11·=·isIE11; 
  
11 }));12 }));
732 B
./usr/share/nodejs/underscore/amd/index29.js
644 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 11 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index159',·'./index84'],·(function(underscore,·toPath$1)·{
  
 2 ····//·Internal·wrapper·for·`_.toPath`·to·enable·minification.
 3 ····//·Similar·to·`cb`·for·`_.iteratee`.
 4 ····function·toPath(path)·{
 5 ········return·underscore.toPath(path);
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 ····}6 ····}
  
9 ····return·tagTester;7 ····return·toPath;
  
10 }));8 }));
2.16 KB
./usr/share/nodejs/underscore/amd/index3.js
2.08 KB
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 44 lines modified
1 define(['./index148',·'./index2',·'./index101'],·(function(underscore,·_baseIteratee,·iteratee)·{1 define(['./index24',·'./index117',·'./index17'],·(function(_setup,·isFunction,·_has)·{
  
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);2 ····//·Internal·helper·to·create·a·simple·lookup·structure.
 3 ····//·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to
 4 ····//·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for
 5 ····//·arrays·of·strings.
 6 ····function·emulatedSet(keys)·{
 7 ········var·hash·=·{};
 8 ········for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true;
 9 ········return·{
 10 ············contains:·function(key)·{
 11 ················return·hash[key]·===·true;
 12 ············},
 13 ············push:·function(key)·{
 14 ················hash[key]·=·true;
 15 ················return·keys.push(key);
 16 ············}
 17 ········};
7 ····}18 ····}
  
8 ····return·cb;19 ····//·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't
 20 ····//·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if
 21 ····//·needed.
 22 ····function·collectNonEnumProps(obj,·keys)·{
 23 ········keys·=·emulatedSet(keys);
 24 ········var·nonEnumIdx·=·_setup.nonEnumerableProps.length;
 25 ········var·constructor·=·obj.constructor;
 26 ········var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto;
  
 27 ········//·Constructor·is·a·special·case.
 28 ········var·prop·=·'constructor';
 29 ········if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop);
  
 30 ········while·(nonEnumIdx--)·{
 31 ············prop·=·_setup.nonEnumerableProps[nonEnumIdx];
 32 ············if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{
 33 ················keys.push(prop);
 34 ············}
 35 ········}
 36 ····}
  
 37 ····return·collectNonEnumProps;
  
9 }));38 }));
404 B
./usr/share/nodejs/underscore/amd/index30.js
316 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index75',·'./index12'],·(function(invert,·_escapeMap)·{1 define(['./index104',·'./index11'],·(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 }));
719 B
./usr/share/nodejs/underscore/amd/index31.js
631 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 14 lines modified
1 define(['./index148',·'./index147'],·(function(underscore,·toPath$1)·{1 define((function()·{
  
2 ····//·Internal·wrapper·for·`_.toPath`·to·enable·minification. 
3 ····//·Similar·to·`cb`·for·`_.iteratee`. 
4 ····function·toPath(path)·{ 
5 ········return·underscore.toPath(path);2 ····//·Returns·a·function·that·will·only·be·executed·on·and·after·the·Nth·call.
 3 ····function·after(times,·func)·{
 4 ········return·function()·{
 5 ············if·(--times·<·1)·{
 6 ················return·func.apply(this,·arguments);
 7 ············}
 8 ········};
6 ····}9 ····}
  
7 ····return·toPath;10 ····return·after;
  
8 }));11 }));
1.0 KB
./usr/share/nodejs/underscore/amd/index32.js
936 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
1 define(['./index18'],·(function(_getByteLength)·{1 define(['./index123',·'./index24',·'./index3'],·(function(isObject,·_setup,·_collectNonEnumProps)·{
  
2 ····//·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer, 
3 ····//·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer. 
4 ····function·toBufferView(bufferSource)·{ 
5 ········return·new·Uint8Array( 
6 ············bufferSource.buffer·||·bufferSource, 
7 ············bufferSource.byteOffset·||·0, 
8 ············_getByteLength(bufferSource) 
9 ········);2 ····//·Retrieve·all·the·enumerable·property·names·of·an·object.
 3 ····function·allKeys(obj)·{
 4 ········if·(!isObject(obj))·return·[];
 5 ········var·keys·=·[];
 6 ········for·(var·key·in·obj)·keys.push(key);
 7 ········//·Ahem,·IE·<·9.
 8 ········if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys);
 9 ········return·keys;
10 ····}10 ····}
  
11 ····return·toBufferView;11 ····return·allKeys;
  
12 }));12 }));
781 B
./usr/share/nodejs/underscore/amd/index33.js
693 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 18 lines modified
1 define((function()·{1 define((function()·{
  
2 ····//·Returns·a·function·that·will·only·be·executed·on·and·after·the·Nth·call.2 ····//·Returns·a·function·that·will·only·be·executed·up·to·(but·not·including)·the
 3 ····//·Nth·call.
3 ····function·after(times,·func)·{4 ····function·before(times,·func)·{
 5 ········var·memo;
4 ········return·function()·{6 ········return·function()·{
5 ············if·(--times·<·1)·{7 ············if·(--times·>·0)·{
6 ················return·func.apply(this,·arguments);8 ················memo·=·func.apply(this,·arguments);
7 ············}9 ············}
 10 ············if·(times·<=·1)·func·=·null;
 11 ············return·memo;
8 ········};12 ········};
9 ····}13 ····}
  
10 ····return·after;14 ····return·before;
  
11 }));15 }));
1.13 KB
./usr/share/nodejs/underscore/amd/index34.js
1.04 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
1 define(['./index94',·'./index27',·'./index4'],·(function(isObject,·_setup,·_collectNonEnumProps)·{1 define(['./index70',·'./index117',·'./index12'],·(function(restArguments,·isFunction,·_executeBound)·{
  
2 ····//·Retrieve·all·the·enumerable·property·names·of·an·object. 
3 ····function·allKeys(obj)·{ 
4 ········if·(!isObject(obj))·return·[]; 
5 ········var·keys·=·[]; 
6 ········for·(var·key·in·obj)·keys.push(key); 
7 ········//·Ahem,·IE·<·9. 
8 ········if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys);2 ····//·Create·a·function·bound·to·a·given·object·(assigning·`this`,·and·arguments,
 3 ····//·optionally).
 4 ····var·bind·=·restArguments(function(func,·context,·args)·{
 5 ········if·(!isFunction(func))·throw·new·TypeError('Bind·must·be·called·on·a·function');
 6 ········var·bound·=·restArguments(function(callArgs)·{
 7 ············return·_executeBound(func,·bound,·context,·this,·args.concat(callArgs));
 8 ········});
9 ········return·keys;9 ········return·bound;
10 ····}10 ····});
  
11 ····return·allKeys;11 ····return·bind;
  
12 }));12 }));
659 B
./usr/share/nodejs/underscore/amd/index35.js
571 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index132',·'./index15',·'./index38'],·(function(restArguments,·_flatten,·bind)·{1 define(['./index70',·'./index13',·'./index34'],·(function(restArguments,·_flatten,·bind)·{
  
2 ····//·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments2 ····//·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·callbacks3 ····//·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks
4 ····//·defined·on·an·object·belong·to·it.4 ····//·defined·on·an·object·belong·to·it.
5 ····var·bindAll·=·restArguments(function(obj,·keys)·{5 ····var·bindAll·=·restArguments(function(obj,·keys)·{
6 ········keys·=·_flatten(keys,·false,·false);6 ········keys·=·_flatten(keys,·false,·false);
7 ········var·index·=·keys.length;7 ········var·index·=·keys.length;
1.0 KB
./usr/share/nodejs/underscore/amd/index36.js
936 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
1 define((function()·{1 define(['./index24'],·(function(_setup)·{
  
 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));
2 ····//·Returns·a·function·that·will·only·be·executed·up·to·(but·not·including)·the 
3 ····//·Nth·call. 
4 ····function·before(times,·func)·{ 
5 ········var·memo; 
6 ········return·function()·{ 
7 ············if·(--times·>·0)·{ 
8 ················memo·=·func.apply(this,·arguments); 
9 ············} 
10 ············if·(times·<=·1)·func·=·null; 
11 ············return·memo; 
12 ········};11 ········}
 12 ········return·result;
13 ····}13 ····}
  
14 ····return·before;14 ····return·chunk;
  
15 }));15 }));
416 B
./usr/share/nodejs/underscore/amd/index37.js
328 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index148'],·(function(underscore)·{1 define(['./index159'],·(function(underscore)·{
  
2 ····//·Start·chaining·a·wrapped·Underscore·object.2 ····//·Start·chaining·a·wrapped·Underscore·object.
3 ····function·chain(obj)·{3 ····function·chain(obj)·{
4 ········var·instance·=·underscore(obj);4 ········var·instance·=·underscore(obj);
5 ········instance._chain·=·true;5 ········instance._chain·=·true;
6 ········return·instance;6 ········return·instance;
7 ····}7 ····}
1020 B
./usr/share/nodejs/underscore/amd/index38.js
928 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 11 lines modified
1 define(['./index132',·'./index88',·'./index13'],·(function(restArguments,·isFunction,·_executeBound)·{1 define(['./index123',·'./index107',·'./index53'],·(function(isObject,·isArray,·extend)·{
  
 2 ····//·Create·a·(shallow-cloned)·duplicate·of·an·object.
 3 ····function·clone(obj)·{
 4 ········if·(!isObject(obj))·return·obj;
 5 ········return·isArray(obj)·?·obj.slice()·:·extend({},·obj);
2 ····//·Create·a·function·bound·to·a·given·object·(assigning·`this`,·and·arguments, 
3 ····//·optionally). 
4 ····var·bind·=·restArguments(function(func,·context,·args)·{ 
5 ········if·(!isFunction(func))·throw·new·TypeError('Bind·must·be·called·on·a·function'); 
6 ········var·bound·=·restArguments(function(callArgs)·{ 
7 ············return·_executeBound(func,·bound,·context,·this,·args.concat(callArgs)); 
8 ········}); 
9 ········return·bound; 
10 ····});6 ····}
  
11 ····return·bind;7 ····return·clone;
  
12 }));8 }));
800 B
./usr/share/nodejs/underscore/amd/index39.js
712 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 10 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index55'],·(function(filter)·{
  
 2 ····//·Trim·out·all·falsy·values·from·an·array.
 3 ····function·compact(array)·{
 4 ········return·filter(array,·Boolean);
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 ····}5 ····}
  
14 ····return·chunk;6 ····return·compact;
  
15 }));7 }));
2.46 KB
./usr/share/nodejs/underscore/amd/index4.js
2.37 KB
js-beautify {}
    
Offset 1, 44 lines modifiedOffset 1, 24 lines modified
1 define(['./index27',·'./index88',·'./index17'],·(function(_setup,·isFunction,·_has)·{1 define((function()·{
  
2 ····//·Internal·helper·to·create·a·simple·lookup·structure. 
3 ····//·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to 
4 ····//·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for 
5 ····//·arrays·of·strings. 
6 ····function·emulatedSet(keys)·{ 
7 ········var·hash·=·{}; 
8 ········for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true; 
9 ········return·{ 
10 ············contains:·function(key)·{ 
11 ················return·hash[key]·===·true;2 ····//·An·internal·function·for·creating·assigner·functions.
 3 ····function·createAssigner(keysFunc,·defaults)·{
 4 ········return·function(obj)·{
 5 ············var·length·=·arguments.length;
 6 ············if·(defaults)·obj·=·Object(obj);
 7 ············if·(length·<·2·||·obj·==·null)·return·obj;
 8 ············for·(var·index·=·1;·index·<·length;·index++)·{
 9 ················var·source·=·arguments[index],
 10 ····················keys·=·keysFunc(source),
 11 ····················l·=·keys.length;
 12 ················for·(var·i·=·0;·i·<·l;·i++)·{
 13 ····················var·key·=·keys[i];
 14 ····················if·(!defaults·||·obj[key]·===·void·0)·obj[key]·=·source[key];
12 ············},15 ················}
13 ············push:·function(key)·{ 
14 ················hash[key]·=·true; 
15 ················return·keys.push(key); 
16 ············}16 ············}
 17 ············return·obj;
17 ········};18 ········};
18 ····}19 ····}
  
 20 ····return·createAssigner;
19 ····//·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't 
20 ····//·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if 
21 ····//·needed. 
22 ····function·collectNonEnumProps(obj,·keys)·{ 
23 ········keys·=·emulatedSet(keys); 
24 ········var·nonEnumIdx·=·_setup.nonEnumerableProps.length; 
25 ········var·constructor·=·obj.constructor; 
26 ········var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto; 
  
27 ········//·Constructor·is·a·special·case. 
28 ········var·prop·=·'constructor'; 
29 ········if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop); 
  
30 ········while·(nonEnumIdx--)·{ 
31 ············prop·=·_setup.nonEnumerableProps[nonEnumIdx]; 
32 ············if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{ 
33 ················keys.push(prop); 
34 ············} 
35 ········} 
36 ····} 
  
37 ····return·collectNonEnumProps; 
  
38 }));21 }));
952 B
./usr/share/nodejs/underscore/amd/index40.js
864 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 18 lines modified
1 define(['./index94',·'./index79',·'./index56'],·(function(isObject,·isArray,·extend)·{1 define((function()·{
  
2 ····//·Create·a·(shallow-cloned)·duplicate·of·an·object.2 ····//·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each
 3 ····//·consuming·the·return·value·of·the·function·that·follows.
3 ····function·clone(obj)·{4 ····function·compose()·{
4 ········if·(!isObject(obj))·return·obj; 
5 ········return·isArray(obj)·?·obj.slice()·:·extend({},·obj);5 ········var·args·=·arguments;
 6 ········var·start·=·args.length·-·1;
 7 ········return·function()·{
 8 ············var·i·=·start;
 9 ············var·result·=·args[start].apply(this,·arguments);
 10 ············while·(i--)·result·=·args[i].call(this,·result);
 11 ············return·result;
 12 ········};
6 ····}13 ····}
  
7 ····return·clone;14 ····return·compose;
  
8 }));15 }));
556 B
./usr/share/nodejs/underscore/amd/index41.js
468 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 12 lines modified
1 define(['./index59'],·(function(filter)·{1 define((function()·{
  
2 ····//·Trim·out·all·falsy·values·from·an·array. 
3 ····function·compact(array)·{ 
4 ········return·filter(array,·Boolean);2 ····//·Predicate-generating·function.·Often·useful·outside·of·Underscore.
 3 ····function·constant(value)·{
 4 ········return·function()·{
 5 ············return·value;
 6 ········};
5 ····}7 ····}
  
6 ····return·compact;8 ····return·constant;
  
7 }));9 }));
790 B
./usr/share/nodejs/underscore/amd/index42.js
702 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 define((function()·{1 define(['./index19',·'./index90',·'./index101'],·(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/index43.js
885 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 13 lines modified
1 define(['./index21',·'./index155',·'./index71'],·(function(_isArrayLike,·values,·indexOf)·{1 define(['./index16',·'./index17'],·(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 }));
976 B
./usr/share/nodejs/underscore/amd/index44.js
888 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 14 lines modified
1 define(['./index20',·'./index17'],·(function(_group,·_has)·{1 define(['./index',·'./index54'],·(function(_baseCreate,·extendOwn)·{
  
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;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);
 8 ········return·result;
8 ····});9 ····}
  
9 ····return·countBy;10 ····return·create;
  
10 }));11 }));
2.01 KB
./usr/share/nodejs/underscore/amd/index45.js
1.93 KB
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 43 lines modified
1 define(['./index',·'./index54'],·(function(_baseCreate,·extendOwn)·{1 define(['./index70',·'./index146'],·(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 }));
859 B
./usr/share/nodejs/underscore/amd/index46.js
771 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 8 lines modified
1 define((function()·{1 define(['./index4',·'./index32'],·(function(_createAssigner,·allKeys)·{
  
 2 ····//·Fill·in·a·given·object·with·default·properties.
 3 ····var·defaults·=·_createAssigner(allKeys,·true);
2 ····//·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each 
3 ····//·consuming·the·return·value·of·the·function·that·follows. 
4 ····function·compose()·{ 
5 ········var·args·=·arguments; 
6 ········var·start·=·args.length·-·1; 
7 ········return·function()·{ 
8 ············var·i·=·start; 
9 ············var·result·=·args[start].apply(this,·arguments); 
10 ············while·(i--)·result·=·args[i].call(this,·result); 
11 ············return·result; 
12 ········}; 
13 ····} 
  
14 ····return·compose;4 ····return·defaults;
  
15 }));5 }));
1.95 KB
./usr/share/nodejs/underscore/amd/index47.js
1.87 KB
js-beautify {}
    
Offset 1, 43 lines modifiedOffset 1, 13 lines modified
1 define(['./index132',·'./index116'],·(function(restArguments,·now)·{1 define(['./index70'],·(function(restArguments)·{
  
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;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 ····});
  
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; 
28 ········}); 
  
29 ········debounced.cancel·=·function()·{ 
30 ············clearTimeout(timeout); 
31 ············timeout·=·args·=·context·=·null; 
32 ········}; 
  
33 ········return·debounced; 
34 ····} 
  
35 ····return·debounce;9 ····return·delay;
  
36 }));10 }));
485 B
./usr/share/nodejs/underscore/amd/index48.js
397 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index122',·'./index49',·'./index148'],·(function(partial,·delay,·underscore)·{1 define(['./index151',·'./index47',·'./index159'],·(function(partial,·delay,·underscore)·{
  
2 ····//·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has2 ····//·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has
3 ····//·cleared.3 ····//·cleared.
4 ····var·defer·=·partial(delay,·underscore,·1);4 ····var·defer·=·partial(delay,·underscore,·1);
  
5 ····return·defer;5 ····return·defer;
  
1000 B
./usr/share/nodejs/underscore/amd/index49.js
916 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 14 lines modified
1 define(['./index132'],·(function(restArguments)·{1 define(['./index70',·'./index13',·'./index55',·'./index42'],·(function(restArguments,·_flatten,·filter,·contains)·{
  
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);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.
 4 ····var·difference·=·restArguments(function(array,·rest)·{
 5 ········rest·=·_flatten(rest,·true,·true);
 6 ········return·filter(array,·function(value)·{
 7 ············return·!contains(rest,·value);
7 ········},·wait);8 ········});
8 ····});9 ····});
  
9 ····return·delay;10 ····return·difference;
  
10 }));11 }));
1.6 KB
./usr/share/nodejs/underscore/amd/index5.js
1.51 KB
js-beautify {}
    
Offset 1, 24 lines modifiedOffset 1, 21 lines modified
1 define((function()·{1 define(['./index134'],·(function(keys)·{
  
2 ····//·An·internal·function·for·creating·assigner·functions. 
3 ····function·createAssigner(keysFunc,·defaults)·{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');
4 ········return·function(obj)·{12 ········return·function(string)·{
 13 ············string·=·string·==·null·?·''·:·''·+·string;
 14 ············return·testRegexp.test(string)·?·string.replace(replaceRegexp,·escaper)·:·string;
5 ············var·length·=·arguments.length; 
6 ············if·(defaults)·obj·=·Object(obj); 
7 ············if·(length·<·2·||·obj·==·null)·return·obj; 
8 ············for·(var·index·=·1;·index·<·length;·index++)·{ 
9 ················var·source·=·arguments[index], 
10 ····················keys·=·keysFunc(source), 
11 ····················l·=·keys.length; 
12 ················for·(var·i·=·0;·i·<·l;·i++)·{ 
13 ····················var·key·=·keys[i]; 
14 ····················if·(!defaults·||·obj[key]·===·void·0)·obj[key]·=·source[key]; 
15 ················} 
16 ············} 
17 ············return·obj; 
18 ········};15 ········};
19 ····}16 ····}
  
20 ····return·createAssigner;17 ····return·createEscaper;
  
21 }));18 }));
637 B
./usr/share/nodejs/underscore/amd/index50.js
549 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index24',·'./index21',·'./index102'],·(function(_optimizeCb,·_isArrayLike,·keys)·{1 define(['./index23',·'./index19',·'./index134'],·(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);
549 B
./usr/share/nodejs/underscore/amd/index51.js
461 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index5',·'./index34'],·(function(_createAssigner,·allKeys)·{1 define(['./index5',·'./index11'],·(function(_createEscaper,·_escapeMap)·{
  
2 ····//·Fill·in·a·given·object·with·default·properties. 
3 ····var·defaults·=·_createAssigner(allKeys,·true);2 ····//·Function·for·escaping·strings·to·HTML·interpolation.
 3 ····var·escape·=·_createEscaper(_escapeMap);
  
4 ····return·defaults;4 ····return·escape;
  
5 }));5 }));
944 B
./usr/share/nodejs/underscore/amd/index52.js
856 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 17 lines modified
1 define(['./index9',·'./index12'],·(function(_createEscaper,·_escapeMap)·{1 define(['./index140',·'./index19',·'./index134'],·(function(_cb,·_isArrayLike,·keys)·{
  
2 ····//·Function·for·escaping·strings·to·HTML·interpolation. 
3 ····var·escape·=·_createEscaper(_escapeMap);2 ····//·Determine·whether·all·of·the·elements·pass·a·truth·test.
 3 ····function·every(obj,·predicate,·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·false;
 10 ········}
 11 ········return·true;
 12 ····}
  
4 ····return·escape;13 ····return·every;
  
5 }));14 }));
867 B
./usr/share/nodejs/underscore/amd/index53.js
779 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 8 lines modified
1 define(['./index132',·'./index15',·'./index59',·'./index43'],·(function(restArguments,·_flatten,·filter,·contains)·{1 define(['./index4',·'./index32'],·(function(_createAssigner,·allKeys)·{
  
 2 ····//·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s).
 3 ····var·extend·=·_createAssigner(allKeys);
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. 
4 ····var·difference·=·restArguments(function(array,·rest)·{ 
5 ········rest·=·_flatten(rest,·true,·true); 
6 ········return·filter(array,·function(value)·{ 
7 ············return·!contains(rest,·value); 
8 ········}); 
9 ····}); 
  
10 ····return·difference;4 ····return·extend;
  
11 }));5 }));
539 B
./usr/share/nodejs/underscore/amd/index54.js
451 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index5',·'./index102'],·(function(_createAssigner,·keys)·{1 define(['./index4',·'./index134'],·(function(_createAssigner,·keys)·{
  
2 ····//·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in2 ····//·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in
3 ····//·object(s).3 ····//·object(s).
4 ····//·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)4 ····//·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
5 ····var·extendOwn·=·_createAssigner(keys);5 ····var·extendOwn·=·_createAssigner(keys);
  
6 ····return·extendOwn;6 ····return·extendOwn;
1.08 KB
./usr/share/nodejs/underscore/amd/index55.js
1020 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 15 lines modified
1 define(['./index3',·'./index21',·'./index102'],·(function(_cb,·_isArrayLike,·keys)·{1 define(['./index140',·'./index50'],·(function(_cb,·each)·{
  
2 ····//·Determine·whether·all·of·the·elements·pass·a·truth·test.2 ····//·Return·all·the·elements·that·pass·a·truth·test.
3 ····function·every(obj,·predicate,·context)·{3 ····function·filter(obj,·predicate,·context)·{
 4 ········var·results·=·[];
4 ········predicate·=·_cb(predicate,·context);5 ········predicate·=·_cb(predicate,·context);
 6 ········each(obj,·function(value,·index,·list)·{
 7 ············if·(predicate(value,·index,·list))·results.push(value);
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·false; 
10 ········}8 ········});
11 ········return·true;9 ········return·results;
12 ····}10 ····}
  
13 ····return·every;11 ····return·filter;
  
14 }));12 }));
573 B
./usr/share/nodejs/underscore/amd/index56.js
485 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index5',·'./index34'],·(function(_createAssigner,·allKeys)·{1 define(['./index7'],·(function(_createPredicateIndexFinder)·{
  
2 ····//·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s). 
3 ····var·extend·=·_createAssigner(allKeys);2 ····//·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test.
 3 ····var·findIndex·=·_createPredicateIndexFinder(1);
  
4 ····return·extend;4 ····return·findIndex;
  
5 }));5 }));
616 B
./usr/share/nodejs/underscore/amd/index57.js
528 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index21',·'./index60',·'./index61'],·(function(_isArrayLike,·findIndex,·findKey)·{1 define(['./index19',·'./index56',·'./index58'],·(function(_isArrayLike,·findIndex,·findKey)·{
  
2 ····//·Return·the·first·value·which·passes·a·truth·test.2 ····//·Return·the·first·value·which·passes·a·truth·test.
3 ····function·find(obj,·predicate,·context)·{3 ····function·find(obj,·predicate,·context)·{
4 ········var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey;4 ········var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey;
5 ········var·key·=·keyFinder(obj,·predicate,·context);5 ········var·key·=·keyFinder(obj,·predicate,·context);
6 ········if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];6 ········if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];
7 ····}7 ····}
837 B
./usr/share/nodejs/underscore/amd/index58.js
749 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 16 lines modified
1 define(['./index8'],·(function(_createPredicateIndexFinder)·{1 define(['./index140',·'./index134'],·(function(_cb,·keys)·{
  
2 ····//·Returns·the·last·index·on·an·array-like·that·passes·a·truth·test.2 ····//·Returns·the·first·key·on·an·object·that·passes·a·truth·test.
3 ····var·findLastIndex·=·_createPredicateIndexFinder(-1);3 ····function·findKey(obj,·predicate,·context)·{
 4 ········predicate·=·_cb(predicate,·context);
 5 ········var·_keys·=·keys(obj),
 6 ············key;
 7 ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{
 8 ············key·=·_keys[i];
 9 ············if·(predicate(obj[key],·key,·obj))·return·key;
 10 ········}
 11 ····}
  
4 ····return·findLastIndex;12 ····return·findKey;
  
5 }));13 }));
786 B
./usr/share/nodejs/underscore/amd/index59.js
698 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 8 lines modified
1 define(['./index3',·'./index50'],·(function(_cb,·each)·{1 define(['./index7'],·(function(_createPredicateIndexFinder)·{
  
 2 ····//·Returns·the·last·index·on·an·array-like·that·passes·a·truth·test.
 3 ····var·findLastIndex·=·_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·findLastIndex;
  
12 }));5 }));
618 B
./usr/share/nodejs/underscore/amd/index6.js
532 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 define(['./index16',·'./index27',·'./index92'],·(function(_getLength,·_setup,·isNaN)·{1 define(['./index15',·'./index24',·'./index121'],·(function(_getLength,·_setup,·isNaN)·{
  
2 ····//·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions.2 ····//·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions.
3 ····function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{3 ····function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{
4 ········return·function(array,·item,·idx)·{4 ········return·function(array,·item,·idx)·{
5 ············var·i·=·0,5 ············var·i·=·0,
6 ················length·=·_getLength(array);6 ················length·=·_getLength(array);
7 ············if·(typeof·idx·==·'number')·{7 ············if·(typeof·idx·==·'number')·{
668 B
./usr/share/nodejs/underscore/amd/index60.js
580 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 11 lines modified
1 define(['./index8'],·(function(_createPredicateIndexFinder)·{1 define(['./index57',·'./index139'],·(function(find,·matcher)·{
  
2 ····//·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test. 
3 ····var·findIndex·=·_createPredicateIndexFinder(1);2 ····//·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first
 3 ····//·object·containing·specific·`key:value`·pairs.
 4 ····function·findWhere(obj,·attrs)·{
 5 ········return·find(obj,·matcher(attrs));
 6 ····}
  
4 ····return·findIndex;7 ····return·findWhere;
  
5 }));8 }));
1.04 KB
./usr/share/nodejs/underscore/amd/index61.js
980 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 13 lines modified
1 define(['./index3',·'./index102'],·(function(_cb,·keys)·{1 define(['./index102'],·(function(initial)·{
  
 2 ····//·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N
 3 ····//·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`.
 4 ····function·first(array,·n,·guard)·{
 5 ········if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[];
 6 ········if·(n·==·null·||·guard)·return·array[0];
 7 ········return·initial(array,·array.length·-·n);
2 ····//·Returns·the·first·key·on·an·object·that·passes·a·truth·test. 
3 ····function·findKey(obj,·predicate,·context)·{ 
4 ········predicate·=·_cb(predicate,·context); 
5 ········var·_keys·=·keys(obj), 
6 ············key; 
7 ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ 
8 ············key·=·_keys[i]; 
9 ············if·(predicate(obj[key],·key,·obj))·return·key; 
10 ········} 
11 ····}8 ····}
  
12 ····return·findKey;9 ····return·first;
  
13 }));10 }));
1.17 KB
./usr/share/nodejs/underscore/amd/index62.js
1.08 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 15 lines modified
1 define(['./index57',·'./index108'],·(function(find,·matcher)·{1 define(['./index98',·'./index117',·'./index123',·'./index107',·'./index139',·'./index155',·'./index23'],·(function(identity,·isFunction,·isObject,·isArray,·matcher,·property,·_optimizeCb)·{
  
2 ····//·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first 
3 ····//·object·containing·specific·`key:value`·pairs. 
4 ····function·findWhere(obj,·attrs)·{ 
5 ········return·find(obj,·matcher(attrs));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);
6 ····}10 ····}
  
7 ····return·findWhere;11 ····return·baseIteratee;
  
8 }));12 }));
922 B
./usr/share/nodejs/underscore/amd/index63.js
834 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 11 lines modified
1 define(['./index73'],·(function(initial)·{1 define(['./index13'],·(function(_flatten)·{
  
 2 ····//·Flatten·out·an·array,·either·recursively·(by·default),·or·up·to·`depth`.
 3 ····//·Passing·`true`·or·`false`·as·`depth`·means·`1`·or·`Infinity`,·respectively.
 4 ····function·flatten(array,·depth)·{
 5 ········return·_flatten(array,·depth,·false);
2 ····//·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N 
3 ····//·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`. 
4 ····function·first(array,·n,·guard)·{ 
5 ········if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; 
6 ········if·(n·==·null·||·guard)·return·array[0]; 
7 ········return·initial(array,·array.length·-·n); 
8 ····}6 ····}
  
9 ····return·first;7 ····return·flatten;
  
10 }));8 }));
801 B
./usr/share/nodejs/underscore/amd/index64.js
713 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 14 lines modified
1 define(['./index15'],·(function(_flatten)·{1 define(['./index117'],·(function(isFunction)·{
  
2 ····//·Flatten·out·an·array,·either·recursively·(by·default),·or·up·to·`depth`. 
3 ····//·Passing·`true`·or·`false`·as·`depth`·means·`1`·or·`Infinity`,·respectively. 
4 ····function·flatten(array,·depth)·{ 
5 ········return·_flatten(array,·depth,·false);2 ····//·Return·a·sorted·list·of·the·function·names·available·on·the·object.
 3 ····function·functions(obj)·{
 4 ········var·names·=·[];
 5 ········for·(var·key·in·obj)·{
 6 ············if·(isFunction(obj[key]))·names.push(key);
 7 ········}
 8 ········return·names.sort();
6 ····}9 ····}
  
7 ····return·flatten;10 ····return·functions;
  
8 }));11 }));
1.16 KB
./usr/share/nodejs/underscore/amd/index65.js
1.08 KB
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 27 lines modified
1 define(['./index88'],·(function(isFunction)·{1 define((function()·{
  
2 ····//·Return·a·sorted·list·of·the·function·names·available·on·the·object. 
3 ····function·functions(obj)·{ 
4 ········var·names·=·[]; 
5 ········for·(var·key·in·obj)·{ 
6 ············if·(isFunction(obj[key]))·names.push(key);2 ····//·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of
 3 ····//·the·native·Python·`range()`·function.·See
 4 ····//·[the·Python·documentation](https://docs.python.org/library/functions.html#range).
 5 ····function·range(start,·stop,·step)·{
 6 ········if·(stop·==·null)·{
 7 ············stop·=·start·||·0;
 8 ············start·=·0;
7 ········}9 ········}
8 ········return·names.sort();10 ········if·(!step)·{
 11 ············step·=·stop·<·start·?·-1·:·1;
 12 ········}
  
 13 ········var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0);
 14 ········var·range·=·Array(length);
  
 15 ········for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{
 16 ············range[idx]·=·start;
 17 ········}
  
 18 ········return·range;
9 ····}19 ····}
  
10 ····return·functions;20 ····return·range;
  
11 }));21 }));
873 B
./usr/share/nodejs/underscore/amd/index66.js
785 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 9 lines modified
1 define(['./index31',·'./index11',·'./index99'],·(function(_toPath,·_deepGet,·isUndefined)·{1 define(['./index9'],·(function(_createReduce)·{
  
 2 ····//·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`,
 3 ····//·or·`foldl`.
 4 ····var·reduce·=·_createReduce(1);
2 ····//·Get·the·value·of·the·(deep)·property·on·`path`·from·`object`. 
3 ····//·If·any·property·in·`path`·does·not·exist·or·if·the·value·is 
4 ····//·`undefined`,·return·`defaultValue`·instead. 
5 ····//·The·`path`·is·normalized·through·`_.toPath`. 
6 ····function·get(object,·path,·defaultValue)·{ 
7 ········var·value·=·_deepGet(object,·_toPath(path)); 
8 ········return·isUndefined(value)·?·defaultValue·:·value; 
9 ····} 
  
10 ····return·get;5 ····return·reduce;
  
11 }));6 }));
721 B
./usr/share/nodejs/underscore/amd/index67.js
633 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 8 lines modified
1 define(['./index20',·'./index17'],·(function(_group,·_has)·{1 define(['./index9'],·(function(_createReduce)·{
  
 2 ····//·The·right-associative·version·of·reduce,·also·known·as·`foldr`.
 3 ····var·reduceRight·=·_createReduce(-1);
2 ····//·Groups·the·object's·values·by·a·criterion.·Pass·either·a·string·attribute 
3 ····//·to·group·by,·or·a·function·that·returns·the·criterion. 
4 ····var·groupBy·=·_group(function(result,·value,·key)·{ 
5 ········if·(_has(result,·key))·result[key].push(value); 
6 ········else·result[key]·=·[value]; 
7 ····}); 
  
8 ····return·groupBy;4 ····return·reduceRight;
  
9 }));5 }));
593 B
./usr/share/nodejs/underscore/amd/index68.js
505 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 define((function()·{1 define(['./index55',·'./index144',·'./index140'],·(function(filter,·negate,·_cb)·{
  
2 ····//·Keep·the·identity·function·around·for·default·iteratees. 
3 ····function·identity(value)·{ 
4 ········return·value;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);
5 ····}5 ····}
  
6 ····return·identity;6 ····return·reject;
  
7 }));7 }));
1.09 KB
./usr/share/nodejs/underscore/amd/index69.js
1.0 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 12 lines modified
1 define(['./index17',·'./index31'],·(function(_has,·_toPath)·{1 define(['./index24'],·(function(_setup)·{
  
 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);
2 ····//·Shortcut·function·for·checking·if·an·object·has·a·given·property·directly·on 
3 ····//·itself·(in·other·words,·not·on·a·prototype).·Unlike·the·internal·`has` 
4 ····//·function,·this·public·version·can·also·traverse·nested·properties. 
5 ····function·has(obj,·path)·{ 
6 ········path·=·_toPath(path); 
7 ········var·length·=·path.length; 
8 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
9 ············var·key·=·path[i]; 
10 ············if·(!_has(obj,·key))·return·false; 
11 ············obj·=·obj[key]; 
12 ········} 
13 ········return·!!length; 
14 ····}7 ····}
  
15 ····return·has;8 ····return·rest;
  
16 }));9 }));
1020 B
./usr/share/nodejs/underscore/amd/index7.js
933 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 18 lines modified
1 define(['./index148'],·(function(underscore)·{1 define(['./index140',·'./index15'],·(function(_cb,·_getLength)·{
  
2 ····//·Helper·function·to·continue·chaining·intermediate·results. 
3 ····function·chainResult(instance,·obj)·{ 
4 ········return·instance._chain·?·underscore(obj).chain()·:·obj;2 ····//·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`.
 3 ····function·createPredicateIndexFinder(dir)·{
 4 ········return·function(array,·predicate,·context)·{
 5 ············predicate·=·_cb(predicate,·context);
 6 ············var·length·=·_getLength(array);
 7 ············var·index·=·dir·>·0·?·0·:·length·-·1;
 8 ············for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{
 9 ················if·(predicate(array[index],·index,·array))·return·index;
 10 ············}
 11 ············return·-1;
 12 ········};
5 ····}13 ····}
  
6 ····return·chainResult;14 ····return·createPredicateIndexFinder;
  
7 }));15 }));
2.46 KB
./usr/share/nodejs/underscore/amd/index70.js
2.37 KB
js-beautify {}
    
Offset 1, 29 lines modifiedOffset 1, 36 lines modified
1 define(['./index72',·'./index113'],·(function(index,·mixin)·{1 define((function()·{
  
2 ····//·Default·Export 
3 ····//·============== 
4 ····//·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export 
5 ····//·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS. 
6 ····//·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package 
7 ····//·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source 
8 ····//·of)·the·module·you·are·interfacing·with·when·you·do·any·of·the·following: 
9 ····// 
10 ····//·```js 
11 ····//·//·CommonJS 
12 ····//·var·_·=·require('underscore'); 
13 ····// 
14 ····//·//·AMD 
15 ····//·define(['underscore'],·function(_)·{...}); 
16 ····// 
17 ····//·//·UMD·in·the·browser 
18 ····//·//·_·is·available·as·a·global·variable 
19 ····//·```2 ····//·Some·functions·take·a·variable·number·of·arguments,·or·a·few·expected
 3 ····//·arguments·at·the·beginning·and·then·a·variable·number·of·values·to·operate
 4 ····//·on.·This·helper·accumulates·all·remaining·arguments·past·the·function’s
 5 ····//·argument·length·(or·an·explicit·`startIndex`),·into·an·array·that·becomes
 6 ····//·the·last·argument.·Similar·to·ES6’s·"rest·parameter".
 7 ····function·restArguments(func,·startIndex)·{
 8 ········startIndex·=·startIndex·==·null·?·func.length·-·1·:·+startIndex;
 9 ········return·function()·{
 10 ············var·length·=·Math.max(arguments.length·-·startIndex,·0),
 11 ················rest·=·Array(length),
 12 ················index·=·0;
 13 ············for·(;·index·<·length;·index++)·{
 14 ················rest[index]·=·arguments[index·+·startIndex];
 15 ············}
 16 ············switch·(startIndex)·{
 17 ················case·0:
 18 ····················return·func.call(this,·rest);
 19 ················case·1:
 20 ····················return·func.call(this,·arguments[0],·rest);
 21 ················case·2:
 22 ····················return·func.call(this,·arguments[0],·arguments[1],·rest);
 23 ············}
 24 ············var·args·=·Array(startIndex·+·1);
 25 ············for·(index·=·0;·index·<·startIndex;·index++)·{
 26 ················args[index]·=·arguments[index];
 27 ············}
 28 ············args[startIndex]·=·rest;
 29 ············return·func.apply(this,·args);
 30 ········};
 31 ····}
  
 32 ····return·restArguments;
20 ····//·Add·all·of·the·Underscore·functions·to·the·wrapper·object. 
21 ····var·_·=·mixin(index); 
22 ····//·Legacy·Node.js·API. 
23 ····_._·=·_; 
  
24 ····return·_; 
  
25 }));33 }));
1.44 KB
./usr/share/nodejs/underscore/amd/index71.js
1.35 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 25 lines modified
1 define(['./index139',·'./index60',·'./index6'],·(function(sortedIndex,·findIndex,·_createIndexFinder)·{1 define(['./index117',·'./index29'],·(function(isFunction,·_toPath)·{
  
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. 
4 ····//·If·the·array·is·large·and·already·in·sort·order,·pass·`true` 
5 ····//·for·**isSorted**·to·use·binary·search. 
6 ····var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);2 ····//·Traverses·the·children·of·`obj`·along·`path`.·If·a·child·is·a·function,·it
 3 ····//·is·invoked·with·its·parent·as·context.·Returns·the·value·of·the·final
 4 ····//·child,·or·`fallback`·if·any·child·is·undefined.
 5 ····function·result(obj,·path,·fallback)·{
 6 ········path·=·_toPath(path);
 7 ········var·length·=·path.length;
 8 ········if·(!length)·{
 9 ············return·isFunction(fallback)·?·fallback.call(obj)·:·fallback;
 10 ········}
 11 ········for·(var·i·=·0;·i·<·length;·i++)·{
 12 ············var·prop·=·obj·==·null·?·void·0·:·obj[path[i]];
 13 ············if·(prop·===·void·0)·{
 14 ················prop·=·fallback;
 15 ················i·=·length;·//·Ensure·we·don't·continue·iterating.
 16 ············}
 17 ············obj·=·isFunction(prop)·?·prop.call(obj)·:·prop;
 18 ········}
 19 ········return·obj;
 20 ····}
  
7 ····return·indexOf;21 ····return·result;
  
8 }));22 }));
8.62 KB
./usr/share/nodejs/underscore/amd/index72.js
8.53 KB
js-beautify {}
    
Offset 1, 157 lines modifiedOffset 1, 27 lines modified
1 define(['exports',·'./index27',·'./index132',·'./index94',·'./index91',·'./index99',·'./index81',·'./index85',·'./index97',·'./index93',·'./index83',·'./index96',·'./index86',·'./index98',·'./index80',·'./index82',·'./index79',·'./index88',·'./index78',·'./index87'[·...·truncated·by·diffoscope;·len:·2619,·SHA:·d2a98016a61a84ade44ba6704b9397fc890bde77290e6d3f1d0e834f75a094d3·...·])·{1 define(['./index19',·'./index90',·'./index15',·'./index157',·'./index83'],·(function(_isArrayLike,·values,·_getLength,·random,·toArray)·{
  
2 ····//·Named·Exports 
3 ····//·=============2 ····//·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).
 4 ····//·If·**n**·is·not·specified,·returns·a·single·random·element.
 5 ····//·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`.
 6 ····function·sample(obj,·n,·guard)·{
 7 ········if·(n·==·null·||·guard)·{
 8 ············if·(!_isArrayLike(obj))·obj·=·values(obj);
 9 ············return·obj[random(obj.length·-·1)];
 10 ········}
 11 ········var·sample·=·toArray(obj);
 12 ········var·length·=·_getLength(sample);
 13 ········n·=·Math.max(Math.min(n,·length),·0);
 14 ········var·last·=·length·-·1;
 15 ········for·(var·index·=·0;·index·<·n;·index++)·{
 16 ············var·rand·=·random(index,·last);
 17 ············var·temp·=·sample[index];
 18 ············sample[index]·=·sample[rand];
 19 ············sample[rand]·=·temp;
 20 ········}
 21 ········return·sample.slice(0,·n);
 22 ····}
  
 23 ····return·sample;
4 ····exports.VERSION·=·_setup.VERSION; 
5 ····exports.restArguments·=·restArguments; 
6 ····exports.isObject·=·isObject; 
7 ····exports.isNull·=·isNull; 
8 ····exports.isUndefined·=·isUndefined; 
9 ····exports.isBoolean·=·isBoolean; 
10 ····exports.isElement·=·isElement; 
11 ····exports.isString·=·isString; 
12 ····exports.isNumber·=·isNumber; 
13 ····exports.isDate·=·isDate; 
14 ····exports.isRegExp·=·isRegExp; 
15 ····exports.isError·=·isError; 
16 ····exports.isSymbol·=·isSymbol; 
17 ····exports.isArrayBuffer·=·isArrayBuffer; 
18 ····exports.isDataView·=·isDataView; 
19 ····exports.isArray·=·isArray; 
20 ····exports.isFunction·=·isFunction; 
21 ····exports.isArguments·=·isArguments; 
22 ····exports.isFinite·=·isFinite; 
23 ····exports.isNaN·=·isNaN; 
24 ····exports.isTypedArray·=·isTypedArray; 
25 ····exports.isEmpty·=·isEmpty; 
26 ····exports.isMatch·=·isMatch; 
27 ····exports.isEqual·=·isEqual; 
28 ····exports.isMap·=·isMap; 
29 ····exports.isWeakMap·=·isWeakMap; 
30 ····exports.isSet·=·isSet; 
31 ····exports.isWeakSet·=·isWeakSet; 
32 ····exports.keys·=·keys; 
33 ····exports.allKeys·=·allKeys; 
34 ····exports.values·=·values; 
35 ····exports.pairs·=·pairs; 
36 ····exports.invert·=·invert; 
37 ····exports.functions·=·functions; 
38 ····exports.methods·=·functions; 
39 ····exports.extend·=·extend; 
40 ····exports.assign·=·extendOwn; 
41 ····exports.extendOwn·=·extendOwn; 
42 ····exports.defaults·=·defaults; 
43 ····exports.create·=·create; 
44 ····exports.clone·=·clone; 
45 ····exports.tap·=·tap; 
46 ····exports.get·=·get; 
47 ····exports.has·=·has; 
48 ····exports.mapObject·=·mapObject; 
49 ····exports.identity·=·identity; 
50 ····exports.constant·=·constant; 
51 ····exports.noop·=·noop; 
52 ····exports.toPath·=·toPath; 
53 ····exports.property·=·property; 
54 ····exports.propertyOf·=·propertyOf; 
55 ····exports.matcher·=·matcher; 
56 ····exports.matches·=·matcher; 
57 ····exports.times·=·times; 
58 ····exports.random·=·random; 
59 ····exports.now·=·now; 
60 ····exports.escape·=·escape; 
61 ····exports.unescape·=·unescape; 
62 ····exports.templateSettings·=·templateSettings; 
63 ····exports.template·=·template; 
64 ····exports.result·=·result; 
65 ····exports.uniqueId·=·uniqueId; 
66 ····exports.chain·=·chain; 
67 ····exports.iteratee·=·iteratee; 
68 ····exports.partial·=·partial; 
69 ····exports.bind·=·bind; 
70 ····exports.bindAll·=·bindAll; 
71 ····exports.memoize·=·memoize; 
72 ····exports.delay·=·delay; 
73 ····exports.defer·=·defer; 
74 ····exports.throttle·=·throttle; 
75 ····exports.debounce·=·debounce; 
76 ····exports.wrap·=·wrap; 
77 ····exports.negate·=·negate; 
78 ····exports.compose·=·compose; 
79 ····exports.after·=·after; 
80 ····exports.before·=·before; 
81 ····exports.once·=·once; 
82 ····exports.findKey·=·findKey; 
83 ····exports.findIndex·=·findIndex; 
84 ····exports.findLastIndex·=·findLastIndex; 
85 ····exports.sortedIndex·=·sortedIndex; 
86 ····exports.indexOf·=·indexOf; 
87 ····exports.lastIndexOf·=·lastIndexOf; 
88 ····exports.detect·=·find; 
89 ····exports.find·=·find; 
90 ····exports.findWhere·=·findWhere; 
91 ····exports.each·=·each; 
92 ····exports.forEach·=·each; 
93 ····exports.collect·=·map; 
94 ····exports.map·=·map; 
95 ····exports.foldl·=·reduce; 
96 ····exports.inject·=·reduce; 
97 ····exports.reduce·=·reduce; 
98 ····exports.foldr·=·reduceRight; 
99 ····exports.reduceRight·=·reduceRight; 
100 ····exports.filter·=·filter; 
101 ····exports.select·=·filter; 
102 ····exports.reject·=·reject; 
103 ····exports.all·=·every; 
104 ····exports.every·=·every; 
Max diff block lines reached; 6/8709 bytes (0.07%) of diff not shown.
719 B
./usr/share/nodejs/underscore/amd/index73.js
631 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 10 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index72'],·(function(sample)·{
  
 2 ····//·Shuffle·a·collection.
 3 ····function·shuffle(obj)·{
 4 ········return·sample(obj,·Infinity);
2 ····//·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on 
3 ····//·the·arguments·object.·Passing·**n**·will·return·all·the·values·in 
4 ····//·the·array,·excluding·the·last·N. 
5 ····function·initial(array,·n,·guard)·{ 
6 ········return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·n))); 
7 ····}5 ····}
  
8 ····return·initial;6 ····return·shuffle;
  
9 }));7 }));
729 B
./usr/share/nodejs/underscore/amd/index74.js
641 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 define(['./index20'],·(function(_group)·{1 define(['./index19',·'./index134'],·(function(_isArrayLike,·keys)·{
  
2 ····//·Indexes·the·object's·values·by·a·criterion,·similar·to·`_.groupBy`,·but·for 
3 ····//·when·you·know·that·your·index·values·will·be·unique. 
4 ····var·indexBy·=·_group(function(result,·value,·key)·{ 
5 ········result[key]·=·value;2 ····//·Return·the·number·of·elements·in·a·collection.
 3 ····function·size(obj)·{
 4 ········if·(obj·==·null)·return·0;
 5 ········return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;
6 ····});6 ····}
  
7 ····return·indexBy;7 ····return·size;
  
8 }));8 }));
1.09 KB
./usr/share/nodejs/underscore/amd/index75.js
1.01 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 17 lines modified
1 define(['./index102'],·(function(keys)·{1 define(['./index140',·'./index19',·'./index134'],·(function(_cb,·_isArrayLike,·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 ····//·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.
 3 ····function·some(obj,·predicate,·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;
8 ········}10 ········}
9 ········return·result;11 ········return·false;
10 ····}12 ····}
  
11 ····return·invert;13 ····return·some;
  
12 }));14 }));
1.63 KB
./usr/share/nodejs/underscore/amd/index76.js
1.54 KB
js-beautify {}
    
Offset 1, 22 lines modifiedOffset 1, 26 lines modified
1 define(['./index16',·'./index43'],·(function(_getLength,·contains)·{1 define(['./index140',·'./index154',·'./index137'],·(function(_cb,·pluck,·map)·{
  
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;2 ····//·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.
 3 ····function·sortBy(obj,·iteratee,·context)·{
 4 ········var·index·=·0;
 5 ········iteratee·=·_cb(iteratee,·context);
 6 ········return·pluck(map(obj,·function(value,·key,·list)·{
 7 ············return·{
 8 ················value:·value,
 9 ················index:·index++,
 10 ················criteria:·iteratee(value,·key,·list)
10 ············var·j;11 ············};
11 ············for·(j·=·1;·j·<·argsLength;·j++)·{ 
12 ················if·(!contains(arguments[j],·item))·break;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;
13 ············}18 ············}
 19 ············return·left.index·-·right.index;
 20 ········}),·'value');
14 ············if·(j·===·argsLength)·result.push(item); 
15 ········} 
16 ········return·result; 
17 ····}21 ····}
  
18 ····return·intersection;22 ····return·sortBy;
  
19 }));23 }));
1.75 KB
./usr/share/nodejs/underscore/amd/index77.js
1.66 KB
js-beautify {}
    
Offset 1, 28 lines modifiedOffset 1, 20 lines modified
1 define(['./index132',·'./index88',·'./index104',·'./index11',·'./index31'],·(function(restArguments,·isFunction,·map,·_deepGet,·_toPath)·{1 define(['./index140',·'./index15'],·(function(_cb,·_getLength)·{
  
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 ····//·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.
 4 ····function·sortedIndex(array,·obj,·iteratee,·context)·{
 5 ········iteratee·=·_cb(iteratee,·context,·1);
 6 ········var·value·=·iteratee(obj);
 7 ········var·low·=·0,
 8 ············high·=·_getLength(array);
 9 ········while·(low·<·high)·{
 10 ············var·mid·=·Math.floor((low·+·high)·/·2);
 11 ············if·(iteratee(array[mid])·<·value)·low·=·mid·+·1;
 12 ············else·high·=·mid;
11 ········}13 ········}
 14 ········return·low;
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 ········}); 
23 ····});15 ····}
  
24 ····return·invoke;16 ····return·sortedIndex;
  
25 }));17 }));
1010 B
./usr/share/nodejs/underscore/amd/index78.js
920 B
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 13 lines modified
1 define(['./index29',·'./index17'],·(function(_tagTester,·_has)·{1 define((function()·{
  
2 ····var·isArguments·=·_tagTester('Arguments');2 ····//·Invokes·`interceptor`·with·the·`obj`·and·then·returns·`obj`.
 3 ····//·The·primary·purpose·of·this·method·is·to·"tap·into"·a·method·chain,·in
 4 ····//·order·to·perform·operations·on·intermediate·results·within·the·chain.
 5 ····function·tap(obj,·interceptor)·{
 6 ········interceptor(obj);
 7 ········return·obj;
 8 ····}
  
 9 ····return·tap;
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 ········} 
11 ····}()); 
  
12 ····var·isArguments$1·=·isArguments; 
  
13 ····return·isArguments$1; 
  
14 }));10 }));
4.2 KB
./usr/share/nodejs/underscore/amd/index79.js
4.11 KB
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 103 lines modified
1 define(['./index27',·'./index29'],·(function(_setup,·_tagTester)·{1 define(['./index46',·'./index159',·'./index80'],·(function(defaults,·underscore,·templateSettings)·{
  
2 ····//·Is·a·given·value·an·array? 
3 ····//·Delegates·to·ECMA5's·native·`Array.isArray`. 
4 ····var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');2 ····//·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an
 3 ····//·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is
 4 ····//·guaranteed·not·to·match.
 5 ····var·noMatch·=·/(.)^/;
  
5 ····return·isArray;6 ····//·Certain·characters·need·to·be·escaped·so·that·they·can·be·put·into·a
 7 ····//·string·literal.
 8 ····var·escapes·=·{
 9 ········"'":·"'",
 10 ········'\\':·'\\',
 11 ········'\r':·'r',
 12 ········'\n':·'n',
 13 ········'\u2028':·'u2028',
 14 ········'\u2029':·'u2029'
 15 ····};
  
 16 ····var·escapeRegExp·=·/\\|'|\r|\n|\u2028|\u2029/g;
  
 17 ····function·escapeChar(match)·{
 18 ········return·'\\'·+·escapes[match];
 19 ····}
  
 20 ····//·In·order·to·prevent·third-party·code·injection·through
 21 ····//·`_.templateSettings.variable`,·we·test·it·against·the·following·regular
 22 ····//·expression.·It·is·intentionally·a·bit·more·liberal·than·just·matching·valid
 23 ····//·identifiers,·but·still·prevents·possible·loopholes·through·defaults·or
 24 ····//·destructuring·assignment.
 25 ····var·bareIdentifier·=·/^\s*(\w|\$)+\s*$/;
  
 26 ····//·JavaScript·micro-templating,·similar·to·John·Resig's·implementation.
 27 ····//·Underscore·templating·handles·arbitrary·delimiters,·preserves·whitespace,
 28 ····//·and·correctly·escapes·quotes·within·interpolated·code.
 29 ····//·NB:·`oldSettings`·only·exists·for·backwards·compatibility.
 30 ····function·template(text,·settings,·oldSettings)·{
 31 ········if·(!settings·&&·oldSettings)·settings·=·oldSettings;
 32 ········settings·=·defaults({},·settings,·underscore.templateSettings);
  
 33 ········//·Combine·delimiters·into·one·regular·expression·via·alternation.
 34 ········var·matcher·=·RegExp([
 35 ············(settings.escape·||·noMatch).source,
 36 ············(settings.interpolate·||·noMatch).source,
 37 ············(settings.evaluate·||·noMatch).source
 38 ········].join('|')·+·'|$',·'g');
  
 39 ········//·Compile·the·template·source,·escaping·string·literals·appropriately.
 40 ········var·index·=·0;
 41 ········var·source·=·"__p+='";
 42 ········text.replace(matcher,·function(match,·escape,·interpolate,·evaluate,·offset)·{
 43 ············source·+=·text.slice(index,·offset).replace(escapeRegExp,·escapeChar);
 44 ············index·=·offset·+·match.length;
  
 45 ············if·(escape)·{
 46 ················source·+=·"'+\n((__t=("·+·escape·+·"))==null?'':_.escape(__t))+\n'";
 47 ············}·else·if·(interpolate)·{
 48 ················source·+=·"'+\n((__t=("·+·interpolate·+·"))==null?'':__t)+\n'";
 49 ············}·else·if·(evaluate)·{
 50 ················source·+=·"';\n"·+·evaluate·+·"\n__p+='";
 51 ············}
  
 52 ············//·Adobe·VMs·need·the·match·returned·to·produce·the·correct·offset.
 53 ············return·match;
 54 ········});
 55 ········source·+=·"';\n";
  
 56 ········var·argument·=·settings.variable;
 57 ········if·(argument)·{
 58 ············//·Insure·against·third-party·code·injection.·(CVE-2021-23358)
 59 ············if·(!bareIdentifier.test(argument))·throw·new·Error(
 60 ················'variable·is·not·a·bare·identifier:·'·+·argument
 61 ············);
 62 ········}·else·{
 63 ············//·If·a·variable·is·not·specified,·place·data·values·in·local·scope.
 64 ············source·=·'with(obj||{}){\n'·+·source·+·'}\n';
 65 ············argument·=·'obj';
 66 ········}
  
 67 ········source·=·"var·__t,__p='',__j=Array.prototype.join,"·+
 68 ············"print=function(){__p+=__j.call(arguments,'');};\n"·+
 69 ············source·+·'return·__p;\n';
  
 70 ········var·render;
 71 ········try·{
 72 ············render·=·new·Function(argument,·'_',·source);
 73 ········}·catch·(e)·{
 74 ············e.source·=·source;
 75 ············throw·e;
 76 ········}
  
 77 ········var·template·=·function(data)·{
 78 ············return·render.call(this,·data,·underscore);
 79 ········};
  
 80 ········//·Provide·the·compiled·source·as·a·convenience·for·precompilation.
 81 ········template.source·=·'function('·+·argument·+·'){\n'·+·source·+·'}';
  
 82 ········return·template;
 83 ····}
  
 84 ····return·template;
  
6 }));85 }));
1.17 KB
./usr/share/nodejs/underscore/amd/index8.js
1.09 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 13 lines modified
1 define(['./index3',·'./index16'],·(function(_cb,·_getLength)·{1 define(['./index24'],·(function(_setup)·{
  
 2 ····//·Common·internal·logic·for·`isArrayLike`·and·`isBufferLike`.
 3 ····function·createSizePropertyCheck(getSizeProperty)·{
 4 ········return·function(collection)·{
 5 ············var·sizeProperty·=·getSizeProperty(collection);
 6 ············return·typeof·sizeProperty·==·'number'·&&·sizeProperty·>=·0·&&·sizeProperty·<=·_setup.MAX_ARRAY_INDEX;
2 ····//·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`. 
3 ····function·createPredicateIndexFinder(dir)·{ 
4 ········return·function(array,·predicate,·context)·{ 
5 ············predicate·=·_cb(predicate,·context); 
6 ············var·length·=·_getLength(array); 
7 ············var·index·=·dir·>·0·?·0·:·length·-·1; 
8 ············for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{ 
9 ················if·(predicate(array[index],·index,·array))·return·index; 
10 ············} 
11 ············return·-1; 
12 ········};7 ········}
13 ····}8 ····}
  
14 ····return·createPredicateIndexFinder;9 ····return·createSizePropertyCheck;
  
15 }));10 }));
678 B
./usr/share/nodejs/underscore/amd/index80.js
590 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 13 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index159'],·(function(underscore)·{
  
2 ····var·isArrayBuffer·=·_tagTester('ArrayBuffer');2 ····//·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the
 3 ····//·following·template·settings·to·use·alternative·delimiters.
 4 ····var·templateSettings·=·underscore.templateSettings·=·{
 5 ········evaluate:·/<%([\s\S]+?)%>/g,
 6 ········interpolate:·/<%=([\s\S]+?)%>/g,
 7 ········escape:·/<%-([\s\S]+?)%>/g
 8 ····};
  
3 ····return·isArrayBuffer;9 ····return·templateSettings;
  
4 }));10 }));
2.15 KB
./usr/share/nodejs/underscore/amd/index81.js
2.07 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 51 lines modified
1 define(['./index27'],·(function(_setup)·{1 define(['./index146'],·(function(now)·{
  
2 ····//·Is·a·given·value·a·boolean? 
3 ····function·isBoolean(obj)·{ 
4 ········return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]';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;
5 ····}42 ····}
  
6 ····return·isBoolean;43 ····return·throttle;
  
7 }));44 }));
1010 B
./usr/share/nodejs/underscore/amd/index82.js
921 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 13 lines modified
1 define(['./index29',·'./index88',·'./index80',·'./index28'],·(function(_tagTester,·isFunction,·isArrayBuffer,·_stringTagBug)·{1 define(['./index23'],·(function(_optimizeCb)·{
  
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);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;
7 ····}8 ····}
  
 9 ····return·times;
8 ····var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView); 
  
9 ····return·isDataView$1; 
  
10 }));10 }));
963 B
./usr/share/nodejs/underscore/amd/index83.js
875 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 19 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index107',·'./index24',·'./index127',·'./index19',·'./index137',·'./index98',·'./index90'],·(function(isArray,·_setup,·isString,·_isArrayLike,·map,·identity,·values)·{
  
2 ····var·isDate·=·_tagTester('Date');2 ····//·Safely·create·a·real,·live·array·from·anything·iterable.
 3 ····var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
  
3 ····return·isDate;4 ····function·toArray(obj)·{
 5 ········if·(!obj)·return·[];
 6 ········if·(isArray(obj))·return·_setup.slice.call(obj);
 7 ········if·(isString(obj))·{
 8 ············//·Keep·surrogate·pair·characters·together.
 9 ············return·obj.match(reStrSymbol);
 10 ········}
 11 ········if·(_isArrayLike(obj))·return·map(obj,·identity);
 12 ········return·values(obj);
 13 ····}
  
 14 ····return·toArray;
  
4 }));15 }));
6.67 KB
./usr/share/nodejs/underscore/amd/index84.js
6.59 KB
js-beautify {}
    
Offset 1, 135 lines modifiedOffset 1, 12 lines modified
1 define(['./index148',·'./index27',·'./index18',·'./index100',·'./index88',·'./index28',·'./index82',·'./index102',·'./index17',·'./index32'],·(function(underscore,·_setup,·_getByteLength,·isTypedArray,·isFunction,·_stringTagBug,·isDataView,·keys,·_has,·_toBufferView)·{1 define(['./index159',·'./index107'],·(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 ····//·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(); 
Max diff block lines reached; 84/6716 bytes (1.25%) of diff not shown.
1.39 KB
./usr/share/nodejs/underscore/amd/index85.js
1.31 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 30 lines modified
1 define((function()·{1 define(['./index159',·'./index50',·'./index24',·'./index2'],·(function(underscore,·each,·_setup,·_chainResult)·{
  
2 ····//·Is·a·given·value·a·DOM·element? 
3 ····function·isElement(obj)·{ 
4 ········return·!!(obj·&&·obj.nodeType·===·1);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 ········};
5 ····}15 ····});
  
6 ····return·isElement;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;
  
7 }));26 }));
589 B
./usr/share/nodejs/underscore/amd/index86.js
501 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 11 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index70',·'./index87',·'./index13'],·(function(restArguments,·uniq,·_flatten)·{
  
2 ····var·isError·=·_tagTester('Error');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));
 6 ····});
  
3 ····return·isError;7 ····return·union;
  
4 }));8 }));
1.79 KB
./usr/share/nodejs/underscore/amd/index87.js
1.7 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 37 lines modified
1 define(['./index27',·'./index98'],·(function(_setup,·isSymbol)·{1 define(['./index109',·'./index140',·'./index15',·'./index42'],·(function(isBoolean,·_cb,·_getLength,·contains)·{
  
2 ····//·Is·a·given·object·a·finite·number? 
3 ····function·isFinite(obj)·{ 
4 ········return·!isSymbol(obj)·&&·_setup._isFinite(obj)·&&·!isNaN(parseFloat(obj));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;
5 ····}32 ····}
  
6 ····return·isFinite;33 ····return·uniq;
  
7 }));34 }));
1.04 KB
./usr/share/nodejs/underscore/amd/index88.js
979 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 14 lines modified
1 define(['./index29',·'./index27'],·(function(_tagTester,·_setup)·{1 define((function()·{
  
2 ····var·isFunction·=·_tagTester('Function');2 ····//·Generate·a·unique·integer·id·(unique·within·the·entire·client·session).
 3 ····//·Useful·for·temporary·DOM·ids.
 4 ····var·idCounter·=·0;
  
 5 ····function·uniqueId(prefix)·{
 6 ········var·id·=·++idCounter·+·'';
 7 ········return·prefix·?·prefix·+·id·:·id;
3 ····//·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old 
4 ····//·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236). 
5 ····var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes; 
6 ····if·(typeof·/./·!=·'function'·&&·typeof·Int8Array·!=·'object'·&&·typeof·nodelist·!=·'function')·{ 
7 ········isFunction·=·function(obj)·{ 
8 ············return·typeof·obj·==·'function'·||·false; 
9 ········}; 
10 ····}8 ····}
  
 9 ····return·uniqueId;
11 ····var·isFunction$1·=·isFunction; 
  
12 ····return·isFunction$1; 
  
13 }));10 }));
910 B
./usr/share/nodejs/underscore/amd/index89.js
822 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 17 lines modified
1 define(['./index29',·'./index28',·'./index26'],·(function(_tagTester,·_stringTagBug,·_methodFingerprint)·{1 define(['./index160',·'./index15',·'./index154'],·(function(max,·_getLength,·pluck)·{
  
2 ····var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');2 ····//·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups
 3 ····//·each·array's·elements·on·shared·indices.
 4 ····function·unzip(array)·{
 5 ········var·length·=·(array·&&·max(array,·_getLength).length)·||·0;
 6 ········var·result·=·Array(length);
  
 7 ········for·(var·index·=·0;·index·<·length;·index++)·{
 8 ············result[index]·=·pluck(array,·index);
 9 ········}
 10 ········return·result;
 11 ····}
  
3 ····return·isMap;12 ····return·unzip;
  
4 }));13 }));
2.02 KB
./usr/share/nodejs/underscore/amd/index9.js
1.94 KB
js-beautify {}
    
Offset 1, 21 lines modifiedOffset 1, 30 lines modified
1 define(['./index102'],·(function(keys)·{1 define(['./index19',·'./index134',·'./index23'],·(function(_isArrayLike,·keys,·_optimizeCb)·{
  
 2 ····//·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right.
2 ····//·Internal·helper·to·generate·functions·for·escaping·and·unescaping·strings 
3 ····//·to/from·HTML·interpolation. 
4 ····function·createEscaper(map)·{3 ····function·createReduce(dir)·{
5 ········var·escaper·=·function(match)·{4 ········//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than
 5 ········//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991)
 6 ········var·reducer·=·function(obj,·iteratee,·memo,·initial)·{
 7 ············var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
 8 ················length·=·(_keys·||·obj).length,
 9 ················index·=·dir·>·0·?·0·:·length·-·1;
 10 ············if·(!initial)·{
 11 ················memo·=·obj[_keys·?·_keys[index]·:·index];
 12 ················index·+=·dir;
 13 ············}
 14 ············for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{
 15 ················var·currentKey·=·_keys·?·_keys[index]·:·index;
 16 ················memo·=·iteratee(memo,·obj[currentKey],·currentKey,·obj);
 17 ············}
6 ············return·map[match];18 ············return·memo;
7 ········};19 ········};
  
 20 ········return·function(obj,·iteratee,·memo,·context)·{
 21 ············var·initial·=·arguments.length·>=·3;
 22 ············return·reducer(obj,·_optimizeCb(iteratee,·context,·4),·memo,·initial);
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; 
15 ········};23 ········};
16 ····}24 ····}
  
17 ····return·createEscaper;25 ····return·createReduce;
  
18 }));26 }));
974 B
./usr/share/nodejs/underscore/amd/index90.js
886 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 16 lines modified
1 define(['./index102'],·(function(keys)·{1 define(['./index134'],·(function(keys)·{
  
2 ····//·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs. 
3 ····function·isMatch(object,·attrs)·{2 ····//·Retrieve·the·values·of·an·object's·properties.
 3 ····function·values(obj)·{
4 ········var·_keys·=·keys(attrs),4 ········var·_keys·=·keys(obj);
5 ············length·=·_keys.length;5 ········var·length·=·_keys.length;
 6 ········var·values·=·Array(length);
6 ········if·(object·==·null)·return·!length; 
7 ········var·obj·=·Object(object); 
8 ········for·(var·i·=·0;·i·<·length;·i++)·{7 ········for·(var·i·=·0;·i·<·length;·i++)·{
9 ············var·key·=·_keys[i];8 ············values[i]·=·obj[_keys[i]];
10 ············if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false; 
11 ········}9 ········}
12 ········return·true;10 ········return·values;
13 ····}11 ····}
  
14 ····return·isMatch;12 ····return·values;
  
15 }));13 }));
591 B
./usr/share/nodejs/underscore/amd/index91.js
503 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 11 lines modified
1 define((function()·{1 define(['./index55',·'./index139'],·(function(filter,·matcher)·{
  
2 ····//·Is·a·given·value·equal·to·null? 
3 ····function·isNull(obj)·{ 
4 ········return·obj·===·null;2 ····//·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only
 3 ····//·objects·containing·specific·`key:value`·pairs.
 4 ····function·where(obj,·attrs)·{
 5 ········return·filter(obj,·matcher(attrs));
5 ····}6 ····}
  
6 ····return·isNull;7 ····return·where;
  
7 }));8 }));
653 B
./usr/share/nodejs/underscore/amd/index92.js
565 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 define(['./index27',·'./index93'],·(function(_setup,·isNumber)·{1 define(['./index70',·'./index49'],·(function(restArguments,·difference)·{
  
2 ····//·Is·the·given·value·`NaN`? 
3 ····function·isNaN(obj)·{ 
4 ········return·isNumber(obj)·&&·_setup._isNaN(obj);2 ····//·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s).
 3 ····var·without·=·restArguments(function(array,·otherArrays)·{
 4 ········return·difference(array,·otherArrays);
5 ····}5 ····});
  
6 ····return·isNaN;6 ····return·without;
  
7 }));7 }));
600 B
./usr/share/nodejs/underscore/amd/index93.js
512 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 12 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index151'],·(function(partial)·{
  
2 ····var·isNumber·=·_tagTester('Number');2 ····//·Returns·the·first·function·passed·as·an·argument·to·the·second,
 3 ····//·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and
 4 ····//·conditionally·execute·the·original·function.
 5 ····function·wrap(func,·wrapper)·{
 6 ········return·partial(wrapper,·func);
 7 ····}
  
3 ····return·isNumber;8 ····return·wrap;
  
4 }));9 }));
599 B
./usr/share/nodejs/underscore/amd/index94.js
511 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 9 lines modified
1 define((function()·{1 define(['./index70',·'./index89'],·(function(restArguments,·unzip)·{
  
 2 ····//·Zip·together·multiple·lists·into·a·single·array·--·elements·that·share
 3 ····//·an·index·go·together.
 4 ····var·zip·=·restArguments(unzip);
2 ····//·Is·a·given·variable·an·object? 
3 ····function·isObject(obj)·{ 
4 ········var·type·=·typeof·obj; 
5 ········return·type·===·'function'·||·(type·===·'object'·&&·!!obj); 
6 ····} 
  
7 ····return·isObject;5 ····return·zip;
  
8 }));6 }));
1.31 KB
./usr/share/nodejs/underscore/amd/index95.js
1.22 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 14 lines modified
1 define(['./index16',·'./index79',·'./index97',·'./index78',·'./index102'],·(function(_getLength,·isArray,·isString,·isArguments,·keys)·{1 define(['./index29',·'./index10',·'./index131'],·(function(_toPath,·_deepGet,·isUndefined)·{
  
 2 ····//·Get·the·value·of·the·(deep)·property·on·`path`·from·`object`.
 3 ····//·If·any·property·in·`path`·does·not·exist·or·if·the·value·is
 4 ····//·`undefined`,·return·`defaultValue`·instead.
 5 ····//·The·`path`·is·normalized·through·`_.toPath`.
 6 ····function·get(object,·path,·defaultValue)·{
 7 ········var·value·=·_deepGet(object,·_toPath(path));
 8 ········return·isUndefined(value)·?·defaultValue·:·value;
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 ····}9 ····}
  
14 ····return·isEmpty;10 ····return·get;
  
15 }));11 }));
644 B
./usr/share/nodejs/underscore/amd/index96.js
556 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 12 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index16',·'./index17'],·(function(_group,·_has)·{
  
2 ····var·isRegExp·=·_tagTester('RegExp');2 ····//·Groups·the·object's·values·by·a·criterion.·Pass·either·a·string·attribute
 3 ····//·to·group·by,·or·a·function·that·returns·the·criterion.
 4 ····var·groupBy·=·_group(function(result,·value,·key)·{
 5 ········if·(_has(result,·key))·result[key].push(value);
 6 ········else·result[key]·=·[value];
 7 ····});
  
3 ····return·isRegExp;8 ····return·groupBy;
  
4 }));9 }));
869 B
./usr/share/nodejs/underscore/amd/index97.js
781 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 19 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define(['./index17',·'./index29'],·(function(_has,·_toPath)·{
  
2 ····var·isString·=·_tagTester('String');2 ····//·Shortcut·function·for·checking·if·an·object·has·a·given·property·directly·on
 3 ····//·itself·(in·other·words,·not·on·a·prototype).·Unlike·the·internal·`has`
 4 ····//·function,·this·public·version·can·also·traverse·nested·properties.
 5 ····function·has(obj,·path)·{
 6 ········path·=·_toPath(path);
 7 ········var·length·=·path.length;
 8 ········for·(var·i·=·0;·i·<·length;·i++)·{
 9 ············var·key·=·path[i];
 10 ············if·(!_has(obj,·key))·return·false;
 11 ············obj·=·obj[key];
 12 ········}
 13 ········return·!!length;
 14 ····}
  
3 ····return·isString;15 ····return·has;
  
4 }));16 }));
427 B
./usr/share/nodejs/underscore/amd/index98.js
339 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 10 lines modified
1 define(['./index29'],·(function(_tagTester)·{1 define((function()·{
  
2 ····var·isSymbol·=·_tagTester('Symbol');2 ····//·Keep·the·identity·function·around·for·default·iteratees.
 3 ····function·identity(value)·{
 4 ········return·value;
 5 ····}
  
3 ····return·isSymbol;6 ····return·identity;
  
4 }));7 }));
7.72 KB
./usr/share/nodejs/underscore/amd/index99.js
7.63 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 157 lines modified
1 define((function()·{1 define(['exports',·'./index24',·'./index70',·'./index123',·'./index120',·'./index131',·'./index109',·'./index112',·'./index127',·'./index122',·'./index110',·'./index124',·'./index115',·'./index126',·'./index108',·'./index111',·'./index107',·'./index117',·'./index[·...·truncated·by·diffoscope;·len:·2619,·SHA:·250e592765c529210d8e50b4c5fc218c41a8a972479150fcd527787ab596cea1·...·])·{
  
 2 ····//·Named·Exports
 3 ····//·=============
2 ····//·Is·a·given·variable·undefined? 
3 ····function·isUndefined(obj)·{ 
4 ········return·obj·===·void·0; 
5 ····} 
  
6 ····return·isUndefined;4 ····exports.VERSION·=·_setup.VERSION;
 5 ····exports.restArguments·=·restArguments;
 6 ····exports.isObject·=·isObject;
 7 ····exports.isNull·=·isNull;
 8 ····exports.isUndefined·=·isUndefined;
 9 ····exports.isBoolean·=·isBoolean;
 10 ····exports.isElement·=·isElement;
 11 ····exports.isString·=·isString;
 12 ····exports.isNumber·=·isNumber;
 13 ····exports.isDate·=·isDate;
 14 ····exports.isRegExp·=·isRegExp;
 15 ····exports.isError·=·isError;
 16 ····exports.isSymbol·=·isSymbol;
 17 ····exports.isArrayBuffer·=·isArrayBuffer;
 18 ····exports.isDataView·=·isDataView;
 19 ····exports.isArray·=·isArray;
 20 ····exports.isFunction·=·isFunction;
 21 ····exports.isArguments·=·isArguments;
 22 ····exports.isFinite·=·isFinite;
 23 ····exports.isNaN·=·isNaN;
 24 ····exports.isTypedArray·=·isTypedArray;
 25 ····exports.isEmpty·=·isEmpty;
 26 ····exports.isMatch·=·isMatch;
 27 ····exports.isEqual·=·isEqual;
 28 ····exports.isMap·=·isMap;
 29 ····exports.isWeakMap·=·isWeakMap;
 30 ····exports.isSet·=·isSet;
 31 ····exports.isWeakSet·=·isWeakSet;
 32 ····exports.keys·=·keys;
 33 ····exports.allKeys·=·allKeys;
 34 ····exports.values·=·values;
 35 ····exports.pairs·=·pairs;
 36 ····exports.invert·=·invert;
 37 ····exports.functions·=·functions;
 38 ····exports.methods·=·functions;
 39 ····exports.extend·=·extend;
 40 ····exports.assign·=·extendOwn;
 41 ····exports.extendOwn·=·extendOwn;
 42 ····exports.defaults·=·defaults;
 43 ····exports.create·=·create;
 44 ····exports.clone·=·clone;
 45 ····exports.tap·=·tap;
 46 ····exports.get·=·get;
 47 ····exports.has·=·has;
 48 ····exports.mapObject·=·mapObject;
 49 ····exports.identity·=·identity;
 50 ····exports.constant·=·constant;
 51 ····exports.noop·=·noop;
 52 ····exports.toPath·=·toPath;
 53 ····exports.property·=·property;
 54 ····exports.propertyOf·=·propertyOf;
 55 ····exports.matcher·=·matcher;
 56 ····exports.matches·=·matcher;
 57 ····exports.times·=·times;
 58 ····exports.random·=·random;
 59 ····exports.now·=·now;
 60 ····exports.escape·=·escape;
 61 ····exports.unescape·=·unescape;
 62 ····exports.templateSettings·=·templateSettings;
 63 ····exports.template·=·template;
 64 ····exports.result·=·result;
 65 ····exports.uniqueId·=·uniqueId;
 66 ····exports.chain·=·chain;
 67 ····exports.iteratee·=·iteratee;
 68 ····exports.partial·=·partial;
 69 ····exports.bind·=·bind;
 70 ····exports.bindAll·=·bindAll;
 71 ····exports.memoize·=·memoize;
 72 ····exports.delay·=·delay;
 73 ····exports.defer·=·defer;
 74 ····exports.throttle·=·throttle;
 75 ····exports.debounce·=·debounce;
 76 ····exports.wrap·=·wrap;
 77 ····exports.negate·=·negate;
 78 ····exports.compose·=·compose;
 79 ····exports.after·=·after;
 80 ····exports.before·=·before;
 81 ····exports.once·=·once;
 82 ····exports.findKey·=·findKey;
 83 ····exports.findIndex·=·findIndex;
 84 ····exports.findLastIndex·=·findLastIndex;
 85 ····exports.sortedIndex·=·sortedIndex;
 86 ····exports.indexOf·=·indexOf;
 87 ····exports.lastIndexOf·=·lastIndexOf;
 88 ····exports.detect·=·find;
 89 ····exports.find·=·find;
 90 ····exports.findWhere·=·findWhere;
 91 ····exports.each·=·each;
 92 ····exports.forEach·=·each;
 93 ····exports.collect·=·map;
 94 ····exports.map·=·map;
 95 ····exports.foldl·=·reduce;
 96 ····exports.inject·=·reduce;
 97 ····exports.reduce·=·reduce;
 98 ····exports.foldr·=·reduceRight;
 99 ····exports.reduceRight·=·reduceRight;
 100 ····exports.filter·=·filter;
 101 ····exports.select·=·filter;
 102 ····exports.reject·=·reject;
 103 ····exports.all·=·every;
 104 ····exports.every·=·every;
 105 ····exports.any·=·some;
 106 ····exports.some·=·some;
 107 ····exports.contains·=·contains;
 108 ····exports.include·=·contains;
 109 ····exports.includes·=·contains;
 110 ····exports.invoke·=·invoke;
 111 ····exports.pluck·=·pluck;
 112 ····exports.where·=·where;
 113 ····exports.max·=·max;
 114 ····exports.min·=·min;
 115 ····exports.shuffle·=·shuffle;
 116 ····exports.sample·=·sample;
 117 ····exports.sortBy·=·sortBy;
 118 ····exports.groupBy·=·groupBy;
 119 ····exports.indexBy·=·indexBy;
 120 ····exports.countBy·=·countBy;
 121 ····exports.partition·=·partition;
Max diff block lines reached; 6/7787 bytes (0.08%) of diff not shown.
493 B
./usr/share/nodejs/underscore/cjs/index.js
409 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·isObject·=·require('./index94.js');1 var·isObject·=·require('./index123.js');
2 var·_setup·=·require('./index27.js');2 var·_setup·=·require('./index24.js');
  
3 //·Create·a·naked·function·reference·for·surrogate-prototype-swapping.3 //·Create·a·naked·function·reference·for·surrogate-prototype-swapping.
4 function·ctor()·{4 function·ctor()·{
5 ····return·function()·{};5 ····return·function()·{};
6 }6 }
  
7 //·An·internal·function·for·creating·a·new·object·that·inherits·from·another.7 //·An·internal·function·for·creating·a·new·object·that·inherits·from·another.
1.59 KB
./usr/share/nodejs/underscore/cjs/index10.js
1.5 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 11 lines modified
 1 //·Internal·function·to·obtain·a·nested·property·in·`obj`·along·`path`.
 2 function·deepGet(obj,·path)·{
 3 ····var·length·=·path.length;
 4 ····for·(var·i·=·0;·i·<·length;·i++)·{
 5 ········if·(obj·==·null)·return·void·0;
 6 ········obj·=·obj[path[i]];
1 var·_isArrayLike·=·require('./index21.js'); 
2 var·keys·=·require('./index102.js'); 
3 var·_optimizeCb·=·require('./index24.js'); 
  
4 //·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right. 
5 function·createReduce(dir)·{ 
6 ····//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than 
7 ····//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991) 
8 ····var·reducer·=·function(obj,·iteratee,·memo,·initial)·{ 
9 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), 
10 ············length·=·(_keys·||·obj).length, 
11 ············index·=·dir·>·0·?·0·:·length·-·1; 
12 ········if·(!initial)·{ 
13 ············memo·=·obj[_keys·?·_keys[index]·:·index]; 
14 ············index·+=·dir; 
15 ········} 
16 ········for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{ 
17 ············var·currentKey·=·_keys·?·_keys[index]·:·index; 
18 ············memo·=·iteratee(memo,·obj[currentKey],·currentKey,·obj); 
19 ········} 
20 ········return·memo; 
21 ····};7 ····}
 8 ····return·length·?·obj·:·void·0;
  
22 ····return·function(obj,·iteratee,·memo,·context)·{ 
23 ········var·initial·=·arguments.length·>=·3; 
24 ········return·reducer(obj,·_optimizeCb(iteratee,·context,·4),·memo,·initial); 
25 ····}; 
26 }9 }
  
27 module.exports·=·createReduce;10 module.exports·=·deepGet;
1.73 KB
./usr/share/nodejs/underscore/cjs/index100.js
1.64 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 28 lines modified
1 var·_setup·=·require('./index27.js');1 var·index·=·require('./index99.js');
2 var·isDataView·=·require('./index82.js'); 
3 var·constant·=·require('./index42.js');2 var·mixin·=·require('./index143.js');
4 var·_isBufferLike·=·require('./index22.js'); 
  
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\]/;3 //·Default·Export
 4 //·==============
 5 //·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export
 6 //·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS.
 7 //·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package
 8 //·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source
 9 //·of)·the·module·you·are·interfacing·with·when·you·do·any·of·the·following:
 10 //
 11 //·```js
 12 //·//·CommonJS
 13 //·var·_·=·require('underscore');
 14 //
 15 //·//·AMD
 16 //·define(['underscore'],·function(_)·{...});
 17 //
 18 //·//·UMD·in·the·browser
 19 //·//·_·is·available·as·a·global·variable
 20 //·```
  
 21 //·Add·all·of·the·Underscore·functions·to·the·wrapper·object.
 22 var·_·=·mixin(index);
 23 //·Legacy·Node.js·API.
 24 _._·=·_;
7 function·isTypedArray(obj)·{ 
8 ····//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available. 
9 ····//·Otherwise,·fall·back·on·the·above·regular·expression. 
10 ····return·_setup.nativeIsView·?·(_setup.nativeIsView(obj)·&&·!isDataView(obj))·: 
11 ········_isBufferLike(obj)·&&·typedArrayPattern.test(_setup.toString.call(obj)); 
12 } 
  
 25 module.exports·=·_;
13 var·isTypedArray$1·=·_setup.supportsArrayBuffer·?·isTypedArray·:·constant(false); 
  
14 module.exports·=·isTypedArray$1; 
1.03 KB
./usr/share/nodejs/underscore/cjs/index101.js
963 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 11 lines modified
 1 var·sortedIndex·=·require('./index77.js');
1 var·underscore·=·require('./index148.js');2 var·findIndex·=·require('./index56.js');
2 var·_baseIteratee·=·require('./index2.js');3 var·_createIndexFinder·=·require('./index6.js');
  
 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.
 6 //·If·the·array·is·large·and·already·in·sort·order,·pass·`true`
 7 //·for·**isSorted**·to·use·binary·search.
 8 var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);
3 //·External·wrapper·for·our·callback·generator.·Users·may·customize 
4 //·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles. 
5 //·This·abstraction·hides·the·internal-only·`argCount`·argument. 
6 function·iteratee(value,·context)·{ 
7 ····return·_baseIteratee(value,·context,·Infinity); 
8 } 
9 underscore.iteratee·=·iteratee; 
  
10 module.exports·=·iteratee;9 module.exports·=·indexOf;
1.12 KB
./usr/share/nodejs/underscore/cjs/index102.js
1.03 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 10 lines modified
1 var·isObject·=·require('./index94.js'); 
2 var·_setup·=·require('./index27.js');1 var·_setup·=·require('./index24.js');
3 var·_has·=·require('./index17.js'); 
4 var·_collectNonEnumProps·=·require('./index4.js'); 
  
 2 //·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on
 3 //·the·arguments·object.·Passing·**n**·will·return·all·the·values·in
 4 //·the·array,·excluding·the·last·N.
 5 function·initial(array,·n,·guard)·{
 6 ····return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·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 }7 }
  
17 module.exports·=·keys;8 module.exports·=·initial;
1.16 KB
./usr/share/nodejs/underscore/cjs/index103.js
1.07 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 21 lines modified
1 var·rest·=·require('./index131.js');1 var·_getLength·=·require('./index15.js');
 2 var·contains·=·require('./index42.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));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 ····}
 17 ····return·result;
8 }18 }
  
9 module.exports·=·last;19 module.exports·=·intersection;
1.08 KB
./usr/share/nodejs/underscore/cjs/index104.js
1010 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 13 lines modified
1 var·_cb·=·require('./index3.js'); 
2 var·_isArrayLike·=·require('./index21.js'); 
3 var·keys·=·require('./index102.js');1 var·keys·=·require('./index134.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];
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 ····}8 ····}
14 ····return·results;9 ····return·result;
15 }10 }
  
16 module.exports·=·map;11 module.exports·=·invert;
1.39 KB
./usr/share/nodejs/underscore/cjs/index105.js
1.3 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 30 lines modified
 1 var·restArguments·=·require('./index70.js');
1 var·findLastIndex·=·require('./index58.js');2 var·isFunction·=·require('./index117.js');
 3 var·map·=·require('./index137.js');
2 var·_createIndexFinder·=·require('./index6.js');4 var·_deepGet·=·require('./index10.js');
 5 var·_toPath·=·require('./index29.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);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 ········}
 25 ········return·method·==·null·?·method·:·method.apply(context,·args);
 26 ····});
 27 });
  
6 module.exports·=·lastIndexOf;28 module.exports·=·invoke;
1.18 KB
./usr/share/nodejs/underscore/cjs/index106.js
1.09 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
 1 var·_tagTester·=·require('./index27.js');
1 var·_cb·=·require('./index3.js');2 var·_has·=·require('./index17.js');
2 var·keys·=·require('./index102.js'); 
  
 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 ········};
3 //·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`. 
4 //·In·contrast·to·`_.map`·it·returns·an·object. 
5 function·mapObject(obj,·iteratee,·context)·{ 
6 ····iteratee·=·_cb(iteratee,·context); 
7 ····var·_keys·=·keys(obj), 
8 ········length·=·_keys.length, 
9 ········results·=·{}; 
10 ····for·(var·index·=·0;·index·<·length;·index++)·{ 
11 ········var·currentKey·=·_keys[index]; 
12 ········results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj); 
13 ····}11 ····}
14 ····return·results; 
15 }12 }());
  
 13 var·isArguments$1·=·isArguments;
  
16 module.exports·=·mapObject;14 module.exports·=·isArguments$1;
675 B
./usr/share/nodejs/underscore/cjs/index107.js
585 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 8 lines modified
 1 var·_setup·=·require('./index24.js');
1 var·_tagTester·=·require('./index29.js');2 var·_tagTester·=·require('./index27.js');
2 var·_stringTagBug·=·require('./index28.js'); 
3 var·_methodFingerprint·=·require('./index26.js'); 
  
4 var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');3 //·Is·a·given·value·an·array?
 4 //·Delegates·to·ECMA5's·native·`Array.isArray`.
 5 var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');
  
5 module.exports·=·isSet;6 module.exports·=·isArray;
607 B
./usr/share/nodejs/underscore/cjs/index108.js
517 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 5 lines modified
1 var·extendOwn·=·require('./index54.js');1 var·_tagTester·=·require('./index27.js');
2 var·isMatch·=·require('./index90.js'); 
  
 2 var·isArrayBuffer·=·_tagTester('ArrayBuffer');
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); 
9 ····}; 
10 } 
  
11 module.exports·=·matcher;3 module.exports·=·isArrayBuffer;
835 B
./usr/share/nodejs/underscore/cjs/index109.js
745 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 8 lines modified
1 var·_has·=·require('./index17.js');1 var·_setup·=·require('./index24.js');
  
 2 //·Is·a·given·value·a·boolean?
 3 function·isBoolean(obj)·{
 4 ····return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]';
2 //·Memoize·an·expensive·function·by·storing·its·results. 
3 function·memoize(func,·hasher)·{ 
4 ····var·memoize·=·function(key)·{ 
5 ········var·cache·=·memoize.cache; 
6 ········var·address·=·''·+·(hasher·?·hasher.apply(this,·arguments)·:·key); 
7 ········if·(!_has(cache,·address))·cache[address]·=·func.apply(this,·arguments); 
8 ········return·cache[address]; 
9 ····}; 
10 ····memoize.cache·=·{}; 
11 ····return·memoize; 
12 }5 }
  
13 module.exports·=·memoize;6 module.exports·=·isBoolean;
668 B
./usr/share/nodejs/underscore/cjs/index11.js
580 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 //·Internal·function·to·obtain·a·nested·property·in·`obj`·along·`path`. 
2 function·deepGet(obj,·path)·{ 
3 ····var·length·=·path.length; 
4 ····for·(var·i·=·0;·i·<·length;·i++)·{ 
5 ········if·(obj·==·null)·return·void·0; 
6 ········obj·=·obj[path[i]]; 
7 ····} 
8 ····return·length·?·obj·:·void·0; 
9 }1 //·Internal·list·of·HTML·entities·for·escaping.
 2 var·escapeMap·=·{
 3 ····'&':·'&amp;',
 4 ····'<':·'&lt;',
 5 ····'>':·'&gt;',
 6 ····'"':·'&quot;',
 7 ····"'":·'&#x27;',
 8 ····'`':·'&#x60;'
 9 };
  
10 module.exports·=·deepGet;10 module.exports·=·escapeMap;
1.33 KB
./usr/share/nodejs/underscore/cjs/index110.js
1.24 KB
js-beautify {}
    
Offset 1, 32 lines modifiedOffset 1, 5 lines modified
1 var·_isArrayLike·=·require('./index21.js'); 
2 var·values·=·require('./index155.js'); 
3 var·_cb·=·require('./index3.js');1 var·_tagTester·=·require('./index27.js');
4 var·each·=·require('./index50.js'); 
  
 2 var·isDate·=·_tagTester('Date');
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 ····} 
28 ····return·result; 
29 } 
  
30 module.exports·=·max;3 module.exports·=·isDate;
900 B
./usr/share/nodejs/underscore/cjs/index111.js
810 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 16 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); 
5 ····};1 var·_tagTester·=·require('./index27.js');
 2 var·isFunction·=·require('./index117.js');
 3 var·isArrayBuffer·=·require('./index108.js');
 4 var·_stringTagBug·=·require('./index26.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);
6 }10 }
  
 11 var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView);
  
7 module.exports·=·negate;12 module.exports·=·isDataView$1;
1.35 KB
./usr/share/nodejs/underscore/cjs/index112.js
1.27 KB
js-beautify {}
    
Offset 1, 32 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·_isArrayLike·=·require('./index21.js'); 
2 var·values·=·require('./index155.js'); 
3 var·_cb·=·require('./index3.js'); 
4 var·each·=·require('./index50.js'); 
  
5 //·Return·the·minimum·element·(or·element-based·computation). 
6 function·min(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 ····} 
28 ····return·result; 
29 }4 }
  
30 module.exports·=·min;5 module.exports·=·isElement;
1.01 KB
./usr/share/nodejs/underscore/cjs/index113.js
941 B
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 7 lines modified
1 var·underscore·=·require('./index148.js'); 
2 var·each·=·require('./index50.js');1 var·_createEscaper·=·require('./index5.js');
3 var·functions·=·require('./index65.js'); 
4 var·_setup·=·require('./index27.js');2 var·_unescapeMap·=·require('./index30.js');
5 var·_chainResult·=·require('./index7.js'); 
  
 3 //·Function·for·unescaping·strings·from·HTML·interpolation.
 4 var·unescape·=·_createEscaper(_unescapeMap);
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 ····}); 
16 ····return·underscore; 
17 } 
  
18 module.exports·=·mixin;5 module.exports·=·unescape;
6.61 KB
./usr/share/nodejs/underscore/cjs/index114.js
6.52 KB
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 142 lines modified
 1 var·underscore·=·require('./index159.js');
 2 var·_setup·=·require('./index24.js');
1 var·_getLength·=·require('./index16.js');3 var·_getByteLength·=·require('./index14.js');
 4 var·isTypedArray·=·require('./index128.js');
 5 var·isFunction·=·require('./index117.js');
 6 var·_stringTagBug·=·require('./index26.js');
 7 var·isDataView·=·require('./index111.js');
 8 var·keys·=·require('./index134.js');
 9 var·_has·=·require('./index17.js');
 10 var·_toBufferView·=·require('./index28.js');
  
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·of 
4 //·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`. 
5 function·object(list,·values)·{ 
6 ····var·result·=·{}; 
7 ····for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{ 
8 ········if·(values)·{ 
9 ············result[list[i]]·=·values[i]; 
10 ········}·else·{ 
11 ············result[list[i][0]]·=·list[i][1];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;
12 ········}84 ········}
13 ····}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·{
Max diff block lines reached; 55/6651 bytes (0.83%) of diff not shown.
359 B
./usr/share/nodejs/underscore/cjs/index115.js
269 B
js-beautify {}
    
Offset 1, 4 lines modifiedOffset 1, 5 lines modified
 1 var·_tagTester·=·require('./index27.js');
1 //·Predicate-generating·function.·Often·useful·outside·of·Underscore. 
2 function·noop()·{} 
  
 2 var·isError·=·_tagTester('Error');
  
3 module.exports·=·noop;3 module.exports·=·isError;
564 B
./usr/share/nodejs/underscore/cjs/index116.js
474 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 9 lines modified
 1 var·_setup·=·require('./index24.js');
 2 var·isSymbol·=·require('./index126.js');
1 //·A·(possibly·faster)·way·to·get·the·current·timestamp·as·an·integer. 
2 var·now·=·Date.now·||·function()·{ 
3 ····return·new·Date().getTime(); 
4 }; 
  
 3 //·Is·a·given·object·a·finite·number?
 4 function·isFinite(obj)·{
 5 ····return·!isSymbol(obj)·&&·_setup._isFinite(obj)·&&·!isNaN(parseFloat(obj));
 6 }
  
5 module.exports·=·now;7 module.exports·=·isFinite;
1.52 KB
./usr/share/nodejs/underscore/cjs/index117.js
1.44 KB
js-beautify {}
    
Offset 1, 25 lines modifiedOffset 1, 17 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·isFunction·=·require('./index88.js'); 
3 var·negate·=·require('./index111.js');1 var·_tagTester·=·require('./index27.js');
4 var·map·=·require('./index104.js');2 var·_setup·=·require('./index24.js');
5 var·_flatten·=·require('./index15.js'); 
6 var·contains·=·require('./index43.js'); 
7 var·pick·=·require('./index121.js'); 
  
 3 var·isFunction·=·_tagTester('Function');
8 //·Return·a·copy·of·the·object·without·the·disallowed·properties. 
9 var·omit·=·restArguments(function(obj,·keys)·{ 
10 ····var·iteratee·=·keys[0], 
11 ········context; 
12 ····if·(isFunction(iteratee))·{ 
13 ········iteratee·=·negate(iteratee); 
14 ········if·(keys.length·>·1)·context·=·keys[1]; 
15 ····}·else·{ 
16 ········keys·=·map(_flatten(keys,·false,·false),·String); 
17 ········iteratee·=·function(value,·key)·{ 
18 ············return·!contains(keys,·key); 
19 ········}; 
20 ····} 
21 ····return·pick(obj,·iteratee,·context); 
22 }); 
  
23 module.exports·=·omit;4 //·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old
 5 //·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236).
 6 var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes;
 7 if·(typeof·/./·!=·'function'·&&·typeof·Int8Array·!=·'object'·&&·typeof·nodelist·!=·'function')·{
 8 ····isFunction·=·function(obj)·{
 9 ········return·typeof·obj·==·'function'·||·false;
 10 ····};
 11 }
  
 12 var·isFunction$1·=·isFunction;
  
 13 module.exports·=·isFunction$1;
694 B
./usr/share/nodejs/underscore/cjs/index118.js
604 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 7 lines modified
1 var·partial·=·require('./index122.js');1 var·_tagTester·=·require('./index27.js');
2 var·before·=·require('./index36.js');2 var·_stringTagBug·=·require('./index26.js');
 3 var·_methodFingerprint·=·require('./index22.js');
  
 4 var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');
3 //·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how 
4 //·often·you·call·it.·Useful·for·lazy·initialization. 
5 var·once·=·partial(before,·2); 
  
6 module.exports·=·once;5 module.exports·=·isMap;
961 B
./usr/share/nodejs/underscore/cjs/index119.js
871 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 16 lines modified
1 var·keys·=·require('./index102.js');1 var·keys·=·require('./index134.js');
  
 2 //·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs.
 3 function·isMatch(object,·attrs)·{
2 //·Convert·an·object·into·a·list·of·`[key,·value]`·pairs. 
3 //·The·opposite·of·`_.object`·with·one·argument. 
4 function·pairs(obj)·{ 
5 ····var·_keys·=·keys(obj);4 ····var·_keys·=·keys(attrs),
6 ····var·length·=·_keys.length;5 ········length·=·_keys.length;
7 ····var·pairs·=·Array(length);6 ····if·(object·==·null)·return·!length;
 7 ····var·obj·=·Object(object);
8 ····for·(var·i·=·0;·i·<·length;·i++)·{8 ····for·(var·i·=·0;·i·<·length;·i++)·{
9 ········pairs[i]·=·[_keys[i],·obj[_keys[i]]];9 ········var·key·=·_keys[i];
 10 ········if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false;
10 ····}11 ····}
11 ····return·pairs;12 ····return·true;
12 }13 }
  
13 module.exports·=·pairs;14 module.exports·=·isMatch;
977 B
./usr/share/nodejs/underscore/cjs/index12.js
889 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 15 lines modified
 1 var·_baseCreate·=·require('./index.js');
 2 var·isObject·=·require('./index123.js');
1 //·Internal·list·of·HTML·entities·for·escaping. 
2 var·escapeMap·=·{ 
3 ····'&':·'&amp;', 
4 ····'<':·'&lt;', 
5 ····'>':·'&gt;', 
6 ····'"':·'&quot;', 
7 ····"'":·'&#x27;', 
8 ····'`':·'&#x60;' 
9 }; 
  
10 module.exports·=·escapeMap;3 //·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional
 4 //·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a
 5 //·normal·function.
 6 function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{
 7 ····if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args);
 8 ····var·self·=·_baseCreate(sourceFunc.prototype);
 9 ····var·result·=·sourceFunc.apply(self,·args);
 10 ····if·(isObject(result))·return·result;
 11 ····return·self;
 12 }
  
 13 module.exports·=·executeBound;
576 B
./usr/share/nodejs/underscore/cjs/index120.js
486 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 6 lines modified
1 var·_group·=·require('./index20.js');1 //·Is·a·given·value·equal·to·null?
 2 function·isNull(obj)·{
 3 ····return·obj·===·null;
 4 }
  
 5 module.exports·=·isNull;
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); 
  
7 module.exports·=·partition; 
1.28 KB
./usr/share/nodejs/underscore/cjs/index121.js
1.2 KB
js-beautify {}
    
Offset 1, 29 lines modifiedOffset 1, 9 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·isFunction·=·require('./index88.js'); 
3 var·_optimizeCb·=·require('./index24.js');1 var·_setup·=·require('./index24.js');
4 var·allKeys·=·require('./index34.js'); 
5 var·_keyInObj·=·require('./index23.js'); 
6 var·_flatten·=·require('./index15.js');2 var·isNumber·=·require('./index122.js');
  
 3 //·Is·the·given·value·`NaN`?
 4 function·isNaN(obj)·{
 5 ····return·isNumber(obj)·&&·_setup._isNaN(obj);
 6 }
7 //·Return·a·copy·of·the·object·only·containing·the·allowed·properties. 
8 var·pick·=·restArguments(function(obj,·keys)·{ 
9 ····var·result·=·{}, 
10 ········iteratee·=·keys[0]; 
11 ····if·(obj·==·null)·return·result; 
12 ····if·(isFunction(iteratee))·{ 
13 ········if·(keys.length·>·1)·iteratee·=·_optimizeCb(iteratee,·keys[1]); 
14 ········keys·=·allKeys(obj); 
15 ····}·else·{ 
16 ········iteratee·=·_keyInObj; 
17 ········keys·=·_flatten(keys,·false,·false); 
18 ········obj·=·Object(obj); 
19 ····} 
20 ····for·(var·i·=·0,·length·=·keys.length;·i·<·length;·i++)·{ 
21 ········var·key·=·keys[i]; 
22 ········var·value·=·obj[key]; 
23 ········if·(iteratee(value,·key,·obj))·result[key]·=·value; 
24 ····} 
25 ····return·result; 
26 }); 
  
27 module.exports·=·pick;7 module.exports·=·isNaN;
1.29 KB
./usr/share/nodejs/underscore/cjs/index122.js
1.2 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 5 lines modified
1 var·restArguments·=·require('./index132.js');1 var·_tagTester·=·require('./index27.js');
2 var·_executeBound·=·require('./index13.js'); 
3 var·underscore·=·require('./index148.js'); 
  
 2 var·isNumber·=·_tagTester('Number');
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 }); 
  
 3 module.exports·=·isNumber;
22 partial.placeholder·=·underscore; 
  
23 module.exports·=·partial; 
570 B
./usr/share/nodejs/underscore/cjs/index123.js
480 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 7 lines modified
 1 //·Is·a·given·variable·an·object?
 2 function·isObject(obj)·{
 3 ····var·type·=·typeof·obj;
 4 ····return·type·===·'function'·||·(type·===·'object'·&&·!!obj);
1 var·map·=·require('./index104.js'); 
2 var·property·=·require('./index124.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)); 
6 }5 }
  
7 module.exports·=·pluck;6 module.exports·=·isObject;
647 B
./usr/share/nodejs/underscore/cjs/index124.js
557 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 5 lines modified
1 var·_deepGet·=·require('./index11.js'); 
2 var·_toPath·=·require('./index31.js');1 var·_tagTester·=·require('./index27.js');
  
 2 var·isRegExp·=·_tagTester('RegExp');
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 } 
  
11 module.exports·=·property;3 module.exports·=·isRegExp;
741 B
./usr/share/nodejs/underscore/cjs/index125.js
651 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 7 lines modified
1 var·noop·=·require('./index115.js'); 
2 var·get·=·require('./index66.js');1 var·_tagTester·=·require('./index27.js');
 2 var·_stringTagBug·=·require('./index26.js');
 3 var·_methodFingerprint·=·require('./index22.js');
  
 4 var·isSet·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.setMethods)·:·_tagTester('Set');
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 ····}; 
9 } 
  
10 module.exports·=·propertyOf;5 module.exports·=·isSet;
503 B
./usr/share/nodejs/underscore/cjs/index126.js
413 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 5 lines modified
 1 var·_tagTester·=·require('./index27.js');
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; 
6 ····} 
7 ····return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1)); 
8 } 
  
 2 var·isSymbol·=·_tagTester('Symbol');
  
9 module.exports·=·random;3 module.exports·=·isSymbol;
884 B
./usr/share/nodejs/underscore/cjs/index127.js
794 B
js-beautify {}
    
Offset 1, 23 lines modifiedOffset 1, 5 lines modified
 1 var·_tagTester·=·require('./index27.js');
1 //·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of 
2 //·the·native·Python·`range()`·function.·See 
3 //·[the·Python·documentation](https://docs.python.org/library/functions.html#range). 
4 function·range(start,·stop,·step)·{ 
5 ····if·(stop·==·null)·{ 
6 ········stop·=·start·||·0; 
7 ········start·=·0; 
8 ····} 
9 ····if·(!step)·{ 
10 ········step·=·stop·<·start·?·-1·:·1; 
11 ····} 
  
 2 var·isString·=·_tagTester('String');
12 ····var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0); 
13 ····var·range·=·Array(length); 
  
14 ····for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{ 
15 ········range[idx]·=·start; 
16 ····} 
  
17 ····return·range; 
18 } 
  
19 module.exports·=·range;3 module.exports·=·isString;
1.08 KB
./usr/share/nodejs/underscore/cjs/index128.js
1020 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 18 lines modified
1 var·_createReduce·=·require('./index10.js');1 var·_setup·=·require('./index24.js');
 2 var·isDataView·=·require('./index111.js');
 3 var·constant·=·require('./index41.js');
 4 var·_isBufferLike·=·require('./index20.js');
  
 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\]/;
2 //·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`, 
3 //·or·`foldl`. 
4 var·reduce·=·_createReduce(1); 
  
5 module.exports·=·reduce;7 function·isTypedArray(obj)·{
 8 ····//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available.
 9 ····//·Otherwise,·fall·back·on·the·above·regular·expression.
 10 ····return·_setup.nativeIsView·?·(_setup.nativeIsView(obj)·&&·!isDataView(obj))·:
 11 ········_isBufferLike(obj)·&&·typedArrayPattern.test(_setup.toString.call(obj));
 12 }
  
 13 var·isTypedArray$1·=·_setup.supportsArrayBuffer·?·isTypedArray·:·constant(false);
  
 14 module.exports·=·isTypedArray$1;
625 B
./usr/share/nodejs/underscore/cjs/index129.js
535 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 7 lines modified
1 var·_createReduce·=·require('./index10.js');1 var·_tagTester·=·require('./index27.js');
 2 var·_stringTagBug·=·require('./index26.js');
 3 var·_methodFingerprint·=·require('./index22.js');
  
 4 var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');
2 //·The·right-associative·version·of·reduce,·also·known·as·`foldr`. 
3 var·reduceRight·=·_createReduce(-1); 
  
4 module.exports·=·reduceRight;5 module.exports·=·isWeakMap;
1.87 KB
./usr/share/nodejs/underscore/cjs/index13.js
1.78 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 34 lines modified
1 var·_baseCreate·=·require('./index.js');1 var·_getLength·=·require('./index15.js');
2 var·isObject·=·require('./index94.js');2 var·_isArrayLike·=·require('./index19.js');
 3 var·isArray·=·require('./index107.js');
 4 var·isArguments·=·require('./index106.js');
  
3 //·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional 
4 //·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a 
5 //·normal·function. 
6 function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{ 
7 ····if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args); 
8 ····var·self·=·_baseCreate(sourceFunc.prototype); 
9 ····var·result·=·sourceFunc.apply(self,·args); 
10 ····if·(isObject(result))·return·result; 
11 ····return·self;5 //·Internal·implementation·of·a·recursive·`flatten`·function.
 6 function·flatten(input,·depth,·strict,·output)·{
 7 ····output·=·output·||·[];
 8 ····if·(!depth·&&·depth·!==·0)·{
 9 ········depth·=·Infinity;
 10 ····}·else·if·(depth·<=·0)·{
 11 ········return·output.concat(input);
 12 ····}
 13 ····var·idx·=·output.length;
 14 ····for·(var·i·=·0,·length·=·_getLength(input);·i·<·length;·i++)·{
 15 ········var·value·=·input[i];
 16 ········if·(_isArrayLike(value)·&&·(isArray(value)·||·isArguments(value)))·{
 17 ············//·Flatten·current·level·of·array·or·arguments·object.
 18 ············if·(depth·>·1)·{
 19 ················flatten(value,·depth·-·1,·strict,·output);
 20 ················idx·=·output.length;
 21 ············}·else·{
 22 ················var·j·=·0,
 23 ····················len·=·value.length;
 24 ················while·(j·<·len)·output[idx++]·=·value[j++];
 25 ············}
 26 ········}·else·if·(!strict)·{
 27 ············output[idx++]·=·value;
 28 ········}
 29 ····}
 30 ····return·output;
12 }31 }
  
13 module.exports·=·executeBound;32 module.exports·=·flatten;
554 B
./usr/share/nodejs/underscore/cjs/index130.js
464 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 5 lines modified
1 var·filter·=·require('./index59.js');1 var·_tagTester·=·require('./index27.js');
2 var·negate·=·require('./index111.js'); 
3 var·_cb·=·require('./index3.js'); 
  
 2 var·isWeakSet·=·_tagTester('WeakSet');
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); 
7 } 
  
8 module.exports·=·reject;3 module.exports·=·isWeakSet;
603 B
./usr/share/nodejs/underscore/cjs/index131.js
513 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 6 lines modified
 1 //·Is·a·given·variable·undefined?
 2 function·isUndefined(obj)·{
 3 ····return·obj·===·void·0;
1 var·_setup·=·require('./index27.js'); 
  
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 }4 }
  
8 module.exports·=·rest;5 module.exports·=·isUndefined;
1.85 KB
./usr/share/nodejs/underscore/cjs/index132.js
1.76 KB
js-beautify {}
    
Offset 1, 32 lines modifiedOffset 1, 12 lines modified
 1 var·underscore·=·require('./index159.js');
 2 var·_baseIteratee·=·require('./index62.js');
  
 3 //·External·wrapper·for·our·callback·generator.·Users·may·customize
 4 //·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles.
 5 //·This·abstraction·hides·the·internal-only·`argCount`·argument.
 6 function·iteratee(value,·context)·{
 7 ····return·_baseIteratee(value,·context,·Infinity);
1 //·Some·functions·take·a·variable·number·of·arguments,·or·a·few·expected 
2 //·arguments·at·the·beginning·and·then·a·variable·number·of·values·to·operate 
3 //·on.·This·helper·accumulates·all·remaining·arguments·past·the·function’s 
4 //·argument·length·(or·an·explicit·`startIndex`),·into·an·array·that·becomes 
5 //·the·last·argument.·Similar·to·ES6’s·"rest·parameter". 
6 function·restArguments(func,·startIndex)·{ 
7 ····startIndex·=·startIndex·==·null·?·func.length·-·1·:·+startIndex; 
8 ····return·function()·{ 
9 ········var·length·=·Math.max(arguments.length·-·startIndex,·0), 
10 ············rest·=·Array(length), 
11 ············index·=·0; 
12 ········for·(;·index·<·length;·index++)·{ 
13 ············rest[index]·=·arguments[index·+·startIndex]; 
14 ········} 
15 ········switch·(startIndex)·{ 
16 ············case·0: 
17 ················return·func.call(this,·rest); 
18 ············case·1: 
19 ················return·func.call(this,·arguments[0],·rest); 
20 ············case·2: 
21 ················return·func.call(this,·arguments[0],·arguments[1],·rest); 
22 ········} 
23 ········var·args·=·Array(startIndex·+·1); 
24 ········for·(index·=·0;·index·<·startIndex;·index++)·{ 
25 ············args[index]·=·arguments[index]; 
26 ········} 
27 ········args[startIndex]·=·rest; 
28 ········return·func.apply(this,·args); 
29 ····}; 
30 }8 }
 9 underscore.iteratee·=·iteratee;
  
31 module.exports·=·restArguments;10 module.exports·=·iteratee;
1.22 KB
./usr/share/nodejs/underscore/cjs/index133.js
1.14 KB
js-beautify {}
    
Offset 1, 24 lines modifiedOffset 1, 9 lines modified
1 var·isFunction·=·require('./index88.js'); 
2 var·_toPath·=·require('./index31.js');1 var·_group·=·require('./index16.js');
  
 2 //·Indexes·the·object's·values·by·a·criterion,·similar·to·`_.groupBy`,·but·for
 3 //·when·you·know·that·your·index·values·will·be·unique.
 4 var·indexBy·=·_group(function(result,·value,·key)·{
 5 ····result[key]·=·value;
 6 });
3 //·Traverses·the·children·of·`obj`·along·`path`.·If·a·child·is·a·function,·it 
4 //·is·invoked·with·its·parent·as·context.·Returns·the·value·of·the·final 
5 //·child,·or·`fallback`·if·any·child·is·undefined. 
6 function·result(obj,·path,·fallback)·{ 
7 ····path·=·_toPath(path); 
8 ····var·length·=·path.length; 
9 ····if·(!length)·{ 
10 ········return·isFunction(fallback)·?·fallback.call(obj)·:·fallback; 
11 ····} 
12 ····for·(var·i·=·0;·i·<·length;·i++)·{ 
13 ········var·prop·=·obj·==·null·?·void·0·:·obj[path[i]]; 
14 ········if·(prop·===·void·0)·{ 
15 ············prop·=·fallback; 
16 ············i·=·length;·//·Ensure·we·don't·continue·iterating. 
17 ········} 
18 ········obj·=·isFunction(prop)·?·prop.call(obj)·:·prop; 
19 ····} 
20 ····return·obj; 
21 } 
  
22 module.exports·=·result;7 module.exports·=·indexBy;
1.78 KB
./usr/share/nodejs/underscore/cjs/index134.js
1.69 KB
js-beautify {}
    
Offset 1, 29 lines modifiedOffset 1, 19 lines modified
 1 var·isObject·=·require('./index123.js');
1 var·_isArrayLike·=·require('./index21.js');2 var·_setup·=·require('./index24.js');
2 var·values·=·require('./index155.js');3 var·_has·=·require('./index17.js');
 4 var·_collectNonEnumProps·=·require('./index3.js');
3 var·_getLength·=·require('./index16.js'); 
4 var·random·=·require('./index126.js'); 
5 var·toArray·=·require('./index146.js'); 
  
 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;
6 //·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). 
8 //·If·**n**·is·not·specified,·returns·a·single·random·element. 
9 //·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`. 
10 function·sample(obj,·n,·guard)·{ 
11 ····if·(n·==·null·||·guard)·{ 
12 ········if·(!_isArrayLike(obj))·obj·=·values(obj); 
13 ········return·obj[random(obj.length·-·1)]; 
14 ····} 
15 ····var·sample·=·toArray(obj); 
16 ····var·length·=·_getLength(sample); 
17 ····n·=·Math.max(Math.min(n,·length),·0); 
18 ····var·last·=·length·-·1; 
19 ····for·(var·index·=·0;·index·<·n;·index++)·{ 
20 ········var·rand·=·random(index,·last); 
21 ········var·temp·=·sample[index]; 
22 ········sample[index]·=·sample[rand]; 
23 ········sample[rand]·=·temp; 
24 ····} 
25 ····return·sample.slice(0,·n); 
26 }16 }
  
27 module.exports·=·sample;17 module.exports·=·keys;
815 B
./usr/share/nodejs/underscore/cjs/index135.js
725 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 11 lines modified
1 var·_isArrayLike·=·require('./index21.js'); 
2 var·keys·=·require('./index102.js');1 var·rest·=·require('./index69.js');
  
3 //·Return·the·number·of·elements·in·a·collection. 
4 function·size(obj)·{ 
5 ····if·(obj·==·null)·return·0; 
6 ····return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;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));
7 }8 }
  
8 module.exports·=·size;9 module.exports·=·last;
602 B
./usr/share/nodejs/underscore/cjs/index136.js
512 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·sample·=·require('./index134.js');1 var·findLastIndex·=·require('./index59.js');
 2 var·_createIndexFinder·=·require('./index6.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);
2 //·Shuffle·a·collection. 
3 function·shuffle(obj)·{ 
4 ····return·sample(obj,·Infinity); 
5 } 
  
6 module.exports·=·shuffle;6 module.exports·=·lastIndexOf;
1.16 KB
./usr/share/nodejs/underscore/cjs/index137.js
1.08 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 18 lines modified
1 var·_cb·=·require('./index3.js');1 var·_cb·=·require('./index140.js');
2 var·_isArrayLike·=·require('./index21.js');2 var·_isArrayLike·=·require('./index19.js');
3 var·keys·=·require('./index102.js');3 var·keys·=·require('./index134.js');
  
4 //·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.4 //·Return·the·results·of·applying·the·iteratee·to·each·element.
5 function·some(obj,·predicate,·context)·{5 function·map(obj,·iteratee,·context)·{
6 ····predicate·=·_cb(predicate,·context);6 ····iteratee·=·_cb(iteratee,·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 ········results·=·Array(length);
9 ····for·(var·index·=·0;·index·<·length;·index++)·{10 ····for·(var·index·=·0;·index·<·length;·index++)·{
10 ········var·currentKey·=·_keys·?·_keys[index]·:·index;11 ········var·currentKey·=·_keys·?·_keys[index]·:·index;
11 ········if·(predicate(obj[currentKey],·currentKey,·obj))·return·true;12 ········results[index]·=·iteratee(obj[currentKey],·currentKey,·obj);
12 ····}13 ····}
13 ····return·false;14 ····return·results;
14 }15 }
  
15 module.exports·=·some;16 module.exports·=·map;
1.46 KB
./usr/share/nodejs/underscore/cjs/index138.js
1.37 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 18 lines modified
1 var·_cb·=·require('./index3.js');1 var·_cb·=·require('./index140.js');
2 var·pluck·=·require('./index123.js');2 var·keys·=·require('./index134.js');
3 var·map·=·require('./index104.js'); 
  
4 //·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.3 //·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`.
 4 //·In·contrast·to·`_.map`·it·returns·an·object.
5 function·sortBy(obj,·iteratee,·context)·{5 function·mapObject(obj,·iteratee,·context)·{
6 ····var·index·=·0; 
7 ····iteratee·=·_cb(iteratee,·context);6 ····iteratee·=·_cb(iteratee,·context);
 7 ····var·_keys·=·keys(obj),
 8 ········length·=·_keys.length,
 9 ········results·=·{};
 10 ····for·(var·index·=·0;·index·<·length;·index++)·{
 11 ········var·currentKey·=·_keys[index];
 12 ········results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj);
 13 ····}
 14 ····return·results;
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 }15 }
  
24 module.exports·=·sortBy;16 module.exports·=·mapObject;
1.08 KB
./usr/share/nodejs/underscore/cjs/index139.js
1020 B
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 13 lines modified
 1 var·extendOwn·=·require('./index54.js');
1 var·_cb·=·require('./index3.js');2 var·isMatch·=·require('./index119.js');
2 var·_getLength·=·require('./index16.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);
3 //·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. 
5 function·sortedIndex(array,·obj,·iteratee,·context)·{ 
6 ····iteratee·=·_cb(iteratee,·context,·1); 
7 ····var·value·=·iteratee(obj); 
8 ····var·low·=·0, 
9 ········high·=·_getLength(array); 
10 ····while·(low·<·high)·{ 
11 ········var·mid·=·Math.floor((low·+·high)·/·2); 
12 ········if·(iteratee(array[mid])·<·value)·low·=·mid·+·1; 
13 ········else·high·=·mid; 
14 ····}9 ····};
15 ····return·low; 
16 }10 }
  
17 module.exports·=·sortedIndex;11 module.exports·=·matcher;
755 B
./usr/share/nodejs/underscore/cjs/index14.js
667 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 6 lines modified
1 var·_setup·=·require('./index27.js');1 var·_shallowProperty·=·require('./index25.js');
  
 2 //·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object.
 3 var·getByteLength·=·_shallowProperty('byteLength');
2 //·Common·internal·logic·for·`isArrayLike`·and·`isBufferLike`. 
3 function·createSizePropertyCheck(getSizeProperty)·{ 
4 ····return·function(collection)·{ 
5 ········var·sizeProperty·=·getSizeProperty(collection); 
6 ········return·typeof·sizeProperty·==·'number'·&&·sizeProperty·>=·0·&&·sizeProperty·<=·_setup.MAX_ARRAY_INDEX; 
7 ····} 
8 } 
  
9 module.exports·=·createSizePropertyCheck;4 module.exports·=·getByteLength;
917 B
./usr/share/nodejs/underscore/cjs/index140.js
827 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 12 lines modified
1 //·Invokes·`interceptor`·with·the·`obj`·and·then·returns·`obj`. 
2 //·The·primary·purpose·of·this·method·is·to·"tap·into"·a·method·chain,·in 
3 //·order·to·perform·operations·on·intermediate·results·within·the·chain. 
4 function·tap(obj,·interceptor)·{ 
5 ····interceptor(obj); 
6 ····return·obj;1 var·underscore·=·require('./index159.js');
 2 var·_baseIteratee·=·require('./index62.js');
 3 var·iteratee·=·require('./index132.js');
  
 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);
7 }9 }
  
8 module.exports·=·tap;10 module.exports·=·cb;
4.1 KB
./usr/share/nodejs/underscore/cjs/index141.js
4.02 KB
js-beautify {}
    
Offset 1, 103 lines modifiedOffset 1, 15 lines modified
1 var·defaults·=·require('./index51.js');1 var·_has·=·require('./index17.js');
2 var·underscore·=·require('./index148.js'); 
3 require('./index160.js'); 
  
 2 //·Memoize·an·expensive·function·by·storing·its·results.
 3 function·memoize(func,·hasher)·{
4 //·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an 
5 //·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is 
6 //·guaranteed·not·to·match. 
7 var·noMatch·=·/(.)^/; 
  
8 //·Certain·characters·need·to·be·escaped·so·that·they·can·be·put·into·a 
9 //·string·literal. 
10 var·escapes·=·{ 
11 ····"'":·"'", 
12 ····'\\':·'\\', 
13 ····'\r':·'r', 
14 ····'\n':·'n', 
15 ····'\u2028':·'u2028', 
16 ····'\u2029':·'u2029' 
17 }; 
  
18 var·escapeRegExp·=·/\\|'|\r|\n|\u2028|\u2029/g; 
  
19 function·escapeChar(match)·{ 
20 ····return·'\\'·+·escapes[match]; 
21 } 
  
22 //·In·order·to·prevent·third-party·code·injection·through 
23 //·`_.templateSettings.variable`,·we·test·it·against·the·following·regular 
24 //·expression.·It·is·intentionally·a·bit·more·liberal·than·just·matching·valid 
25 //·identifiers,·but·still·prevents·possible·loopholes·through·defaults·or 
26 //·destructuring·assignment. 
27 var·bareIdentifier·=·/^\s*(\w|\$)+\s*$/; 
  
28 //·JavaScript·micro-templating,·similar·to·John·Resig's·implementation. 
29 //·Underscore·templating·handles·arbitrary·delimiters,·preserves·whitespace, 
30 //·and·correctly·escapes·quotes·within·interpolated·code. 
31 //·NB:·`oldSettings`·only·exists·for·backwards·compatibility. 
32 function·template(text,·settings,·oldSettings)·{ 
33 ····if·(!settings·&&·oldSettings)·settings·=·oldSettings; 
34 ····settings·=·defaults({},·settings,·underscore.templateSettings); 
  
35 ····//·Combine·delimiters·into·one·regular·expression·via·alternation. 
36 ····var·matcher·=·RegExp([ 
37 ········(settings.escape·||·noMatch).source, 
38 ········(settings.interpolate·||·noMatch).source, 
39 ········(settings.evaluate·||·noMatch).source 
40 ····].join('|')·+·'|$',·'g'); 
  
41 ····//·Compile·the·template·source,·escaping·string·literals·appropriately. 
42 ····var·index·=·0; 
43 ····var·source·=·"__p+='"; 
44 ····text.replace(matcher,·function(match,·escape,·interpolate,·evaluate,·offset)·{ 
45 ········source·+=·text.slice(index,·offset).replace(escapeRegExp,·escapeChar); 
46 ········index·=·offset·+·match.length; 
  
47 ········if·(escape)·{ 
48 ············source·+=·"'+\n((__t=("·+·escape·+·"))==null?'':_.escape(__t))+\n'"; 
49 ········}·else·if·(interpolate)·{ 
50 ············source·+=·"'+\n((__t=("·+·interpolate·+·"))==null?'':__t)+\n'"; 
51 ········}·else·if·(evaluate)·{ 
52 ············source·+=·"';\n"·+·evaluate·+·"\n__p+='"; 
53 ········} 
  
54 ········//·Adobe·VMs·need·the·match·returned·to·produce·the·correct·offset. 
55 ········return·match; 
56 ····}); 
57 ····source·+=·"';\n"; 
  
58 ····var·argument·=·settings.variable; 
59 ····if·(argument)·{ 
60 ········//·Insure·against·third-party·code·injection.·(CVE-2021-23358) 
61 ········if·(!bareIdentifier.test(argument))·throw·new·Error( 
62 ············'variable·is·not·a·bare·identifier:·'·+·argument 
63 ········); 
64 ····}·else·{ 
65 ········//·If·a·variable·is·not·specified,·place·data·values·in·local·scope. 
66 ········source·=·'with(obj||{}){\n'·+·source·+·'}\n'; 
67 ········argument·=·'obj'; 
68 ····} 
  
69 ····source·=·"var·__t,__p='',__j=Array.prototype.join,"·+ 
70 ········"print=function(){__p+=__j.call(arguments,'');};\n"·+ 
71 ········source·+·'return·__p;\n'; 
  
72 ····var·render; 
73 ····try·{ 
74 ········render·=·new·Function(argument,·'_',·source); 
75 ····}·catch·(e)·{ 
76 ········e.source·=·source; 
77 ········throw·e; 
78 ····} 
  
79 ····var·template·=·function(data)·{4 ····var·memoize·=·function(key)·{
80 ········return·render.call(this,·data,·underscore);5 ········var·cache·=·memoize.cache;
 6 ········var·address·=·''·+·(hasher·?·hasher.apply(this,·arguments)·:·key);
 7 ········if·(!_has(cache,·address))·cache[address]·=·func.apply(this,·arguments);
 8 ········return·cache[address];
81 ····};9 ····};
 10 ····memoize.cache·=·{};
  
82 ····//·Provide·the·compiled·source·as·a·convenience·for·precompilation. 
83 ····template.source·=·'function('·+·argument·+·'){\n'·+·source·+·'}'; 
  
84 ····return·template;11 ····return·memoize;
85 }12 }
  
86 module.exports·=·template;13 module.exports·=·memoize;
1.33 KB
./usr/share/nodejs/underscore/cjs/index142.js
1.25 KB
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 32 lines modified
 1 var·_isArrayLike·=·require('./index19.js');
1 var·_tagTester·=·require('./index29.js');2 var·values·=·require('./index90.js');
 3 var·_cb·=·require('./index140.js');
 4 var·each·=·require('./index50.js');
  
2 var·isWeakSet·=·_tagTester('WeakSet');5 //·Return·the·minimum·element·(or·element-based·computation).
 6 function·min(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 ····}
 28 ····return·result;
 29 }
  
3 module.exports·=·isWeakSet;30 module.exports·=·min;
1.08 KB
./usr/share/nodejs/underscore/cjs/index143.js
1020 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 20 lines modified
 1 var·underscore·=·require('./index159.js');
 2 var·each·=·require('./index50.js');
 3 var·functions·=·require('./index64.js');
 4 var·_setup·=·require('./index24.js');
1 var·_tagTester·=·require('./index29.js');5 var·_chainResult·=·require('./index2.js');
2 var·_stringTagBug·=·require('./index28.js'); 
3 var·_methodFingerprint·=·require('./index26.js'); 
  
4 var·isWeakMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.weakMapMethods)·:·_tagTester('WeakMap');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 ····});
 16 ····return·underscore;
 17 }
  
5 module.exports·=·isWeakMap;18 module.exports·=·mixin;
1.95 KB
./usr/share/nodejs/underscore/cjs/index144.js
1.86 KB
js-beautify {}
    
Offset 1, 49 lines modifiedOffset 1, 8 lines modified
 1 //·Returns·a·negated·version·of·the·passed-in·predicate.
 2 function·negate(predicate)·{
1 var·now·=·require('./index116.js'); 
  
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()·{3 ····return·function()·{
 4 ········return·!predicate.apply(this,·arguments);
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 ····};5 ····};
  
36 ····throttled.cancel·=·function()·{ 
37 ········clearTimeout(timeout); 
38 ········previous·=·0; 
39 ········timeout·=·context·=·args·=·null; 
40 ····}; 
  
41 ····return·throttled; 
42 }6 }
  
43 module.exports·=·throttle;7 module.exports·=·negate;
565 B
./usr/share/nodejs/underscore/cjs/index145.js
475 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 4 lines modified
1 var·_optimizeCb·=·require('./index24.js');1 //·Predicate-generating·function.·Often·useful·outside·of·Underscore.
 2 function·noop()·{}
  
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 } 
  
9 module.exports·=·times;3 module.exports·=·noop;
1.06 KB
./usr/share/nodejs/underscore/cjs/index146.js
992 B
js-beautify {}
    
Offset 1, 23 lines modifiedOffset 1, 6 lines modified
 1 //·A·(possibly·faster)·way·to·get·the·current·timestamp·as·an·integer.
 2 var·now·=·Date.now·||·function()·{
 3 ····return·new·Date().getTime();
 4 };
1 var·isArray·=·require('./index79.js'); 
2 var·_setup·=·require('./index27.js'); 
3 var·isString·=·require('./index97.js'); 
4 var·_isArrayLike·=·require('./index21.js'); 
5 var·map·=·require('./index104.js'); 
6 var·identity·=·require('./index68.js'); 
7 var·values·=·require('./index155.js'); 
  
8 //·Safely·create·a·real,·live·array·from·anything·iterable. 
9 var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; 
  
10 function·toArray(obj)·{ 
11 ····if·(!obj)·return·[]; 
12 ····if·(isArray(obj))·return·_setup.slice.call(obj); 
13 ····if·(isString(obj))·{ 
14 ········//·Keep·surrogate·pair·characters·together. 
15 ········return·obj.match(reStrSymbol); 
16 ····} 
17 ····if·(_isArrayLike(obj))·return·map(obj,·identity); 
18 ····return·values(obj); 
19 } 
  
20 module.exports·=·toArray;5 module.exports·=·now;
1.02 KB
./usr/share/nodejs/underscore/cjs/index147.js
957 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 18 lines modified
 1 var·_getLength·=·require('./index15.js');
1 var·underscore·=·require('./index148.js'); 
2 var·isArray·=·require('./index79.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 //·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·of
 4 //·the·corresponding·values.·Passing·by·pairs·is·the·reverse·of·`_.pairs`.
 5 function·object(list,·values)·{
 6 ····var·result·=·{};
 7 ····for·(var·i·=·0,·length·=·_getLength(list);·i·<·length;·i++)·{
 8 ········if·(values)·{
 9 ············result[list[i]]·=·values[i];
 10 ········}·else·{
 11 ············result[list[i][0]]·=·list[i][1];
 12 ········}
 13 ····}
 14 ····return·result;
7 }15 }
8 underscore.toPath·=·toPath; 
  
9 module.exports·=·toPath;16 module.exports·=·object;
1.75 KB
./usr/share/nodejs/underscore/cjs/index148.js
1.67 KB
js-beautify {}
    
Offset 1, 27 lines modifiedOffset 1, 25 lines modified
 1 var·restArguments·=·require('./index70.js');
 2 var·isFunction·=·require('./index117.js');
 3 var·negate·=·require('./index144.js');
1 var·_setup·=·require('./index27.js');4 var·map·=·require('./index137.js');
 5 var·_flatten·=·require('./index13.js');
 6 var·contains·=·require('./index42.js');
 7 var·pick·=·require('./index153.js');
  
 8 //·Return·a·copy·of·the·object·without·the·disallowed·properties.
 9 var·omit·=·restArguments(function(obj,·keys)·{
 10 ····var·iteratee·=·keys[0],
 11 ········context;
 12 ····if·(isFunction(iteratee))·{
 13 ········iteratee·=·negate(iteratee);
 14 ········if·(keys.length·>·1)·context·=·keys[1];
 15 ····}·else·{
 16 ········keys·=·map(_flatten(keys,·false,·false),·String);
 17 ········iteratee·=·function(value,·key)·{
 18 ············return·!contains(keys,·key);
 19 ········};
 20 ····}
 21 ····return·pick(obj,·iteratee,·context);
 22 });
  
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·=·_;23 module.exports·=·omit;
1.45 KB
./usr/share/nodejs/underscore/cjs/index149.js
1.36 KB
js-beautify {}
    
Offset 1, 31 lines modifiedOffset 1, 8 lines modified
1 var·underscore·=·require('./index148.js'); 
2 var·each·=·require('./index50.js');1 var·partial·=·require('./index151.js');
3 var·_setup·=·require('./index27.js');2 var·before·=·require('./index33.js');
4 var·_chainResult·=·require('./index7.js'); 
  
 3 //·Returns·a·function·that·will·be·executed·at·most·one·time,·no·matter·how
 4 //·often·you·call·it.·Useful·for·lazy·initialization.
 5 var·once·=·partial(before,·2);
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 }); 
  
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;6 module.exports·=·once;
1.45 KB
./usr/share/nodejs/underscore/cjs/index15.js
1.36 KB
js-beautify {}
    
Offset 1, 34 lines modifiedOffset 1, 6 lines modified
1 var·_getLength·=·require('./index16.js'); 
2 var·_isArrayLike·=·require('./index21.js');1 var·_shallowProperty·=·require('./index25.js');
3 var·isArray·=·require('./index79.js'); 
4 var·isArguments·=·require('./index78.js'); 
  
 2 //·Internal·helper·to·obtain·the·`length`·property·of·an·object.
 3 var·getLength·=·_shallowProperty('length');
5 //·Internal·implementation·of·a·recursive·`flatten`·function. 
6 function·flatten(input,·depth,·strict,·output)·{ 
7 ····output·=·output·||·[]; 
8 ····if·(!depth·&&·depth·!==·0)·{ 
9 ········depth·=·Infinity; 
10 ····}·else·if·(depth·<=·0)·{ 
11 ········return·output.concat(input); 
12 ····} 
13 ····var·idx·=·output.length; 
14 ····for·(var·i·=·0,·length·=·_getLength(input);·i·<·length;·i++)·{ 
15 ········var·value·=·input[i]; 
16 ········if·(_isArrayLike(value)·&&·(isArray(value)·||·isArguments(value)))·{ 
17 ············//·Flatten·current·level·of·array·or·arguments·object. 
18 ············if·(depth·>·1)·{ 
19 ················flatten(value,·depth·-·1,·strict,·output); 
20 ················idx·=·output.length; 
21 ············}·else·{ 
22 ················var·j·=·0, 
23 ····················len·=·value.length; 
24 ················while·(j·<·len)·output[idx++]·=·value[j++]; 
25 ············} 
26 ········}·else·if·(!strict)·{ 
27 ············output[idx++]·=·value; 
28 ········} 
29 ····} 
30 ····return·output; 
31 } 
  
32 module.exports·=·flatten;4 module.exports·=·getLength;
768 B
./usr/share/nodejs/underscore/cjs/index150.js
678 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 15 lines modified
1 var·_createEscaper·=·require('./index9.js'); 
2 var·_unescapeMap·=·require('./index30.js');1 var·keys·=·require('./index134.js');
  
3 //·Function·for·unescaping·strings·from·HTML·interpolation. 
4 var·unescape·=·_createEscaper(_unescapeMap);2 //·Convert·an·object·into·a·list·of·`[key,·value]`·pairs.
 3 //·The·opposite·of·`_.object`·with·one·argument.
 4 function·pairs(obj)·{
 5 ····var·_keys·=·keys(obj);
 6 ····var·length·=·_keys.length;
 7 ····var·pairs·=·Array(length);
 8 ····for·(var·i·=·0;·i·<·length;·i++)·{
 9 ········pairs[i]·=·[_keys[i],·obj[_keys[i]]];
 10 ····}
 11 ····return·pairs;
 12 }
  
5 module.exports·=·unescape;13 module.exports·=·pairs;
1.52 KB
./usr/share/nodejs/underscore/cjs/index151.js
1.43 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 26 lines modified
1 var·restArguments·=·require('./index132.js');1 var·restArguments·=·require('./index70.js');
 2 var·_executeBound·=·require('./index12.js');
2 var·uniq·=·require('./index152.js');3 var·underscore·=·require('./index159.js');
3 var·_flatten·=·require('./index15.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));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;
8 });21 });
  
 22 partial.placeholder·=·underscore;
  
9 module.exports·=·union;23 module.exports·=·partial;
1.79 KB
./usr/share/nodejs/underscore/cjs/index152.js
1.7 KB
js-beautify {}
    
Offset 1, 38 lines modifiedOffset 1, 9 lines modified
1 var·isBoolean·=·require('./index81.js'); 
2 var·_cb·=·require('./index3.js');1 var·_group·=·require('./index16.js');
3 var·_getLength·=·require('./index16.js'); 
4 var·contains·=·require('./index43.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);
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;7 module.exports·=·partition;
1.55 KB
./usr/share/nodejs/underscore/cjs/index153.js
1.46 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 29 lines modified
 1 var·restArguments·=·require('./index70.js');
 2 var·isFunction·=·require('./index117.js');
 3 var·_optimizeCb·=·require('./index23.js');
1 var·max·=·require('./index110.js');4 var·allKeys·=·require('./index32.js');
 5 var·_keyInObj·=·require('./index21.js');
2 var·_getLength·=·require('./index16.js');6 var·_flatten·=·require('./index13.js');
3 var·pluck·=·require('./index123.js'); 
  
4 //·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups 
5 //·each·array's·elements·on·shared·indices. 
6 function·unzip(array)·{ 
7 ····var·length·=·(array·&&·max(array,·_getLength).length)·||·0; 
8 ····var·result·=·Array(length); 
  
9 ····for·(var·index·=·0;·index·<·length;·index++)·{ 
10 ········result[index]·=·pluck(array,·index);7 //·Return·a·copy·of·the·object·only·containing·the·allowed·properties.
 8 var·pick·=·restArguments(function(obj,·keys)·{
 9 ····var·result·=·{},
 10 ········iteratee·=·keys[0];
 11 ····if·(obj·==·null)·return·result;
 12 ····if·(isFunction(iteratee))·{
 13 ········if·(keys.length·>·1)·iteratee·=·_optimizeCb(iteratee,·keys[1]);
 14 ········keys·=·allKeys(obj);
 15 ····}·else·{
 16 ········iteratee·=·_keyInObj;
 17 ········keys·=·_flatten(keys,·false,·false);
 18 ········obj·=·Object(obj);
 19 ····}
 20 ····for·(var·i·=·0,·length·=·keys.length;·i·<·length;·i++)·{
 21 ········var·key·=·keys[i];
 22 ········var·value·=·obj[key];
 23 ········if·(iteratee(value,·key,·obj))·result[key]·=·value;
11 ····}24 ····}
12 ····return·result;25 ····return·result;
13 }26 });
  
14 module.exports·=·unzip;27 module.exports·=·pick;
647 B
./usr/share/nodejs/underscore/cjs/index154.js
557 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 9 lines modified
 1 var·map·=·require('./index137.js');
 2 var·property·=·require('./index155.js');
1 //·Generate·a·unique·integer·id·(unique·within·the·entire·client·session). 
2 //·Useful·for·temporary·DOM·ids. 
3 var·idCounter·=·0; 
  
4 function·uniqueId(prefix)·{ 
5 ····var·id·=·++idCounter·+·''; 
6 ····return·prefix·?·prefix·+·id·:·id;3 //·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property.
 4 function·pluck(obj,·key)·{
 5 ····return·map(obj,·property(key));
7 }6 }
  
8 module.exports·=·uniqueId;7 module.exports·=·pluck;
874 B
./usr/share/nodejs/underscore/cjs/index155.js
784 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 13 lines modified
1 var·keys·=·require('./index102.js');1 var·_deepGet·=·require('./index10.js');
 2 var·_toPath·=·require('./index29.js');
  
 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);
2 //·Retrieve·the·values·of·an·object's·properties. 
3 function·values(obj)·{ 
4 ····var·_keys·=·keys(obj); 
5 ····var·length·=·_keys.length; 
6 ····var·values·=·Array(length); 
7 ····for·(var·i·=·0;·i·<·length;·i++)·{ 
8 ········values[i]·=·obj[_keys[i]]; 
9 ····}9 ····};
10 ····return·values; 
11 }10 }
  
12 module.exports·=·values;11 module.exports·=·property;
756 B
./usr/share/nodejs/underscore/cjs/index156.js
666 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 12 lines modified
 1 var·noop·=·require('./index145.js');
1 var·filter·=·require('./index59.js');2 var·get·=·require('./index95.js');
2 var·matcher·=·require('./index108.js'); 
  
3 //·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only 
4 //·objects·containing·specific·`key:value`·pairs. 
5 function·where(obj,·attrs)·{ 
6 ····return·filter(obj,·matcher(attrs));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 ····};
7 }9 }
  
8 module.exports·=·where;10 module.exports·=·propertyOf;
700 B
./usr/share/nodejs/underscore/cjs/index157.js
610 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 10 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·difference·=·require('./index53.js');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;
 6 ····}
 7 ····return·min·+·Math.floor(Math.random()·*·(max·-·min·+·1));
 8 }
  
3 //·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s). 
4 var·without·=·restArguments(function(array,·otherArrays)·{ 
5 ····return·difference(array,·otherArrays); 
6 }); 
  
7 module.exports·=·without;9 module.exports·=·random;
1.14 KB
./usr/share/nodejs/underscore/cjs/index158.js
1.05 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 20 lines modified
 1 var·_getLength·=·require('./index15.js');
 2 var·isArray·=·require('./index107.js');
1 var·partial·=·require('./index122.js');3 var·isString·=·require('./index127.js');
 4 var·isArguments·=·require('./index106.js');
 5 var·keys·=·require('./index134.js');
  
2 //·Returns·the·first·function·passed·as·an·argument·to·the·second, 
3 //·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and 
4 //·conditionally·execute·the·original·function. 
5 function·wrap(func,·wrapper)·{ 
6 ····return·partial(wrapper,·func);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;
7 }17 }
  
8 module.exports·=·wrap;18 module.exports·=·isEmpty;
1.19 KB
./usr/share/nodejs/underscore/cjs/index159.js
1.1 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 27 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·unzip·=·require('./index153.js');1 var·_setup·=·require('./index24.js');
  
3 //·Zip·together·multiple·lists·into·a·single·array·--·elements·that·share 
4 //·an·index·go·together. 
5 var·zip·=·restArguments(unzip);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 };
  
6 module.exports·=·zip;21 module.exports·=·_;
895 B
./usr/share/nodejs/underscore/cjs/index16.js
807 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 20 lines modified
 1 var·_cb·=·require('./index140.js');
1 var·_shallowProperty·=·require('./index25.js');2 var·each·=·require('./index50.js');
  
2 //·Internal·helper·to·obtain·the·`length`·property·of·an·object. 
3 var·getLength·=·_shallowProperty('length');3 //·An·internal·function·used·for·aggregate·"group·by"·operations.
 4 function·group(behavior,·partition)·{
 5 ····return·function(obj,·iteratee,·context)·{
 6 ········var·result·=·partition·?·[
 7 ············[],
 8 ············[]
 9 ········]·:·{};
 10 ········iteratee·=·_cb(iteratee,·context);
 11 ········each(obj,·function(value,·index)·{
 12 ············var·key·=·iteratee(value,·index,·obj);
 13 ············behavior(result,·value,·key);
 14 ········});
 15 ········return·result;
 16 ····};
 17 }
  
4 module.exports·=·getLength;18 module.exports·=·group;
1.6 KB
./usr/share/nodejs/underscore/cjs/index160.js
1.51 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 32 lines modified
 1 var·_isArrayLike·=·require('./index19.js');
 2 var·values·=·require('./index90.js');
1 var·underscore·=·require('./index148.js');3 var·_cb·=·require('./index140.js');
 4 var·each·=·require('./index50.js');
  
2 //·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the 
3 //·following·template·settings·to·use·alternative·delimiters. 
4 var·templateSettings·=·underscore.templateSettings·=·{ 
5 ····evaluate:·/<%([\s\S]+?)%>/g, 
6 ····interpolate:·/<%=([\s\S]+?)%>/g, 
7 ····escape:·/<%-([\s\S]+?)%>/g 
8 };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 ····}
 28 ····return·result;
 29 }
  
9 module.exports·=·templateSettings;30 module.exports·=·max;
410 B
./usr/share/nodejs/underscore/cjs/index17.js
322 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·_setup·=·require('./index27.js');1 var·_setup·=·require('./index24.js');
  
2 //·Internal·function·to·check·whether·`key`·is·an·own·property·name·of·`obj`.2 //·Internal·function·to·check·whether·`key`·is·an·own·property·name·of·`obj`.
3 function·has(obj,·key)·{3 function·has(obj,·key)·{
4 ····return·obj·!=·null·&&·_setup.hasOwnProperty.call(obj,·key);4 ····return·obj·!=·null·&&·_setup.hasOwnProperty.call(obj,·key);
5 }5 }
  
6 module.exports·=·has;6 module.exports·=·has;
458 B
./usr/share/nodejs/underscore/cjs/index18.js
370 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 5 lines modified
1 var·_shallowProperty·=·require('./index25.js');1 var·_tagTester·=·require('./index27.js');
  
 2 var·hasObjectTag·=·_tagTester('Object');
2 //·Internal·helper·to·obtain·the·`byteLength`·property·of·an·object. 
3 var·getByteLength·=·_shallowProperty('byteLength'); 
  
4 module.exports·=·getByteLength;3 module.exports·=·hasObjectTag;
705 B
./usr/share/nodejs/underscore/cjs/index19.js
617 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 10 lines modified
 1 var·_createSizePropertyCheck·=·require('./index8.js');
1 var·_tagTester·=·require('./index29.js');2 var·_getLength·=·require('./index15.js');
  
2 var·hasObjectTag·=·_tagTester('Object');3 //·Internal·helper·for·collection·methods·to·determine·whether·a·collection
 4 //·should·be·iterated·as·an·array·or·as·an·object.
 5 //·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
 6 //·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094
 7 var·isArrayLike·=·_createSizePropertyCheck(_getLength);
  
3 module.exports·=·hasObjectTag;8 module.exports·=·isArrayLike;
1.16 KB
./usr/share/nodejs/underscore/cjs/index2.js
1.08 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 8 lines modified
1 var·identity·=·require('./index68.js'); 
2 var·isFunction·=·require('./index88.js'); 
3 var·isObject·=·require('./index94.js'); 
4 var·isArray·=·require('./index79.js');1 var·underscore·=·require('./index159.js');
5 var·matcher·=·require('./index108.js'); 
6 var·property·=·require('./index124.js'); 
7 var·_optimizeCb·=·require('./index24.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); 
16 }5 }
  
17 module.exports·=·baseIteratee;6 module.exports·=·chainResult;
1010 B
./usr/share/nodejs/underscore/cjs/index20.js
920 B
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 8 lines modified
1 var·_cb·=·require('./index3.js');1 var·_createSizePropertyCheck·=·require('./index8.js');
2 var·each·=·require('./index50.js');2 var·_getByteLength·=·require('./index14.js');
  
 3 //·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against
 4 //·`ArrayBuffer`·et·al.
 5 var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);
3 //·An·internal·function·used·for·aggregate·"group·by"·operations. 
4 function·group(behavior,·partition)·{ 
5 ····return·function(obj,·iteratee,·context)·{ 
6 ········var·result·=·partition·?·[ 
7 ············[], 
8 ············[] 
9 ········]·:·{}; 
10 ········iteratee·=·_cb(iteratee,·context); 
11 ········each(obj,·function(value,·index)·{ 
12 ············var·key·=·iteratee(value,·index,·obj); 
13 ············behavior(result,·value,·key); 
14 ········}); 
15 ········return·result; 
16 ····}; 
17 } 
  
18 module.exports·=·group;6 module.exports·=·isBufferLike;
792 B
./usr/share/nodejs/underscore/cjs/index21.js
704 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 7 lines modified
1 var·_createSizePropertyCheck·=·require('./index14.js'); 
2 var·_getLength·=·require('./index16.js');1 //·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable
 2 //·property·name·of·`obj`.
 3 function·keyInObj(value,·key,·obj)·{
 4 ····return·key·in·obj;
 5 }
  
 6 module.exports·=·keyInObj;
3 //·Internal·helper·for·collection·methods·to·determine·whether·a·collection 
4 //·should·be·iterated·as·an·array·or·as·an·object. 
5 //·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength 
6 //·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094 
7 var·isArrayLike·=·_createSizePropertyCheck(_getLength); 
  
8 module.exports·=·isArrayLike; 
2.12 KB
./usr/share/nodejs/underscore/cjs/index22.js
2.04 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 42 lines modified
1 var·_createSizePropertyCheck·=·require('./index14.js'); 
2 var·_getByteLength·=·require('./index18.js');1 var·_getLength·=·require('./index15.js');
 2 var·isFunction·=·require('./index117.js');
 3 var·allKeys·=·require('./index32.js');
  
3 //·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against 
4 //·`ArrayBuffer`·et·al. 
5 var·isBufferLike·=·_createSizePropertyCheck(_getByteLength);4 //·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for
 5 //·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.
 7 //·The·fingerprint·method·lists·are·defined·below.
 8 function·ie11fingerprint(methods)·{
 9 ····var·length·=·_getLength(methods);
 10 ····return·function(obj)·{
 11 ········if·(obj·==·null)·return·false;
 12 ········//·`Map`,·`WeakMap`·and·`Set`·have·no·enumerable·keys.
 13 ········var·keys·=·allKeys(obj);
 14 ········if·(_getLength(keys))·return·false;
 15 ········for·(var·i·=·0;·i·<·length;·i++)·{
 16 ············if·(!isFunction(obj[methods[i]]))·return·false;
 17 ········}
 18 ········//·If·we·are·testing·against·`WeakMap`,·we·need·to·ensure·that
 19 ········//·`obj`·doesn't·have·a·`forEach`·method·in·order·to·distinguish
 20 ········//·it·from·a·regular·`Map`.
 21 ········return·methods·!==·weakMapMethods·||·!isFunction(obj[forEachName]);
 22 ····};
 23 }
  
6 module.exports·=·isBufferLike;24 //·In·the·interest·of·compact·minification,·we·write
 25 //·each·string·in·the·fingerprints·only·once.
 26 var·forEachName·=·'forEach',
 27 ····hasName·=·'has',
 28 ····commonInit·=·['clear',·'delete'],
 29 ····mapTail·=·['get',·hasName,·'set'];
  
 30 //·`Map`,·`WeakMap`·and·`Set`·each·have·slightly·different
 31 //·combinations·of·the·above·sublists.
 32 var·mapMethods·=·commonInit.concat(forEachName,·mapTail),
 33 ····weakMapMethods·=·commonInit.concat(mapTail),
 34 ····setMethods·=·['add'].concat(commonInit,·forEachName,·hasName);
  
 35 exports.ie11fingerprint·=·ie11fingerprint;
 36 exports.mapMethods·=·mapMethods;
 37 exports.setMethods·=·setMethods;
 38 exports.weakMapMethods·=·weakMapMethods;
1.28 KB
./usr/share/nodejs/underscore/cjs/index23.js
1.19 KB
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 26 lines modified
1 //·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable 
2 //·property·name·of·`obj`. 
3 function·keyInObj(value,·key,·obj)·{ 
4 ····return·key·in·obj;1 //·Internal·function·that·returns·an·efficient·(for·current·engines)·version
 2 //·of·the·passed-in·callback,·to·be·repeatedly·applied·in·other·Underscore
 3 //·functions.
 4 function·optimizeCb(func,·context,·argCount)·{
 5 ····if·(context·===·void·0)·return·func;
 6 ····switch·(argCount·==·null·?·3·:·argCount)·{
 7 ········case·1:
 8 ············return·function(value)·{
 9 ················return·func.call(context,·value);
 10 ············};
 11 ············//·The·2-argument·case·is·omitted·because·we’re·not·using·it.
 12 ········case·3:
 13 ············return·function(value,·index,·collection)·{
 14 ················return·func.call(context,·value,·index,·collection);
 15 ············};
 16 ········case·4:
 17 ············return·function(accumulator,·value,·index,·collection)·{
 18 ················return·func.call(context,·accumulator,·value,·index,·collection);
 19 ············};
 20 ····}
 21 ····return·function()·{
 22 ········return·func.apply(context,·arguments);
 23 ····};
5 }24 }
  
6 module.exports·=·keyInObj;25 module.exports·=·optimizeCb;
3.51 KB
./usr/share/nodejs/underscore/cjs/index24.js
3.43 KB
js-beautify {}
    
Offset 1, 26 lines modifiedOffset 1, 67 lines modified
 1 //·Current·version.
 2 var·VERSION·=·'1.13.4';
1 //·Internal·function·that·returns·an·efficient·(for·current·engines)·version 
2 //·of·the·passed-in·callback,·to·be·repeatedly·applied·in·other·Underscore 
3 //·functions. 
4 function·optimizeCb(func,·context,·argCount)·{ 
5 ····if·(context·===·void·0)·return·func; 
6 ····switch·(argCount·==·null·?·3·:·argCount)·{ 
7 ········case·1: 
8 ············return·function(value)·{ 
9 ················return·func.call(context,·value); 
10 ············}; 
11 ············//·The·2-argument·case·is·omitted·because·we’re·not·using·it. 
12 ········case·3: 
13 ············return·function(value,·index,·collection)·{ 
14 ················return·func.call(context,·value,·index,·collection); 
15 ············}; 
16 ········case·4: 
17 ············return·function(accumulator,·value,·index,·collection)·{ 
18 ················return·func.call(context,·accumulator,·value,·index,·collection); 
19 ············}; 
20 ····} 
21 ····return·function()·{ 
22 ········return·func.apply(context,·arguments); 
23 ····}; 
24 } 
  
25 module.exports·=·optimizeCb;3 //·Establish·the·root·object,·`window`·(`self`)·in·the·browser,·`global`
 4 //·on·the·server,·or·`this`·in·some·virtual·machines.·We·use·`self`
 5 //·instead·of·`window`·for·`WebWorker`·support.
 6 var·root·=·(typeof·self·==·'object'·&&·self.self·===·self·&&·self)·||
 7 ····(typeof·global·==·'object'·&&·global.global·===·global·&&·global)·||
 8 ····Function('return·this')()·||·{};
  
 9 //·Save·bytes·in·the·minified·(but·not·gzipped)·version:
 10 var·ArrayProto·=·Array.prototype,
 11 ····ObjProto·=·Object.prototype;
 12 var·SymbolProto·=·typeof·Symbol·!==·'undefined'·?·Symbol.prototype·:·null;
  
 13 //·Create·quick·reference·variables·for·speed·access·to·core·prototypes.
 14 var·push·=·ArrayProto.push,
 15 ····slice·=·ArrayProto.slice,
 16 ····toString·=·ObjProto.toString,
 17 ····hasOwnProperty·=·ObjProto.hasOwnProperty;
  
 18 //·Modern·feature·detection.
 19 var·supportsArrayBuffer·=·typeof·ArrayBuffer·!==·'undefined',
 20 ····supportsDataView·=·typeof·DataView·!==·'undefined';
  
 21 //·All·**ECMAScript·5+**·native·function·implementations·that·we·hope·to·use
 22 //·are·declared·here.
 23 var·nativeIsArray·=·Array.isArray,
 24 ····nativeKeys·=·Object.keys,
 25 ····nativeCreate·=·Object.create,
 26 ····nativeIsView·=·supportsArrayBuffer·&&·ArrayBuffer.isView;
  
 27 //·Create·references·to·these·builtin·functions·because·we·override·them.
 28 var·_isNaN·=·isNaN,
 29 ····_isFinite·=·isFinite;
  
 30 //·Keys·in·IE·<·9·that·won't·be·iterated·by·`for·key·in·...`·and·thus·missed.
 31 var·hasEnumBug·=·!{
 32 ····toString:·null
 33 }.propertyIsEnumerable('toString');
 34 var·nonEnumerableProps·=·['valueOf',·'isPrototypeOf',·'toString',
 35 ····'propertyIsEnumerable',·'hasOwnProperty',·'toLocaleString'
 36 ];
  
 37 //·The·largest·integer·that·can·be·represented·exactly.
 38 var·MAX_ARRAY_INDEX·=·Math.pow(2,·53)·-·1;
  
 39 exports.ArrayProto·=·ArrayProto;
 40 exports.MAX_ARRAY_INDEX·=·MAX_ARRAY_INDEX;
 41 exports.ObjProto·=·ObjProto;
 42 exports.SymbolProto·=·SymbolProto;
 43 exports.VERSION·=·VERSION;
 44 exports._isFinite·=·_isFinite;
 45 exports._isNaN·=·_isNaN;
 46 exports.hasEnumBug·=·hasEnumBug;
 47 exports.hasOwnProperty·=·hasOwnProperty;
 48 exports.nativeCreate·=·nativeCreate;
 49 exports.nativeIsArray·=·nativeIsArray;
 50 exports.nativeIsView·=·nativeIsView;
 51 exports.nativeKeys·=·nativeKeys;
 52 exports.nonEnumerableProps·=·nonEnumerableProps;
 53 exports.push·=·push;
 54 exports.root·=·root;
 55 exports.slice·=·slice;
 56 exports.supportsArrayBuffer·=·supportsArrayBuffer;
 57 exports.supportsDataView·=·supportsDataView;
 58 exports.toString·=·toString;
2.33 KB
./usr/share/nodejs/underscore/cjs/index26.js
2.24 KB
js-beautify {}
    
Offset 1, 42 lines modifiedOffset 1, 13 lines modified
1 var·_getLength·=·require('./index16.js'); 
2 var·isFunction·=·require('./index88.js'); 
3 var·allKeys·=·require('./index34.js');1 var·_setup·=·require('./index24.js');
 2 var·_hasObjectTag·=·require('./index18.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));
4 //·Since·the·regular·`Object.prototype.toString`·type·tests·don't·work·for 
5 //·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. 
7 //·The·fingerprint·method·lists·are·defined·below. 
8 function·ie11fingerprint(methods)·{ 
9 ····var·length·=·_getLength(methods); 
10 ····return·function(obj)·{ 
11 ········if·(obj·==·null)·return·false; 
12 ········//·`Map`,·`WeakMap`·and·`Set`·have·no·enumerable·keys. 
13 ········var·keys·=·allKeys(obj); 
14 ········if·(_getLength(keys))·return·false; 
15 ········for·(var·i·=·0;·i·<·length;·i++)·{ 
16 ············if·(!isFunction(obj[methods[i]]))·return·false; 
17 ········} 
18 ········//·If·we·are·testing·against·`WeakMap`,·we·need·to·ensure·that 
19 ········//·`obj`·doesn't·have·a·`forEach`·method·in·order·to·distinguish 
20 ········//·it·from·a·regular·`Map`. 
21 ········return·methods·!==·weakMapMethods·||·!isFunction(obj[forEachName]); 
22 ····}; 
23 } 
  
 10 exports.hasStringTagBug·=·hasStringTagBug;
 11 exports.isIE11·=·isIE11;
24 //·In·the·interest·of·compact·minification,·we·write 
25 //·each·string·in·the·fingerprints·only·once. 
26 var·forEachName·=·'forEach', 
27 ····hasName·=·'has', 
28 ····commonInit·=·['clear',·'delete'], 
29 ····mapTail·=·['get',·hasName,·'set']; 
  
30 //·`Map`,·`WeakMap`·and·`Set`·each·have·slightly·different 
31 //·combinations·of·the·above·sublists. 
32 var·mapMethods·=·commonInit.concat(forEachName,·mapTail), 
33 ····weakMapMethods·=·commonInit.concat(mapTail), 
34 ····setMethods·=·['add'].concat(commonInit,·forEachName,·hasName); 
  
35 exports.ie11fingerprint·=·ie11fingerprint; 
36 exports.mapMethods·=·mapMethods; 
37 exports.setMethods·=·setMethods; 
38 exports.weakMapMethods·=·weakMapMethods; 
2.85 KB
./usr/share/nodejs/underscore/cjs/index27.js
2.76 KB
js-beautify {}
    
Offset 1, 67 lines modifiedOffset 1, 11 lines modified
 1 var·_setup·=·require('./index24.js');
1 //·Current·version. 
2 var·VERSION·=·'1.13.4'; 
  
3 //·Establish·the·root·object,·`window`·(`self`)·in·the·browser,·`global` 
4 //·on·the·server,·or·`this`·in·some·virtual·machines.·We·use·`self` 
5 //·instead·of·`window`·for·`WebWorker`·support. 
6 var·root·=·(typeof·self·==·'object'·&&·self.self·===·self·&&·self)·|| 
7 ····(typeof·global·==·'object'·&&·global.global·===·global·&&·global)·|| 
8 ····Function('return·this')()·||·{};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;
9 //·Save·bytes·in·the·minified·(but·not·gzipped)·version: 
10 var·ArrayProto·=·Array.prototype, 
11 ····ObjProto·=·Object.prototype; 
12 var·SymbolProto·=·typeof·Symbol·!==·'undefined'·?·Symbol.prototype·:·null; 
  
13 //·Create·quick·reference·variables·for·speed·access·to·core·prototypes. 
14 var·push·=·ArrayProto.push, 
15 ····slice·=·ArrayProto.slice, 
16 ····toString·=·ObjProto.toString, 
17 ····hasOwnProperty·=·ObjProto.hasOwnProperty; 
  
18 //·Modern·feature·detection. 
19 var·supportsArrayBuffer·=·typeof·ArrayBuffer·!==·'undefined', 
20 ····supportsDataView·=·typeof·DataView·!==·'undefined'; 
  
21 //·All·**ECMAScript·5+**·native·function·implementations·that·we·hope·to·use 
22 //·are·declared·here. 
23 var·nativeIsArray·=·Array.isArray, 
24 ····nativeKeys·=·Object.keys, 
25 ····nativeCreate·=·Object.create, 
26 ····nativeIsView·=·supportsArrayBuffer·&&·ArrayBuffer.isView; 
  
27 //·Create·references·to·these·builtin·functions·because·we·override·them. 
28 var·_isNaN·=·isNaN, 
29 ····_isFinite·=·isFinite; 
  
30 //·Keys·in·IE·<·9·that·won't·be·iterated·by·`for·key·in·...`·and·thus·missed. 
31 var·hasEnumBug·=·!{ 
32 ····toString:·null 
33 }.propertyIsEnumerable('toString'); 
34 var·nonEnumerableProps·=·['valueOf',·'isPrototypeOf',·'toString', 
35 ····'propertyIsEnumerable',·'hasOwnProperty',·'toLocaleString' 
36 ]; 
  
37 //·The·largest·integer·that·can·be·represented·exactly. 
38 var·MAX_ARRAY_INDEX·=·Math.pow(2,·53)·-·1; 
  
39 exports.ArrayProto·=·ArrayProto; 
40 exports.MAX_ARRAY_INDEX·=·MAX_ARRAY_INDEX; 
41 exports.ObjProto·=·ObjProto; 
42 exports.SymbolProto·=·SymbolProto; 
43 exports.VERSION·=·VERSION; 
44 exports._isFinite·=·_isFinite; 
45 exports._isNaN·=·_isNaN; 
46 exports.hasEnumBug·=·hasEnumBug; 
47 exports.hasOwnProperty·=·hasOwnProperty; 
48 exports.nativeCreate·=·nativeCreate; 
49 exports.nativeIsArray·=·nativeIsArray; 
50 exports.nativeIsView·=·nativeIsView; 
51 exports.nativeKeys·=·nativeKeys; 
52 exports.nonEnumerableProps·=·nonEnumerableProps; 
53 exports.push·=·push; 
54 exports.root·=·root; 
55 exports.slice·=·slice; 
56 exports.supportsArrayBuffer·=·supportsArrayBuffer; 
57 exports.supportsDataView·=·supportsDataView; 
58 exports.toString·=·toString; 
1.03 KB
./usr/share/nodejs/underscore/cjs/index28.js
971 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 var·_setup·=·require('./index27.js');1 var·_getByteLength·=·require('./index14.js');
2 var·_hasObjectTag·=·require('./index19.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)))2 //·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer,
 3 //·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer.
 4 function·toBufferView(bufferSource)·{
 5 ····return·new·Uint8Array(
 6 ········bufferSource.buffer·||·bufferSource,
 7 ········bufferSource.byteOffset·||·0,
 8 ········_getByteLength(bufferSource)
8 ····),9 ····);
9 ····isIE11·=·(typeof·Map·!==·'undefined'·&&·_hasObjectTag(new·Map));10 }
  
 11 module.exports·=·toBufferView;
10 exports.hasStringTagBug·=·hasStringTagBug; 
11 exports.isIE11·=·isIE11; 
687 B
./usr/share/nodejs/underscore/cjs/index29.js
599 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 10 lines modified
1 var·_setup·=·require('./index27.js');1 var·underscore·=·require('./index159.js');
 2 require('./index84.js');
  
 3 //·Internal·wrapper·for·`_.toPath`·to·enable·minification.
 4 //·Similar·to·`cb`·for·`_.iteratee`.
 5 function·toPath(path)·{
 6 ····return·underscore.toPath(path);
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 }7 }
  
9 module.exports·=·tagTester;8 module.exports·=·toPath;
2.07 KB
./usr/share/nodejs/underscore/cjs/index3.js
1.99 KB
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 44 lines modified
1 var·underscore·=·require('./index148.js'); 
2 var·_baseIteratee·=·require('./index2.js');1 var·_setup·=·require('./index24.js');
 2 var·isFunction·=·require('./index117.js');
3 var·iteratee·=·require('./index101.js');3 var·_has·=·require('./index17.js');
  
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);4 //·Internal·helper·to·create·a·simple·lookup·structure.
 5 //·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to
 6 //·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for
 7 //·arrays·of·strings.
 8 function·emulatedSet(keys)·{
 9 ····var·hash·=·{};
 10 ····for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true;
 11 ····return·{
 12 ········contains:·function(key)·{
 13 ············return·hash[key]·===·true;
 14 ········},
 15 ········push:·function(key)·{
 16 ············hash[key]·=·true;
 17 ············return·keys.push(key);
 18 ········}
 19 ····};
9 }20 }
  
10 module.exports·=·cb;21 //·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't
 22 //·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if
 23 //·needed.
 24 function·collectNonEnumProps(obj,·keys)·{
 25 ····keys·=·emulatedSet(keys);
 26 ····var·nonEnumIdx·=·_setup.nonEnumerableProps.length;
 27 ····var·constructor·=·obj.constructor;
 28 ····var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto;
  
 29 ····//·Constructor·is·a·special·case.
 30 ····var·prop·=·'constructor';
 31 ····if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop);
  
 32 ····while·(nonEnumIdx--)·{
 33 ········prop·=·_setup.nonEnumerableProps[nonEnumIdx];
 34 ········if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{
 35 ············keys.push(prop);
 36 ········}
 37 ····}
 38 }
  
 39 module.exports·=·collectNonEnumProps;
422 B
./usr/share/nodejs/underscore/cjs/index30.js
334 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 var·invert·=·require('./index75.js');1 var·invert·=·require('./index104.js');
2 var·_escapeMap·=·require('./index12.js');2 var·_escapeMap·=·require('./index11.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;
652 B
./usr/share/nodejs/underscore/cjs/index31.js
564 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·underscore·=·require('./index148.js'); 
2 require('./index147.js'); 
  
3 //·Internal·wrapper·for·`_.toPath`·to·enable·minification. 
4 //·Similar·to·`cb`·for·`_.iteratee`. 
5 function·toPath(path)·{ 
6 ····return·underscore.toPath(path);1 //·Returns·a·function·that·will·only·be·executed·on·and·after·the·Nth·call.
 2 function·after(times,·func)·{
 3 ····return·function()·{
 4 ········if·(--times·<·1)·{
 5 ············return·func.apply(this,·arguments);
 6 ········}
 7 ····};
7 }8 }
  
8 module.exports·=·toPath;9 module.exports·=·after;
988 B
./usr/share/nodejs/underscore/cjs/index32.js
900 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 15 lines modified
 1 var·isObject·=·require('./index123.js');
1 var·_getByteLength·=·require('./index18.js');2 var·_setup·=·require('./index24.js');
 3 var·_collectNonEnumProps·=·require('./index3.js');
  
2 //·Internal·function·to·wrap·or·shallow-copy·an·ArrayBuffer, 
3 //·typed·array·or·DataView·to·a·new·view,·reusing·the·buffer. 
4 function·toBufferView(bufferSource)·{ 
5 ····return·new·Uint8Array( 
6 ········bufferSource.buffer·||·bufferSource, 
7 ········bufferSource.byteOffset·||·0, 
8 ········_getByteLength(bufferSource) 
9 ····);4 //·Retrieve·all·the·enumerable·property·names·of·an·object.
 5 function·allKeys(obj)·{
 6 ····if·(!isObject(obj))·return·[];
 7 ····var·keys·=·[];
 8 ····for·(var·key·in·obj)·keys.push(key);
 9 ····//·Ahem,·IE·<·9.
 10 ····if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys);
 11 ····return·keys;
10 }12 }
  
11 module.exports·=·toBufferView;13 module.exports·=·allKeys;
697 B
./usr/share/nodejs/underscore/cjs/index33.js
609 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 14 lines modified
1 //·Returns·a·function·that·will·only·be·executed·on·and·after·the·Nth·call.1 //·Returns·a·function·that·will·only·be·executed·up·to·(but·not·including)·the
 2 //·Nth·call.
2 function·after(times,·func)·{3 function·before(times,·func)·{
 4 ····var·memo;
3 ····return·function()·{5 ····return·function()·{
4 ········if·(--times·<·1)·{6 ········if·(--times·>·0)·{
5 ············return·func.apply(this,·arguments);7 ············memo·=·func.apply(this,·arguments);
6 ········}8 ········}
 9 ········if·(times·<=·1)·func·=·null;
 10 ········return·memo;
7 ····};11 ····};
8 }12 }
  
9 module.exports·=·after;13 module.exports·=·before;
1.13 KB
./usr/share/nodejs/underscore/cjs/index34.js
1.04 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
 1 var·restArguments·=·require('./index70.js');
1 var·isObject·=·require('./index94.js');2 var·isFunction·=·require('./index117.js');
2 var·_setup·=·require('./index27.js');3 var·_executeBound·=·require('./index12.js');
3 var·_collectNonEnumProps·=·require('./index4.js'); 
  
4 //·Retrieve·all·the·enumerable·property·names·of·an·object. 
5 function·allKeys(obj)·{ 
6 ····if·(!isObject(obj))·return·[]; 
7 ····var·keys·=·[]; 
8 ····for·(var·key·in·obj)·keys.push(key); 
9 ····//·Ahem,·IE·<·9. 
10 ····if·(_setup.hasEnumBug)·_collectNonEnumProps(obj,·keys); 
11 ····return·keys; 
12 }4 //·Create·a·function·bound·to·a·given·object·(assigning·`this`,·and·arguments,
 5 //·optionally).
 6 var·bind·=·restArguments(function(func,·context,·args)·{
 7 ····if·(!isFunction(func))·throw·new·TypeError('Bind·must·be·called·on·a·function');
 8 ····var·bound·=·restArguments(function(callArgs)·{
 9 ········return·_executeBound(func,·bound,·context,·this,·args.concat(callArgs));
 10 ····});
 11 ····return·bound;
 12 });
  
13 module.exports·=·allKeys;13 module.exports·=·bind;
701 B
./usr/share/nodejs/underscore/cjs/index35.js
613 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·restArguments·=·require('./index132.js');1 var·restArguments·=·require('./index70.js');
2 var·_flatten·=·require('./index15.js');2 var·_flatten·=·require('./index13.js');
3 var·bind·=·require('./index38.js');3 var·bind·=·require('./index34.js');
  
4 //·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments4 //·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·callbacks5 //·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks
6 //·defined·on·an·object·belong·to·it.6 //·defined·on·an·object·belong·to·it.
7 var·bindAll·=·restArguments(function(obj,·keys)·{7 var·bindAll·=·restArguments(function(obj,·keys)·{
8 ····keys·=·_flatten(keys,·false,·false);8 ····keys·=·_flatten(keys,·false,·false);
9 ····var·index·=·keys.length;9 ····var·index·=·keys.length;
910 B
./usr/share/nodejs/underscore/cjs/index36.js
822 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 16 lines modified
1 //·Returns·a·function·that·will·only·be·executed·up·to·(but·not·including)·the 
2 //·Nth·call. 
3 function·before(times,·func)·{ 
4 ····var·memo; 
5 ····return·function()·{ 
6 ········if·(--times·>·0)·{ 
7 ············memo·=·func.apply(this,·arguments); 
8 ········} 
9 ········if·(times·<=·1)·func·=·null; 
10 ········return·memo;1 var·_setup·=·require('./index24.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));
11 ····};11 ····}
 12 ····return·result;
12 }13 }
  
13 module.exports·=·before;14 module.exports·=·chunk;
384 B
./usr/share/nodejs/underscore/cjs/index37.js
296 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·underscore·=·require('./index148.js');1 var·underscore·=·require('./index159.js');
  
2 //·Start·chaining·a·wrapped·Underscore·object.2 //·Start·chaining·a·wrapped·Underscore·object.
3 function·chain(obj)·{3 function·chain(obj)·{
4 ····var·instance·=·underscore(obj);4 ····var·instance·=·underscore(obj);
5 ····instance._chain·=·true;5 ····instance._chain·=·true;
6 ····return·instance;6 ····return·instance;
7 }7 }
1.0 KB
./usr/share/nodejs/underscore/cjs/index38.js
940 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 11 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·isFunction·=·require('./index88.js');1 var·isObject·=·require('./index123.js');
 2 var·isArray·=·require('./index107.js');
3 var·_executeBound·=·require('./index13.js');3 var·extend·=·require('./index53.js');
  
 4 //·Create·a·(shallow-cloned)·duplicate·of·an·object.
 5 function·clone(obj)·{
 6 ····if·(!isObject(obj))·return·obj;
 7 ····return·isArray(obj)·?·obj.slice()·:·extend({},·obj);
 8 }
4 //·Create·a·function·bound·to·a·given·object·(assigning·`this`,·and·arguments, 
5 //·optionally). 
6 var·bind·=·restArguments(function(func,·context,·args)·{ 
7 ····if·(!isFunction(func))·throw·new·TypeError('Bind·must·be·called·on·a·function'); 
8 ····var·bound·=·restArguments(function(callArgs)·{ 
9 ········return·_executeBound(func,·bound,·context,·this,·args.concat(callArgs)); 
10 ····}); 
11 ····return·bound; 
12 }); 
  
13 module.exports·=·bind;9 module.exports·=·clone;
735 B
./usr/share/nodejs/underscore/cjs/index39.js
647 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 8 lines modified
1 var·_setup·=·require('./index27.js');1 var·filter·=·require('./index55.js');
  
 2 //·Trim·out·all·falsy·values·from·an·array.
 3 function·compact(array)·{
 4 ····return·filter(array,·Boolean);
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 }5 }
  
14 module.exports·=·chunk;6 module.exports·=·compact;
2.27 KB
./usr/share/nodejs/underscore/cjs/index4.js
2.19 KB
js-beautify {}
    
Offset 1, 44 lines modifiedOffset 1, 20 lines modified
 1 //·An·internal·function·for·creating·assigner·functions.
 2 function·createAssigner(keysFunc,·defaults)·{
 3 ····return·function(obj)·{
 4 ········var·length·=·arguments.length;
 5 ········if·(defaults)·obj·=·Object(obj);
 6 ········if·(length·<·2·||·obj·==·null)·return·obj;
 7 ········for·(var·index·=·1;·index·<·length;·index++)·{
 8 ············var·source·=·arguments[index],
 9 ················keys·=·keysFunc(source),
 10 ················l·=·keys.length;
 11 ············for·(var·i·=·0;·i·<·l;·i++)·{
 12 ················var·key·=·keys[i];
 13 ················if·(!defaults·||·obj[key]·===·void·0)·obj[key]·=·source[key];
1 var·_setup·=·require('./index27.js'); 
2 var·isFunction·=·require('./index88.js'); 
3 var·_has·=·require('./index17.js'); 
  
4 //·Internal·helper·to·create·a·simple·lookup·structure. 
5 //·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to 
6 //·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for 
7 //·arrays·of·strings. 
8 function·emulatedSet(keys)·{ 
9 ····var·hash·=·{}; 
10 ····for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true; 
11 ····return·{ 
12 ········contains:·function(key)·{ 
13 ············return·hash[key]·===·true; 
14 ········},14 ············}
15 ········push:·function(key)·{ 
16 ············hash[key]·=·true; 
17 ············return·keys.push(key); 
18 ········}15 ········}
 16 ········return·obj;
19 ····};17 ····};
20 }18 }
  
 19 module.exports·=·createAssigner;
21 //·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't 
22 //·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if 
23 //·needed. 
24 function·collectNonEnumProps(obj,·keys)·{ 
25 ····keys·=·emulatedSet(keys); 
26 ····var·nonEnumIdx·=·_setup.nonEnumerableProps.length; 
27 ····var·constructor·=·obj.constructor; 
28 ····var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto; 
  
29 ····//·Constructor·is·a·special·case. 
30 ····var·prop·=·'constructor'; 
31 ····if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop); 
  
32 ····while·(nonEnumIdx--)·{ 
33 ········prop·=·_setup.nonEnumerableProps[nonEnumIdx]; 
34 ········if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{ 
35 ············keys.push(prop); 
36 ········} 
37 ····} 
38 } 
  
39 module.exports·=·collectNonEnumProps; 
902 B
./usr/share/nodejs/underscore/cjs/index40.js
814 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 14 lines modified
 1 //·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each
 2 //·consuming·the·return·value·of·the·function·that·follows.
1 var·isObject·=·require('./index94.js'); 
2 var·isArray·=·require('./index79.js'); 
3 var·extend·=·require('./index56.js'); 
  
4 //·Create·a·(shallow-cloned)·duplicate·of·an·object. 
5 function·clone(obj)·{3 function·compose()·{
6 ····if·(!isObject(obj))·return·obj; 
7 ····return·isArray(obj)·?·obj.slice()·:·extend({},·obj);4 ····var·args·=·arguments;
 5 ····var·start·=·args.length·-·1;
 6 ····return·function()·{
 7 ········var·i·=·start;
 8 ········var·result·=·args[start].apply(this,·arguments);
 9 ········while·(i--)·result·=·args[i].call(this,·result);
 10 ········return·result;
 11 ····};
8 }12 }
  
9 module.exports·=·clone;13 module.exports·=·compose;
496 B
./usr/share/nodejs/underscore/cjs/index41.js
408 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 var·filter·=·require('./index59.js'); 
  
2 //·Trim·out·all·falsy·values·from·an·array. 
3 function·compact(array)·{ 
4 ····return·filter(array,·Boolean);1 //·Predicate-generating·function.·Often·useful·outside·of·Underscore.
 2 function·constant(value)·{
 3 ····return·function()·{
 4 ········return·value;
 5 ····};
5 }6 }
  
6 module.exports·=·compact;7 module.exports·=·constant;
759 B
./usr/share/nodejs/underscore/cjs/index42.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('./index19.js');
 2 var·values·=·require('./index90.js');
 3 var·indexOf·=·require('./index101.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/index43.js
883 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_group·=·require('./index16.js');
2 var·values·=·require('./index155.js');2 var·_has·=·require('./index17.js');
3 var·indexOf·=·require('./index71.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;
948 B
./usr/share/nodejs/underscore/cjs/index44.js
860 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 13 lines modified
1 var·_group·=·require('./index20.js'); 
2 var·_has·=·require('./index17.js');1 var·_baseCreate·=·require('./index.js');
 2 var·extendOwn·=·require('./index54.js');
  
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 });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);
 9 ····return·result;
 10 }
  
10 module.exports·=·countBy;11 module.exports·=·create;
1.89 KB
./usr/share/nodejs/underscore/cjs/index45.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('./index70.js');
2 var·extendOwn·=·require('./index54.js');2 var·now·=·require('./index146.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;
799 B
./usr/share/nodejs/underscore/cjs/index46.js
711 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 7 lines modified
 1 var·_createAssigner·=·require('./index4.js');
 2 var·allKeys·=·require('./index32.js');
1 //·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each 
2 //·consuming·the·return·value·of·the·function·that·follows. 
3 function·compose()·{ 
4 ····var·args·=·arguments; 
5 ····var·start·=·args.length·-·1; 
6 ····return·function()·{ 
7 ········var·i·=·start; 
8 ········var·result·=·args[start].apply(this,·arguments); 
9 ········while·(i--)·result·=·args[i].call(this,·result); 
10 ········return·result; 
11 ····}; 
12 } 
  
13 module.exports·=·compose;3 //·Fill·in·a·given·object·with·default·properties.
 4 var·defaults·=·_createAssigner(allKeys,·true);
  
 5 module.exports·=·defaults;
1.81 KB
./usr/share/nodejs/underscore/cjs/index47.js
1.73 KB
js-beautify {}
    
Offset 1, 42 lines modifiedOffset 1, 11 lines modified
1 var·restArguments·=·require('./index132.js');1 var·restArguments·=·require('./index70.js');
2 var·now·=·require('./index116.js'); 
  
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;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 ····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; 
29 ····}); 
  
30 ····debounced.cancel·=·function()·{ 
31 ········clearTimeout(timeout); 
32 ········timeout·=·args·=·context·=·null; 
33 ····}; 
  
34 ····return·debounced; 
35 } 
  
36 module.exports·=·debounce;9 module.exports·=·delay;
541 B
./usr/share/nodejs/underscore/cjs/index48.js
453 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·partial·=·require('./index122.js');1 var·partial·=·require('./index151.js');
2 var·delay·=·require('./index49.js');2 var·delay·=·require('./index47.js');
3 var·underscore·=·require('./index148.js');3 var·underscore·=·require('./index159.js');
  
4 //·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has4 //·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has
5 //·cleared.5 //·cleared.
6 var·defer·=·partial(delay,·underscore,·1);6 var·defer·=·partial(delay,·underscore,·1);
  
7 module.exports·=·defer;7 module.exports·=·defer;
998 B
./usr/share/nodejs/underscore/cjs/index49.js
910 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 15 lines modified
1 var·restArguments·=·require('./index132.js');1 var·restArguments·=·require('./index70.js');
 2 var·_flatten·=·require('./index13.js');
 3 var·filter·=·require('./index55.js');
 4 var·contains·=·require('./index42.js');
  
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);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.
 7 var·difference·=·restArguments(function(array,·rest)·{
 8 ····rest·=·_flatten(rest,·true,·true);
 9 ····return·filter(array,·function(value)·{
 10 ········return·!contains(rest,·value);
 11 ····});
8 });12 });
  
9 module.exports·=·delay;13 module.exports·=·difference;
1.46 KB
./usr/share/nodejs/underscore/cjs/index5.js
1.37 KB
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 19 lines modified
1 //·An·internal·function·for·creating·assigner·functions. 
2 function·createAssigner(keysFunc,·defaults)·{1 var·keys·=·require('./index134.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');
3 ····return·function(obj)·{12 ····return·function(string)·{
 13 ········string·=·string·==·null·?·''·:·''·+·string;
 14 ········return·testRegexp.test(string)·?·string.replace(replaceRegexp,·escaper)·:·string;
4 ········var·length·=·arguments.length; 
5 ········if·(defaults)·obj·=·Object(obj); 
6 ········if·(length·<·2·||·obj·==·null)·return·obj; 
7 ········for·(var·index·=·1;·index·<·length;·index++)·{ 
8 ············var·source·=·arguments[index], 
9 ················keys·=·keysFunc(source), 
10 ················l·=·keys.length; 
11 ············for·(var·i·=·0;·i·<·l;·i++)·{ 
12 ················var·key·=·keys[i]; 
13 ················if·(!defaults·||·obj[key]·===·void·0)·obj[key]·=·source[key]; 
14 ············} 
15 ········} 
16 ········return·obj; 
17 ····};15 ····};
18 }16 }
  
19 module.exports·=·createAssigner;17 module.exports·=·createEscaper;
679 B
./usr/share/nodejs/underscore/cjs/index50.js
591 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_optimizeCb·=·require('./index24.js');1 var·_optimizeCb·=·require('./index23.js');
2 var·_isArrayLike·=·require('./index21.js');2 var·_isArrayLike·=·require('./index19.js');
3 var·keys·=·require('./index102.js');3 var·keys·=·require('./index134.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);
565 B
./usr/share/nodejs/underscore/cjs/index51.js
477 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
1 var·_createAssigner·=·require('./index5.js');1 var·_createEscaper·=·require('./index5.js');
2 var·allKeys·=·require('./index34.js');2 var·_escapeMap·=·require('./index11.js');
  
3 //·Fill·in·a·given·object·with·default·properties. 
4 var·defaults·=·_createAssigner(allKeys,·true);3 //·Function·for·escaping·strings·to·HTML·interpolation.
 4 var·escape·=·_createEscaper(_escapeMap);
  
5 module.exports·=·defaults;5 module.exports·=·escape;
942 B
./usr/share/nodejs/underscore/cjs/index52.js
854 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 17 lines modified
1 var·_createEscaper·=·require('./index9.js'); 
2 var·_escapeMap·=·require('./index12.js');1 var·_cb·=·require('./index140.js');
 2 var·_isArrayLike·=·require('./index19.js');
 3 var·keys·=·require('./index134.js');
  
3 //·Function·for·escaping·strings·to·HTML·interpolation. 
4 var·escape·=·_createEscaper(_escapeMap);4 //·Determine·whether·all·of·the·elements·pass·a·truth·test.
 5 function·every(obj,·predicate,·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·false;
 12 ····}
 13 ····return·true;
 14 }
  
5 module.exports·=·escape;15 module.exports·=·every;
895 B
./usr/share/nodejs/underscore/cjs/index53.js
807 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 7 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·_flatten·=·require('./index15.js');1 var·_createAssigner·=·require('./index4.js');
3 var·filter·=·require('./index59.js'); 
4 var·contains·=·require('./index43.js');2 var·allKeys·=·require('./index32.js');
  
 3 //·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s).
 4 var·extend·=·_createAssigner(allKeys);
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. 
7 var·difference·=·restArguments(function(array,·rest)·{ 
8 ····rest·=·_flatten(rest,·true,·true); 
9 ····return·filter(array,·function(value)·{ 
10 ········return·!contains(rest,·value); 
11 ····}); 
12 }); 
  
13 module.exports·=·difference;5 module.exports·=·extend;
557 B
./usr/share/nodejs/underscore/cjs/index54.js
469 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_createAssigner·=·require('./index5.js');1 var·_createAssigner·=·require('./index4.js');
2 var·keys·=·require('./index102.js');2 var·keys·=·require('./index134.js');
  
3 //·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in3 //·Assigns·a·given·object·with·all·the·own·properties·in·the·passed-in
4 //·object(s).4 //·object(s).
5 //·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)5 //·(https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
6 var·extendOwn·=·_createAssigner(keys);6 var·extendOwn·=·_createAssigner(keys);
  
7 module.exports·=·extendOwn;7 module.exports·=·extendOwn;
1.06 KB
./usr/share/nodejs/underscore/cjs/index55.js
999 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 14 lines modified
1 var·_cb·=·require('./index3.js');1 var·_cb·=·require('./index140.js');
2 var·_isArrayLike·=·require('./index21.js'); 
3 var·keys·=·require('./index102.js');2 var·each·=·require('./index50.js');
  
4 //·Determine·whether·all·of·the·elements·pass·a·truth·test.3 //·Return·all·the·elements·that·pass·a·truth·test.
5 function·every(obj,·predicate,·context)·{4 function·filter(obj,·predicate,·context)·{
 5 ····var·results·=·[];
6 ····predicate·=·_cb(predicate,·context);6 ····predicate·=·_cb(predicate,·context);
 7 ····each(obj,·function(value,·index,·list)·{
 8 ········if·(predicate(value,·index,·list))·results.push(value);
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·false; 
12 ····}9 ····});
13 ····return·true;10 ····return·results;
14 }11 }
  
15 module.exports·=·every;12 module.exports·=·filter;
571 B
./usr/share/nodejs/underscore/cjs/index56.js
483 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 6 lines modified
1 var·_createAssigner·=·require('./index5.js');1 var·_createPredicateIndexFinder·=·require('./index7.js');
2 var·allKeys·=·require('./index34.js'); 
  
3 //·Extend·a·given·object·with·all·the·properties·in·passed-in·object(s). 
4 var·extend·=·_createAssigner(allKeys);2 //·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test.
 3 var·findIndex·=·_createPredicateIndexFinder(1);
  
5 module.exports·=·extend;4 module.exports·=·findIndex;
658 B
./usr/share/nodejs/underscore/cjs/index57.js
570 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_isArrayLike·=·require('./index21.js');1 var·_isArrayLike·=·require('./index19.js');
2 var·findIndex·=·require('./index60.js');2 var·findIndex·=·require('./index56.js');
3 var·findKey·=·require('./index61.js');3 var·findKey·=·require('./index58.js');
  
4 //·Return·the·first·value·which·passes·a·truth·test.4 //·Return·the·first·value·which·passes·a·truth·test.
5 function·find(obj,·predicate,·context)·{5 function·find(obj,·predicate,·context)·{
6 ····var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey;6 ····var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey;
7 ····var·key·=·keyFinder(obj,·predicate,·context);7 ····var·key·=·keyFinder(obj,·predicate,·context);
8 ····if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];8 ····if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key];
9 }9 }
803 B
./usr/share/nodejs/underscore/cjs/index58.js
715 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 15 lines modified
1 var·_createPredicateIndexFinder·=·require('./index8.js');1 var·_cb·=·require('./index140.js');
 2 var·keys·=·require('./index134.js');
  
2 //·Returns·the·last·index·on·an·array-like·that·passes·a·truth·test.3 //·Returns·the·first·key·on·an·object·that·passes·a·truth·test.
3 var·findLastIndex·=·_createPredicateIndexFinder(-1);4 function·findKey(obj,·predicate,·context)·{
 5 ····predicate·=·_cb(predicate,·context);
 6 ····var·_keys·=·keys(obj),
 7 ········key;
 8 ····for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{
 9 ········key·=·_keys[i];
 10 ········if·(predicate(obj[key],·key,·obj))·return·key;
 11 ····}
 12 }
  
4 module.exports·=·findLastIndex;13 module.exports·=·findKey;
756 B
./usr/share/nodejs/underscore/cjs/index59.js
668 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 6 lines modified
 1 var·_createPredicateIndexFinder·=·require('./index7.js');
1 var·_cb·=·require('./index3.js'); 
2 var·each·=·require('./index50.js'); 
  
 2 //·Returns·the·last·index·on·an·array-like·that·passes·a·truth·test.
 3 var·findLastIndex·=·_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·=·findLastIndex;
660 B
./usr/share/nodejs/underscore/cjs/index6.js
574 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 var·_getLength·=·require('./index16.js');1 var·_getLength·=·require('./index15.js');
2 var·_setup·=·require('./index27.js');2 var·_setup·=·require('./index24.js');
3 var·isNaN·=·require('./index92.js');3 var·isNaN·=·require('./index121.js');
  
4 //·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions.4 //·Internal·function·to·generate·the·`_.indexOf`·and·`_.lastIndexOf`·functions.
5 function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{5 function·createIndexFinder(dir,·predicateFind,·sortedIndex)·{
6 ····return·function(array,·item,·idx)·{6 ····return·function(array,·item,·idx)·{
7 ········var·i·=·0,7 ········var·i·=·0,
8 ············length·=·_getLength(array);8 ············length·=·_getLength(array);
9 ········if·(typeof·idx·==·'number')·{9 ········if·(typeof·idx·==·'number')·{
654 B
./usr/share/nodejs/underscore/cjs/index60.js
566 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 10 lines modified
1 var·_createPredicateIndexFinder·=·require('./index8.js');1 var·find·=·require('./index57.js');
 2 var·matcher·=·require('./index139.js');
  
2 //·Returns·the·first·index·on·an·array-like·that·passes·a·truth·test. 
3 var·findIndex·=·_createPredicateIndexFinder(1);3 //·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first
 4 //·object·containing·specific·`key:value`·pairs.
 5 function·findWhere(obj,·attrs)·{
 6 ····return·find(obj,·matcher(attrs));
 7 }
  
4 module.exports·=·findIndex;8 module.exports·=·findWhere;
1020 B
./usr/share/nodejs/underscore/cjs/index61.js
930 B
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 11 lines modified
1 var·_cb·=·require('./index3.js'); 
2 var·keys·=·require('./index102.js');1 var·initial·=·require('./index102.js');
  
 2 //·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N
 3 //·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`.
 4 function·first(array,·n,·guard)·{
 5 ····if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[];
 6 ····if·(n·==·null·||·guard)·return·array[0];
 7 ····return·initial(array,·array.length·-·n);
3 //·Returns·the·first·key·on·an·object·that·passes·a·truth·test. 
4 function·findKey(obj,·predicate,·context)·{ 
5 ····predicate·=·_cb(predicate,·context); 
6 ····var·_keys·=·keys(obj), 
7 ········key; 
8 ····for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ 
9 ········key·=·_keys[i]; 
10 ········if·(predicate(obj[key],·key,·obj))·return·key; 
11 ····} 
12 }8 }
  
13 module.exports·=·findKey;9 module.exports·=·first;
1.23 KB
./usr/share/nodejs/underscore/cjs/index62.js
1.15 KB
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 19 lines modified
1 var·find·=·require('./index57.js');1 var·identity·=·require('./index98.js');
 2 var·isFunction·=·require('./index117.js');
 3 var·isObject·=·require('./index123.js');
 4 var·isArray·=·require('./index107.js');
2 var·matcher·=·require('./index108.js');5 var·matcher·=·require('./index139.js');
 6 var·property·=·require('./index155.js');
 7 var·_optimizeCb·=·require('./index23.js');
  
3 //·Convenience·version·of·a·common·use·case·of·`_.find`:·getting·the·first 
4 //·object·containing·specific·`key:value`·pairs. 
5 function·findWhere(obj,·attrs)·{ 
6 ····return·find(obj,·matcher(attrs));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);
7 }16 }
  
8 module.exports·=·findWhere;17 module.exports·=·baseIteratee;
873 B
./usr/share/nodejs/underscore/cjs/index63.js
785 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 9 lines modified
1 var·initial·=·require('./index73.js');1 var·_flatten·=·require('./index13.js');
  
 2 //·Flatten·out·an·array,·either·recursively·(by·default),·or·up·to·`depth`.
 3 //·Passing·`true`·or·`false`·as·`depth`·means·`1`·or·`Infinity`,·respectively.
 4 function·flatten(array,·depth)·{
 5 ····return·_flatten(array,·depth,·false);
2 //·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N 
3 //·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`. 
4 function·first(array,·n,·guard)·{ 
5 ····if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; 
6 ····if·(n·==·null·||·guard)·return·array[0]; 
7 ····return·initial(array,·array.length·-·n); 
8 }6 }
  
9 module.exports·=·first;7 module.exports·=·flatten;
748 B
./usr/share/nodejs/underscore/cjs/index64.js
660 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 12 lines modified
1 var·_flatten·=·require('./index15.js');1 var·isFunction·=·require('./index117.js');
  
2 //·Flatten·out·an·array,·either·recursively·(by·default),·or·up·to·`depth`. 
3 //·Passing·`true`·or·`false`·as·`depth`·means·`1`·or·`Infinity`,·respectively. 
4 function·flatten(array,·depth)·{ 
5 ····return·_flatten(array,·depth,·false);2 //·Return·a·sorted·list·of·the·function·names·available·on·the·object.
 3 function·functions(obj)·{
 4 ····var·names·=·[];
 5 ····for·(var·key·in·obj)·{
 6 ········if·(isFunction(obj[key]))·names.push(key);
 7 ····}
 8 ····return·names.sort();
6 }9 }
  
7 module.exports·=·flatten;10 module.exports·=·functions;
1.05 KB
./usr/share/nodejs/underscore/cjs/index65.js
984 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 23 lines modified
1 var·isFunction·=·require('./index88.js');1 //·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of
 2 //·the·native·Python·`range()`·function.·See
 3 //·[the·Python·documentation](https://docs.python.org/library/functions.html#range).
 4 function·range(start,·stop,·step)·{
 5 ····if·(stop·==·null)·{
 6 ········stop·=·start·||·0;
 7 ········start·=·0;
 8 ····}
 9 ····if·(!step)·{
 10 ········step·=·stop·<·start·?·-1·:·1;
 11 ····}
  
2 //·Return·a·sorted·list·of·the·function·names·available·on·the·object. 
3 function·functions(obj)·{ 
4 ····var·names·=·[]; 
5 ····for·(var·key·in·obj)·{ 
6 ········if·(isFunction(obj[key]))·names.push(key);12 ····var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0);
 13 ····var·range·=·Array(length);
  
 14 ····for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{
 15 ········range[idx]·=·start;
7 ····}16 ····}
8 ····return·names.sort(); 
 17 ····return·range;
9 }18 }
  
10 module.exports·=·functions;19 module.exports·=·range;
861 B
./usr/share/nodejs/underscore/cjs/index66.js
773 B
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 7 lines modified
1 var·_toPath·=·require('./index31.js');1 var·_createReduce·=·require('./index9.js');
2 var·_deepGet·=·require('./index11.js'); 
3 var·isUndefined·=·require('./index99.js'); 
  
 2 //·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`,
 3 //·or·`foldl`.
 4 var·reduce·=·_createReduce(1);
4 //·Get·the·value·of·the·(deep)·property·on·`path`·from·`object`. 
5 //·If·any·property·in·`path`·does·not·exist·or·if·the·value·is 
6 //·`undefined`,·return·`defaultValue`·instead. 
7 //·The·`path`·is·normalized·through·`_.toPath`. 
8 function·get(object,·path,·defaultValue)·{ 
9 ····var·value·=·_deepGet(object,·_toPath(path)); 
10 ····return·isUndefined(value)·?·defaultValue·:·value; 
11 } 
  
12 module.exports·=·get;5 module.exports·=·reduce;
703 B
./usr/share/nodejs/underscore/cjs/index67.js
615 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 6 lines modified
1 var·_group·=·require('./index20.js');1 var·_createReduce·=·require('./index9.js');
2 var·_has·=·require('./index17.js'); 
  
 2 //·The·right-associative·version·of·reduce,·also·known·as·`foldr`.
 3 var·reduceRight·=·_createReduce(-1);
3 //·Groups·the·object's·values·by·a·criterion.·Pass·either·a·string·attribute 
4 //·to·group·by,·or·a·function·that·returns·the·criterion. 
5 var·groupBy·=·_group(function(result,·value,·key)·{ 
6 ····if·(_has(result,·key))·result[key].push(value); 
7 ····else·result[key]·=·[value]; 
8 }); 
  
9 module.exports·=·groupBy;4 module.exports·=·reduceRight;
578 B
./usr/share/nodejs/underscore/cjs/index68.js
490 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 10 lines modified
1 //·Keep·the·identity·function·around·for·default·iteratees. 
2 function·identity(value)·{ 
3 ····return·value;1 var·filter·=·require('./index55.js');
 2 var·negate·=·require('./index144.js');
 3 var·_cb·=·require('./index140.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);
4 }7 }
  
5 module.exports·=·identity;8 module.exports·=·reject;
1.03 KB
./usr/share/nodejs/underscore/cjs/index69.js
969 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 10 lines modified
1 var·_has·=·require('./index17.js');1 var·_setup·=·require('./index24.js');
2 var·_toPath·=·require('./index31.js'); 
  
 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);
3 //·Shortcut·function·for·checking·if·an·object·has·a·given·property·directly·on 
4 //·itself·(in·other·words,·not·on·a·prototype).·Unlike·the·internal·`has` 
5 //·function,·this·public·version·can·also·traverse·nested·properties. 
6 function·has(obj,·path)·{ 
7 ····path·=·_toPath(path); 
8 ····var·length·=·path.length; 
9 ····for·(var·i·=·0;·i·<·length;·i++)·{ 
10 ········var·key·=·path[i]; 
11 ········if·(!_has(obj,·key))·return·false; 
12 ········obj·=·obj[key]; 
13 ····} 
14 ····return·!!length; 
15 }7 }
  
16 module.exports·=·has;8 module.exports·=·rest;
972 B
./usr/share/nodejs/underscore/cjs/index7.js
886 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 17 lines modified
1 var·underscore·=·require('./index148.js');1 var·_cb·=·require('./index140.js');
 2 var·_getLength·=·require('./index15.js');
  
2 //·Helper·function·to·continue·chaining·intermediate·results. 
3 function·chainResult(instance,·obj)·{ 
4 ····return·instance._chain·?·underscore(obj).chain()·:·obj;3 //·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`.
 4 function·createPredicateIndexFinder(dir)·{
 5 ····return·function(array,·predicate,·context)·{
 6 ········predicate·=·_cb(predicate,·context);
 7 ········var·length·=·_getLength(array);
 8 ········var·index·=·dir·>·0·?·0·:·length·-·1;
 9 ········for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{
 10 ············if·(predicate(array[index],·index,·array))·return·index;
 11 ········}
 12 ········return·-1;
 13 ····};
5 }14 }
  
6 module.exports·=·chainResult;15 module.exports·=·createPredicateIndexFinder;
2.25 KB
./usr/share/nodejs/underscore/cjs/index70.js
2.16 KB
js-beautify {}
    
Offset 1, 28 lines modifiedOffset 1, 32 lines modified
1 var·index·=·require('./index72.js'); 
2 var·mixin·=·require('./index113.js');1 //·Some·functions·take·a·variable·number·of·arguments,·or·a·few·expected
 2 //·arguments·at·the·beginning·and·then·a·variable·number·of·values·to·operate
 3 //·on.·This·helper·accumulates·all·remaining·arguments·past·the·function’s
 4 //·argument·length·(or·an·explicit·`startIndex`),·into·an·array·that·becomes
 5 //·the·last·argument.·Similar·to·ES6’s·"rest·parameter".
 6 function·restArguments(func,·startIndex)·{
 7 ····startIndex·=·startIndex·==·null·?·func.length·-·1·:·+startIndex;
 8 ····return·function()·{
 9 ········var·length·=·Math.max(arguments.length·-·startIndex,·0),
 10 ············rest·=·Array(length),
 11 ············index·=·0;
 12 ········for·(;·index·<·length;·index++)·{
 13 ············rest[index]·=·arguments[index·+·startIndex];
 14 ········}
 15 ········switch·(startIndex)·{
 16 ············case·0:
 17 ················return·func.call(this,·rest);
 18 ············case·1:
 19 ················return·func.call(this,·arguments[0],·rest);
 20 ············case·2:
 21 ················return·func.call(this,·arguments[0],·arguments[1],·rest);
 22 ········}
 23 ········var·args·=·Array(startIndex·+·1);
 24 ········for·(index·=·0;·index·<·startIndex;·index++)·{
 25 ············args[index]·=·arguments[index];
 26 ········}
 27 ········args[startIndex]·=·rest;
 28 ········return·func.apply(this,·args);
 29 ····};
 30 }
  
 31 module.exports·=·restArguments;
3 //·Default·Export 
4 //·============== 
5 //·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export 
6 //·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS. 
7 //·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package 
8 //·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source 
9 //·of)·the·module·you·are·interfacing·with·when·you·do·any·of·the·following: 
10 // 
11 //·```js 
12 //·//·CommonJS 
13 //·var·_·=·require('underscore'); 
14 // 
15 //·//·AMD 
16 //·define(['underscore'],·function(_)·{...}); 
17 // 
18 //·//·UMD·in·the·browser 
19 //·//·_·is·available·as·a·global·variable 
20 //·``` 
  
21 //·Add·all·of·the·Underscore·functions·to·the·wrapper·object. 
22 var·_·=·mixin(index); 
23 //·Legacy·Node.js·API. 
24 _._·=·_; 
  
25 module.exports·=·_; 
1.39 KB
./usr/share/nodejs/underscore/cjs/index71.js
1.3 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 24 lines modified
 1 var·isFunction·=·require('./index117.js');
1 var·sortedIndex·=·require('./index139.js');2 var·_toPath·=·require('./index29.js');
2 var·findIndex·=·require('./index60.js'); 
3 var·_createIndexFinder·=·require('./index6.js'); 
  
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. 
6 //·If·the·array·is·large·and·already·in·sort·order,·pass·`true` 
7 //·for·**isSorted**·to·use·binary·search. 
8 var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex);3 //·Traverses·the·children·of·`obj`·along·`path`.·If·a·child·is·a·function,·it
 4 //·is·invoked·with·its·parent·as·context.·Returns·the·value·of·the·final
 5 //·child,·or·`fallback`·if·any·child·is·undefined.
 6 function·result(obj,·path,·fallback)·{
 7 ····path·=·_toPath(path);
 8 ····var·length·=·path.length;
 9 ····if·(!length)·{
 10 ········return·isFunction(fallback)·?·fallback.call(obj)·:·fallback;
 11 ····}
 12 ····for·(var·i·=·0;·i·<·length;·i++)·{
 13 ········var·prop·=·obj·==·null·?·void·0·:·obj[path[i]];
 14 ········if·(prop·===·void·0)·{
 15 ············prop·=·fallback;
 16 ············i·=·length;·//·Ensure·we·don't·continue·iterating.
 17 ········}
 18 ········obj·=·isFunction(prop)·?·prop.call(obj)·:·prop;
 19 ····}
 20 ····return·obj;
 21 }
  
9 module.exports·=·indexOf;22 module.exports·=·result;
10.2 KB
./usr/share/nodejs/underscore/cjs/index72.js
10.1 KB
js-beautify {}
    
Offset 1, 281 lines modifiedOffset 1, 29 lines modified
1 Object.defineProperty(exports,·'__esModule',·{ 
2 ····value:·true 
3 });1 var·_isArrayLike·=·require('./index19.js');
 2 var·values·=·require('./index90.js');
 3 var·_getLength·=·require('./index15.js');
 4 var·random·=·require('./index157.js');
 5 var·toArray·=·require('./index83.js');
  
 6 //·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).
 8 //·If·**n**·is·not·specified,·returns·a·single·random·element.
 9 //·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`.
 10 function·sample(obj,·n,·guard)·{
 11 ····if·(n·==·null·||·guard)·{
 12 ········if·(!_isArrayLike(obj))·obj·=·values(obj);
 13 ········return·obj[random(obj.length·-·1)];
 14 ····}
 15 ····var·sample·=·toArray(obj);
 16 ····var·length·=·_getLength(sample);
 17 ····n·=·Math.max(Math.min(n,·length),·0);
 18 ····var·last·=·length·-·1;
 19 ····for·(var·index·=·0;·index·<·n;·index++)·{
 20 ········var·rand·=·random(index,·last);
 21 ········var·temp·=·sample[index];
 22 ········sample[index]·=·sample[rand];
 23 ········sample[rand]·=·temp;
 24 ····}
 25 ····return·sample.slice(0,·n);
 26 }
4 var·_setup·=·require('./index27.js'); 
5 var·restArguments·=·require('./index132.js'); 
6 var·isObject·=·require('./index94.js'); 
7 var·isNull·=·require('./index91.js'); 
8 var·isUndefined·=·require('./index99.js'); 
9 var·isBoolean·=·require('./index81.js'); 
10 var·isElement·=·require('./index85.js'); 
11 var·isString·=·require('./index97.js'); 
12 var·isNumber·=·require('./index93.js'); 
13 var·isDate·=·require('./index83.js'); 
14 var·isRegExp·=·require('./index96.js'); 
15 var·isError·=·require('./index86.js'); 
16 var·isSymbol·=·require('./index98.js'); 
17 var·isArrayBuffer·=·require('./index80.js'); 
18 var·isDataView·=·require('./index82.js'); 
19 var·isArray·=·require('./index79.js'); 
20 var·isFunction·=·require('./index88.js'); 
21 var·isArguments·=·require('./index78.js'); 
22 var·isFinite·=·require('./index87.js'); 
23 var·isNaN·=·require('./index92.js'); 
24 var·isTypedArray·=·require('./index100.js'); 
25 var·isEmpty·=·require('./index95.js'); 
26 var·isMatch·=·require('./index90.js'); 
27 var·isEqual·=·require('./index84.js'); 
28 var·isMap·=·require('./index89.js'); 
29 var·isWeakMap·=·require('./index143.js'); 
30 var·isSet·=·require('./index107.js'); 
31 var·isWeakSet·=·require('./index142.js'); 
32 var·keys·=·require('./index102.js'); 
33 var·allKeys·=·require('./index34.js'); 
34 var·values·=·require('./index155.js'); 
35 var·pairs·=·require('./index119.js'); 
36 var·invert·=·require('./index75.js'); 
37 var·functions·=·require('./index65.js'); 
38 var·extend·=·require('./index56.js'); 
39 var·extendOwn·=·require('./index54.js'); 
40 var·defaults·=·require('./index51.js'); 
41 var·create·=·require('./index45.js'); 
42 var·clone·=·require('./index40.js'); 
43 var·tap·=·require('./index140.js'); 
44 var·get·=·require('./index66.js'); 
45 var·has·=·require('./index69.js'); 
46 var·mapObject·=·require('./index106.js'); 
47 var·identity·=·require('./index68.js'); 
48 var·constant·=·require('./index42.js'); 
49 var·noop·=·require('./index115.js'); 
50 var·toPath·=·require('./index147.js'); 
51 var·property·=·require('./index124.js'); 
52 var·propertyOf·=·require('./index125.js'); 
53 var·matcher·=·require('./index108.js'); 
54 var·times·=·require('./index145.js'); 
55 var·random·=·require('./index126.js'); 
56 var·now·=·require('./index116.js'); 
57 var·escape·=·require('./index52.js'); 
58 var·unescape·=·require('./index150.js'); 
59 var·templateSettings·=·require('./index160.js'); 
60 var·template·=·require('./index141.js'); 
61 var·result·=·require('./index133.js'); 
62 var·uniqueId·=·require('./index154.js'); 
63 var·chain·=·require('./index37.js'); 
64 var·iteratee·=·require('./index101.js'); 
65 var·partial·=·require('./index122.js'); 
66 var·bind·=·require('./index38.js'); 
67 var·bindAll·=·require('./index35.js'); 
68 var·memoize·=·require('./index109.js'); 
69 var·delay·=·require('./index49.js'); 
70 var·defer·=·require('./index48.js'); 
71 var·throttle·=·require('./index144.js'); 
72 var·debounce·=·require('./index47.js'); 
73 var·wrap·=·require('./index158.js'); 
74 var·negate·=·require('./index111.js'); 
75 var·compose·=·require('./index46.js'); 
76 var·after·=·require('./index33.js'); 
77 var·before·=·require('./index36.js'); 
78 var·once·=·require('./index118.js'); 
79 var·findKey·=·require('./index61.js'); 
80 var·findIndex·=·require('./index60.js'); 
81 var·findLastIndex·=·require('./index58.js'); 
82 var·sortedIndex·=·require('./index139.js'); 
83 var·indexOf·=·require('./index71.js'); 
84 var·lastIndexOf·=·require('./index105.js'); 
85 var·find·=·require('./index57.js'); 
86 var·findWhere·=·require('./index62.js'); 
87 var·each·=·require('./index50.js'); 
88 var·map·=·require('./index104.js'); 
89 var·reduce·=·require('./index128.js'); 
90 var·reduceRight·=·require('./index129.js'); 
91 var·filter·=·require('./index59.js'); 
92 var·reject·=·require('./index130.js'); 
93 var·every·=·require('./index55.js'); 
94 var·some·=·require('./index137.js'); 
95 var·contains·=·require('./index43.js'); 
96 var·invoke·=·require('./index77.js'); 
97 var·pluck·=·require('./index123.js'); 
98 var·where·=·require('./index156.js'); 
99 var·max·=·require('./index110.js'); 
100 var·min·=·require('./index112.js'); 
101 var·shuffle·=·require('./index136.js'); 
Max diff block lines reached; 4063/10302 bytes (39.44%) of diff not shown.
678 B
./usr/share/nodejs/underscore/cjs/index73.js
590 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 8 lines modified
1 var·_setup·=·require('./index27.js');1 var·sample·=·require('./index72.js');
  
 2 //·Shuffle·a·collection.
 3 function·shuffle(obj)·{
 4 ····return·sample(obj,·Infinity);
2 //·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on 
3 //·the·arguments·object.·Passing·**n**·will·return·all·the·values·in 
4 //·the·array,·excluding·the·last·N. 
5 function·initial(array,·n,·guard)·{ 
6 ····return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·n))); 
7 }5 }
  
8 module.exports·=·initial;6 module.exports·=·shuffle;
702 B
./usr/share/nodejs/underscore/cjs/index74.js
614 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 10 lines modified
 1 var·_isArrayLike·=·require('./index19.js');
1 var·_group·=·require('./index20.js');2 var·keys·=·require('./index134.js');
  
2 //·Indexes·the·object's·values·by·a·criterion,·similar·to·`_.groupBy`,·but·for 
3 //·when·you·know·that·your·index·values·will·be·unique. 
4 var·indexBy·=·_group(function(result,·value,·key)·{ 
5 ····result[key]·=·value; 
6 });3 //·Return·the·number·of·elements·in·a·collection.
 4 function·size(obj)·{
 5 ····if·(obj·==·null)·return·0;
 6 ····return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length;
 7 }
  
7 module.exports·=·indexBy;8 module.exports·=·size;
1.05 KB
./usr/share/nodejs/underscore/cjs/index75.js
992 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 17 lines modified
 1 var·_cb·=·require('./index140.js');
 2 var·_isArrayLike·=·require('./index19.js');
1 var·keys·=·require('./index102.js');3 var·keys·=·require('./index134.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];4 //·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test.
 5 function·some(obj,·predicate,·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;
8 ····}12 ····}
9 ····return·result;13 ····return·false;
10 }14 }
  
11 module.exports·=·invert;15 module.exports·=·some;
1.54 KB
./usr/share/nodejs/underscore/cjs/index76.js
1.46 KB
js-beautify {}
    
Offset 1, 21 lines modifiedOffset 1, 26 lines modified
1 var·_getLength·=·require('./index16.js'); 
2 var·contains·=·require('./index43.js');1 var·_cb·=·require('./index140.js');
 2 var·pluck·=·require('./index154.js');
 3 var·map·=·require('./index137.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;4 //·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee.
 5 function·sortBy(obj,·iteratee,·context)·{
 6 ····var·index·=·0;
 7 ····iteratee·=·_cb(iteratee,·context);
 8 ····return·pluck(map(obj,·function(value,·key,·list)·{
 9 ········return·{
 10 ············value:·value,
 11 ············index:·index++,
 12 ············criteria:·iteratee(value,·key,·list)
11 ········var·j;13 ········};
12 ········for·(j·=·1;·j·<·argsLength;·j++)·{ 
13 ············if·(!contains(arguments[j],·item))·break;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;
14 ········}20 ········}
 21 ········return·left.index·-·right.index;
 22 ····}),·'value');
15 ········if·(j·===·argsLength)·result.push(item); 
16 ····} 
17 ····return·result; 
18 }23 }
  
19 module.exports·=·intersection;24 module.exports·=·sortBy;
1.69 KB
./usr/share/nodejs/underscore/cjs/index77.js
1.61 KB
js-beautify {}
    
Offset 1, 30 lines modifiedOffset 1, 19 lines modified
1 var·restArguments·=·require('./index132.js'); 
2 var·isFunction·=·require('./index88.js'); 
3 var·map·=·require('./index104.js');1 var·_cb·=·require('./index140.js');
4 var·_deepGet·=·require('./index11.js'); 
5 var·_toPath·=·require('./index31.js');2 var·_getLength·=·require('./index15.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 //·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.
 5 function·sortedIndex(array,·obj,·iteratee,·context)·{
 6 ····iteratee·=·_cb(iteratee,·context,·1);
 7 ····var·value·=·iteratee(obj);
 8 ····var·low·=·0,
 9 ········high·=·_getLength(array);
 10 ····while·(low·<·high)·{
 11 ········var·mid·=·Math.floor((low·+·high)·/·2);
 12 ········if·(iteratee(array[mid])·<·value)·low·=·mid·+·1;
 13 ········else·high·=·mid;
15 ····}14 ····}
 15 ····return·low;
 16 }
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 }); 
  
28 module.exports·=·invoke;17 module.exports·=·sortedIndex;
931 B
./usr/share/nodejs/underscore/cjs/index78.js
843 B
js-beautify {}
    
Offset 1, 18 lines modifiedOffset 1, 9 lines modified
1 var·_tagTester·=·require('./index29.js'); 
2 var·_has·=·require('./index17.js');1 //·Invokes·`interceptor`·with·the·`obj`·and·then·returns·`obj`.
 2 //·The·primary·purpose·of·this·method·is·to·"tap·into"·a·method·chain,·in
 3 //·order·to·perform·operations·on·intermediate·results·within·the·chain.
 4 function·tap(obj,·interceptor)·{
 5 ····interceptor(obj);
 6 ····return·obj;
 7 }
  
 8 module.exports·=·tap;
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 ····} 
12 }()); 
  
13 var·isArguments$1·=·isArguments; 
  
14 module.exports·=·isArguments$1; 
3.89 KB
./usr/share/nodejs/underscore/cjs/index79.js
3.81 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 103 lines modified
1 var·_setup·=·require('./index27.js');1 var·defaults·=·require('./index46.js');
2 var·_tagTester·=·require('./index29.js');2 var·underscore·=·require('./index159.js');
 3 require('./index80.js');
  
3 //·Is·a·given·value·an·array? 
4 //·Delegates·to·ECMA5's·native·`Array.isArray`. 
5 var·isArray·=·_setup.nativeIsArray·||·_tagTester('Array');4 //·When·customizing·`_.templateSettings`,·if·you·don't·want·to·define·an
 5 //·interpolation,·evaluation·or·escaping·regex,·we·need·one·that·is
 6 //·guaranteed·not·to·match.
 7 var·noMatch·=·/(.)^/;
  
6 module.exports·=·isArray;8 //·Certain·characters·need·to·be·escaped·so·that·they·can·be·put·into·a
 9 //·string·literal.
 10 var·escapes·=·{
 11 ····"'":·"'",
 12 ····'\\':·'\\',
 13 ····'\r':·'r',
 14 ····'\n':·'n',
 15 ····'\u2028':·'u2028',
 16 ····'\u2029':·'u2029'
 17 };
  
 18 var·escapeRegExp·=·/\\|'|\r|\n|\u2028|\u2029/g;
  
 19 function·escapeChar(match)·{
 20 ····return·'\\'·+·escapes[match];
 21 }
  
 22 //·In·order·to·prevent·third-party·code·injection·through
 23 //·`_.templateSettings.variable`,·we·test·it·against·the·following·regular
 24 //·expression.·It·is·intentionally·a·bit·more·liberal·than·just·matching·valid
 25 //·identifiers,·but·still·prevents·possible·loopholes·through·defaults·or
 26 //·destructuring·assignment.
 27 var·bareIdentifier·=·/^\s*(\w|\$)+\s*$/;
  
 28 //·JavaScript·micro-templating,·similar·to·John·Resig's·implementation.
 29 //·Underscore·templating·handles·arbitrary·delimiters,·preserves·whitespace,
 30 //·and·correctly·escapes·quotes·within·interpolated·code.
 31 //·NB:·`oldSettings`·only·exists·for·backwards·compatibility.
 32 function·template(text,·settings,·oldSettings)·{
 33 ····if·(!settings·&&·oldSettings)·settings·=·oldSettings;
 34 ····settings·=·defaults({},·settings,·underscore.templateSettings);
  
 35 ····//·Combine·delimiters·into·one·regular·expression·via·alternation.
 36 ····var·matcher·=·RegExp([
 37 ········(settings.escape·||·noMatch).source,
 38 ········(settings.interpolate·||·noMatch).source,
 39 ········(settings.evaluate·||·noMatch).source
 40 ····].join('|')·+·'|$',·'g');
  
 41 ····//·Compile·the·template·source,·escaping·string·literals·appropriately.
 42 ····var·index·=·0;
 43 ····var·source·=·"__p+='";
 44 ····text.replace(matcher,·function(match,·escape,·interpolate,·evaluate,·offset)·{
 45 ········source·+=·text.slice(index,·offset).replace(escapeRegExp,·escapeChar);
 46 ········index·=·offset·+·match.length;
  
 47 ········if·(escape)·{
 48 ············source·+=·"'+\n((__t=("·+·escape·+·"))==null?'':_.escape(__t))+\n'";
 49 ········}·else·if·(interpolate)·{
 50 ············source·+=·"'+\n((__t=("·+·interpolate·+·"))==null?'':__t)+\n'";
 51 ········}·else·if·(evaluate)·{
 52 ············source·+=·"';\n"·+·evaluate·+·"\n__p+='";
 53 ········}
  
 54 ········//·Adobe·VMs·need·the·match·returned·to·produce·the·correct·offset.
 55 ········return·match;
 56 ····});
 57 ····source·+=·"';\n";
  
 58 ····var·argument·=·settings.variable;
 59 ····if·(argument)·{
 60 ········//·Insure·against·third-party·code·injection.·(CVE-2021-23358)
 61 ········if·(!bareIdentifier.test(argument))·throw·new·Error(
 62 ············'variable·is·not·a·bare·identifier:·'·+·argument
 63 ········);
 64 ····}·else·{
 65 ········//·If·a·variable·is·not·specified,·place·data·values·in·local·scope.
 66 ········source·=·'with(obj||{}){\n'·+·source·+·'}\n';
 67 ········argument·=·'obj';
 68 ····}
  
 69 ····source·=·"var·__t,__p='',__j=Array.prototype.join,"·+
 70 ········"print=function(){__p+=__j.call(arguments,'');};\n"·+
 71 ········source·+·'return·__p;\n';
  
 72 ····var·render;
 73 ····try·{
 74 ········render·=·new·Function(argument,·'_',·source);
 75 ····}·catch·(e)·{
 76 ········e.source·=·source;
 77 ········throw·e;
 78 ····}
  
 79 ····var·template·=·function(data)·{
 80 ········return·render.call(this,·data,·underscore);
 81 ····};
  
 82 ····//·Provide·the·compiled·source·as·a·convenience·for·precompilation.
 83 ····template.source·=·'function('·+·argument·+·'){\n'·+·source·+·'}';
  
 84 ····return·template;
 85 }
  
 86 module.exports·=·template;
1.12 KB
./usr/share/nodejs/underscore/cjs/index8.js
1.03 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 11 lines modified
1 var·_cb·=·require('./index3.js');1 var·_setup·=·require('./index24.js');
2 var·_getLength·=·require('./index16.js'); 
  
 2 //·Common·internal·logic·for·`isArrayLike`·and·`isBufferLike`.
 3 function·createSizePropertyCheck(getSizeProperty)·{
 4 ····return·function(collection)·{
 5 ········var·sizeProperty·=·getSizeProperty(collection);
 6 ········return·typeof·sizeProperty·==·'number'·&&·sizeProperty·>=·0·&&·sizeProperty·<=·_setup.MAX_ARRAY_INDEX;
3 //·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`. 
4 function·createPredicateIndexFinder(dir)·{ 
5 ····return·function(array,·predicate,·context)·{ 
6 ········predicate·=·_cb(predicate,·context); 
7 ········var·length·=·_getLength(array); 
8 ········var·index·=·dir·>·0·?·0·:·length·-·1; 
9 ········for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{ 
10 ············if·(predicate(array[index],·index,·array))·return·index; 
11 ········} 
12 ········return·-1; 
13 ····};7 ····}
14 }8 }
  
15 module.exports·=·createPredicateIndexFinder;9 module.exports·=·createSizePropertyCheck;
642 B
./usr/share/nodejs/underscore/cjs/index80.js
554 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 11 lines modified
1 var·_tagTester·=·require('./index29.js');1 var·underscore·=·require('./index159.js');
  
2 var·isArrayBuffer·=·_tagTester('ArrayBuffer');2 //·By·default,·Underscore·uses·ERB-style·template·delimiters.·Change·the
 3 //·following·template·settings·to·use·alternative·delimiters.
 4 var·templateSettings·=·underscore.templateSettings·=·{
 5 ····evaluate:·/<%([\s\S]+?)%>/g,
 6 ····interpolate:·/<%=([\s\S]+?)%>/g,
 7 ····escape:·/<%-([\s\S]+?)%>/g
 8 };
  
3 module.exports·=·isArrayBuffer;9 module.exports·=·templateSettings;
1.97 KB
./usr/share/nodejs/underscore/cjs/index81.js
1.89 KB
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 49 lines modified
1 var·_setup·=·require('./index27.js');1 var·now·=·require('./index146.js');
  
2 //·Is·a·given·value·a·boolean? 
3 function·isBoolean(obj)·{ 
4 ····return·obj·===·true·||·obj·===·false·||·_setup.toString.call(obj)·===·'[object·Boolean]';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;
5 }42 }
  
6 module.exports·=·isBoolean;43 module.exports·=·throttle;
1010 B
./usr/share/nodejs/underscore/cjs/index82.js
919 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 11 lines modified
1 var·_tagTester·=·require('./index29.js');1 var·_optimizeCb·=·require('./index23.js');
2 var·isFunction·=·require('./index88.js'); 
3 var·isArrayBuffer·=·require('./index80.js'); 
4 var·_stringTagBug·=·require('./index28.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);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;
10 }8 }
  
11 var·isDataView$1·=·(_stringTagBug.hasStringTagBug·?·ie10IsDataView·:·isDataView); 
  
12 module.exports·=·isDataView$1;9 module.exports·=·times;
1020 B
./usr/share/nodejs/underscore/cjs/index83.js
927 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 23 lines modified
 1 var·isArray·=·require('./index107.js');
 2 var·_setup·=·require('./index24.js');
 3 var·isString·=·require('./index127.js');
 4 var·_isArrayLike·=·require('./index19.js');
 5 var·map·=·require('./index137.js');
 6 var·identity·=·require('./index98.js');
1 var·_tagTester·=·require('./index29.js');7 var·values·=·require('./index90.js');
  
2 var·isDate·=·_tagTester('Date');8 //·Safely·create·a·real,·live·array·from·anything·iterable.
 9 var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
  
 10 function·toArray(obj)·{
 11 ····if·(!obj)·return·[];
 12 ····if·(isArray(obj))·return·_setup.slice.call(obj);
 13 ····if·(isString(obj))·{
 14 ········//·Keep·surrogate·pair·characters·together.
 15 ········return·obj.match(reStrSymbol);
 16 ····}
 17 ····if·(_isArrayLike(obj))·return·map(obj,·identity);
 18 ····return·values(obj);
 19 }
  
3 module.exports·=·isDate;20 module.exports·=·toArray;
6.35 KB
./usr/share/nodejs/underscore/cjs/index84.js
6.27 KB
js-beautify {}
    
Offset 1, 142 lines modifiedOffset 1, 11 lines modified
1 var·underscore·=·require('./index148.js');1 var·underscore·=·require('./index159.js');
2 var·_setup·=·require('./index27.js'); 
3 var·_getByteLength·=·require('./index18.js'); 
4 var·isTypedArray·=·require('./index100.js');2 var·isArray·=·require('./index107.js');
5 var·isFunction·=·require('./index88.js'); 
6 var·_stringTagBug·=·require('./index28.js'); 
7 var·isDataView·=·require('./index82.js'); 
8 var·keys·=·require('./index102.js'); 
9 var·_has·=·require('./index17.js'); 
10 var·_toBufferView·=·require('./index32.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];
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. 
Max diff block lines reached; 84/6388 bytes (1.31%) of diff not shown.
1.32 KB
./usr/share/nodejs/underscore/cjs/index85.js
1.23 KB
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 31 lines modified
1 //·Is·a·given·value·a·DOM·element? 
2 function·isElement(obj)·{ 
3 ····return·!!(obj·&&·obj.nodeType·===·1); 
4 }1 var·underscore·=·require('./index159.js');
 2 var·each·=·require('./index50.js');
 3 var·_setup·=·require('./index24.js');
 4 var·_chainResult·=·require('./index2.js');
  
5 module.exports·=·isElement;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 });
  
 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;
597 B
./usr/share/nodejs/underscore/cjs/index86.js
509 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 11 lines modified
 1 var·restArguments·=·require('./index70.js');
 2 var·uniq·=·require('./index87.js');
1 var·_tagTester·=·require('./index29.js');3 var·_flatten·=·require('./index13.js');
  
2 var·isError·=·_tagTester('Error');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 });
  
3 module.exports·=·isError;9 module.exports·=·union;
1.72 KB
./usr/share/nodejs/underscore/cjs/index87.js
1.63 KB
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 38 lines modified
1 var·_setup·=·require('./index27.js'); 
2 var·isSymbol·=·require('./index98.js');1 var·isBoolean·=·require('./index109.js');
 2 var·_cb·=·require('./index140.js');
 3 var·_getLength·=·require('./index15.js');
 4 var·contains·=·require('./index42.js');
  
3 //·Is·a·given·object·a·finite·number? 
4 function·isFinite(obj)·{ 
5 ····return·!isSymbol(obj)·&&·_setup._isFinite(obj)·&&·!isNaN(parseFloat(obj));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;
6 }35 }
  
7 module.exports·=·isFinite;36 module.exports·=·uniq;
999 B
./usr/share/nodejs/underscore/cjs/index88.js
911 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 10 lines modified
1 var·_tagTester·=·require('./index29.js'); 
2 var·_setup·=·require('./index27.js');1 //·Generate·a·unique·integer·id·(unique·within·the·entire·client·session).
 2 //·Useful·for·temporary·DOM·ids.
 3 var·idCounter·=·0;
  
 4 function·uniqueId(prefix)·{
 5 ····var·id·=·++idCounter·+·'';
 6 ····return·prefix·?·prefix·+·id·:·id;
3 var·isFunction·=·_tagTester('Function'); 
  
4 //·Optimize·`isFunction`·if·appropriate.·Work·around·some·`typeof`·bugs·in·old 
5 //·v8,·IE·11·(#1621),·Safari·8·(#1929),·and·PhantomJS·(#2236). 
6 var·nodelist·=·_setup.root.document·&&·_setup.root.document.childNodes; 
7 if·(typeof·/./·!=·'function'·&&·typeof·Int8Array·!=·'object'·&&·typeof·nodelist·!=·'function')·{ 
8 ····isFunction·=·function(obj)·{ 
9 ········return·typeof·obj·==·'function'·||·false; 
10 ····}; 
11 }7 }
  
12 var·isFunction$1·=·isFunction; 
  
13 module.exports·=·isFunction$1;8 module.exports·=·uniqueId;
934 B
./usr/share/nodejs/underscore/cjs/index89.js
846 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 17 lines modified
 1 var·max·=·require('./index160.js');
1 var·_tagTester·=·require('./index29.js');2 var·_getLength·=·require('./index15.js');
 3 var·pluck·=·require('./index154.js');
2 var·_stringTagBug·=·require('./index28.js'); 
3 var·_methodFingerprint·=·require('./index26.js'); 
  
4 var·isMap·=·_stringTagBug.isIE11·?·_methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods)·:·_tagTester('Map');4 //·Complement·of·zip.·Unzip·accepts·an·array·of·arrays·and·groups
 5 //·each·array's·elements·on·shared·indices.
 6 function·unzip(array)·{
 7 ····var·length·=·(array·&&·max(array,·_getLength).length)·||·0;
 8 ····var·result·=·Array(length);
  
 9 ····for·(var·index·=·0;·index·<·length;·index++)·{
 10 ········result[index]·=·pluck(array,·index);
 11 ····}
 12 ····return·result;
 13 }
  
5 module.exports·=·isMap;14 module.exports·=·unzip;
1.92 KB
./usr/share/nodejs/underscore/cjs/index9.js
1.83 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 30 lines modified
 1 var·_isArrayLike·=·require('./index19.js');
1 var·keys·=·require('./index102.js');2 var·keys·=·require('./index134.js');
 3 var·_optimizeCb·=·require('./index23.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)·{4 //·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right.
 5 function·createReduce(dir)·{
 6 ····//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than
 7 ····//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991)
 8 ····var·reducer·=·function(obj,·iteratee,·memo,·initial)·{
 9 ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj),
 10 ············length·=·(_keys·||·obj).length,
 11 ············index·=·dir·>·0·?·0·:·length·-·1;
 12 ········if·(!initial)·{
 13 ············memo·=·obj[_keys·?·_keys[index]·:·index];
 14 ············index·+=·dir;
 15 ········}
 16 ········for·(;·index·>=·0·&&·index·<·length;·index·+=·dir)·{
 17 ············var·currentKey·=·_keys·?·_keys[index]·:·index;
 18 ············memo·=·iteratee(memo,·obj[currentKey],·currentKey,·obj);
 19 ········}
6 ········return·map[match];20 ········return·memo;
7 ····};21 ····};
  
 22 ····return·function(obj,·iteratee,·memo,·context)·{
 23 ········var·initial·=·arguments.length·>=·3;
 24 ········return·reducer(obj,·_optimizeCb(iteratee,·context,·4),·memo,·initial);
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; 
15 ····};25 ····};
16 }26 }
  
17 module.exports·=·createEscaper;27 module.exports·=·createReduce;
894 B
./usr/share/nodejs/underscore/cjs/index90.js
806 B
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 14 lines modified
1 var·keys·=·require('./index102.js');1 var·keys·=·require('./index134.js');
  
2 //·Returns·whether·an·object·has·a·given·set·of·`key:value`·pairs. 
3 function·isMatch(object,·attrs)·{2 //·Retrieve·the·values·of·an·object's·properties.
 3 function·values(obj)·{
4 ····var·_keys·=·keys(attrs),4 ····var·_keys·=·keys(obj);
5 ········length·=·_keys.length;5 ····var·length·=·_keys.length;
 6 ····var·values·=·Array(length);
6 ····if·(object·==·null)·return·!length; 
7 ····var·obj·=·Object(object); 
8 ····for·(var·i·=·0;·i·<·length;·i++)·{7 ····for·(var·i·=·0;·i·<·length;·i++)·{
9 ········var·key·=·_keys[i];8 ········values[i]·=·obj[_keys[i]];
10 ········if·(attrs[key]·!==·obj[key]·||·!(key·in·obj))·return·false; 
11 ····}9 ····}
12 ····return·true;10 ····return·values;
13 }11 }
  
14 module.exports·=·isMatch;12 module.exports·=·values;
554 B
./usr/share/nodejs/underscore/cjs/index91.js
466 B
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 10 lines modified
1 //·Is·a·given·value·equal·to·null? 
2 function·isNull(obj)·{ 
3 ····return·obj·===·null;1 var·filter·=·require('./index55.js');
 2 var·matcher·=·require('./index139.js');
  
 3 //·Convenience·version·of·a·common·use·case·of·`_.filter`:·selecting·only
 4 //·objects·containing·specific·`key:value`·pairs.
 5 function·where(obj,·attrs)·{
 6 ····return·filter(obj,·matcher(attrs));
4 }7 }
  
5 module.exports·=·isNull;8 module.exports·=·where;
651 B
./usr/share/nodejs/underscore/cjs/index92.js
563 B
js-beautify {}
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 var·_setup·=·require('./index27.js');1 var·restArguments·=·require('./index70.js');
2 var·isNumber·=·require('./index93.js');2 var·difference·=·require('./index49.js');
  
3 //·Is·the·given·value·`NaN`? 
4 function·isNaN(obj)·{ 
5 ····return·isNumber(obj)·&&·_setup._isNaN(obj); 
6 }3 //·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s).
 4 var·without·=·restArguments(function(array,·otherArrays)·{
 5 ····return·difference(array,·otherArrays);
 6 });
  
7 module.exports·=·isNaN;7 module.exports·=·without;
568 B
./usr/share/nodejs/underscore/cjs/index93.js
480 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 10 lines modified
1 var·_tagTester·=·require('./index29.js');1 var·partial·=·require('./index151.js');
  
2 var·isNumber·=·_tagTester('Number');2 //·Returns·the·first·function·passed·as·an·argument·to·the·second,
 3 //·allowing·you·to·adjust·arguments,·run·code·before·and·after,·and
 4 //·conditionally·execute·the·original·function.
 5 function·wrap(func,·wrapper)·{
 6 ····return·partial(wrapper,·func);
 7 }
  
3 module.exports·=·isNumber;8 module.exports·=·wrap;
562 B
./usr/share/nodejs/underscore/cjs/index94.js
474 B
js-beautify {}
    
Offset 1, 7 lines modifiedOffset 1, 8 lines modified
 1 var·restArguments·=·require('./index70.js');
 2 var·unzip·=·require('./index89.js');
1 //·Is·a·given·variable·an·object? 
2 function·isObject(obj)·{ 
3 ····var·type·=·typeof·obj; 
4 ····return·type·===·'function'·||·(type·===·'object'·&&·!!obj); 
5 } 
  
 3 //·Zip·together·multiple·lists·into·a·single·array·--·elements·that·share
 4 //·an·index·go·together.
 5 var·zip·=·restArguments(unzip);
  
6 module.exports·=·isObject;6 module.exports·=·zip;
1.34 KB
./usr/share/nodejs/underscore/cjs/index95.js
1.25 KB
js-beautify {}
    
Offset 1, 20 lines modifiedOffset 1, 14 lines modified
1 var·_getLength·=·require('./index16.js');1 var·_toPath·=·require('./index29.js');
2 var·isArray·=·require('./index79.js'); 
3 var·isString·=·require('./index97.js'); 
4 var·isArguments·=·require('./index78.js'); 
5 var·keys·=·require('./index102.js');2 var·_deepGet·=·require('./index10.js');
 3 var·isUndefined·=·require('./index131.js');
  
 4 //·Get·the·value·of·the·(deep)·property·on·`path`·from·`object`.
 5 //·If·any·property·in·`path`·does·not·exist·or·if·the·value·is
 6 //·`undefined`,·return·`defaultValue`·instead.
 7 //·The·`path`·is·normalized·through·`_.toPath`.
 8 function·get(object,·path,·defaultValue)·{
 9 ····var·value·=·_deepGet(object,·_toPath(path));
 10 ····return·isUndefined(value)·?·defaultValue·:·value;
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 }11 }
  
18 module.exports·=·isEmpty;12 module.exports·=·get;
630 B
./usr/share/nodejs/underscore/cjs/index96.js
542 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 11 lines modified
 1 var·_group·=·require('./index16.js');
1 var·_tagTester·=·require('./index29.js');2 var·_has·=·require('./index17.js');
  
2 var·isRegExp·=·_tagTester('RegExp');3 //·Groups·the·object's·values·by·a·criterion.·Pass·either·a·string·attribute
 4 //·to·group·by,·or·a·function·that·returns·the·criterion.
 5 var·groupBy·=·_group(function(result,·value,·key)·{
 6 ····if·(_has(result,·key))·result[key].push(value);
 7 ····else·result[key]·=·[value];
 8 });
  
3 module.exports·=·isRegExp;9 module.exports·=·groupBy;
827 B
./usr/share/nodejs/underscore/cjs/index97.js
739 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 18 lines modified
 1 var·_has·=·require('./index17.js');
1 var·_tagTester·=·require('./index29.js');2 var·_toPath·=·require('./index29.js');
  
2 var·isString·=·_tagTester('String');3 //·Shortcut·function·for·checking·if·an·object·has·a·given·property·directly·on
 4 //·itself·(in·other·words,·not·on·a·prototype).·Unlike·the·internal·`has`
 5 //·function,·this·public·version·can·also·traverse·nested·properties.
 6 function·has(obj,·path)·{
 7 ····path·=·_toPath(path);
 8 ····var·length·=·path.length;
 9 ····for·(var·i·=·0;·i·<·length;·i++)·{
 10 ········var·key·=·path[i];
 11 ········if·(!_has(obj,·key))·return·false;
 12 ········obj·=·obj[key];
 13 ····}
 14 ····return·!!length;
 15 }
  
3 module.exports·=·isString;16 module.exports·=·has;
384 B
./usr/share/nodejs/underscore/cjs/index98.js
296 B
js-beautify {}
    
Offset 1, 5 lines modifiedOffset 1, 6 lines modified
1 var·_tagTester·=·require('./index29.js');1 //·Keep·the·identity·function·around·for·default·iteratees.
 2 function·identity(value)·{
 3 ····return·value;
 4 }
  
2 var·isSymbol·=·_tagTester('Symbol'); 
  
3 module.exports·=·isSymbol;5 module.exports·=·identity;
9.25 KB
./usr/share/nodejs/underscore/cjs/index99.js
9.17 KB
js-beautify {}
    
Offset 1, 6 lines modifiedOffset 1, 281 lines modified
 1 Object.defineProperty(exports,·'__esModule',·{
 2 ····value:·true
 3 });
1 //·Is·a·given·variable·undefined? 
2 function·isUndefined(obj)·{ 
3 ····return·obj·===·void·0; 
4 } 
  
5 module.exports·=·isUndefined;4 var·_setup·=·require('./index24.js');
 5 var·restArguments·=·require('./index70.js');
 6 var·isObject·=·require('./index123.js');
 7 var·isNull·=·require('./index120.js');
 8 var·isUndefined·=·require('./index131.js');
 9 var·isBoolean·=·require('./index109.js');
 10 var·isElement·=·require('./index112.js');
 11 var·isString·=·require('./index127.js');
 12 var·isNumber·=·require('./index122.js');
 13 var·isDate·=·require('./index110.js');
 14 var·isRegExp·=·require('./index124.js');
 15 var·isError·=·require('./index115.js');
 16 var·isSymbol·=·require('./index126.js');
 17 var·isArrayBuffer·=·require('./index108.js');
 18 var·isDataView·=·require('./index111.js');
 19 var·isArray·=·require('./index107.js');
 20 var·isFunction·=·require('./index117.js');
 21 var·isArguments·=·require('./index106.js');
 22 var·isFinite·=·require('./index116.js');
 23 var·isNaN·=·require('./index121.js');
 24 var·isTypedArray·=·require('./index128.js');
 25 var·isEmpty·=·require('./index158.js');
 26 var·isMatch·=·require('./index119.js');
 27 var·isEqual·=·require('./index114.js');
 28 var·isMap·=·require('./index118.js');
 29 var·isWeakMap·=·require('./index129.js');
 30 var·isSet·=·require('./index125.js');
 31 var·isWeakSet·=·require('./index130.js');
 32 var·keys·=·require('./index134.js');
 33 var·allKeys·=·require('./index32.js');
 34 var·values·=·require('./index90.js');
 35 var·pairs·=·require('./index150.js');
 36 var·invert·=·require('./index104.js');
 37 var·functions·=·require('./index64.js');
 38 var·extend·=·require('./index53.js');
 39 var·extendOwn·=·require('./index54.js');
 40 var·defaults·=·require('./index46.js');
 41 var·create·=·require('./index44.js');
 42 var·clone·=·require('./index38.js');
 43 var·tap·=·require('./index78.js');
 44 var·get·=·require('./index95.js');
 45 var·has·=·require('./index97.js');
 46 var·mapObject·=·require('./index138.js');
 47 var·identity·=·require('./index98.js');
 48 var·constant·=·require('./index41.js');
 49 var·noop·=·require('./index145.js');
 50 var·toPath·=·require('./index84.js');
 51 var·property·=·require('./index155.js');
 52 var·propertyOf·=·require('./index156.js');
 53 var·matcher·=·require('./index139.js');
 54 var·times·=·require('./index82.js');
 55 var·random·=·require('./index157.js');
 56 var·now·=·require('./index146.js');
 57 var·escape·=·require('./index51.js');
 58 var·unescape·=·require('./index113.js');
 59 var·templateSettings·=·require('./index80.js');
 60 var·template·=·require('./index79.js');
 61 var·result·=·require('./index71.js');
 62 var·uniqueId·=·require('./index88.js');
 63 var·chain·=·require('./index37.js');
 64 var·iteratee·=·require('./index132.js');
 65 var·partial·=·require('./index151.js');
 66 var·bind·=·require('./index34.js');
 67 var·bindAll·=·require('./index35.js');
 68 var·memoize·=·require('./index141.js');
 69 var·delay·=·require('./index47.js');
 70 var·defer·=·require('./index48.js');
 71 var·throttle·=·require('./index81.js');
 72 var·debounce·=·require('./index45.js');
 73 var·wrap·=·require('./index93.js');
 74 var·negate·=·require('./index144.js');
 75 var·compose·=·require('./index40.js');
 76 var·after·=·require('./index31.js');
 77 var·before·=·require('./index33.js');
 78 var·once·=·require('./index149.js');
 79 var·findKey·=·require('./index58.js');
 80 var·findIndex·=·require('./index56.js');
 81 var·findLastIndex·=·require('./index59.js');
 82 var·sortedIndex·=·require('./index77.js');
 83 var·indexOf·=·require('./index101.js');
 84 var·lastIndexOf·=·require('./index136.js');
 85 var·find·=·require('./index57.js');
 86 var·findWhere·=·require('./index60.js');
 87 var·each·=·require('./index50.js');
 88 var·map·=·require('./index137.js');
 89 var·reduce·=·require('./index66.js');
 90 var·reduceRight·=·require('./index67.js');
 91 var·filter·=·require('./index55.js');
 92 var·reject·=·require('./index68.js');
 93 var·every·=·require('./index52.js');
 94 var·some·=·require('./index75.js');
 95 var·contains·=·require('./index42.js');
 96 var·invoke·=·require('./index105.js');
 97 var·pluck·=·require('./index154.js');
 98 var·where·=·require('./index91.js');
 99 var·max·=·require('./index160.js');
 100 var·min·=·require('./index142.js');
 101 var·shuffle·=·require('./index73.js');
 102 var·sample·=·require('./index72.js');
 103 var·sortBy·=·require('./index76.js');
 104 var·groupBy·=·require('./index96.js');
 105 var·indexBy·=·require('./index133.js');
 106 var·countBy·=·require('./index43.js');
 107 var·partition·=·require('./index152.js');
 108 var·toArray·=·require('./index83.js');
 109 var·size·=·require('./index74.js');
 110 var·pick·=·require('./index153.js');
 111 var·omit·=·require('./index148.js');
 112 var·first·=·require('./index61.js');
 113 var·initial·=·require('./index102.js');
 114 var·last·=·require('./index135.js');
 115 var·rest·=·require('./index69.js');
 116 var·compact·=·require('./index39.js');
 117 var·flatten·=·require('./index63.js');
 118 var·without·=·require('./index92.js');
 119 var·uniq·=·require('./index87.js');
 120 var·union·=·require('./index86.js');
 121 var·intersection·=·require('./index103.js');
 122 var·difference·=·require('./index49.js');
Max diff block lines reached; -1/9357 bytes (-0.01%) of diff not shown.