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

date-format

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-format - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

9

lib/index.js

@@ -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
}
}
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