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

dateformat

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dateformat - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

.travis.yml

2

lib/dateformat.js

@@ -118,3 +118,3 @@ /*

'isoTime': 'HH:MM:ss',
'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:ss',
'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso',
'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'',

@@ -121,0 +121,0 @@ 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z'

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

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

@@ -27,5 +27,4 @@ "type": "MIT",

"devDependencies": {
"for-own": "^0.1.2",
"mocha": "^2.0.1",
"should": "^4.0.4"
"underscore": "1.7.0",
"mocha": "2.0.1"
},

@@ -36,3 +35,3 @@ "engines": {

"scripts": {
"test": "node_modules/.bin/mocha test/test.js --require should "
"test": "mocha"
},

@@ -39,0 +38,0 @@ "repository": {

@@ -5,2 +5,4 @@ # dateformat

[![Build Status](https://travis-ci.org/felixge/node-dateformat.svg)](https://travis-ci.org/felixge/node-dateformat)
## Modifications

@@ -7,0 +9,0 @@

@@ -1,10 +0,15 @@

var dateFormat = require('./../lib/dateformat'),
assert = require('assert');
var assert = require('assert');
var start = 10; // the 10 of March 2013 is a Sunday
for(var dow = 1; dow <= 7; dow++){
var date = new Date('2013-03-' + (start + dow));
var N = dateFormat(date,'N');
assert.equal(N,dow);
console.log('The ISO-8601 numeric representation of the day "' + date.toString() + '" is ' + N);
}
var dateFormat = require('./../lib/dateformat');
describe('dayOfWeek', function() {
it('should correctly format the timezone part', function(done) {
var start = 10; // the 10 of March 2013 is a Sunday
for(var dow = 1; dow <= 7; dow++){
var date = new Date('2013-03-' + (start + dow));
var N = dateFormat(date, 'N');
assert.strictEqual(N, String(dow));
}
done();
});
});
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