Socket
Socket
Sign inDemoInstall

time

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

2

package.json

@@ -5,3 +5,3 @@ {

"keywords": ["date", "time", "time.h", "timezone", "setTimezone", "getTimezone"],
"version": "0.9.1",
"version": "0.9.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -40,3 +40,13 @@ var should = require('should')

describe('localtime()', function () {
// GH-40
it('should not segfault on a NaN Date value', function () {
var invalid = new Date(NaN)
var local = time.localtime(invalid.getTime())
assert.deepEqual({ invalid: true }, local)
});
});
describe('Date', function () {

@@ -43,0 +53,0 @@

Sorry, the diff of this file is not supported yet

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