Socket
Socket
Sign inDemoInstall

timer-manager-lib

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

dist/cjs/index.d.ts

@@ -10,3 +10,3 @@ /// <reference types="node" />

constructor(opts?: Partial<ITimerManagerOptions>);
add(handle: IHandle, delay: IDelay): {
add(handle: IHandle, delay?: IDelay): {
id: string;

@@ -13,0 +13,0 @@ handle: IHandle;

@@ -54,2 +54,3 @@ 'use strict';

TimerManager.prototype.add = function (handle, delay) {
if (delay === void 0) { delay = 0; }
this.initDelay(delay);

@@ -56,0 +57,0 @@ return this.pushTimer(handle, delay);

@@ -10,3 +10,3 @@ /// <reference types="node" />

constructor(opts?: Partial<ITimerManagerOptions>);
add(handle: IHandle, delay: IDelay): {
add(handle: IHandle, delay?: IDelay): {
id: string;

@@ -13,0 +13,0 @@ handle: IHandle;

@@ -50,2 +50,3 @@ import { requestFrame } from 'utils-lib-js';

TimerManager.prototype.add = function (handle, delay) {
if (delay === void 0) { delay = 0; }
this.initDelay(delay);

@@ -52,0 +53,0 @@ return this.pushTimer(handle, delay);

@@ -10,3 +10,3 @@ /// <reference types="node" />

constructor(opts?: Partial<ITimerManagerOptions>);
add(handle: IHandle, delay: IDelay): {
add(handle: IHandle, delay?: IDelay): {
id: string;

@@ -13,0 +13,0 @@ handle: IHandle;

@@ -54,2 +54,3 @@ (function (global, factory) {

TimerManager.prototype.add = function (handle, delay) {
if (delay === void 0) { delay = 0; }
this.initDelay(delay);

@@ -56,0 +57,0 @@ return this.pushTimer(handle, delay);

{
"name": "timer-manager-lib",
"version": "1.0.0",
"version": "1.0.1",
"description": "JS实现的一个定时任务管理器",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc