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

chronoshift

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chronoshift - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

5

build/chronoshift.js

@@ -6,3 +6,2 @@ 'use strict';

var moment = require('moment-timezone');
var immutableClass = require('immutable-class');

@@ -21,3 +20,3 @@ var check;

Timezone.isTimezone = function (candidate) {
return immutableClass.isInstanceOf(candidate, Timezone);
return candidate instanceof Timezone;
};

@@ -422,3 +421,3 @@ Timezone.fromJS = function (spec) {

Duration.isDuration = function (candidate) {
return immutableClass.isInstanceOf(candidate, Duration);
return candidate instanceof Duration;
};

@@ -425,0 +424,0 @@ Duration.prototype.toString = function () {

3

build/duration/duration.js

@@ -1,2 +0,1 @@

import { isInstanceOf } from 'immutable-class';
import { shifters, second } from '../floor-shift-ceil/floor-shift-ceil';

@@ -123,3 +122,3 @@ var spansWithWeek = ["year", "month", "week", "day", "hour", "minute", "second"];

Duration.isDuration = function (candidate) {
return isInstanceOf(candidate, Duration);
return candidate instanceof Duration;
};

@@ -126,0 +125,0 @@ Duration.prototype.toString = function () {

import * as moment from 'moment-timezone';
import { isInstanceOf } from 'immutable-class';
var check;

@@ -15,3 +14,3 @@ export var Timezone = (function () {

Timezone.isTimezone = function (candidate) {
return isInstanceOf(candidate, Timezone);
return candidate instanceof Timezone;
};

@@ -18,0 +17,0 @@ Timezone.fromJS = function (spec) {

{
"name": "chronoshift",
"version": "0.6.4",
"version": "0.6.5",
"description": "A tiny library for shifting time with timezones",

@@ -40,11 +40,11 @@ "keywords": [

"dependencies": {
"immutable-class": "~0.6.18",
"moment-timezone": "~0.5.6"
"immutable-class": "~0.6.20",
"moment-timezone": "~0.5.9"
},
"devDependencies": {
"@types/mocha": "2.2.32",
"babel-core": "6.17.0",
"babel-preset-es2015": "6.16.0",
"babel-core": "6.18.2",
"babel-preset-es2015": "6.18.0",
"blanket": "1.2.3",
"browserify": "13.1.0",
"browserify": "13.1.1",
"chai": "3.5.0",

@@ -54,11 +54,11 @@ "event-stream": "3.3.4",

"gulp-mocha": "3.0.1",
"gulp-typescript": "3.0.2",
"immutable-class-tester": "0.5.6",
"gulp-typescript": "3.1.2",
"immutable-class-tester": "0.5.8",
"mocha": "3.1.2",
"rollup": "0.36.3",
"run-sequence": "1.2.2",
"tdi": "0.1.5",
"tdi": "0.1.6",
"tslint": "3.15.1",
"typescript": "2.0.3"
"typescript": "2.0.8"
}
}
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