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
- import {
3
+ const {
4
4
  DynamoDBClient,
5
5
  CreateTableCommand,
6
6
  ListTablesCommand,
7
- } from "../src/dynamodb-client.js";
8
- import readline from "readline";
9
- import fs from "fs";
10
- import path from "path";
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 || 'us-east-1';
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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamo-bao",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Simple powerful data modeling primitives for DynamoDB in JavaScript.",
5
5
  "main": "src/index.js",
6
6
  "exports": {