Comparing version 1.6.1 to 1.6.2
@@ -57,2 +57,3 @@ "use strict"; | ||
var weekdays = [ | ||
'Sunday', | ||
'Monday', | ||
@@ -63,4 +64,3 @@ 'Tuesday', | ||
'Friday', | ||
'Saturday', | ||
'Sunday' | ||
'Saturday' | ||
]; | ||
@@ -67,0 +67,0 @@ return weekdays[date.getDay()]; |
@@ -65,2 +65,3 @@ // years | ||
const weekdays = [ | ||
'Sunday', | ||
'Monday', | ||
@@ -71,4 +72,3 @@ 'Tuesday', | ||
'Friday', | ||
'Saturday', | ||
'Sunday' | ||
'Saturday' | ||
]; | ||
@@ -75,0 +75,0 @@ return weekdays[date.getDay()]; |
{ | ||
"name": "s-date", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Tiny date/time formatter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,7 +12,7 @@ import test from 'ava'; | ||
const format = '{yyyy} {yy} / {mm} {m} {Month} {Mo} - {d} {ds} {dd} -- {Weekday} -- {Day} {Dy} {D} {h24} {hh24} {hh} {h} {ampm} {AMPM} {Minutes} {Seconds}'; | ||
const out1 = '1994 94 / 11 11 November Nov - 7 7th 07 -- Tuesday -- Tue Tu T 6 06 06 6 am AM 25 04'; | ||
const out2 = '2001 01 / 01 1 January Jan - 1 1st 01 -- Tuesday -- Tue Tu T 2 02 02 2 am AM 00 30'; | ||
const out3 = '2013 13 / 12 12 December Dec - 2 2nd 02 -- Tuesday -- Tue Tu T 12 12 12 12 pm PM 00 00'; | ||
const out4 = '2050 50 / 11 11 November Nov - 22 22nd 22 -- Wednesday -- Wed We W 0 00 12 12 am AM 00 00'; | ||
const out5 = '2050 50 / 11 11 November Nov - 22 22nd 22 -- Wednesday -- Wed We W 16 16 04 4 pm PM 00 00'; | ||
const out1 = '1994 94 / 11 11 November Nov - 7 7th 07 -- Monday -- Mon Mo M 6 06 06 6 am AM 25 04'; | ||
const out2 = '2001 01 / 01 1 January Jan - 1 1st 01 -- Monday -- Mon Mo M 2 02 02 2 am AM 00 30'; | ||
const out3 = '2013 13 / 12 12 December Dec - 2 2nd 02 -- Monday -- Mon Mo M 12 12 12 12 pm PM 00 00'; | ||
const out4 = '2050 50 / 11 11 November Nov - 22 22nd 22 -- Tuesday -- Tue Tu T 0 00 12 12 am AM 00 00'; | ||
const out5 = '2050 50 / 11 11 November Nov - 22 22nd 22 -- Tuesday -- Tue Tu T 16 16 04 4 pm PM 00 00'; | ||
@@ -19,0 +19,0 @@ t.is(date(format, date1), out1); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
86533