triangle-utils 1.4.19 → 1.4.21
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.
|
@@ -208,7 +208,8 @@ export class UtilsDynamoDB {
|
|
|
208
208
|
TableName: table_name,
|
|
209
209
|
IndexName: index_name,
|
|
210
210
|
ExpressionAttributeNames: {
|
|
211
|
-
"#a": key
|
|
211
|
+
"#a": key,
|
|
212
|
+
...Object.fromEntries(attribute_names.map(attribute_name => ["#" + attribute_name, attribute_name]))
|
|
212
213
|
},
|
|
213
214
|
ExpressionAttributeValues: {
|
|
214
215
|
":a": value
|
|
@@ -247,7 +248,8 @@ export class UtilsDynamoDB {
|
|
|
247
248
|
IndexName: index_name,
|
|
248
249
|
ExpressionAttributeNames: {
|
|
249
250
|
"#a": Object.keys(primary_key)[0],
|
|
250
|
-
"#b": Object.keys(secondary_key_prefix)[0]
|
|
251
|
+
"#b": Object.keys(secondary_key_prefix)[0],
|
|
252
|
+
...Object.fromEntries(attribute_names.map(attribute_name => ["#" + attribute_name, attribute_name]))
|
|
251
253
|
},
|
|
252
254
|
ExpressionAttributeValues: {
|
|
253
255
|
":a": converted_primary_value,
|
|
@@ -288,7 +290,8 @@ export class UtilsDynamoDB {
|
|
|
288
290
|
IndexName: index_name,
|
|
289
291
|
ExpressionAttributeNames: {
|
|
290
292
|
"#a": Object.keys(primary_key)[0],
|
|
291
|
-
"#b": Object.keys(secondary_key_range)[0]
|
|
293
|
+
"#b": Object.keys(secondary_key_range)[0],
|
|
294
|
+
...Object.fromEntries(attribute_names.map(attribute_name => ["#" + attribute_name, attribute_name]))
|
|
292
295
|
},
|
|
293
296
|
ExpressionAttributeValues: {
|
|
294
297
|
":a": converted_primary_value,
|
package/package.json
CHANGED
package/src/UtilsDynamoDB.ts
CHANGED
|
@@ -248,7 +248,8 @@ export class UtilsDynamoDB {
|
|
|
248
248
|
TableName : table_name,
|
|
249
249
|
IndexName : index_name,
|
|
250
250
|
ExpressionAttributeNames: {
|
|
251
|
-
"#a": key
|
|
251
|
+
"#a": key,
|
|
252
|
+
...Object.fromEntries(attribute_names.map(attribute_name => ["#" + attribute_name, attribute_name]))
|
|
252
253
|
},
|
|
253
254
|
ExpressionAttributeValues: {
|
|
254
255
|
":a": value
|
|
@@ -302,7 +303,8 @@ export class UtilsDynamoDB {
|
|
|
302
303
|
IndexName : index_name,
|
|
303
304
|
ExpressionAttributeNames: {
|
|
304
305
|
"#a": Object.keys(primary_key)[0],
|
|
305
|
-
"#b": Object.keys(secondary_key_prefix)[0]
|
|
306
|
+
"#b": Object.keys(secondary_key_prefix)[0],
|
|
307
|
+
...Object.fromEntries(attribute_names.map(attribute_name => ["#" + attribute_name, attribute_name]))
|
|
306
308
|
},
|
|
307
309
|
ExpressionAttributeValues: {
|
|
308
310
|
":a": converted_primary_value,
|
|
@@ -358,7 +360,8 @@ export class UtilsDynamoDB {
|
|
|
358
360
|
IndexName : index_name,
|
|
359
361
|
ExpressionAttributeNames: {
|
|
360
362
|
"#a": Object.keys(primary_key)[0],
|
|
361
|
-
"#b": Object.keys(secondary_key_range)[0]
|
|
363
|
+
"#b": Object.keys(secondary_key_range)[0],
|
|
364
|
+
...Object.fromEntries(attribute_names.map(attribute_name => ["#" + attribute_name, attribute_name]))
|
|
362
365
|
},
|
|
363
366
|
ExpressionAttributeValues: {
|
|
364
367
|
":a": converted_primary_value,
|