aboutsummaryrefslogtreecommitdiff
path: root/packages/idb-bridge
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-16 23:29:29 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-16 23:29:29 +0200
commit3263d05ce957a3f81234749eb9eefc0bce7ff645 (patch)
tree1b41a60ad2c63748f345f0c5779e89130cdbe6e4 /packages/idb-bridge
parent6a57ad5fe2492173bcebada357af705048fce6f7 (diff)
version bump / imports
Diffstat (limited to 'packages/idb-bridge')
-rw-r--r--packages/idb-bridge/package.json2
-rw-r--r--packages/idb-bridge/src/MemoryBackend.test.ts1
-rw-r--r--packages/idb-bridge/src/util/FakeEvent.ts2
-rw-r--r--packages/idb-bridge/src/util/types.ts1
-rw-r--r--packages/idb-bridge/tsconfig.json1
5 files changed, 4 insertions, 3 deletions
diff --git a/packages/idb-bridge/package.json b/packages/idb-bridge/package.json
index 5816b7172..750c282ec 100644
--- a/packages/idb-bridge/package.json
+++ b/packages/idb-bridge/package.json
@@ -1,6 +1,6 @@
{
"name": "idb-bridge",
- "version": "0.0.5",
+ "version": "0.0.6",
"description": "IndexedDB implementation that uses SQLite3 as storage",
"main": "./build/index.js",
"types": "./build/index.d.ts",
diff --git a/packages/idb-bridge/src/MemoryBackend.test.ts b/packages/idb-bridge/src/MemoryBackend.test.ts
index 7f9c1440d..a48fafb1e 100644
--- a/packages/idb-bridge/src/MemoryBackend.test.ts
+++ b/packages/idb-bridge/src/MemoryBackend.test.ts
@@ -345,5 +345,6 @@ test("export", async t => {
t.deepEqual(exportedData, exportedData2);
t.is(exportedData.databases["library"].schema.databaseVersion, 42);
+ t.is(exportedData2.databases["library"].schema.databaseVersion, 42);
t.pass();
}); \ No newline at end of file
diff --git a/packages/idb-bridge/src/util/FakeEvent.ts b/packages/idb-bridge/src/util/FakeEvent.ts
index bf17f7e72..ae62401c3 100644
--- a/packages/idb-bridge/src/util/FakeEvent.ts
+++ b/packages/idb-bridge/src/util/FakeEvent.ts
@@ -18,7 +18,7 @@
import FakeEventTarget from "./FakeEventTarget";
import { EventType } from "./types";
-class Event {
+export class Event {
public eventPath: FakeEventTarget[] = [];
public type: EventType;
diff --git a/packages/idb-bridge/src/util/types.ts b/packages/idb-bridge/src/util/types.ts
index 7aea22ab1..9bf80366d 100644
--- a/packages/idb-bridge/src/util/types.ts
+++ b/packages/idb-bridge/src/util/types.ts
@@ -19,6 +19,7 @@ import BridgeIDBRequest from "../BridgeIDBRequest";
import BridgeIDBKeyRange from "../BridgeIDBKeyRange";
import BridgeIDBIndex from "../BridgeIDBIndex";
import BridgeIBObjectStore from "../BridgeIDBObjectStore";
+import { Event } from "../util/FakeEvent";
interface EventInCallback extends Event {
target: any;
diff --git a/packages/idb-bridge/tsconfig.json b/packages/idb-bridge/tsconfig.json
index 8baf78ac1..017afdae1 100644
--- a/packages/idb-bridge/tsconfig.json
+++ b/packages/idb-bridge/tsconfig.json
@@ -10,7 +10,6 @@
"strict": true,
"incremental": true,
"sourceMap": true,
- "typeRoots": ["./node_modules"],
"types": []
},
"include": ["src/**/*"]