Compare commits

..

4 Commits

Author SHA1 Message Date
f62e0f87ce 2.0.4 2022-07-07 08:49:31 +02:00
4e74159a54 fix(core): update 2022-07-07 08:49:31 +02:00
2e8d3ca7e8 2.0.3 2022-05-29 20:04:44 +02:00
dfb4a4f62a fix(core): update 2022-05-29 20:04:44 +02:00
4 changed files with 1215 additions and 713 deletions

1919
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/webstore", "name": "@pushrocks/webstore",
"version": "2.0.2", "version": "2.0.4",
"private": false, "private": false,
"description": "high performance storage in the browser using indexed db", "description": "high performance storage in the browser using indexed db",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -26,7 +26,7 @@
"@pushrocks/smartpromise": "^3.1.6", "@pushrocks/smartpromise": "^3.1.6",
"@pushrocks/smartrx": "^2.0.25", "@pushrocks/smartrx": "^2.0.25",
"fake-indexeddb": "^3.1.7", "fake-indexeddb": "^3.1.7",
"idb": "7.0.1-fixed-02" "idb": "^7.0.2"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/webstore', name: '@pushrocks/webstore',
version: '2.0.2', version: '2.0.4',
description: 'high performance storage in the browser using indexed db' 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(); const smartenv = new plugins.smartenv.Smartenv();
if (!smartenv.isBrowser) { if (!smartenv.isBrowser) {
const fetch = await smartenv.getSafeNodeModule('fake-indexeddb/auto.js'); await smartenv.getSafeNodeModule('fake-indexeddb/auto.js');
globalThis.fetch = fetch.default;
} }
this.db = await plugins.idb.openDB(this.options.dbName, 1, { this.db = await plugins.idb.openDB(this.options.dbName, 1, {