@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.
Files changed (2) hide show
  1. package/api/index.js +3 -3
  2. 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] = marshall(value);
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] = marshall(
5804
+ attributeValues[decrementPlaceholderValue] = convertToAttr(
5805
5805
  -value
5806
5806
  );
5807
5807
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resistdesign/voltra",
3
- "version": "3.0.0-alpha.50",
3
+ "version": "3.0.0-alpha.51",
4
4
  "description": "With our powers combined!",
5
5
  "homepage": "https://voltra.app",
6
6
  "repository": "git@github.com:resistdesign/voltra.git",