Socket
Socket
Sign inDemoInstall

dateformat

Package Overview
Dependencies
2
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

test/basic.js

4

lib/dateformat.js

@@ -118,4 +118,4 @@ /*

'isoTime': 'HH:MM:ss',
'isoDateTime': 'yyyy-mm-dd"T"HH:MM:ss',
'isoUtcDateTime': 'UTC:yyyy-mm-dd"T"HH:MM:ss"Z"',
'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:ss',
'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'',
'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z'

@@ -122,0 +122,0 @@ };

@@ -12,3 +12,3 @@ {

],
"version": "1.0.9",
"version": "1.0.10",
"licenses": {

@@ -15,0 +15,0 @@ "type": "MIT",

@@ -6,4 +6,5 @@ var fs = require('fs');

var forOwn = require('for-own');
var should = require('should');
var dateFormat = require('../lib/dateformat');
var now = 1417000784633;
var now = new Date(2014, 10, 26, 13, 19, 44);

@@ -21,4 +22,4 @@ var expects = {

'isoTime': '13:19:44',
'isoDateTime': '2014-11-26"P"13:19:44',
'isoUtcDateTime': '2014-11-26"A"11:19:44"UTC"',
'isoDateTime': '2014-11-26T13:19:44',
'isoUtcDateTime': '2014-11-26T11:19:44Z',
'expiresHeaderFormat': 'Wed, 26 Nov 2014 13:19:44 GMT+0200'

@@ -32,3 +33,2 @@ };

var actual = dateFormat(now, key);
actual.should.equal(expected);

@@ -35,0 +35,0 @@ done();

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc