Comparing version 2.5.0 to 2.6.0
v2.6.0 / 2018-05-16 | ||
================== | ||
* Fix `reset` and document it publicly Clear microtick jobs and set now to 0 in reset (#179) | ||
* Access Date on `_global` (#178) | ||
v2.5.0 / 2018-05-13 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -1,2 +0,2 @@ | ||
(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){ | ||
(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){ | ||
(function (global){ | ||
@@ -46,3 +46,3 @@ "use strict"; | ||
var NativeDate = Date; | ||
var NativeDate = _global.Date; | ||
var uniqueTimerId = 1; | ||
@@ -728,2 +728,4 @@ | ||
clock.timers = {}; | ||
clock.jobs = []; | ||
clock.now = 0; | ||
}; | ||
@@ -864,2 +866,2 @@ | ||
},{}]},{},[1])(1) | ||
}); | ||
}); |
{ | ||
"name": "lolex", | ||
"description": "Fake JavaScript timers", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"homepage": "http://github.com/sinonjs/lolex", | ||
@@ -6,0 +6,0 @@ "author": "Christian Johansen", |
@@ -228,2 +228,6 @@ # Lolex [![Build Status](https://travis-ci.org/sinonjs/lolex.svg?branch=master)](https://travis-ci.org/sinonjs/lolex) | ||
### `clock.reset()` | ||
Removes all timers and ticks without firing them, and sets `now` to `0`. Useful to reset the state of the clock without having to `uninstall` and `install` it. | ||
### `clock.runAll()` | ||
@@ -230,0 +234,0 @@ |
@@ -44,3 +44,3 @@ "use strict"; | ||
var NativeDate = Date; | ||
var NativeDate = _global.Date; | ||
var uniqueTimerId = 1; | ||
@@ -726,2 +726,4 @@ | ||
clock.timers = {}; | ||
clock.jobs = []; | ||
clock.now = 0; | ||
}; | ||
@@ -728,0 +730,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
79276
1460
314
2