@awsless/dynamodb-server 0.0.8 → 0.0.9
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.mts +24 -0
- package/package.json +2 -2
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
|
|
2
|
+
import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
|
|
3
|
+
|
|
4
|
+
declare class DynamoDBServer {
|
|
5
|
+
private region;
|
|
6
|
+
private client?;
|
|
7
|
+
private documentClient?;
|
|
8
|
+
private endpoint;
|
|
9
|
+
private process;
|
|
10
|
+
constructor(region?: string);
|
|
11
|
+
listen(port: number): Promise<void>;
|
|
12
|
+
/** Kill the DynamoDB server. */
|
|
13
|
+
kill(): Promise<void>;
|
|
14
|
+
/** Ping the DynamoDB server if its ready. */
|
|
15
|
+
ping(): Promise<boolean>;
|
|
16
|
+
/** Ping the DynamoDB server untill its ready. */
|
|
17
|
+
wait(times?: number): Promise<void>;
|
|
18
|
+
/** Get DynamoDBClient connected to dynamodb local. */
|
|
19
|
+
getClient(): DynamoDBClient;
|
|
20
|
+
/** Get DynamoDBDocumentClient connected to dynamodb local. */
|
|
21
|
+
getDocumentClient(): DynamoDBDocumentClient;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { DynamoDBServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/dynamodb-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@aws-sdk/client-dynamodb": "3.363.0",
|
|
20
20
|
"@aws-sdk/lib-dynamodb": "3.363.0",
|
|
21
21
|
"@aws-sdk/url-parser": "^3.272.0",
|
|
22
|
-
"dynamo-db-local": "^
|
|
22
|
+
"dynamo-db-local": "^9.1.1",
|
|
23
23
|
"sleep-await": "^1.0.2"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|