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

timer-shim

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-shim - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3-1

8

lib/timer-shim.js

@@ -211,2 +211,10 @@ // Generated by CoffeeScript 1.4.0

Timer.prototype.clearAll = function() {
this.tasks.resetCursor();
while (this.tasks.next()) {
this.clear(this.tasks.current);
}
return this.tasks = new LinkedList;
};
Timer.prototype.pause = function() {

@@ -213,0 +221,0 @@ this.tasks.resetCursor();

2

package.json
{
"name": "timer-shim",
"version": "0.2.2",
"version": "0.2.3-1",
"description": "Test-friendly timer function replacements.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -80,2 +80,6 @@

`timer.clearAll`
Clears all registered timeout handles. Effectively cancels all scheduled timeout and
intervals. Useful for reseting the timer in tests.
`timer.t`

@@ -82,0 +86,0 @@ `timer.to`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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