fake-indexeddb 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -89,11 +89,11 @@ As of version 4, fake-indexeddb includes TypeScript types. As you can see in typ
89
89
 
90
90
  ### Dexie and other IndexedDB API wrappers
91
91
 
92
- If you import `fake-indexeddb/auto` before calling `new Dexie()`, it should work:
92
+ If you import `fake-indexeddb/auto` before importing `dexie`, it should work:
93
93
 
94
94
  ```js
95
- import Dexie from "dexie";
96
95
  import "fake-indexeddb/auto";
96
+ import Dexie from "dexie";
97
97
 
98
98
  const db = new Dexie("MyDatabase");
99
99
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fake-indexeddb",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API",
5
5
  "homepage": "https://github.com/dumbmatter/fakeIndexedDB",
6
6
  "repository": {
@@ -25,6 +25,7 @@
25
25
  "module": "./build/esm/index.js",
26
26
  "exports": {
27
27
  ".": {
28
+ "types": "./types.d.ts",
28
29
  "import": "./build/esm/index.js",
29
30
  "require": "./build/cjs/index.js"
30
31
  },
@@ -32,7 +33,6 @@
32
33
  "import": "./auto/index.mjs",
33
34
  "require": "./auto/index.js"
34
35
  },
35
- "./auto.cjs": "./auto.cjs",
36
36
  "./lib/fakeIndexedDB": {
37
37
  "import": "./build/esm/fakeIndexedDB.js",
38
38
  "require": "./build/cjs/fakeIndexedDB.js"