@clayui/provider
Advanced tools
@@ -37,2 +37,8 @@ "use strict"; | ||
| } | ||
| remove(key) { | ||
| if (!key) { | ||
| return; | ||
| } | ||
| delete this.currentPromises[key]; | ||
| } | ||
| update(key, value) { | ||
@@ -39,0 +45,0 @@ if (!key) { |
@@ -15,2 +15,3 @@ /** | ||
| read(key: string | null): any; | ||
| remove(key: string | null): void; | ||
| update(key: string | null, value: any): null | undefined; | ||
@@ -17,0 +18,0 @@ isFetching(key: string | null): Error | Promise<any> | undefined; |
@@ -14,2 +14,8 @@ import { LRUCache } from "./LRUCache"; | ||
| } | ||
| remove(key) { | ||
| if (!key) { | ||
| return; | ||
| } | ||
| delete this.currentPromises[key]; | ||
| } | ||
| update(key, value) { | ||
@@ -16,0 +22,0 @@ if (!key) { |
+3
-3
@@ -6,3 +6,3 @@ { | ||
| "dependencies": { | ||
| "@clayui/icon": "^3.160.0" | ||
| "@clayui/icon": "^3.161.0" | ||
| }, | ||
@@ -21,3 +21,3 @@ "description": "ClayProvider component in React", | ||
| "peerDependencies": { | ||
| "@clayui/css": "^3.160.0", | ||
| "@clayui/css": "^3.161.0", | ||
| "react": "^16.0.0 || ^17.0.0 || ^18.0.0", | ||
@@ -34,3 +34,3 @@ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" | ||
| }, | ||
| "version": "3.160.0", | ||
| "version": "3.161.0", | ||
| "module": "lib/esm/index.js", | ||
@@ -37,0 +37,0 @@ "exports": { |
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
18542
1.23%539
2.47%0
-100%Updated