Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
f62e0f87ce | |||
4e74159a54 | |||
2e8d3ca7e8 | |||
dfb4a4f62a | |||
948957b03f | |||
cb69bf3585 | |||
3d27c0fada | |||
94672fd41c |
1919
package-lock.json
generated
1919
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/webstore",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.4",
|
||||
"private": false,
|
||||
"description": "high performance storage in the browser using indexed db",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -10,7 +10,7 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"build": "(tsbuild --web)"
|
||||
"build": "(tsbuild --web --allowimplicitany)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.63",
|
||||
@ -26,7 +26,7 @@
|
||||
"@pushrocks/smartpromise": "^3.1.6",
|
||||
"@pushrocks/smartrx": "^2.0.25",
|
||||
"fake-indexeddb": "^3.1.7",
|
||||
"idb": "^7.0.1"
|
||||
"idb": "^7.0.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/webstore',
|
||||
version: '2.0.0',
|
||||
version: '2.0.4',
|
||||
description: 'high performance storage in the browser using indexed db'
|
||||
}
|
||||
|
@ -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, {
|
||||
|
Reference in New Issue
Block a user