Comparing version 2.1.0 to 2.1.1
v2.0.1 / 2017-07-18 | ||
v2.1.1 / 2017-07-19 | ||
================== | ||
* support passing parameters in nextTick (fixes #122) | ||
v2.1.0 / 2017-07-18 | ||
================== | ||
* Throw error on incorrect install use (#112) | ||
@@ -6,0 +11,0 @@ * Add support for process.nextTick |
@@ -185,3 +185,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 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){ | ||
var job = clock.jobs[i]; | ||
job.func.apply(null, job.func.args); | ||
job.func.apply(null, job.args); | ||
} | ||
@@ -485,3 +485,3 @@ clock.jobs = []; | ||
func: func, | ||
args: Array.prototype.slice.call(1) | ||
args: Array.prototype.slice.call(arguments, 1) | ||
}); | ||
@@ -488,0 +488,0 @@ }; |
{ | ||
"name": "lolex", | ||
"description": "Fake JavaScript timers", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"homepage": "http://github.com/sinonjs/lolex", | ||
@@ -23,4 +23,8 @@ "author": "Christian Johansen", | ||
"bundle": "browserify -s lolex -o lolex.js src/lolex-src.js", | ||
"prepublish": "npm run bundle" | ||
"prepublish": "npm run bundle", | ||
"precommit": "run-p lint test-node" | ||
}, | ||
"lint-staged": { | ||
"*.js": "eslint" | ||
}, | ||
"devDependencies": { | ||
@@ -31,4 +35,7 @@ "browserify": "^14.4.0", | ||
"eslint-plugin-mocha": "^4.8.0", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^4.0.2", | ||
"mocha": "^3.4.2", | ||
"mochify": "^3.3.0", | ||
"npm-run-all": "^4.0.2", | ||
"referee": "^1.2.0", | ||
@@ -35,0 +42,0 @@ "sinon": "^2.3.7" |
@@ -183,3 +183,3 @@ "use strict"; | ||
var job = clock.jobs[i]; | ||
job.func.apply(null, job.func.args); | ||
job.func.apply(null, job.args); | ||
} | ||
@@ -483,3 +483,3 @@ clock.jobs = []; | ||
func: func, | ||
args: Array.prototype.slice.call(1) | ||
args: Array.prototype.slice.call(arguments, 1) | ||
}); | ||
@@ -486,0 +486,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129821
2846
11