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 3.1.0 to 4.0.1

README.md

11

History.md
4.0.1 / 2019-04-17
==================
* Remove sinon: added by mistake
4.0.0 / 2019-04-17
==================
* Drop support for IE9 and IE10: link to supported browsers in README
* No more ExperimentalWarnings in Node environment for queueMicrotask() if it's not used in user's code
3.1.0 / 2019-02-11

@@ -3,0 +14,0 @@ ==================

9

lolex.js

@@ -38,3 +38,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){

var hasPerformancePrototype = (_global.Performance && (typeof _global.Performance).match(/^(function|object)$/));
var queueMicrotaskPresent = (typeof _global.queueMicrotask === "function");
var queueMicrotaskPresent = (_global.hasOwnProperty("queueMicrotask"));
var requestAnimationFramePresent = (

@@ -499,4 +499,5 @@ _global.requestAnimationFrame && typeof _global.requestAnimationFrame === "function"

}
if (queueMicrotaskPresent) {
timers.queueMicrotask = _global.queueMicrotask;
timers.queueMicrotask = true;
}

@@ -904,3 +905,5 @@

// do not fake nextTick by default - GitHub#126
clock.methods = keys(timers).filter(function (key) {return key !== "nextTick";});
clock.methods = keys(timers).filter(function (key) {
return key !== "nextTick" && key !== "queueMicrotask";
});
}

@@ -907,0 +910,0 @@

{
"name": "lolex",
"description": "Fake JavaScript timers",
"version": "3.1.0",
"version": "4.0.1",
"homepage": "http://github.com/sinonjs/lolex",

@@ -39,11 +39,11 @@ "author": "Christian Johansen",

"browserify": "16.2.0",
"eslint": "4.19.1",
"eslint": "5.16.0",
"eslint-config-sinon": "1.0.3",
"eslint-plugin-ie11": "1.0.0",
"eslint-plugin-mocha": "4.11.0",
"husky": "0.14.3",
"jsdom": "11.10.0",
"lint-staged": "7.0.4",
"mocha": "5.1.0",
"mochify": "5.8.0",
"husky": "1.3.1",
"jsdom": "14.0.0",
"lint-staged": "8.1.5",
"mocha": "5.2.0",
"mochify": "6.2.0",
"npm-run-all": "4.1.2"

@@ -50,0 +50,0 @@ },

@@ -36,3 +36,3 @@ "use strict";

var hasPerformancePrototype = (_global.Performance && (typeof _global.Performance).match(/^(function|object)$/));
var queueMicrotaskPresent = (typeof _global.queueMicrotask === "function");
var queueMicrotaskPresent = (_global.hasOwnProperty("queueMicrotask"));
var requestAnimationFramePresent = (

@@ -497,4 +497,5 @@ _global.requestAnimationFrame && typeof _global.requestAnimationFrame === "function"

}
if (queueMicrotaskPresent) {
timers.queueMicrotask = _global.queueMicrotask;
timers.queueMicrotask = true;
}

@@ -902,3 +903,5 @@

// do not fake nextTick by default - GitHub#126
clock.methods = keys(timers).filter(function (key) {return key !== "nextTick";});
clock.methods = keys(timers).filter(function (key) {
return key !== "nextTick" && key !== "queueMicrotask";
});
}

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