Socket
Socket
Sign inDemoInstall

big-time

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-time - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

27

lib/index.js
"use strict";
var _bind = Function.prototype.bind;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -25,5 +29,4 @@

value: function start(args) {
// Edit this copy instead of the original to prevent changing args
// on every tick
var self = this;
var _this = this;
var _args = args.slice(0);

@@ -33,12 +36,13 @@ var max = module.exports._TIMEOUT_MAX;

if (this._delay <= max) {
_args.unshift(this._callback, this._delay);
_args = [this._callback, this._delay].concat(_toConsumableArray(_args));
} else {
var callback = function callback() {
self._delay -= max;
self.start(args);
_this._delay -= max;
_this.start(args);
};
_args.unshift(callback, max);
_args = [callback, max].concat(_toConsumableArray(_args));
}
this._timeout = setTimeout.apply(null, _args);
this._timeout = setTimeout.apply(undefined, _toConsumableArray(_args));
}

@@ -57,6 +61,7 @@ }, {

var _setTimeout = function _setTimeout() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
var result = Object.create(Timeout.prototype);
Timeout.apply(result, arguments);
return result;
return new (_bind.apply(Timeout, [null].concat(args)))();
};

@@ -63,0 +68,0 @@

{
"name": "big-time",
"version": "1.0.4",
"version": "1.0.5",
"description": "Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).",
"main": "lib/index.js",
"scripts": {
"test": "lab -T test/transformer.js -m 5000 -t 95 -v -La code",
"test": "lab -T test/transformer.js -m 5000 -t 90 -v -La code",
"compile": "babel src --out-dir lib",

@@ -9,0 +9,0 @@ "prepublish": "npm run compile"

# Big-Time
[![Build Status](https://travis-ci.org/continuationlabs/big-time.svg)](https://travis-ci.org/continuationlabs/big-time)
[![Build Status](https://travis-ci.org/continuationlabs/big-time.svg?branch=master)](https://travis-ci.org/continuationlabs/big-time)
[![npm](https://img.shields.io/npm/v/big-time.svg)](https://www.npmjs.com/package/big-time)

@@ -4,0 +4,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