requestanimationframe-timer
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -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 @@ |
@@ -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; |
@@ -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
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
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
19665
190