From 9d6238618f3b6fe5a3d1130cbc50fad513d06590 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 1 May 2023 13:03:32 +0200 Subject: [PATCH] fix(core): update --- package.json | 3 ++- pnpm-lock.yaml | 3 +++ ts/00_commitinfo_data.ts | 2 +- ts/instrument/happydom.ts | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b2274ce..5ae8080 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "dependencies": { "@designestate/dees-element": "^2.0.20", "@happy-dom/global-registrator": "^8.9.0", - "@pushrocks/smartpromise": "^3.1.7" + "@pushrocks/smartpromise": "^3.1.7", + "fake-indexeddb": "^4.0.1" }, "browserslist": [ "last 1 chrome versions" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2016f60..21004e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,9 @@ dependencies: '@pushrocks/smartpromise': specifier: ^3.1.7 version: 3.1.7 + fake-indexeddb: + specifier: ^4.0.1 + version: 4.0.1 devDependencies: '@gitzone/tsbuild': diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 35f604c..2bfa327 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartntml', - version: '2.0.1', + version: '2.0.2', description: 'lit-html for the backend' } diff --git a/ts/instrument/happydom.ts b/ts/instrument/happydom.ts index 10ca0a5..343fc08 100644 --- a/ts/instrument/happydom.ts +++ b/ts/instrument/happydom.ts @@ -1,4 +1,8 @@ // happy-dom setup + +// first lets setup indexeddb +import 'fake-indexeddb/auto'; + import { GlobalRegistrator } from '@happy-dom/global-registrator'; GlobalRegistrator.register(); window.location.href = 'http://localhost';