Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

idb

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0-with-src

src/async-iterators.ts

9

build/cjs/entry.d.ts

@@ -49,7 +49,6 @@ export interface OpenDBCallbacks<DBTypes extends DBSchema | unknown> {

export { unwrap, wrap } from './wrap-idb-value';
declare type KnownKeys<T> = {
[K in keyof T]: string extends K ? never : number extends K ? never : K;
} extends {
[_ in keyof T]: infer U;
} ? U : never;
declare type RemoveIndex<T> = {
[P in keyof T as string extends P ? never : number extends P ? never : P]: T[P];
};
declare type KnownKeys<T> = keyof RemoveIndex<T>;
declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;

@@ -56,0 +55,0 @@ export interface DBSchema {

@@ -49,7 +49,6 @@ export interface OpenDBCallbacks<DBTypes extends DBSchema | unknown> {

export { unwrap, wrap } from './wrap-idb-value';
declare type KnownKeys<T> = {
[K in keyof T]: string extends K ? never : number extends K ? never : K;
} extends {
[_ in keyof T]: infer U;
} ? U : never;
declare type RemoveIndex<T> = {
[P in keyof T as string extends P ? never : number extends P ? never : P]: T[P];
};
declare type KnownKeys<T> = keyof RemoveIndex<T>;
declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;

@@ -56,0 +55,0 @@ export interface DBSchema {

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

@@ -18,3 +18,4 @@ "main": "build/cjs/index.js",

"build/**",
"with-*"
"with-*",
"src/**"
],

@@ -24,17 +25,17 @@ "author": "Jake Archibald",

"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@types/chai": "^4.2.14",
"@types/mocha": "^8.2.0",
"chai": "^4.2.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@types/chai": "^4.2.18",
"@types/mocha": "^8.2.2",
"chai": "^4.3.4",
"conditional-type-checks": "^1.0.5",
"del": "^6.0.0",
"filesize": "^6.1.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"rollup": "^2.36.0",
"filesize": "^6.3.0",
"glob": "^7.1.7",
"mocha": "^8.4.0",
"prettier": "^2.3.0",
"rollup": "^2.48.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.1.3"
"typescript": "^4.3.1-rc"
}
}

@@ -249,3 +249,3 @@ # IndexedDB with usability.

If you're writing to the database, `tx.done` is the signal that everything was successfully committed to the database. However, it's still beneficial to await the individual operations, as you'll see the error that caused the transition to fail.
If you're writing to the database, `tx.done` is the signal that everything was successfully committed to the database. However, it's still beneficial to await the individual operations, as you'll see the error that caused the transaction to fail.

@@ -324,19 +324,17 @@ ## `IDBCursor` enhancements

const idbKeyval = {
async get(key) {
return (await dbPromise).get('keyval', key);
},
async set(key, val) {
return (await dbPromise).put('keyval', val, key);
},
async delete(key) {
return (await dbPromise).delete('keyval', key);
},
async clear() {
return (await dbPromise).clear('keyval');
},
async keys() {
return (await dbPromise).getAllKeys('keyval');
},
};
export async function get(key) {
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');
},
```

@@ -478,3 +476,3 @@

// Cast a reference of the database to the old schema.
const v1Db = (db as unknown) as IDBPDatabase<MyDBV1>;
const v1Db = db as unknown as IDBPDatabase<MyDBV1>;

@@ -481,0 +479,0 @@ if (oldVersion < 1) {

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

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