@wordpress/priority-queue
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -13,7 +13,7 @@ export function createQueue(): WPPriorityQueue; | ||
*/ | ||
export type WPPriorityQueueAdd = (element: {}, item: () => void) => void; | ||
export type WPPriorityQueueAdd = (element: WPPriorityQueueContext, item: WPPriorityQueueCallback) => void; | ||
/** | ||
* Function to flush callbacks from priority queue. | ||
*/ | ||
export type WPPriorityQueueFlush = (element: {}) => boolean; | ||
export type WPPriorityQueueFlush = (element: WPPriorityQueueContext) => boolean; | ||
/** | ||
@@ -30,12 +30,12 @@ * Reset the queue. | ||
*/ | ||
add: (element: {}, item: () => void) => void; | ||
add: WPPriorityQueueAdd; | ||
/** | ||
* Flush queue for context. | ||
*/ | ||
flush: (element: {}) => boolean; | ||
flush: WPPriorityQueueFlush; | ||
/** | ||
* Reset queue. | ||
*/ | ||
reset: () => void; | ||
reset: WPPriorityQueueReset; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,6 +7,6 @@ /** | ||
*/ | ||
export function createRequestIdleCallback(): (callback: (timeOrDeadline: number | IdleDeadline) => void) => void; | ||
declare function _default(callback: (timeOrDeadline: number | IdleDeadline) => void): void; | ||
export function createRequestIdleCallback(): (callback: Callback) => void; | ||
declare function _default(callback: Callback): void; | ||
export default _default; | ||
export type Callback = (timeOrDeadline: number | IdleDeadline) => void; | ||
export type Callback = (timeOrDeadline: IdleDeadline | number) => void; | ||
//# sourceMappingURL=request-idle-callback.d.ts.map |
{ | ||
"name": "@wordpress/priority-queue", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Generic browser priority queue.", | ||
@@ -28,3 +28,3 @@ "author": "The WordPress Contributors", | ||
"dependencies": { | ||
"@babel/runtime": "^7.11.2" | ||
"@babel/runtime": "^7.12.5" | ||
}, | ||
@@ -34,3 +34,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "cbcd167ffb9b67f87a79df71d95aa48dc4db1a64" | ||
"gitHead": "0f57de12b3c47128b216629b08e5c1657e1ee329" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
75773
0
Updated@babel/runtime@^7.12.5