date-format
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -24,8 +24,4 @@ "use strict"; | ||
var m = String(os % 60); | ||
if (h.length === 1) { | ||
h = "0" + h; | ||
} | ||
if (m.length === 1) { | ||
m = "0" + m; | ||
} | ||
h = ("0" + h).slice(-2); | ||
m = ("0" + m).slice(-2); | ||
return timezoneOffset === 0 ? "Z" : (timezoneOffset < 0 ? "+" : "-") + h + ":" + m; | ||
@@ -212,2 +208,3 @@ } | ||
*/ | ||
// istanbul ignore next | ||
function now() { | ||
@@ -214,0 +211,0 @@ return new Date(); |
{ | ||
"name": "date-format", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Formatting Date objects as strings since 2013", | ||
@@ -19,3 +19,3 @@ "main": "lib/index.js", | ||
"pretest": "eslint lib/* test/*", | ||
"test": "mocha" | ||
"test": "nyc --check-coverage mocha" | ||
}, | ||
@@ -32,7 +32,16 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "^8.6.0", | ||
"eslint": "^8.7.0", | ||
"eslint-plugin-mocha": "^10.0.3", | ||
"mocha": "^9.1.3", | ||
"mocha": "^9.1.4", | ||
"nyc": "^15.1.0", | ||
"should": "^13.2.3" | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"lib/**" | ||
], | ||
"branches": 100, | ||
"lines": 100, | ||
"functions": 100 | ||
} | ||
} |
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
11073
5
202