@begin/data
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,3 +5,3 @@ # Begin Data changelog | ||
## [1.2.0] 2020-02-12 | ||
## [1.2.0 - 1.2.1] 2020-02-12 - 2020-04-13 | ||
@@ -12,2 +12,3 @@ ### Added | ||
- Added some nice performance improvements related to connection reuse in live AWS | ||
- `incr` and `decr` now set the default property value to be incremented or decremented to zero | ||
@@ -14,0 +15,0 @@ |
{ | ||
"name": "@begin/data", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Begin Data is a durable and fast key/value document store built on top of DynamoDB", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -48,5 +48,6 @@ /** | ||
Key: getKey({table, key}), | ||
UpdateExpression: `set ${prop} = ${prop} ${isIncr?'+':'-'} :val`, | ||
UpdateExpression: `SET ${prop} = if_not_exists(${prop}, :zero) ${isIncr?'+':'-'} :val`, | ||
ExpressionAttributeValues:{ | ||
':val': 1 | ||
':val': 1, | ||
':zero': 0 | ||
}, | ||
@@ -53,0 +54,0 @@ ReturnValues: 'ALL_NEW' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37060
1035