Socket
Socket
Sign inDemoInstall

lolex

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lolex - npm Package Compare versions

Comparing version 2.7.1 to 2.7.2

10

History.md
v2.7.2 / 2018-09-04
==================
* fix(setInterval): parse `timeout` arg to integer (#202)
* Upgrade insecure dependencies with npm audit fix
v2.7.1 / 2018-07-06
==================
* Fix performance replacement on iOS 9.3
v2.7.0 / 2018-05-25

@@ -3,0 +13,0 @@ ==================

1

lolex.js

@@ -549,2 +549,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.lolex = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

clock.setInterval = function setInterval(func, timeout) {
timeout = parseInt(timeout, 10);
return addTimer(clock, {

@@ -551,0 +552,0 @@ func: func,

9

package.json
{
"name": "lolex",
"description": "Fake JavaScript timers",
"version": "2.7.1",
"version": "2.7.2",
"homepage": "http://github.com/sinonjs/lolex",

@@ -34,2 +34,3 @@ "author": "Christian Johansen",

"devDependencies": {
"@sinonjs/referee-sinon": "4.1.0",
"browserify": "16.2.0",

@@ -44,6 +45,4 @@ "eslint": "4.19.1",

"mocha": "5.1.0",
"mochify": "5.6.0",
"npm-run-all": "4.1.2",
"referee": "1.2.0",
"sinon": "5.0.10"
"mochify": "5.8.0",
"npm-run-all": "4.1.2"
},

@@ -50,0 +49,0 @@ "eslintConfig": {

@@ -547,2 +547,3 @@ "use strict";

clock.setInterval = function setInterval(func, timeout) {
timeout = parseInt(timeout, 10);
return addTimer(clock, {

@@ -549,0 +550,0 @@ func: func,

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