@keyv/dynamo 1.2.1 → 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.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
- private extractKey;
24
- private ensureTable;
25
- private createTable;
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
- private extractKey;
24
- private ensureTable;
25
- private createTable;
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/package.json CHANGED
@@ -1,15 +1,21 @@
1
1
  {
2
2
  "name": "@keyv/dynamo",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "DynamoDB storage adapter for Keyv",
5
5
  "type": "module",
6
- "main": "dist/index.cjs",
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": "./dist/index.cjs",
12
- "import": "./dist/index.js"
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,17 +41,17 @@
35
41
  },
36
42
  "homepage": "https://github.com/jaredwray/keyv",
37
43
  "dependencies": {
38
- "@aws-sdk/client-dynamodb": "^3.917.0",
39
- "@aws-sdk/lib-dynamodb": "^3.917.0"
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.3.0",
43
- "@vitest/coverage-v8": "^4.0.3",
44
- "vitest": "^4.0.3",
45
- "@keyv/test-suite": "^2.1.1"
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"
46
52
  },
47
53
  "peerDependencies": {
48
- "keyv": "^5.5.3"
54
+ "keyv": "^5.5.5"
49
55
  },
50
56
  "tsd": {
51
57
  "directory": "test"