Comparing version 0.0.5 to 0.0.6
@@ -126,3 +126,3 @@ 'use strict'; | ||
this.timers[name] = { | ||
timer: (next.setImmediate || next)(this.tock(name)), | ||
timer: (next.setImmediate || next)(this.tock(name, true)), | ||
clear: next.clearImmediate, | ||
@@ -129,0 +129,0 @@ fns: [fn] |
{ | ||
"name": "tick-tock", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Timer management, never forget to clear timers again", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# tick-tock | ||
[![Build Status](https://travis-ci.org/unshiftio/tick-tock.svg?branch=master)](https://travis-ci.org/unshiftio/tick-tock) | ||
[![NPM version](https://badge.fury.io/js/tick-tock.svg)](http://badge.fury.io/js/tick-tock) | ||
[![Coverage Status](https://img.shields.io/coveralls/unshiftio/tick-tock.svg)](https://coveralls.io/r/unshiftio/tick-tock?branch=master) | ||
[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/tick-tock.svg?style=flat-square)](http://browsenpm.org/package/tick-tock)[![Build Status](http://img.shields.io/travis/unshiftio/tick-tock/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/tick-tock)[![Dependencies](https://img.shields.io/david/unshiftio/tick-tock.svg?style=flat-square)](https://david-dm.org/unshiftio/tick-tock)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/tick-tock/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/tick-tock?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=unshift) | ||
@@ -7,0 +5,0 @@ `tick-tock` is a small timer and `setTimeout` management library. Nothing to |
10
test.js
@@ -204,2 +204,12 @@ /* istanbul ignore next */ | ||
}); | ||
it('clear it self after execution', function (next) { | ||
var tock = new Tick(context); | ||
tock.setImmediate('test', function () { | ||
tock.setImmediate('test', function () { | ||
next(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
@@ -206,0 +216,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
20624
516
122
1