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

time

Package Overview
Dependencies
Maintainers
0
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.3.0 to 0.3.1

7

index.js

@@ -252,3 +252,8 @@ var bindings = require('./time');

exports.extend = function extend(date) {
return date.__proto__ = _Date.prototype;
date.getTimezone = getTimezone;
date.setTimezone = setTimezone;
date.getTimeZone = getTimezone; // Remove...
date.setTimeZone = setTimezone; // Remove...
date.getTimezoneAbbr = getTimezoneAbbr;
return date;
}

@@ -255,0 +260,0 @@

2

package.json
{
"name": "time",
"description": "\"time.h\" bindings for NodeJS",
"version": "0.3.0",
"version": "0.3.1",
"repository": {

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

@@ -61,4 +61,5 @@ var assert = require('assert');

assert.equal('setTimezone' in regularDate, false);
time.extend(regularDate);
var rtn = time.extend(regularDate);
assert.equal('setTimezone' in regularDate, true);
assert.ok(rtn === regularDate); // Should return the same instance

@@ -65,0 +66,0 @@

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