🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

idb

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb - npm Package Compare versions

Comparing version

to
7.0.1-with-src

{
"name": "idb",
"version": "7.0.0",
"version": "7.0.1-with-src",
"description": "A small wrapper that makes IndexedDB usable",

@@ -25,2 +25,3 @@ "main": "./build/index.cjs",

"with-*",
"src/**",
"CHANGELOG.md"

@@ -27,0 +28,0 @@ ],

@@ -323,15 +323,15 @@ # IndexedDB with usability.

return (await dbPromise).get('keyval', key);
},
};
export async function set(key, val) {
return (await dbPromise).put('keyval', val, key);
},
};
export async function del(key) {
return (await dbPromise).delete('keyval', key);
},
};
export async function clear() {
return (await dbPromise).clear('keyval');
},
};
export async function keys() {
return (await dbPromise).getAllKeys('keyval');
},
};
```

@@ -338,0 +338,0 @@

Sorry, the diff of this file is not supported yet