dateformat
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -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(); | ||
}); | ||
}); |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2
354
83
0
0
18252