Socket
Socket
Sign inDemoInstall

requestanimationframe-timer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requestanimationframe-timer - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [3.0.3](https://github.com/kambing86/requestanimationframe-timer/compare/v3.0.2...v3.0.3) (2020-01-08)
### Bug Fixes
* type and export issue ([8c18bb7](https://github.com/kambing86/requestanimationframe-timer/commit/8c18bb7db80b5035708db76a0a2e4b313fe03a39))
### [3.0.2](https://github.com/kambing86/requestanimationframe-timer/compare/v3.0.1...v3.0.2) (2020-01-08)

@@ -7,0 +14,0 @@

10

dist/index.d.ts

@@ -1,2 +0,2 @@

declare function removeId(id: number): void;
declare function removeId(id?: number): void;
export declare const setTimeout: (fn: Function, ms?: number, ...args: any[]) => number | null;

@@ -6,2 +6,8 @@ export declare const clearTimeout: typeof removeId;

export declare const clearInterval: typeof removeId;
export {};
declare const _default: {
setTimeout: (fn: Function, ms?: number, ...args: any[]) => number | null;
clearTimeout: typeof removeId;
setInterval: (fn: Function, ms?: number, ...args: any[]) => number | null;
clearInterval: typeof removeId;
};
export default _default;

3

dist/index.js

@@ -74,2 +74,4 @@ "use strict";

function removeId(id) {
if (id == null)
return;
if (fnMap.has(id)) {

@@ -83,2 +85,3 @@ fnMap.delete(id);

exports.clearInterval = removeId;
exports.default = { setTimeout: exports.setTimeout, clearTimeout: exports.clearTimeout, setInterval: exports.setInterval, clearInterval: exports.clearInterval };
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

declare function removeId(id: number): void;
declare function removeId(id?: number): void;
export declare const setTimeout: (fn: Function, ms?: number, ...args: any[]) => number | null;

@@ -6,2 +6,8 @@ export declare const clearTimeout: typeof removeId;

export declare const clearInterval: typeof removeId;
export {};
declare const _default: {
setTimeout: (fn: Function, ms?: number, ...args: any[]) => number | null;
clearTimeout: typeof removeId;
setInterval: (fn: Function, ms?: number, ...args: any[]) => number | null;
clearInterval: typeof removeId;
};
export default _default;

@@ -72,2 +72,4 @@ import raf from 'raf';

function removeId(id) {
if (id == null)
return;
if (fnMap.has(id)) {

@@ -81,2 +83,3 @@ fnMap.delete(id);

export const clearInterval = removeId;
export default { setTimeout, clearTimeout, setInterval, clearInterval };
//# sourceMappingURL=index.js.map
{
"name": "requestanimationframe-timer",
"version": "3.0.2",
"version": "3.0.3",
"description": "setTimeout and setInterval by using requestAnimationFrame",

@@ -5,0 +5,0 @@ "keywords": [

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