dynamo-bao 0.2.10 → 0.2.11
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const {
|
|
4
4
|
DynamoDBClient,
|
|
5
5
|
CreateTableCommand,
|
|
6
6
|
ListTablesCommand,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
} = require("../src/dynamodb-client.js");
|
|
8
|
+
const readline = require("readline");
|
|
9
|
+
const fs = require("fs");
|
|
10
|
+
const path = require("path");
|
|
11
11
|
|
|
12
12
|
// Create DynamoDB client at the top level
|
|
13
13
|
const client = new DynamoDBClient();
|
|
@@ -51,7 +51,7 @@ const prompt = (query) => {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
async function writeConfigFile(tableName) {
|
|
54
|
-
const region = client.region || process.env.AWS_REGION ||
|
|
54
|
+
const region = client.region || process.env.AWS_REGION || "us-east-1";
|
|
55
55
|
const configContent = `const path = require("path");
|
|
56
56
|
|
|
57
57
|
const config = {
|