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

chronokinesis

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chronokinesis - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

17

dist/chronokinesis.js

@@ -156,10 +156,11 @@ var chronokinesis = (function (exports) {

var dt = instantiate(NativeDate, args);
dt.getTimezoneOffset = function getTimezoneOffset() {
var curr = nativeGetTimezoneOffset.call(this);
if (!iana) return curr;
var tz = timezone(iana).getTime(this);
return Math.round((tz - this.getTime()) / 60000) + curr;
};
Object.defineProperty(dt, 'getTimezoneOffset', {
enumerable: false,
value: function getTimezoneOffset() {
var curr = nativeGetTimezoneOffset.call(this);
if (!iana) return curr;
var tz = timezone(iana).getTime(this);
return Math.round((tz - this.getTime()) / 60000) + curr;
}
});
return dt;

@@ -166,0 +167,0 @@ }

@@ -153,10 +153,11 @@ function ownKeys(object, enumerableOnly) {

var dt = instantiate(NativeDate, args);
dt.getTimezoneOffset = function getTimezoneOffset() {
var curr = nativeGetTimezoneOffset.call(this);
if (!iana) return curr;
var tz = timezone(iana).getTime(this);
return Math.round((tz - this.getTime()) / 60000) + curr;
};
Object.defineProperty(dt, 'getTimezoneOffset', {
enumerable: false,
value: function getTimezoneOffset() {
var curr = nativeGetTimezoneOffset.call(this);
if (!iana) return curr;
var tz = timezone(iana).getTime(this);
return Math.round((tz - this.getTime()) / 60000) + curr;
}
});
return dt;

@@ -163,0 +164,0 @@ }

@@ -26,9 +26,12 @@ /**

dt.getTimezoneOffset = function getTimezoneOffset() {
const curr = nativeGetTimezoneOffset.call(this);
if (!iana) return curr;
Object.defineProperty(dt, 'getTimezoneOffset', {
enumerable: false,
value: function getTimezoneOffset() {
const curr = nativeGetTimezoneOffset.call(this);
if (!iana) return curr;
const tz = timezone(iana).getTime(this);
return Math.round((tz - this.getTime()) / 60000) + curr;
};
const tz = timezone(iana).getTime(this);
return Math.round((tz - this.getTime()) / 60000) + curr;
},
});

@@ -35,0 +38,0 @@ return dt;

{
"name": "chronokinesis",
"version": "3.1.1",
"version": "3.1.2",
"description": "Module for testing time-dependent code",

@@ -5,0 +5,0 @@ "author": {

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