Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

s-date

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s-date - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

index.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc