@kvs/indexeddb 2.1.3 → 2.1.4
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.
- package/lib/index.d.ts +5 -5
- package/module/index.d.ts +5 -5
- package/package.json +17 -15
package/lib/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { KVS, KVSOptions } from "@kvs/types";
|
|
2
2
|
import type { JsonValue } from "@kvs/storage";
|
|
3
|
-
|
|
3
|
+
type IndexedDBOptions = {
|
|
4
4
|
tableName?: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type IndexedDBResults = {
|
|
7
7
|
dropInstance(): Promise<void>;
|
|
8
8
|
__debug__database__: IDBDatabase;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type KVSIndexedSchema = {
|
|
11
11
|
[index: string]: JsonValue;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type KVSIndexedDB<Schema extends KVSIndexedSchema> = KVS<Schema> & IndexedDBResults;
|
|
14
|
+
export type KvsIndexedDBOptions<Schema extends KVSIndexedSchema> = KVSOptions<Schema> & IndexedDBOptions;
|
|
15
15
|
export declare const kvsIndexedDB: <Schema extends KVSIndexedSchema>(options: KvsIndexedDBOptions<Schema>) => Promise<KVSIndexedDB<Schema>>;
|
|
16
16
|
export {};
|
package/module/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { KVS, KVSOptions } from "@kvs/types";
|
|
2
2
|
import type { JsonValue } from "@kvs/storage";
|
|
3
|
-
|
|
3
|
+
type IndexedDBOptions = {
|
|
4
4
|
tableName?: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type IndexedDBResults = {
|
|
7
7
|
dropInstance(): Promise<void>;
|
|
8
8
|
__debug__database__: IDBDatabase;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type KVSIndexedSchema = {
|
|
11
11
|
[index: string]: JsonValue;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type KVSIndexedDB<Schema extends KVSIndexedSchema> = KVS<Schema> & IndexedDBResults;
|
|
14
|
+
export type KvsIndexedDBOptions<Schema extends KVSIndexedSchema> = KVSOptions<Schema> & IndexedDBOptions;
|
|
15
15
|
export declare const kvsIndexedDB: <Schema extends KVSIndexedSchema>(options: KvsIndexedDBOptions<Schema>) => Promise<KVSIndexedDB<Schema>>;
|
|
16
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvs/indexeddb",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "IndexedDB for KVS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kvs",
|
|
@@ -36,7 +36,11 @@
|
|
|
36
36
|
"clean": "rimraf lib/ module/",
|
|
37
37
|
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
|
|
38
38
|
"prepublishOnly": "npm run clean && npm run build",
|
|
39
|
-
"test": "
|
|
39
|
+
"test": "tsc -p .",
|
|
40
|
+
"test:browser": "npm run test:chrome && npm run test:firefox && npm run test:webkit",
|
|
41
|
+
"test:chrome": "playwright-test ./test/index.test.ts --runner=mocha --browser=chromium",
|
|
42
|
+
"test:firefox": "playwright-test ./test/index.test.ts --runner=mocha --browser=firefox",
|
|
43
|
+
"test:webkit": "playwright-test ./test/index.test.ts --runner=mocha --browser=webkit"
|
|
40
44
|
},
|
|
41
45
|
"prettier": {
|
|
42
46
|
"printWidth": 120,
|
|
@@ -45,23 +49,21 @@
|
|
|
45
49
|
"trailingComma": "none"
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {
|
|
48
|
-
"@kvs/types": "^2.1.
|
|
52
|
+
"@kvs/types": "^2.1.4"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@types/
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"ts-loader": "^8.2.0",
|
|
61
|
-
"typescript": "^4.2.4"
|
|
55
|
+
"@kvs/common-test-case": "^2.1.4",
|
|
56
|
+
"@types/mocha": "^10.0.1",
|
|
57
|
+
"@types/node": "^20.4.2",
|
|
58
|
+
"mocha": "^10.2.0",
|
|
59
|
+
"playwright-test": "^12.1.1",
|
|
60
|
+
"prettier": "^3.0.0",
|
|
61
|
+
"rimraf": "^5.0.1",
|
|
62
|
+
"ts-loader": "^9.4.4",
|
|
63
|
+
"typescript": "^5.1.6"
|
|
62
64
|
},
|
|
63
65
|
"publishConfig": {
|
|
64
66
|
"access": "public"
|
|
65
67
|
},
|
|
66
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d7a5ac9d3c859cceaa75711916bc6bb4e6cd61be"
|
|
67
69
|
}
|