Compare commits

..

4 Commits

Author SHA1 Message Date
2e8d3ca7e8 2.0.3 2022-05-29 20:04:44 +02:00
dfb4a4f62a fix(core): update 2022-05-29 20:04:44 +02:00
948957b03f 2.0.2 2022-05-28 13:40:14 +02:00
cb69bf3585 fix(core): update 2022-05-28 13:40:14 +02:00
4 changed files with 14 additions and 15 deletions

18
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/webstore", "name": "@pushrocks/webstore",
"version": "2.0.1", "version": "2.0.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/webstore", "name": "@pushrocks/webstore",
"version": "2.0.1", "version": "2.0.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@apiglobal/typedrequest-interfaces": "^1.0.15", "@apiglobal/typedrequest-interfaces": "^1.0.15",
@ -16,7 +16,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" "idb": "7.0.1-fixed-02"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.63", "@gitzone/tsbuild": "^2.1.63",
@ -3506,9 +3506,9 @@
} }
}, },
"node_modules/idb": { "node_modules/idb": {
"version": "7.0.1", "version": "7.0.1-fixed-02",
"resolved": "https://verdaccio.lossless.one/idb/-/idb-7.0.1.tgz", "resolved": "https://verdaccio.lossless.one/idb/-/idb-7.0.1-fixed-02.tgz",
"integrity": "sha512-UUxlE7vGWK5RfB/fDwEGgRf84DY/ieqNha6msMV99UsEMQhJ1RwbCd8AYBj3QMgnE3VZnfQvm4oKVCJTYlqIgg==", "integrity": "sha512-CpfLuC2YkqUsagCR0NTY9JIbOK/jvD/lcyTnbr90FABzV76ZYw+54rG/KzavjSldwZUoZe06x/LofHVr4s6/wQ==",
"license": "ISC" "license": "ISC"
}, },
"node_modules/ieee754": { "node_modules/ieee754": {
@ -8491,9 +8491,9 @@
} }
}, },
"idb": { "idb": {
"version": "7.0.1", "version": "7.0.1-fixed-02",
"resolved": "https://verdaccio.lossless.one/idb/-/idb-7.0.1.tgz", "resolved": "https://verdaccio.lossless.one/idb/-/idb-7.0.1-fixed-02.tgz",
"integrity": "sha512-UUxlE7vGWK5RfB/fDwEGgRf84DY/ieqNha6msMV99UsEMQhJ1RwbCd8AYBj3QMgnE3VZnfQvm4oKVCJTYlqIgg==" "integrity": "sha512-CpfLuC2YkqUsagCR0NTY9JIbOK/jvD/lcyTnbr90FABzV76ZYw+54rG/KzavjSldwZUoZe06x/LofHVr4s6/wQ=="
}, },
"ieee754": { "ieee754": {
"version": "1.2.1", "version": "1.2.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/webstore", "name": "@pushrocks/webstore",
"version": "2.0.1", "version": "2.0.3",
"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",
@ -10,7 +10,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "(tstest test/ --web)",
"build": "(tsbuild --web --allowimplicitany --skiplibcheck)" "build": "(tsbuild --web --allowimplicitany)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.63", "@gitzone/tsbuild": "^2.1.63",
@ -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" "idb": "7.0.1-fixed-02"
}, },
"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.1', version: '2.0.3',
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, {