Compare commits

...

12 Commits

Author SHA1 Message Date
257b995ca0 2.0.6 2023-05-01 12:17:40 +02:00
2500ba4cd4 fix(core): update 2023-05-01 12:17:39 +02:00
20a81e8209 2.0.5 2022-08-01 15:50:05 +02:00
18145a27e2 fix(core): update 2022-08-01 15:50:05 +02:00
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
948957b03f 2.0.2 2022-05-28 13:40:14 +02:00
cb69bf3585 fix(core): update 2022-05-28 13:40:14 +02:00
3d27c0fada 2.0.1 2022-05-28 12:49:03 +02:00
94672fd41c fix(core): update 2022-05-28 12:49:03 +02:00
6 changed files with 4433 additions and 10185 deletions

10168
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.0", "version": "2.0.6",
"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,23 +10,24 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "(tstest test/ --web)",
"build": "(tsbuild --web)" "build": "(tsbuild --web --allowimplicitany)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.63", "@gitzone/tsbuild": "^2.1.65",
"@gitzone/tstest": "^1.0.71", "@gitzone/tsrun": "^1.2.39",
"@pushrocks/tapbundle": "^5.0.3", "@gitzone/tstest": "^1.0.74",
"@types/node": "^17.0.36" "@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.16.3"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest-interfaces": "^1.0.15", "@apiglobal/typedrequest-interfaces": "^2.0.1",
"@pushrocks/lik": "^6.0.0", "@pushrocks/lik": "^6.0.2",
"@pushrocks/smartenv": "^5.0.1", "@pushrocks/smartenv": "^5.0.5",
"@pushrocks/smartjson": "^4.0.6", "@pushrocks/smartjson": "^5.0.5",
"@pushrocks/smartpromise": "^3.1.6", "@pushrocks/smartpromise": "^4.0.2",
"@pushrocks/smartrx": "^2.0.25", "@pushrocks/smartrx": "^3.0.0",
"fake-indexeddb": "^3.1.7", "fake-indexeddb": "^4.0.1",
"idb": "^7.0.1" "idb": "^7.1.1"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"

4406
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/webstore', name: '@pushrocks/webstore',
version: '2.0.0', version: '2.0.6',
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');
globalThis.fetch = fetch.default;
} }
this.db = await plugins.idb.openDB(this.options.dbName, 1, { this.db = await plugins.idb.openDB(this.options.dbName, 1, {

10
tsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true
}
}