@resistdesign/voltra 3.0.0-alpha.50 → 3.0.0-alpha.51
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/api/index.js +3 -3
- package/package.json +1 -1
package/api/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { getNoErrorDescriptor, getErrorDescriptor, ERROR_MESSAGE_CONSTANTS, vali
|
|
|
3
3
|
import { mergeStringPaths, getPathString, getPathArray } from '../chunk-2JDOM6PB.js';
|
|
4
4
|
import '../chunk-I2KLQ2HA.js';
|
|
5
5
|
import { QueryCommand, PutItemCommand, ConditionalCheckFailedException, GetItemCommand, BatchGetItemCommand, BatchWriteItemCommand, DynamoDBClient, UpdateItemCommand, DeleteItemCommand, ScanCommand } from '@aws-sdk/client-dynamodb';
|
|
6
|
-
import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';
|
|
6
|
+
import { marshall, unmarshall, convertToAttr } from '@aws-sdk/util-dynamodb';
|
|
7
7
|
import { S3, PutObjectCommand, HeadObjectCommand, CopyObjectCommand, GetObjectCommand, DeleteObjectCommand, ListObjectsV2Command } from '@aws-sdk/client-s3';
|
|
8
8
|
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
|
9
9
|
import { v4 } from 'uuid';
|
|
@@ -5791,7 +5791,7 @@ var buildUpdateExpression = (updatedItem, uniquelyIdentifyingFieldName, updateCo
|
|
|
5791
5791
|
const placeholderValue = `:${f}`;
|
|
5792
5792
|
const operator = updateConfig?.fieldOperators?.[f];
|
|
5793
5793
|
attributeNames[placeholderName] = f;
|
|
5794
|
-
attributeValues[placeholderValue] =
|
|
5794
|
+
attributeValues[placeholderValue] = convertToAttr(value);
|
|
5795
5795
|
if (operator === TypeInfoORMUpdateOperators.NUMBER.INCREMENT) {
|
|
5796
5796
|
addExpressionParts.push(`${placeholderName} ${placeholderValue}`);
|
|
5797
5797
|
continue;
|
|
@@ -5801,7 +5801,7 @@ var buildUpdateExpression = (updatedItem, uniquelyIdentifyingFieldName, updateCo
|
|
|
5801
5801
|
addExpressionParts.push(
|
|
5802
5802
|
`${placeholderName} ${decrementPlaceholderValue}`
|
|
5803
5803
|
);
|
|
5804
|
-
attributeValues[decrementPlaceholderValue] =
|
|
5804
|
+
attributeValues[decrementPlaceholderValue] = convertToAttr(
|
|
5805
5805
|
-value
|
|
5806
5806
|
);
|
|
5807
5807
|
continue;
|