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

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.4.2 to 2.5.0

7

History.md

@@ -0,1 +1,8 @@

v2.5.0 / 2018-05-13
==================
* feat: respect loopLimit in runMicrotasks (#172)
* assign performance as a property, not as a function
v2.4.2 / 2018-05-11

@@ -2,0 +9,0 @@ ===================

@@ -206,2 +206,5 @@ (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 e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

job.func.apply(null, job.args);
if (clock.loopLimit && i > clock.loopLimit) {
throw new Error("Aborting after running " + clock.loopLimit + " timers, assuming an infinite loop!");
}
}

@@ -404,2 +407,7 @@ clock.jobs = [];

target.process.nextTick = clock[installedNextTick];
} else if (method === "performance") {
Object.defineProperty(target, method, {
writeable: false,
value: clock["_" + method]
});
} else {

@@ -439,2 +447,7 @@ if (target[method] && target[method].hadOwnProperty) {

target[method] = date;
} else if (method === "performance") {
Object.defineProperty(target, method, {
writeable: false,
value: clock[method]
});
} else {

@@ -441,0 +454,0 @@ target[method] = function () {

7

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

@@ -18,3 +18,3 @@ "author": "Christian Johansen",

"lint": "eslint .",
"test-node": "mocha -R dot --check-leaks",
"test-node": "mocha test/ integration-test/ -R dot --check-leaks",
"test-headless": "mochify",

@@ -24,3 +24,3 @@ "test-cloud": "mochify --wd",

"bundle": "browserify -s lolex -o lolex.js src/lolex-src.js",
"prepublish": "npm run bundle",
"prepublishOnly": "npm run bundle",
"precommit": "run-p lint test-node"

@@ -42,2 +42,3 @@ },

"husky": "0.14.3",
"jsdom": "11.10.0",
"lint-staged": "7.0.4",

@@ -44,0 +45,0 @@ "mocha": "5.1.0",

@@ -204,2 +204,5 @@ "use strict";

job.func.apply(null, job.args);
if (clock.loopLimit && i > clock.loopLimit) {
throw new Error("Aborting after running " + clock.loopLimit + " timers, assuming an infinite loop!");
}
}

@@ -402,2 +405,7 @@ clock.jobs = [];

target.process.nextTick = clock[installedNextTick];
} else if (method === "performance") {
Object.defineProperty(target, method, {
writeable: false,
value: clock["_" + method]
});
} else {

@@ -437,2 +445,7 @@ if (target[method] && target[method].hadOwnProperty) {

target[method] = date;
} else if (method === "performance") {
Object.defineProperty(target, method, {
writeable: false,
value: clock[method]
});
} else {

@@ -439,0 +452,0 @@ target[method] = function () {

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