presidium 0.29.9 → 0.29.10

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.
Files changed (2) hide show
  1. package/Dynamo.js +2 -2
  2. package/package.json +1 -1
package/Dynamo.js CHANGED
@@ -125,7 +125,7 @@ Dynamo.prototype.createTable = function createTable(
125
125
  TableName: tablename,
126
126
  KeySchema: Dynamo.KeySchema(primaryKey),
127
127
  AttributeDefinitions: Dynamo.AttributeDefinitions(primaryKey),
128
- BillingMode: get('BillingMode', 'PROVISIONED')(options),
128
+ BillingMode: get(options, 'BillingMode', 'PAY_PER_REQUEST'),
129
129
  }
130
130
  if (params.BillingMode == 'PROVISIONED') {
131
131
  params.ProvisionedThroughput = get('ProvisionedThroughput', {
@@ -251,7 +251,7 @@ Dynamo.prototype.waitFor = async function waitFor(tablename, status) {
251
251
 
252
252
  Dynamo.prototype.createIndex = async function createIndex(tablename, index, options = {}) {
253
253
  const { Table } = await this.describeTable(tablename)
254
- const BillingMode = Table.BillingModeSummary?.BillingMode ?? 'PROVISIONED'
254
+ const BillingMode = Table.BillingModeSummary?.BillingMode ?? 'PAY_PER_REQUEST'
255
255
  const params = {
256
256
  IndexName: Dynamo.Indexname(index),
257
257
  KeySchema: Dynamo.KeySchema(index),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presidium",
3
- "version": "0.29.9",
3
+ "version": "0.29.10",
4
4
  "description": "A library for creating web services",
5
5
  "author": "Richard Tong",
6
6
  "license": "MIT",