@keyv/dynamo 1.2.0 → 1.2.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.
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -0
- package/package.json +19 -12
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EventEmitter from 'node:events';
|
|
2
2
|
import { DynamoDBClientConfig } from '@aws-sdk/client-dynamodb';
|
|
3
|
-
import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
|
|
3
|
+
import { DynamoDBDocument, ScanCommandOutput } from '@aws-sdk/lib-dynamodb';
|
|
4
4
|
import { KeyvStoreAdapter, StoredData, Keyv } from 'keyv';
|
|
5
5
|
export { Keyv } from 'keyv';
|
|
6
6
|
|
|
@@ -20,9 +20,9 @@ declare class KeyvDynamo extends EventEmitter implements KeyvStoreAdapter {
|
|
|
20
20
|
getMany<Value>(keys: string[]): Promise<Array<StoredData<Value | undefined>>>;
|
|
21
21
|
deleteMany(keys: string[]): Promise<boolean>;
|
|
22
22
|
clear(): Promise<void>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
extractKey(output: ScanCommandOutput, keyProperty?: string): string[];
|
|
24
|
+
ensureTable(tableName: string): Promise<void>;
|
|
25
|
+
createTable(tableName: string): Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
type KeyvDynamoOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EventEmitter from 'node:events';
|
|
2
2
|
import { DynamoDBClientConfig } from '@aws-sdk/client-dynamodb';
|
|
3
|
-
import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
|
|
3
|
+
import { DynamoDBDocument, ScanCommandOutput } from '@aws-sdk/lib-dynamodb';
|
|
4
4
|
import { KeyvStoreAdapter, StoredData, Keyv } from 'keyv';
|
|
5
5
|
export { Keyv } from 'keyv';
|
|
6
6
|
|
|
@@ -20,9 +20,9 @@ declare class KeyvDynamo extends EventEmitter implements KeyvStoreAdapter {
|
|
|
20
20
|
getMany<Value>(keys: string[]): Promise<Array<StoredData<Value | undefined>>>;
|
|
21
21
|
deleteMany(keys: string[]): Promise<boolean>;
|
|
22
22
|
clear(): Promise<void>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
extractKey(output: ScanCommandOutput, keyProperty?: string): string[];
|
|
24
|
+
ensureTable(tableName: string): Promise<void>;
|
|
25
|
+
createTable(tableName: string): Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
type KeyvDynamoOptions = {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keyv/dynamo",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "DynamoDB storage adapter for Keyv",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
7
|
-
"module": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"require":
|
|
12
|
-
|
|
11
|
+
"require": {
|
|
12
|
+
"types": "./dist/index.d.cts",
|
|
13
|
+
"default": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
13
19
|
}
|
|
14
20
|
},
|
|
15
21
|
"repository": {
|
|
@@ -35,16 +41,17 @@
|
|
|
35
41
|
},
|
|
36
42
|
"homepage": "https://github.com/jaredwray/keyv",
|
|
37
43
|
"dependencies": {
|
|
38
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
39
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
44
|
+
"@aws-sdk/client-dynamodb": "^3.940.0",
|
|
45
|
+
"@aws-sdk/lib-dynamodb": "^3.940.0"
|
|
40
46
|
},
|
|
41
47
|
"devDependencies": {
|
|
42
|
-
"@biomejs/biome": "^2.
|
|
43
|
-
"vitest": "^
|
|
44
|
-
"
|
|
48
|
+
"@biomejs/biome": "^2.3.7",
|
|
49
|
+
"@vitest/coverage-v8": "^4.0.14",
|
|
50
|
+
"vitest": "^4.0.14",
|
|
51
|
+
"@keyv/test-suite": "^2.1.2"
|
|
45
52
|
},
|
|
46
53
|
"peerDependencies": {
|
|
47
|
-
"keyv": "^5.5.
|
|
54
|
+
"keyv": "^5.5.5"
|
|
48
55
|
},
|
|
49
56
|
"tsd": {
|
|
50
57
|
"directory": "test"
|