fix(core): update

This commit is contained in:
Philipp Kunz 2022-05-29 20:04:44 +02:00
parent 948957b03f
commit dfb4a4f62a
2 changed files with 2 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/webstore',
version: '2.0.2',
version: '2.0.3',
description: 'high performance storage in the browser using indexed db'
}

View File

@ -25,8 +25,7 @@ export class WebStore<T = any> {
const smartenv = new plugins.smartenv.Smartenv();
if (!smartenv.isBrowser) {
const fetch = await smartenv.getSafeNodeModule('fake-indexeddb/auto.js');
globalThis.fetch = fetch.default;
await smartenv.getSafeNodeModule('fake-indexeddb/auto.js');
}
this.db = await plugins.idb.openDB(this.options.dbName, 1, {