48.0 KB
node-d3-time version 1.0.11-4~jan+unchanged1 (unchanged) vs.
node-d3-time version 1.1.0-1~jan+nur1 (fresh-releases)
47.9 KB
node-d3-time
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-01-09·02:20:04.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-01-09·02:20:04.000000·debian-binary
2 -rw-r--r--···0········0········0·····1484·2020-01-09·02:20:04.000000·control.tar.xz2 -rw-r--r--···0········0········0·····1448·2020-01-09·02:20:04.000000·control.tar.xz
3 -rw-r--r--···0········0········0····13588·2020-01-09·02:20:04.000000·data.tar.xz3 -rw-r--r--···0········0········0····13528·2020-01-09·02:20:04.000000·data.tar.xz
1.8 KB
control.tar.xz
1.78 KB
control.tar
507 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······716·2020-01-09·02:20:04.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······709·2020-01-09·02:20:04.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)·····3215·2020-01-09·02:20:04.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)·····3132·2020-01-09·02:20:04.000000·./md5sums
593 B
./control
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 Package:·node-d3-time1 Package:·node-d3-time
2 Version:·1.0.11-4~jan+unchanged12 Version:·1.1.0-1~jan+nur1
3 Architecture:·all3 Architecture:·all
4 Maintainer:·Debian·Javascript·Maintainers·<pkg-javascript-devel@lists.alioth.debian.org>4 Maintainer:·Debian·Javascript·Maintainers·<pkg-javascript-devel@lists.alioth.debian.org>
5 Installed-Size:·1095 Installed-Size:·112
6 Depends:·nodejs6 Depends:·nodejs
7 Section:·javascript7 Section:·javascript
8 Priority:·optional8 Priority:·optional
9 Homepage:·https://d3js.org/d3-time/9 Homepage:·https://d3js.org/d3-time/
10 Description:·calculator·for·humanity’s·peculiar·conventions·of·time10 Description:·calculator·for·humanity’s·peculiar·conventions·of·time
11 ·The·d3-time·module·does·not·implement·its·own·calendaring·system;·it·merely11 ·The·d3-time·module·does·not·implement·its·own·calendaring·system;·it·merely
12 ·implements·a·convenient·API·for·calendar·math·on·top·of·ECMAScript·Date.·This12 ·implements·a·convenient·API·for·calendar·math·on·top·of·ECMAScript·Date.·This
698 B
./md5sums
30.0 B
./md5sums
Files differ
650 B
line order
    
Offset 17, 15 lines modifiedOffset 17, 14 lines modified
17 usr/lib/nodejs/d3-time/src/utcWeek.js17 usr/lib/nodejs/d3-time/src/utcWeek.js
18 usr/lib/nodejs/d3-time/src/utcYear.js18 usr/lib/nodejs/d3-time/src/utcYear.js
19 usr/lib/nodejs/d3-time/src/week.js19 usr/lib/nodejs/d3-time/src/week.js
20 usr/lib/nodejs/d3-time/src/year.js20 usr/lib/nodejs/d3-time/src/year.js
21 usr/share/doc/node-d3-time/README.md.gz21 usr/share/doc/node-d3-time/README.md.gz
22 usr/share/doc/node-d3-time/changelog.Debian.gz22 usr/share/doc/node-d3-time/changelog.Debian.gz
23 usr/share/doc/node-d3-time/copyright23 usr/share/doc/node-d3-time/copyright
24 usr/share/nodejs/d3-time/d3-time.sublime-project 
25 usr/share/nodejs/d3-time/dist/d3-time.js24 usr/share/nodejs/d3-time/dist/d3-time.js
26 usr/share/nodejs/d3-time/dist/d3-time.min.js25 usr/share/nodejs/d3-time/dist/d3-time.min.js
27 usr/share/nodejs/d3-time/package.json26 usr/share/nodejs/d3-time/package.json
28 usr/share/nodejs/d3-time/src/day.js27 usr/share/nodejs/d3-time/src/day.js
29 usr/share/nodejs/d3-time/src/duration.js28 usr/share/nodejs/d3-time/src/duration.js
30 usr/share/nodejs/d3-time/src/hour.js29 usr/share/nodejs/d3-time/src/hour.js
31 usr/share/nodejs/d3-time/src/index.js30 usr/share/nodejs/d3-time/src/index.js
45.7 KB
data.tar.xz
45.6 KB
data.tar
12.3 KB
file list
    
Offset 1, 58 lines modifiedOffset 1, 57 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/nodejs/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/nodejs/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/
6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/dist/6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/dist/
7 -rw-r--r--···0·root·········(0)·root·········(0)····11170·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/dist/d3-time.js7 -rw-r--r--···0·root·········(0)·root·········(0)····11266·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/dist/d3-time.js
8 -rw-r--r--···0·root·········(0)·root·········(0)·····9062·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/dist/d3-time.min.js8 -rw-r--r--···0·root·········(0)·root·········(0)·····9140·2020-01-09·02:20:04.000000·./usr/lib/nodejs/d3-time/dist/d3-time.min.js
9 -rw-r--r--···0·root·········(0)·root·········(0)·····1515·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/package.json9 -rw-r--r--···0·root·········(0)·root·········(0)·····1591·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/package.json
10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/
11 -rw-r--r--···0·root·········(0)·root·········(0)······462·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/day.js11 -rw-r--r--···0·root·········(0)·root·········(0)······468·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/day.js
12 -rw-r--r--···0·root·········(0)·root·········(0)······164·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/duration.js12 -rw-r--r--···0·root·········(0)·root·········(0)······164·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/duration.js
13 -rw-r--r--···0·root·········(0)·root·········(0)······506·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/hour.js13 -rw-r--r--···0·root·········(0)·root·········(0)······512·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/hour.js
14 -rw-r--r--···0·root·········(0)·root·········(0)·····2036·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/index.js14 -rw-r--r--···0·root·········(0)·root·········(0)·····2081·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/index.js
15 -rw-r--r--···0·root·········(0)·root·········(0)·····2067·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/interval.js15 -rw-r--r--···0·root·········(0)·root·········(0)·····2164·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/interval.js
16 -rw-r--r--···0·root·········(0)·root·········(0)······668·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/millisecond.js16 -rw-r--r--···0·root·········(0)·root·········(0)······671·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/millisecond.js
17 -rw-r--r--···0·root·········(0)·root·········(0)······469·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/minute.js17 -rw-r--r--···0·root·········(0)·root·········(0)······475·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/minute.js
18 -rw-r--r--···0·root·········(0)·root·········(0)······414·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/month.js18 -rw-r--r--···0·root·········(0)·root·········(0)······417·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/month.js
19 -rw-r--r--···0·root·········(0)·root·········(0)······419·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/second.js19 -rw-r--r--···0·root·········(0)·root·········(0)······425·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/second.js
20 -rw-r--r--···0·root·········(0)·root·········(0)······397·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/utcDay.js20 -rw-r--r--···0·root·········(0)·root·········(0)······403·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/utcDay.js
21 -rw-r--r--···0·root·········(0)·root·········(0)······399·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/utcHour.js21 -rw-r--r--···0·root·········(0)·root·········(0)······405·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/utcHour.js
22 -rw-r--r--···0·root·········(0)·root·········(0)······412·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/utcMinute.js22 -rw-r--r--···0·root·········(0)·root·········(0)······418·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/utcMinute.js
23 -rw-r--r--···0·root·········(0)·root·········(0)······453·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/utcMonth.js23 -rw-r--r--···0·root·········(0)·root·········(0)······456·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/utcMonth.js
24 -rw-r--r--···0·root·········(0)·root·········(0)······979·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/utcWeek.js24 -rw-r--r--···0·root·········(0)·root·········(0)······985·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/utcWeek.js
25 -rw-r--r--···0·root·········(0)·root·········(0)······808·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/utcYear.js25 -rw-r--r--···0·root·········(0)·root·········(0)······811·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/utcYear.js
26 -rw-r--r--···0·root·········(0)·root·········(0)······963·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/week.js26 -rw-r--r--···0·root·········(0)·root·········(0)······969·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/week.js
27 -rw-r--r--···0·root·········(0)·root·········(0)······754·2019-02-05·00:05:03.000000·./usr/lib/nodejs/d3-time/src/year.js27 -rw-r--r--···0·root·········(0)·root·········(0)······757·2019-09-25·19:56:04.000000·./usr/lib/nodejs/d3-time/src/year.js
28 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/28 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/
29 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/doc/29 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/doc/
30 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/doc/node-d3-time/30 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/doc/node-d3-time/
31 -rw-r--r--···0·root·········(0)·root·········(0)·····5536·2019-02-05·00:05:03.000000·./usr/share/doc/node-d3-time/README.md.gz31 -rw-r--r--···0·root·········(0)·root·········(0)·····5586·2019-09-25·19:56:04.000000·./usr/share/doc/node-d3-time/README.md.gz
32 -rw-r--r--···0·root·········(0)·root·········(0)······699·2020-01-09·02:20:04.000000·./usr/share/doc/node-d3-time/changelog.Debian.gz32 -rw-r--r--···0·root·········(0)·root·········(0)······711·2020-01-09·02:20:04.000000·./usr/share/doc/node-d3-time/changelog.Debian.gz
33 -rw-r--r--···0·root·········(0)·root·········(0)·····1848·2020-01-09·02:20:04.000000·./usr/share/doc/node-d3-time/copyright33 -rw-r--r--···0·root·········(0)·root·········(0)·····1848·2020-01-09·02:20:04.000000·./usr/share/doc/node-d3-time/copyright
34 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/34 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/
35 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/35 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/
36 -rw-r--r--···0·root·········(0)·root·········(0)······340·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/d3-time.sublime-project 
37 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/dist/36 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/dist/
38 -rw-r--r--···0·root·········(0)·root·········(0)····11170·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/dist/d3-time.js37 -rw-r--r--···0·root·········(0)·root·········(0)····11266·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/dist/d3-time.js
39 -rw-r--r--···0·root·········(0)·root·········(0)·····9062·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/dist/d3-time.min.js38 -rw-r--r--···0·root·········(0)·root·········(0)·····9140·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/dist/d3-time.min.js
40 -rw-r--r--···0·root·········(0)·root·········(0)·····1515·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/package.json39 -rw-r--r--···0·root·········(0)·root·········(0)·····1591·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/package.json
41 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/src/40 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-01-09·02:20:04.000000·./usr/share/nodejs/d3-time/src/
42 -rw-r--r--···0·root·········(0)·root·········(0)······462·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/day.js41 -rw-r--r--···0·root·········(0)·root·········(0)······468·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/day.js
43 -rw-r--r--···0·root·········(0)·root·········(0)······164·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/duration.js42 -rw-r--r--···0·root·········(0)·root·········(0)······164·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/duration.js
44 -rw-r--r--···0·root·········(0)·root·········(0)······506·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/hour.js43 -rw-r--r--···0·root·········(0)·root·········(0)······512·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/hour.js
45 -rw-r--r--···0·root·········(0)·root·········(0)·····2036·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/index.js44 -rw-r--r--···0·root·········(0)·root·········(0)·····2081·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/index.js
46 -rw-r--r--···0·root·········(0)·root·········(0)·····2067·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/interval.js45 -rw-r--r--···0·root·········(0)·root·········(0)·····2164·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/interval.js
47 -rw-r--r--···0·root·········(0)·root·········(0)······668·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/millisecond.js46 -rw-r--r--···0·root·········(0)·root·········(0)······671·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/millisecond.js
48 -rw-r--r--···0·root·········(0)·root·········(0)······469·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/minute.js47 -rw-r--r--···0·root·········(0)·root·········(0)······475·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/minute.js
49 -rw-r--r--···0·root·········(0)·root·········(0)······414·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/month.js48 -rw-r--r--···0·root·········(0)·root·········(0)······417·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/month.js
50 -rw-r--r--···0·root·········(0)·root·········(0)······419·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/second.js49 -rw-r--r--···0·root·········(0)·root·········(0)······425·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/second.js
51 -rw-r--r--···0·root·········(0)·root·········(0)······397·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/utcDay.js50 -rw-r--r--···0·root·········(0)·root·········(0)······403·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/utcDay.js
52 -rw-r--r--···0·root·········(0)·root·········(0)······399·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/utcHour.js51 -rw-r--r--···0·root·········(0)·root·········(0)······405·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/utcHour.js
53 -rw-r--r--···0·root·········(0)·root·········(0)······412·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/utcMinute.js52 -rw-r--r--···0·root·········(0)·root·········(0)······418·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/utcMinute.js
54 -rw-r--r--···0·root·········(0)·root·········(0)······453·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/utcMonth.js53 -rw-r--r--···0·root·········(0)·root·········(0)······456·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/utcMonth.js
55 -rw-r--r--···0·root·········(0)·root·········(0)······979·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/utcWeek.js54 -rw-r--r--···0·root·········(0)·root·········(0)······985·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/utcWeek.js
56 -rw-r--r--···0·root·········(0)·root·········(0)······808·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/utcYear.js55 -rw-r--r--···0·root·········(0)·root·········(0)······811·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/utcYear.js
57 -rw-r--r--···0·root·········(0)·root·········(0)······963·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/week.js56 -rw-r--r--···0·root·········(0)·root·········(0)······969·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/week.js
58 -rw-r--r--···0·root·········(0)·root·········(0)······754·2019-02-05·00:05:03.000000·./usr/share/nodejs/d3-time/src/year.js57 -rw-r--r--···0·root·········(0)·root·········(0)······757·2019-09-25·19:56:04.000000·./usr/share/nodejs/d3-time/src/year.js
1.25 KB
./usr/lib/nodejs/d3-time/dist/d3-time.js
1.17 KB
js-beautify {}
    
Offset 1, 25 lines modifiedOffset 1, 27 lines modified
1 //·https://d3js.org/d3-time/·v1.0.11·Copyright·2020·Mike·Bostock1 //·https://d3js.org/d3-time/·v1.1.0·Copyright·2020·Mike·Bostock
2 (function(global,·factory)·{2 (function(global,·factory)·{
3 ····typeof·exports·===·'object'·&&·typeof·module·!==·'undefined'·?·factory(exports)·:3 ····typeof·exports·===·'object'·&&·typeof·module·!==·'undefined'·?·factory(exports)·:
4 ········typeof·define·===·'function'·&&·define.amd·?·define(['exports'],·factory)·:4 ········typeof·define·===·'function'·&&·define.amd·?·define(['exports'],·factory)·:
5 ········(global·=·global·||·self,·factory(global.d3·=·global.d3·||·{}));5 ········(global·=·global·||·self,·factory(global.d3·=·global.d3·||·{}));
6 }(this,·function(exports)·{6 }(this,·function(exports)·{
7 ····'use·strict';7 ····'use·strict';
  
8 ····var·t0·=·new·Date,8 ····var·t0·=·new·Date,
9 ········t1·=·new·Date;9 ········t1·=·new·Date;
  
10 ····function·newInterval(floori,·offseti,·count,·field)·{10 ····function·newInterval(floori,·offseti,·count,·field)·{
  
11 ········function·interval(date)·{11 ········function·interval(date)·{
12 ············return·floori(date·=·new·Date(+date)),·date;12 ············return·floori(date·=·arguments.length·===·0·?·new·Date·:·new·Date(+date)),·date;
13 ········}13 ········}
  
14 ········interval.floor·=·interval;14 ········interval.floor·=·function(date)·{
 15 ············return·floori(date·=·new·Date(+date)),·date;
 16 ········};
  
15 ········interval.ceil·=·function(date)·{17 ········interval.ceil·=·function(date)·{
16 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;18 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;
17 ········};19 ········};
  
18 ········interval.round·=·function(date)·{20 ········interval.round·=·function(date)·{
19 ············var·d0·=·interval(date),21 ············var·d0·=·interval(date),
958 B
./usr/lib/nodejs/d3-time/dist/d3-time.min.js
870 B
js-beautify {}
    
Offset 3, 17 lines modifiedOffset 3, 19 lines modified
3 })(this,·function(exports)·{3 })(this,·function(exports)·{
4 ····"use·strict";4 ····"use·strict";
5 ····var·t0·=·new·Date,5 ····var·t0·=·new·Date,
6 ········t1·=·new·Date;6 ········t1·=·new·Date;
  
7 ····function·newInterval(floori,·offseti,·count,·field)·{7 ····function·newInterval(floori,·offseti,·count,·field)·{
8 ········function·interval(date)·{8 ········function·interval(date)·{
9 ············return·floori(date·=·new·Date(+date)),·date9 ············return·floori(date·=·arguments.length·===·0·?·new·Date·:·new·Date(+date)),·date
10 ········}10 ········}
11 ········interval.floor·=·interval;11 ········interval.floor·=·function(date)·{
 12 ············return·floori(date·=·new·Date(+date)),·date
 13 ········};
12 ········interval.ceil·=·function(date)·{14 ········interval.ceil·=·function(date)·{
13 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date15 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date
14 ········};16 ········};
15 ········interval.round·=·function(date)·{17 ········interval.round·=·function(date)·{
16 ············var·d0·=·interval(date),18 ············var·d0·=·interval(date),
17 ················d1·=·interval.ceil(date);19 ················d1·=·interval.ceil(date);
18 ············return·date·-·d0·<·d1·-·date·?·d0·:·d120 ············return·date·-·d0·<·d1·-·date·?·d0·:·d1
3.36 KB
./usr/lib/nodejs/d3-time/package.json
3.29 KB
/tmp/diffoscope_ey6w1505/tmpraz1xauk/0/8.json vs.
/tmp/diffoscope_ey6w1505/tmp5chqoy8p/0/8.json
Differences: { "replace": "OrderedDict([('name', 'd3-time'), ('version', '1.1.0'), ('description', 'A calculator for humanity\u2019s peculiar conventions of time.'), ('keywords', ['d3', 'd3-module', 'time', 'interval', 'calendar']), ('homepage', 'https://d3js.org/d3-time/'), ('license', 'BSD-3-Clause'), ('author', OrderedDict([('name', 'Mike Bostock'), ('url', 'http://bost.ocks.org/mike')])), ('main', 'dist/d3-time.js'), ('unpkg', 'dist/d3-time.min.js'), ('jsdelivr', 'dist/d3-time.min.js'), ('module', 'src/index.js'), ('repository', OrderedDict([('type', 'git'), ('url', 'https://github.com/d3/d3-time.git')])), ('files', ['dist/**/*.js', 'src/**/*.js']), ('scripts', OrderedDict([('pretest', 'rollup -c'), ('test', \"TZ=America/Los_Angeles tape 'test/**/*-test.js' && eslint src\"), ('prepublishOnly', 'rm -rf dist && yarn test'), ('postpublish', 'git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd - && zip -j dist/${npm_package_name}.zip -- LICENSE README.md dist/${npm_package_name}.js dist/${npm_package_name}.min.js')])), ('sideEffects', False), ('devDependencies', OrderedDict([('eslint', '6'), ('rollup', '1'), ('rollup-plugin-terser', '5'), ('tape', '4')]))])" }
    
Offset 1, 19 lines modifiedOffset 1, 23 lines modified
1 {1 {
2 ····"author":·{2 ····"author":·{
3 ········"name":·"Mike·Bostock",3 ········"name":·"Mike·Bostock",
4 ········"url":·"http://bost.ocks.org/mike"4 ········"url":·"http://bost.ocks.org/mike"
5 ····},5 ····},
6 ····"description":·"A·calculator·for·humanity\u2019s·peculiar·conventions·of·time.",6 ····"description":·"A·calculator·for·humanity\u2019s·peculiar·conventions·of·time.",
7 ····"devDependencies":·{7 ····"devDependencies":·{
8 ········"eslint":·"5",8 ········"eslint":·"6",
9 ········"rollup":·"0.64",9 ········"rollup":·"1",
10 ········"rollup-plugin-terser":·"1",10 ········"rollup-plugin-terser":·"5",
11 ········"tape":·"4"11 ········"tape":·"4"
12 ····},12 ····},
 13 ····"files":·[
 14 ········"dist/**/*.js",
 15 ········"src/**/*.js"
 16 ····],
13 ····"homepage":·"https://d3js.org/d3-time/",17 ····"homepage":·"https://d3js.org/d3-time/",
14 ····"jsdelivr":·"dist/d3-time.min.js",18 ····"jsdelivr":·"dist/d3-time.min.js",
15 ····"keywords":·[19 ····"keywords":·[
16 ········"d3",20 ········"d3",
17 ········"d3-module",21 ········"d3-module",
18 ········"time",22 ········"time",
19 ········"interval",23 ········"interval",
Offset 29, 10 lines modifiedOffset 33, 11 lines modified
29 ····},33 ····},
30 ····"scripts":·{34 ····"scripts":·{
31 ········"postpublish":·"git·push·&&·git·push·--tags·&&·cd·../d3.github.com·&&·git·pull·&&·cp·../${npm_package_name}/dist/${npm_package_name}.js·${npm_package_name}.v${npm_package_version%%.*}.js·&&·cp·../${npm_package_name}/dist/${npm_package_name}.min.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·add·${npm_package_name}.v${npm_package_version%%.*}.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·commit·-m·\"${npm_package_name}·${npm_package_version}\"·&&·git·push·&&·cd·-·&&·zip·-j·dist/${npm_package_name}.zip·--·LICENSE·README.md·dist/${npm_package_name}.js·dist/${npm_package_name}.min.js",35 ········"postpublish":·"git·push·&&·git·push·--tags·&&·cd·../d3.github.com·&&·git·pull·&&·cp·../${npm_package_name}/dist/${npm_package_name}.js·${npm_package_name}.v${npm_package_version%%.*}.js·&&·cp·../${npm_package_name}/dist/${npm_package_name}.min.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·add·${npm_package_name}.v${npm_package_version%%.*}.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·commit·-m·\"${npm_package_name}·${npm_package_version}\"·&&·git·push·&&·cd·-·&&·zip·-j·dist/${npm_package_name}.zip·--·LICENSE·README.md·dist/${npm_package_name}.js·dist/${npm_package_name}.min.js",
32 ········"prepublishOnly":·"rm·-rf·dist·&&·yarn·test",36 ········"prepublishOnly":·"rm·-rf·dist·&&·yarn·test",
33 ········"pretest":·"rollup·-c",37 ········"pretest":·"rollup·-c",
34 ········"test":·"TZ=America/Los_Angeles·tape·'test/**/*-test.js'·&&·eslint·src"38 ········"test":·"TZ=America/Los_Angeles·tape·'test/**/*-test.js'·&&·eslint·src"
35 ····},39 ····},
 40 ····"sideEffects":·false,
36 ····"unpkg":·"dist/d3-time.min.js",41 ····"unpkg":·"dist/d3-time.min.js",
37 ····"version":·"1.0.11"42 ····"version":·"1.1.0"
38 }43 }
567 B
./usr/lib/nodejs/d3-time/src/day.js
497 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationDay,3 ····durationDay,
4 ····durationMinute4 ····durationMinute
5 }·from·"./duration";5 }·from·"./duration.js";
  
6 var·day·=·interval(function(date)·{6 var·day·=·interval(function(date)·{
7 ····date.setHours(0,·0,·0,·0);7 ····date.setHours(0,·0,·0,·0);
8 },·function(date,·step)·{8 },·function(date,·step)·{
9 ····date.setDate(date.getDate()·+·step);9 ····date.setDate(date.getDate()·+·step);
10 },·function(start,·end)·{10 },·function(start,·end)·{
11 ····return·(end·-·start·-·(end.getTimezoneOffset()·-·start.getTimezoneOffset())·*·durationMinute)·/·durationDay;11 ····return·(end·-·start·-·(end.getTimezoneOffset()·-·start.getTimezoneOffset())·*·durationMinute)·/·durationDay;
618 B
./usr/lib/nodejs/d3-time/src/hour.js
546 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationHour,3 ····durationHour,
4 ····durationMinute,4 ····durationMinute,
5 ····durationSecond5 ····durationSecond
6 }·from·"./duration";6 }·from·"./duration.js";
  
7 var·hour·=·interval(function(date)·{7 var·hour·=·interval(function(date)·{
8 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond·-·date.getMinutes()·*·durationMinute);8 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond·-·date.getMinutes()·*·durationMinute);
9 },·function(date,·step)·{9 },·function(date,·step)·{
10 ····date.setTime(+date·+·step·*·durationHour);10 ····date.setTime(+date·+·step·*·durationHour);
11 },·function(start,·end)·{11 },·function(start,·end)·{
12 ····return·(end·-·start)·/·durationHour;12 ····return·(end·-·start)·/·durationHour;
2.38 KB
./usr/lib/nodejs/d3-time/src/index.js
2.31 KB
js-beautify {}
    
Offset 1, 45 lines modifiedOffset 1, 45 lines modified
1 export·{1 export·{
2 ····default·as·timeInterval2 ····default·as·timeInterval
3 }3 }
4 from·"./interval";4 from·"./interval.js";
  
5 export·{5 export·{
6 ····default·as·timeMillisecond,6 ····default·as·timeMillisecond,
7 ····milliseconds·as·timeMilliseconds,7 ····milliseconds·as·timeMilliseconds,
8 ····default·as·utcMillisecond,8 ····default·as·utcMillisecond,
9 ····milliseconds·as·utcMilliseconds9 ····milliseconds·as·utcMilliseconds
10 }10 }
11 from·"./millisecond";11 from·"./millisecond.js";
  
12 export·{12 export·{
13 ····default·as·timeSecond,13 ····default·as·timeSecond,
14 ····seconds·as·timeSeconds,14 ····seconds·as·timeSeconds,
15 ····default·as·utcSecond,15 ····default·as·utcSecond,
16 ····seconds·as·utcSeconds16 ····seconds·as·utcSeconds
17 }17 }
18 from·"./second";18 from·"./second.js";
  
19 export·{19 export·{
20 ····default·as·timeMinute,20 ····default·as·timeMinute,
21 ····minutes·as·timeMinutes21 ····minutes·as·timeMinutes
22 }22 }
23 from·"./minute";23 from·"./minute.js";
  
24 export·{24 export·{
25 ····default·as·timeHour,25 ····default·as·timeHour,
26 ····hours·as·timeHours26 ····hours·as·timeHours
27 }27 }
28 from·"./hour";28 from·"./hour.js";
  
29 export·{29 export·{
30 ····default·as·timeDay,30 ····default·as·timeDay,
31 ····days·as·timeDays31 ····days·as·timeDays
32 }32 }
33 from·"./day";33 from·"./day.js";
  
34 export·{34 export·{
35 ····sunday·as·timeWeek,35 ····sunday·as·timeWeek,
36 ····sundays·as·timeWeeks,36 ····sundays·as·timeWeeks,
37 ····sunday·as·timeSunday,37 ····sunday·as·timeSunday,
38 ····sundays·as·timeSundays,38 ····sundays·as·timeSundays,
39 ····monday·as·timeMonday,39 ····monday·as·timeMonday,
Offset 51, 45 lines modifiedOffset 51, 45 lines modified
51 ····thursday·as·timeThursday,51 ····thursday·as·timeThursday,
52 ····thursdays·as·timeThursdays,52 ····thursdays·as·timeThursdays,
53 ····friday·as·timeFriday,53 ····friday·as·timeFriday,
54 ····fridays·as·timeFridays,54 ····fridays·as·timeFridays,
55 ····saturday·as·timeSaturday,55 ····saturday·as·timeSaturday,
56 ····saturdays·as·timeSaturdays56 ····saturdays·as·timeSaturdays
57 }57 }
58 from·"./week";58 from·"./week.js";
  
59 export·{59 export·{
60 ····default·as·timeMonth,60 ····default·as·timeMonth,
61 ····months·as·timeMonths61 ····months·as·timeMonths
62 }62 }
63 from·"./month";63 from·"./month.js";
  
64 export·{64 export·{
65 ····default·as·timeYear,65 ····default·as·timeYear,
66 ····years·as·timeYears66 ····years·as·timeYears
67 }67 }
68 from·"./year";68 from·"./year.js";
  
69 export·{69 export·{
70 ····default·as·utcMinute,70 ····default·as·utcMinute,
71 ····utcMinutes·as·utcMinutes71 ····utcMinutes·as·utcMinutes
72 }72 }
73 from·"./utcMinute";73 from·"./utcMinute.js";
  
74 export·{74 export·{
75 ····default·as·utcHour,75 ····default·as·utcHour,
76 ····utcHours·as·utcHours76 ····utcHours·as·utcHours
77 }77 }
78 from·"./utcHour";78 from·"./utcHour.js";
  
79 export·{79 export·{
80 ····default·as·utcDay,80 ····default·as·utcDay,
81 ····utcDays·as·utcDays81 ····utcDays·as·utcDays
82 }82 }
83 from·"./utcDay";83 from·"./utcDay.js";
  
84 export·{84 export·{
85 ····utcSunday·as·utcWeek,85 ····utcSunday·as·utcWeek,
86 ····utcSundays·as·utcWeeks,86 ····utcSundays·as·utcWeeks,
87 ····utcSunday·as·utcSunday,87 ····utcSunday·as·utcSunday,
88 ····utcSundays·as·utcSundays,88 ····utcSundays·as·utcSundays,
89 ····utcMonday·as·utcMonday,89 ····utcMonday·as·utcMonday,
Offset 101, 20 lines modifiedOffset 101, 20 lines modified
101 ····utcThursday·as·utcThursday,101 ····utcThursday·as·utcThursday,
102 ····utcThursdays·as·utcThursdays,102 ····utcThursdays·as·utcThursdays,
103 ····utcFriday·as·utcFriday,103 ····utcFriday·as·utcFriday,
104 ····utcFridays·as·utcFridays,104 ····utcFridays·as·utcFridays,
105 ····utcSaturday·as·utcSaturday,105 ····utcSaturday·as·utcSaturday,
106 ····utcSaturdays·as·utcSaturdays106 ····utcSaturdays·as·utcSaturdays
107 }107 }
108 from·"./utcWeek";108 from·"./utcWeek.js";
  
109 export·{109 export·{
110 ····default·as·utcMonth,110 ····default·as·utcMonth,
111 ····utcMonths·as·utcMonths111 ····utcMonths·as·utcMonths
112 }112 }
113 from·"./utcMonth";113 from·"./utcMonth.js";
  
114 export·{114 export·{
115 ····default·as·utcYear,115 ····default·as·utcYear,
116 ····utcYears·as·utcYears116 ····utcYears·as·utcYears
117 }117 }
118 from·"./utcYear";118 from·"./utcYear.js";
769 B
./usr/lib/nodejs/d3-time/src/interval.js
689 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 19 lines modified
1 var·t0·=·new·Date,1 var·t0·=·new·Date,
2 ····t1·=·new·Date;2 ····t1·=·new·Date;
  
3 export·default·function·newInterval(floori,·offseti,·count,·field)·{3 export·default·function·newInterval(floori,·offseti,·count,·field)·{
  
4 ····function·interval(date)·{4 ····function·interval(date)·{
5 ········return·floori(date·=·new·Date(+date)),·date;5 ········return·floori(date·=·arguments.length·===·0·?·new·Date·:·new·Date(+date)),·date;
6 ····}6 ····}
  
7 ····interval.floor·=·interval;7 ····interval.floor·=·function(date)·{
 8 ········return·floori(date·=·new·Date(+date)),·date;
 9 ····};
  
8 ····interval.ceil·=·function(date)·{10 ····interval.ceil·=·function(date)·{
9 ········return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;11 ········return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;
10 ····};12 ····};
  
11 ····interval.round·=·function(date)·{13 ····interval.round·=·function(date)·{
12 ········var·d0·=·interval(date),14 ········var·d0·=·interval(date),
373 B
./usr/lib/nodejs/d3-time/src/millisecond.js
287 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·millisecond·=·interval(function()·{2 var·millisecond·=·interval(function()·{
3 ····//·noop3 ····//·noop
4 },·function(date,·step)·{4 },·function(date,·step)·{
5 ····date.setTime(+date·+·step);5 ····date.setTime(+date·+·step);
6 },·function(start,·end)·{6 },·function(start,·end)·{
7 ····return·end·-·start;7 ····return·end·-·start;
572 B
./usr/lib/nodejs/d3-time/src/minute.js
496 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationMinute,3 ····durationMinute,
4 ····durationSecond4 ····durationSecond
5 }·from·"./duration";5 }·from·"./duration.js";
  
6 var·minute·=·interval(function(date)·{6 var·minute·=·interval(function(date)·{
7 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond);7 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond);
8 },·function(date,·step)·{8 },·function(date,·step)·{
9 ····date.setTime(+date·+·step·*·durationMinute);9 ····date.setTime(+date·+·step·*·durationMinute);
10 },·function(start,·end)·{10 },·function(start,·end)·{
11 ····return·(end·-·start)·/·durationMinute;11 ····return·(end·-·start)·/·durationMinute;
386 B
./usr/lib/nodejs/d3-time/src/month.js
312 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·month·=·interval(function(date)·{2 var·month·=·interval(function(date)·{
3 ····date.setDate(1);3 ····date.setDate(1);
4 ····date.setHours(0,·0,·0,·0);4 ····date.setHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setMonth(date.getMonth()·+·step);6 ····date.setMonth(date.getMonth()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
514 B
./usr/lib/nodejs/d3-time/src/second.js
438 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationSecond3 ····durationSecond
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·second·=·interval(function(date)·{5 var·second·=·interval(function(date)·{
6 ····date.setTime(date·-·date.getMilliseconds());6 ····date.setTime(date·-·date.getMilliseconds());
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setTime(+date·+·step·*·durationSecond);8 ····date.setTime(+date·+·step·*·durationSecond);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationSecond;10 ····return·(end·-·start)·/·durationSecond;
491 B
./usr/lib/nodejs/d3-time/src/utcDay.js
415 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationDay3 ····durationDay
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·utcDay·=·interval(function(date)·{5 var·utcDay·=·interval(function(date)·{
6 ····date.setUTCHours(0,·0,·0,·0);6 ····date.setUTCHours(0,·0,·0,·0);
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setUTCDate(date.getUTCDate()·+·step);8 ····date.setUTCDate(date.getUTCDate()·+·step);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationDay;10 ····return·(end·-·start)·/·durationDay;
495 B
./usr/lib/nodejs/d3-time/src/utcHour.js
417 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationHour3 ····durationHour
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·utcHour·=·interval(function(date)·{5 var·utcHour·=·interval(function(date)·{
6 ····date.setUTCMinutes(0,·0,·0);6 ····date.setUTCMinutes(0,·0,·0);
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setTime(+date·+·step·*·durationHour);8 ····date.setTime(+date·+·step·*·durationHour);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationHour;10 ····return·(end·-·start)·/·durationHour;
504 B
./usr/lib/nodejs/d3-time/src/utcMinute.js
422 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationMinute3 ····durationMinute
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·utcMinute·=·interval(function(date)·{5 var·utcMinute·=·interval(function(date)·{
6 ····date.setUTCSeconds(0,·0);6 ····date.setUTCSeconds(0,·0);
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setTime(+date·+·step·*·durationMinute);8 ····date.setTime(+date·+·step·*·durationMinute);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationMinute;10 ····return·(end·-·start)·/·durationMinute;
407 B
./usr/lib/nodejs/d3-time/src/utcMonth.js
327 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·utcMonth·=·interval(function(date)·{2 var·utcMonth·=·interval(function(date)·{
3 ····date.setUTCDate(1);3 ····date.setUTCDate(1);
4 ····date.setUTCHours(0,·0,·0,·0);4 ····date.setUTCHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setUTCMonth(date.getUTCMonth()·+·step);6 ····date.setUTCMonth(date.getUTCMonth()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
544 B
./usr/lib/nodejs/d3-time/src/utcWeek.js
466 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationWeek3 ····durationWeek
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 function·utcWeekday(i)·{5 function·utcWeekday(i)·{
6 ····return·interval(function(date)·{6 ····return·interval(function(date)·{
7 ········date.setUTCDate(date.getUTCDate()·-·(date.getUTCDay()·+·7·-·i)·%·7);7 ········date.setUTCDate(date.getUTCDate()·-·(date.getUTCDay()·+·7·-·i)·%·7);
8 ········date.setUTCHours(0,·0,·0,·0);8 ········date.setUTCHours(0,·0,·0,·0);
9 ····},·function(date,·step)·{9 ····},·function(date,·step)·{
10 ········date.setUTCDate(date.getUTCDate()·+·step·*·7);10 ········date.setUTCDate(date.getUTCDate()·+·step·*·7);
414 B
./usr/lib/nodejs/d3-time/src/utcYear.js
336 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·utcYear·=·interval(function(date)·{2 var·utcYear·=·interval(function(date)·{
3 ····date.setUTCMonth(0,·1);3 ····date.setUTCMonth(0,·1);
4 ····date.setUTCHours(0,·0,·0,·0);4 ····date.setUTCHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setUTCFullYear(date.getUTCFullYear()·+·step);6 ····date.setUTCFullYear(date.getUTCFullYear()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
538 B
./usr/lib/nodejs/d3-time/src/week.js
466 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationMinute,3 ····durationMinute,
4 ····durationWeek4 ····durationWeek
5 }·from·"./duration";5 }·from·"./duration.js";
  
6 function·weekday(i)·{6 function·weekday(i)·{
7 ····return·interval(function(date)·{7 ····return·interval(function(date)·{
8 ········date.setDate(date.getDate()·-·(date.getDay()·+·7·-·i)·%·7);8 ········date.setDate(date.getDate()·-·(date.getDay()·+·7·-·i)·%·7);
9 ········date.setHours(0,·0,·0,·0);9 ········date.setHours(0,·0,·0,·0);
10 ····},·function(date,·step)·{10 ····},·function(date,·step)·{
11 ········date.setDate(date.getDate()·+·step·*·7);11 ········date.setDate(date.getDate()·+·step·*·7);
393 B
./usr/lib/nodejs/d3-time/src/year.js
321 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·year·=·interval(function(date)·{2 var·year·=·interval(function(date)·{
3 ····date.setMonth(0,·1);3 ····date.setMonth(0,·1);
4 ····date.setHours(0,·0,·0,·0);4 ····date.setHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setFullYear(date.getFullYear()·+·step);6 ····date.setFullYear(date.getFullYear()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
1.66 KB
./usr/share/doc/node-d3-time/README.md.gz
1.58 KB
README.md
    
Offset 44, 17 lines modifiedOffset 44, 21 lines modified
44 </script>44 </script>
45 ```45 ```
  
46 [Try·d3-time·in·your·browser.](https://tonicdev.com/npm/d3-time)46 [Try·d3-time·in·your·browser.](https://tonicdev.com/npm/d3-time)
  
47 ##·API·Reference47 ##·API·Reference
  
48 <a·name="_interval"·href="#_interval">#</a>·<i>interval</i>(<i>date</i>)·[<>](https://github.com/d3/d3-time/blob/master/src/interval.js#L6·"Source")48 <a·name="_interval"·href="#_interval">#</a>·<i>interval</i>([<i>date</i>])·[<>](https://github.com/d3/d3-time/blob/master/src/interval.js#L6·"Source")
  
49 Alias·for·[*interval*.floor](#interval_floor).·For·example,·[d3.timeYear](#timeYear)(*date*)·and·d3.timeYear.floor(*date*)·are·equivalent.49 Equivalent·to·[*interval*.floor](#interval_floor),·except·it·*date*·is·not·specified,·it·defaults·to·the·current·time.·For·example,·[d3.timeYear](#timeYear)(*date*)·and·d3.timeYear.floor(*date*)·are·equivalent.
  
 50 ```js
 51 var·monday·=·d3.timeMonday();·//·The·latest·preceeding·Monday,·local·time.
 52 ```
  
50 <a·name="interval_floor"·href="#interval_floor">#</a>·<i>interval</i>.<b>floor</b>(<i>date</i>)·[<>](https://github.com/d3/d3-time/blob/master/src/interval.js#L10·"Source")53 <a·name="interval_floor"·href="#interval_floor">#</a>·<i>interval</i>.<b>floor</b>(<i>date</i>)·[<>](https://github.com/d3/d3-time/blob/master/src/interval.js#L10·"Source")
  
51 Returns·a·new·date·representing·the·latest·interval·boundary·date·before·or·equal·to·*date*.·For·example,·[d3.timeDay](#timeDay).floor(*date*)·typically·returns·12:00·AM·local·time·on·the·given·*date*.54 Returns·a·new·date·representing·the·latest·interval·boundary·date·before·or·equal·to·*date*.·For·example,·[d3.timeDay](#timeDay).floor(*date*)·typically·returns·12:00·AM·local·time·on·the·given·*date*.
  
52 This·method·is·idempotent:·if·the·specified·*date*·is·already·floored·to·the·current·interval,·a·new·date·with·an·identical·time·is·returned.·Furthermore,·the·returned·date·is·the·minimum·expressible·value·of·the·associated·interval,·such·that·*interval*.floor(*interval*.floor(*date*)·-·1)·returns·the·preceeding·interval·boundary·date.55 This·method·is·idempotent:·if·the·specified·*date*·is·already·floored·to·the·current·interval,·a·new·date·with·an·identical·time·is·returned.·Furthermore,·the·returned·date·is·the·minimum·expressible·value·of·the·associated·interval,·such·that·*interval*.floor(*interval*.floor(*date*)·-·1)·returns·the·preceeding·interval·boundary·date.
  
981 B
./usr/share/doc/node-d3-time/changelog.Debian.gz
885 B
changelog.Debian
    
Offset 1, 18 lines modifiedOffset 1, 19 lines modified
1 node-d3-time·(1.0.11-4~jan+unchanged1)·unchanged;·urgency=medium1 node-d3-time·(1.1.0-1~jan+nur1)·fresh-releases;·urgency=medium
  
2 ··*·Use·secure·copyright·file·specification·URI.2 ··*·Use·secure·copyright·file·specification·URI.
3 ··*·Bump·debhelper·from·old·11·to·12.3 ··*·Bump·debhelper·from·old·11·to·12.
4 ··*·Set·debhelper-compat·version·in·Build-Depends.4 ··*·Set·debhelper-compat·version·in·Build-Depends.
5 ··*·Set·upstream·metadata·fields:·Bug-Database,·Bug-Submit,·Repository,5 ··*·Set·upstream·metadata·fields:·Bug-Database,·Bug-Submit,·Repository,
6 ····Repository-Browse.6 ····Repository-Browse.
7 ··*·Update·standards·version·to·4.4.1,·no·changes·needed.7 ··*·Update·standards·version·to·4.4.1,·no·changes·needed.
 8 ··*·New·upstream·release.
8 ··*·Build·for·debian-janitor·apt·repository.9 ··*·Build·for·debian-janitor·apt·repository.
  
9 ·--·Debian·Janitor·<janitor@jelmer.uk>··Wed,·01·Apr·2020·04:49:57·+000010 ·--·Debian·Janitor·<janitor@jelmer.uk>··Wed,·01·Apr·2020·05:37:43·+0000
  
10 node-d3-time·(1.0.11-3)·unstable;·urgency=medium11 node-d3-time·(1.0.11-3)·unstable;·urgency=medium
  
11 ··*·Reupload·to·unstable12 ··*·Reupload·to·unstable
12 ··*·Make·build·reproducible13 ··*·Make·build·reproducible
  
13 ·--·Pirate·Praveen·<praveen@debian.org>··Sun,·07·Jul·2019·11:19:11·+053014 ·--·Pirate·Praveen·<praveen@debian.org>··Sun,·07·Jul·2019·11:19:11·+0530
1.25 KB
./usr/share/nodejs/d3-time/dist/d3-time.js
1.17 KB
js-beautify {}
    
Offset 1, 25 lines modifiedOffset 1, 27 lines modified
1 //·https://d3js.org/d3-time/·v1.0.11·Copyright·2020·Mike·Bostock1 //·https://d3js.org/d3-time/·v1.1.0·Copyright·2020·Mike·Bostock
2 (function(global,·factory)·{2 (function(global,·factory)·{
3 ····typeof·exports·===·'object'·&&·typeof·module·!==·'undefined'·?·factory(exports)·:3 ····typeof·exports·===·'object'·&&·typeof·module·!==·'undefined'·?·factory(exports)·:
4 ········typeof·define·===·'function'·&&·define.amd·?·define(['exports'],·factory)·:4 ········typeof·define·===·'function'·&&·define.amd·?·define(['exports'],·factory)·:
5 ········(global·=·global·||·self,·factory(global.d3·=·global.d3·||·{}));5 ········(global·=·global·||·self,·factory(global.d3·=·global.d3·||·{}));
6 }(this,·function(exports)·{6 }(this,·function(exports)·{
7 ····'use·strict';7 ····'use·strict';
  
8 ····var·t0·=·new·Date,8 ····var·t0·=·new·Date,
9 ········t1·=·new·Date;9 ········t1·=·new·Date;
  
10 ····function·newInterval(floori,·offseti,·count,·field)·{10 ····function·newInterval(floori,·offseti,·count,·field)·{
  
11 ········function·interval(date)·{11 ········function·interval(date)·{
12 ············return·floori(date·=·new·Date(+date)),·date;12 ············return·floori(date·=·arguments.length·===·0·?·new·Date·:·new·Date(+date)),·date;
13 ········}13 ········}
  
14 ········interval.floor·=·interval;14 ········interval.floor·=·function(date)·{
 15 ············return·floori(date·=·new·Date(+date)),·date;
 16 ········};
  
15 ········interval.ceil·=·function(date)·{17 ········interval.ceil·=·function(date)·{
16 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;18 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;
17 ········};19 ········};
  
18 ········interval.round·=·function(date)·{20 ········interval.round·=·function(date)·{
19 ············var·d0·=·interval(date),21 ············var·d0·=·interval(date),
962 B
./usr/share/nodejs/d3-time/dist/d3-time.min.js
870 B
js-beautify {}
    
Offset 3, 17 lines modifiedOffset 3, 19 lines modified
3 })(this,·function(exports)·{3 })(this,·function(exports)·{
4 ····"use·strict";4 ····"use·strict";
5 ····var·t0·=·new·Date,5 ····var·t0·=·new·Date,
6 ········t1·=·new·Date;6 ········t1·=·new·Date;
  
7 ····function·newInterval(floori,·offseti,·count,·field)·{7 ····function·newInterval(floori,·offseti,·count,·field)·{
8 ········function·interval(date)·{8 ········function·interval(date)·{
9 ············return·floori(date·=·new·Date(+date)),·date9 ············return·floori(date·=·arguments.length·===·0·?·new·Date·:·new·Date(+date)),·date
10 ········}10 ········}
11 ········interval.floor·=·interval;11 ········interval.floor·=·function(date)·{
 12 ············return·floori(date·=·new·Date(+date)),·date
 13 ········};
12 ········interval.ceil·=·function(date)·{14 ········interval.ceil·=·function(date)·{
13 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date15 ············return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date
14 ········};16 ········};
15 ········interval.round·=·function(date)·{17 ········interval.round·=·function(date)·{
16 ············var·d0·=·interval(date),18 ············var·d0·=·interval(date),
17 ················d1·=·interval.ceil(date);19 ················d1·=·interval.ceil(date);
18 ············return·date·-·d0·<·d1·-·date·?·d0·:·d120 ············return·date·-·d0·<·d1·-·date·?·d0·:·d1
3.37 KB
./usr/share/nodejs/d3-time/package.json
3.29 KB
/tmp/diffoscope_ey6w1505/tmpraz1xauk/0/39.json vs.
/tmp/diffoscope_ey6w1505/tmp5chqoy8p/0/38.json
Differences: { "replace": "OrderedDict([('name', 'd3-time'), ('version', '1.1.0'), ('description', 'A calculator for humanity\u2019s peculiar conventions of time.'), ('keywords', ['d3', 'd3-module', 'time', 'interval', 'calendar']), ('homepage', 'https://d3js.org/d3-time/'), ('license', 'BSD-3-Clause'), ('author', OrderedDict([('name', 'Mike Bostock'), ('url', 'http://bost.ocks.org/mike')])), ('main', 'dist/d3-time.js'), ('unpkg', 'dist/d3-time.min.js'), ('jsdelivr', 'dist/d3-time.min.js'), ('module', 'src/index.js'), ('repository', OrderedDict([('type', 'git'), ('url', 'https://github.com/d3/d3-time.git')])), ('files', ['dist/**/*.js', 'src/**/*.js']), ('scripts', OrderedDict([('pretest', 'rollup -c'), ('test', \"TZ=America/Los_Angeles tape 'test/**/*-test.js' && eslint src\"), ('prepublishOnly', 'rm -rf dist && yarn test'), ('postpublish', 'git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd - && zip -j dist/${npm_package_name}.zip -- LICENSE README.md dist/${npm_package_name}.js dist/${npm_package_name}.min.js')])), ('sideEffects', False), ('devDependencies', OrderedDict([('eslint', '6'), ('rollup', '1'), ('rollup-plugin-terser', '5'), ('tape', '4')]))])" }
    
Offset 1, 19 lines modifiedOffset 1, 23 lines modified
1 {1 {
2 ····"author":·{2 ····"author":·{
3 ········"name":·"Mike·Bostock",3 ········"name":·"Mike·Bostock",
4 ········"url":·"http://bost.ocks.org/mike"4 ········"url":·"http://bost.ocks.org/mike"
5 ····},5 ····},
6 ····"description":·"A·calculator·for·humanity\u2019s·peculiar·conventions·of·time.",6 ····"description":·"A·calculator·for·humanity\u2019s·peculiar·conventions·of·time.",
7 ····"devDependencies":·{7 ····"devDependencies":·{
8 ········"eslint":·"5",8 ········"eslint":·"6",
9 ········"rollup":·"0.64",9 ········"rollup":·"1",
10 ········"rollup-plugin-terser":·"1",10 ········"rollup-plugin-terser":·"5",
11 ········"tape":·"4"11 ········"tape":·"4"
12 ····},12 ····},
 13 ····"files":·[
 14 ········"dist/**/*.js",
 15 ········"src/**/*.js"
 16 ····],
13 ····"homepage":·"https://d3js.org/d3-time/",17 ····"homepage":·"https://d3js.org/d3-time/",
14 ····"jsdelivr":·"dist/d3-time.min.js",18 ····"jsdelivr":·"dist/d3-time.min.js",
15 ····"keywords":·[19 ····"keywords":·[
16 ········"d3",20 ········"d3",
17 ········"d3-module",21 ········"d3-module",
18 ········"time",22 ········"time",
19 ········"interval",23 ········"interval",
Offset 29, 10 lines modifiedOffset 33, 11 lines modified
29 ····},33 ····},
30 ····"scripts":·{34 ····"scripts":·{
31 ········"postpublish":·"git·push·&&·git·push·--tags·&&·cd·../d3.github.com·&&·git·pull·&&·cp·../${npm_package_name}/dist/${npm_package_name}.js·${npm_package_name}.v${npm_package_version%%.*}.js·&&·cp·../${npm_package_name}/dist/${npm_package_name}.min.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·add·${npm_package_name}.v${npm_package_version%%.*}.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·commit·-m·\"${npm_package_name}·${npm_package_version}\"·&&·git·push·&&·cd·-·&&·zip·-j·dist/${npm_package_name}.zip·--·LICENSE·README.md·dist/${npm_package_name}.js·dist/${npm_package_name}.min.js",35 ········"postpublish":·"git·push·&&·git·push·--tags·&&·cd·../d3.github.com·&&·git·pull·&&·cp·../${npm_package_name}/dist/${npm_package_name}.js·${npm_package_name}.v${npm_package_version%%.*}.js·&&·cp·../${npm_package_name}/dist/${npm_package_name}.min.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·add·${npm_package_name}.v${npm_package_version%%.*}.js·${npm_package_name}.v${npm_package_version%%.*}.min.js·&&·git·commit·-m·\"${npm_package_name}·${npm_package_version}\"·&&·git·push·&&·cd·-·&&·zip·-j·dist/${npm_package_name}.zip·--·LICENSE·README.md·dist/${npm_package_name}.js·dist/${npm_package_name}.min.js",
32 ········"prepublishOnly":·"rm·-rf·dist·&&·yarn·test",36 ········"prepublishOnly":·"rm·-rf·dist·&&·yarn·test",
33 ········"pretest":·"rollup·-c",37 ········"pretest":·"rollup·-c",
34 ········"test":·"TZ=America/Los_Angeles·tape·'test/**/*-test.js'·&&·eslint·src"38 ········"test":·"TZ=America/Los_Angeles·tape·'test/**/*-test.js'·&&·eslint·src"
35 ····},39 ····},
 40 ····"sideEffects":·false,
36 ····"unpkg":·"dist/d3-time.min.js",41 ····"unpkg":·"dist/d3-time.min.js",
37 ····"version":·"1.0.11"42 ····"version":·"1.1.0"
38 }43 }
571 B
./usr/share/nodejs/d3-time/src/day.js
497 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationDay,3 ····durationDay,
4 ····durationMinute4 ····durationMinute
5 }·from·"./duration";5 }·from·"./duration.js";
  
6 var·day·=·interval(function(date)·{6 var·day·=·interval(function(date)·{
7 ····date.setHours(0,·0,·0,·0);7 ····date.setHours(0,·0,·0,·0);
8 },·function(date,·step)·{8 },·function(date,·step)·{
9 ····date.setDate(date.getDate()·+·step);9 ····date.setDate(date.getDate()·+·step);
10 },·function(start,·end)·{10 },·function(start,·end)·{
11 ····return·(end·-·start·-·(end.getTimezoneOffset()·-·start.getTimezoneOffset())·*·durationMinute)·/·durationDay;11 ····return·(end·-·start·-·(end.getTimezoneOffset()·-·start.getTimezoneOffset())·*·durationMinute)·/·durationDay;
622 B
./usr/share/nodejs/d3-time/src/hour.js
546 B
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationHour,3 ····durationHour,
4 ····durationMinute,4 ····durationMinute,
5 ····durationSecond5 ····durationSecond
6 }·from·"./duration";6 }·from·"./duration.js";
  
7 var·hour·=·interval(function(date)·{7 var·hour·=·interval(function(date)·{
8 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond·-·date.getMinutes()·*·durationMinute);8 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond·-·date.getMinutes()·*·durationMinute);
9 },·function(date,·step)·{9 },·function(date,·step)·{
10 ····date.setTime(+date·+·step·*·durationHour);10 ····date.setTime(+date·+·step·*·durationHour);
11 },·function(start,·end)·{11 },·function(start,·end)·{
12 ····return·(end·-·start)·/·durationHour;12 ····return·(end·-·start)·/·durationHour;
2.38 KB
./usr/share/nodejs/d3-time/src/index.js
2.31 KB
js-beautify {}
    
Offset 1, 45 lines modifiedOffset 1, 45 lines modified
1 export·{1 export·{
2 ····default·as·timeInterval2 ····default·as·timeInterval
3 }3 }
4 from·"./interval";4 from·"./interval.js";
  
5 export·{5 export·{
6 ····default·as·timeMillisecond,6 ····default·as·timeMillisecond,
7 ····milliseconds·as·timeMilliseconds,7 ····milliseconds·as·timeMilliseconds,
8 ····default·as·utcMillisecond,8 ····default·as·utcMillisecond,
9 ····milliseconds·as·utcMilliseconds9 ····milliseconds·as·utcMilliseconds
10 }10 }
11 from·"./millisecond";11 from·"./millisecond.js";
  
12 export·{12 export·{
13 ····default·as·timeSecond,13 ····default·as·timeSecond,
14 ····seconds·as·timeSeconds,14 ····seconds·as·timeSeconds,
15 ····default·as·utcSecond,15 ····default·as·utcSecond,
16 ····seconds·as·utcSeconds16 ····seconds·as·utcSeconds
17 }17 }
18 from·"./second";18 from·"./second.js";
  
19 export·{19 export·{
20 ····default·as·timeMinute,20 ····default·as·timeMinute,
21 ····minutes·as·timeMinutes21 ····minutes·as·timeMinutes
22 }22 }
23 from·"./minute";23 from·"./minute.js";
  
24 export·{24 export·{
25 ····default·as·timeHour,25 ····default·as·timeHour,
26 ····hours·as·timeHours26 ····hours·as·timeHours
27 }27 }
28 from·"./hour";28 from·"./hour.js";
  
29 export·{29 export·{
30 ····default·as·timeDay,30 ····default·as·timeDay,
31 ····days·as·timeDays31 ····days·as·timeDays
32 }32 }
33 from·"./day";33 from·"./day.js";
  
34 export·{34 export·{
35 ····sunday·as·timeWeek,35 ····sunday·as·timeWeek,
36 ····sundays·as·timeWeeks,36 ····sundays·as·timeWeeks,
37 ····sunday·as·timeSunday,37 ····sunday·as·timeSunday,
38 ····sundays·as·timeSundays,38 ····sundays·as·timeSundays,
39 ····monday·as·timeMonday,39 ····monday·as·timeMonday,
Offset 51, 45 lines modifiedOffset 51, 45 lines modified
51 ····thursday·as·timeThursday,51 ····thursday·as·timeThursday,
52 ····thursdays·as·timeThursdays,52 ····thursdays·as·timeThursdays,
53 ····friday·as·timeFriday,53 ····friday·as·timeFriday,
54 ····fridays·as·timeFridays,54 ····fridays·as·timeFridays,
55 ····saturday·as·timeSaturday,55 ····saturday·as·timeSaturday,
56 ····saturdays·as·timeSaturdays56 ····saturdays·as·timeSaturdays
57 }57 }
58 from·"./week";58 from·"./week.js";
  
59 export·{59 export·{
60 ····default·as·timeMonth,60 ····default·as·timeMonth,
61 ····months·as·timeMonths61 ····months·as·timeMonths
62 }62 }
63 from·"./month";63 from·"./month.js";
  
64 export·{64 export·{
65 ····default·as·timeYear,65 ····default·as·timeYear,
66 ····years·as·timeYears66 ····years·as·timeYears
67 }67 }
68 from·"./year";68 from·"./year.js";
  
69 export·{69 export·{
70 ····default·as·utcMinute,70 ····default·as·utcMinute,
71 ····utcMinutes·as·utcMinutes71 ····utcMinutes·as·utcMinutes
72 }72 }
73 from·"./utcMinute";73 from·"./utcMinute.js";
  
74 export·{74 export·{
75 ····default·as·utcHour,75 ····default·as·utcHour,
76 ····utcHours·as·utcHours76 ····utcHours·as·utcHours
77 }77 }
78 from·"./utcHour";78 from·"./utcHour.js";
  
79 export·{79 export·{
80 ····default·as·utcDay,80 ····default·as·utcDay,
81 ····utcDays·as·utcDays81 ····utcDays·as·utcDays
82 }82 }
83 from·"./utcDay";83 from·"./utcDay.js";
  
84 export·{84 export·{
85 ····utcSunday·as·utcWeek,85 ····utcSunday·as·utcWeek,
86 ····utcSundays·as·utcWeeks,86 ····utcSundays·as·utcWeeks,
87 ····utcSunday·as·utcSunday,87 ····utcSunday·as·utcSunday,
88 ····utcSundays·as·utcSundays,88 ····utcSundays·as·utcSundays,
89 ····utcMonday·as·utcMonday,89 ····utcMonday·as·utcMonday,
Offset 101, 20 lines modifiedOffset 101, 20 lines modified
101 ····utcThursday·as·utcThursday,101 ····utcThursday·as·utcThursday,
102 ····utcThursdays·as·utcThursdays,102 ····utcThursdays·as·utcThursdays,
103 ····utcFriday·as·utcFriday,103 ····utcFriday·as·utcFriday,
104 ····utcFridays·as·utcFridays,104 ····utcFridays·as·utcFridays,
105 ····utcSaturday·as·utcSaturday,105 ····utcSaturday·as·utcSaturday,
106 ····utcSaturdays·as·utcSaturdays106 ····utcSaturdays·as·utcSaturdays
107 }107 }
108 from·"./utcWeek";108 from·"./utcWeek.js";
  
109 export·{109 export·{
110 ····default·as·utcMonth,110 ····default·as·utcMonth,
111 ····utcMonths·as·utcMonths111 ····utcMonths·as·utcMonths
112 }112 }
113 from·"./utcMonth";113 from·"./utcMonth.js";
  
114 export·{114 export·{
115 ····default·as·utcYear,115 ····default·as·utcYear,
116 ····utcYears·as·utcYears116 ····utcYears·as·utcYears
117 }117 }
118 from·"./utcYear";118 from·"./utcYear.js";
773 B
./usr/share/nodejs/d3-time/src/interval.js
689 B
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 19 lines modified
1 var·t0·=·new·Date,1 var·t0·=·new·Date,
2 ····t1·=·new·Date;2 ····t1·=·new·Date;
  
3 export·default·function·newInterval(floori,·offseti,·count,·field)·{3 export·default·function·newInterval(floori,·offseti,·count,·field)·{
  
4 ····function·interval(date)·{4 ····function·interval(date)·{
5 ········return·floori(date·=·new·Date(+date)),·date;5 ········return·floori(date·=·arguments.length·===·0·?·new·Date·:·new·Date(+date)),·date;
6 ····}6 ····}
  
7 ····interval.floor·=·interval;7 ····interval.floor·=·function(date)·{
 8 ········return·floori(date·=·new·Date(+date)),·date;
 9 ····};
  
8 ····interval.ceil·=·function(date)·{10 ····interval.ceil·=·function(date)·{
9 ········return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;11 ········return·floori(date·=·new·Date(date·-·1)),·offseti(date,·1),·floori(date),·date;
10 ····};12 ····};
  
11 ····interval.round·=·function(date)·{13 ····interval.round·=·function(date)·{
12 ········var·d0·=·interval(date),14 ········var·d0·=·interval(date),
377 B
./usr/share/nodejs/d3-time/src/millisecond.js
287 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·millisecond·=·interval(function()·{2 var·millisecond·=·interval(function()·{
3 ····//·noop3 ····//·noop
4 },·function(date,·step)·{4 },·function(date,·step)·{
5 ····date.setTime(+date·+·step);5 ····date.setTime(+date·+·step);
6 },·function(start,·end)·{6 },·function(start,·end)·{
7 ····return·end·-·start;7 ····return·end·-·start;
576 B
./usr/share/nodejs/d3-time/src/minute.js
496 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationMinute,3 ····durationMinute,
4 ····durationSecond4 ····durationSecond
5 }·from·"./duration";5 }·from·"./duration.js";
  
6 var·minute·=·interval(function(date)·{6 var·minute·=·interval(function(date)·{
7 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond);7 ····date.setTime(date·-·date.getMilliseconds()·-·date.getSeconds()·*·durationSecond);
8 },·function(date,·step)·{8 },·function(date,·step)·{
9 ····date.setTime(+date·+·step·*·durationMinute);9 ····date.setTime(+date·+·step·*·durationMinute);
10 },·function(start,·end)·{10 },·function(start,·end)·{
11 ····return·(end·-·start)·/·durationMinute;11 ····return·(end·-·start)·/·durationMinute;
390 B
./usr/share/nodejs/d3-time/src/month.js
312 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·month·=·interval(function(date)·{2 var·month·=·interval(function(date)·{
3 ····date.setDate(1);3 ····date.setDate(1);
4 ····date.setHours(0,·0,·0,·0);4 ····date.setHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setMonth(date.getMonth()·+·step);6 ····date.setMonth(date.getMonth()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
518 B
./usr/share/nodejs/d3-time/src/second.js
438 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationSecond3 ····durationSecond
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·second·=·interval(function(date)·{5 var·second·=·interval(function(date)·{
6 ····date.setTime(date·-·date.getMilliseconds());6 ····date.setTime(date·-·date.getMilliseconds());
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setTime(+date·+·step·*·durationSecond);8 ····date.setTime(+date·+·step·*·durationSecond);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationSecond;10 ····return·(end·-·start)·/·durationSecond;
495 B
./usr/share/nodejs/d3-time/src/utcDay.js
415 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationDay3 ····durationDay
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·utcDay·=·interval(function(date)·{5 var·utcDay·=·interval(function(date)·{
6 ····date.setUTCHours(0,·0,·0,·0);6 ····date.setUTCHours(0,·0,·0,·0);
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setUTCDate(date.getUTCDate()·+·step);8 ····date.setUTCDate(date.getUTCDate()·+·step);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationDay;10 ····return·(end·-·start)·/·durationDay;
499 B
./usr/share/nodejs/d3-time/src/utcHour.js
417 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationHour3 ····durationHour
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·utcHour·=·interval(function(date)·{5 var·utcHour·=·interval(function(date)·{
6 ····date.setUTCMinutes(0,·0,·0);6 ····date.setUTCMinutes(0,·0,·0);
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setTime(+date·+·step·*·durationHour);8 ····date.setTime(+date·+·step·*·durationHour);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationHour;10 ····return·(end·-·start)·/·durationHour;
508 B
./usr/share/nodejs/d3-time/src/utcMinute.js
422 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationMinute3 ····durationMinute
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 var·utcMinute·=·interval(function(date)·{5 var·utcMinute·=·interval(function(date)·{
6 ····date.setUTCSeconds(0,·0);6 ····date.setUTCSeconds(0,·0);
7 },·function(date,·step)·{7 },·function(date,·step)·{
8 ····date.setTime(+date·+·step·*·durationMinute);8 ····date.setTime(+date·+·step·*·durationMinute);
9 },·function(start,·end)·{9 },·function(start,·end)·{
10 ····return·(end·-·start)·/·durationMinute;10 ····return·(end·-·start)·/·durationMinute;
411 B
./usr/share/nodejs/d3-time/src/utcMonth.js
327 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·utcMonth·=·interval(function(date)·{2 var·utcMonth·=·interval(function(date)·{
3 ····date.setUTCDate(1);3 ····date.setUTCDate(1);
4 ····date.setUTCHours(0,·0,·0,·0);4 ····date.setUTCHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setUTCMonth(date.getUTCMonth()·+·step);6 ····date.setUTCMonth(date.getUTCMonth()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
548 B
./usr/share/nodejs/d3-time/src/utcWeek.js
466 B
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationWeek3 ····durationWeek
4 }·from·"./duration";4 }·from·"./duration.js";
  
5 function·utcWeekday(i)·{5 function·utcWeekday(i)·{
6 ····return·interval(function(date)·{6 ····return·interval(function(date)·{
7 ········date.setUTCDate(date.getUTCDate()·-·(date.getUTCDay()·+·7·-·i)·%·7);7 ········date.setUTCDate(date.getUTCDate()·-·(date.getUTCDay()·+·7·-·i)·%·7);
8 ········date.setUTCHours(0,·0,·0,·0);8 ········date.setUTCHours(0,·0,·0,·0);
9 ····},·function(date,·step)·{9 ····},·function(date,·step)·{
10 ········date.setUTCDate(date.getUTCDate()·+·step·*·7);10 ········date.setUTCDate(date.getUTCDate()·+·step·*·7);
418 B
./usr/share/nodejs/d3-time/src/utcYear.js
336 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·utcYear·=·interval(function(date)·{2 var·utcYear·=·interval(function(date)·{
3 ····date.setUTCMonth(0,·1);3 ····date.setUTCMonth(0,·1);
4 ····date.setUTCHours(0,·0,·0,·0);4 ····date.setUTCHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setUTCFullYear(date.getUTCFullYear()·+·step);6 ····date.setUTCFullYear(date.getUTCFullYear()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{
542 B
./usr/share/nodejs/d3-time/src/week.js
466 B
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
2 import·{2 import·{
3 ····durationMinute,3 ····durationMinute,
4 ····durationWeek4 ····durationWeek
5 }·from·"./duration";5 }·from·"./duration.js";
  
6 function·weekday(i)·{6 function·weekday(i)·{
7 ····return·interval(function(date)·{7 ····return·interval(function(date)·{
8 ········date.setDate(date.getDate()·-·(date.getDay()·+·7·-·i)·%·7);8 ········date.setDate(date.getDate()·-·(date.getDay()·+·7·-·i)·%·7);
9 ········date.setHours(0,·0,·0,·0);9 ········date.setHours(0,·0,·0,·0);
10 ····},·function(date,·step)·{10 ····},·function(date,·step)·{
11 ········date.setDate(date.getDate()·+·step·*·7);11 ········date.setDate(date.getDate()·+·step·*·7);
397 B
./usr/share/nodejs/d3-time/src/year.js
321 B
js-beautify {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 import·interval·from·"./interval";1 import·interval·from·"./interval.js";
  
2 var·year·=·interval(function(date)·{2 var·year·=·interval(function(date)·{
3 ····date.setMonth(0,·1);3 ····date.setMonth(0,·1);
4 ····date.setHours(0,·0,·0,·0);4 ····date.setHours(0,·0,·0,·0);
5 },·function(date,·step)·{5 },·function(date,·step)·{
6 ····date.setFullYear(date.getFullYear()·+·step);6 ····date.setFullYear(date.getFullYear()·+·step);
7 },·function(start,·end)·{7 },·function(start,·end)·{