@twin.org/entity-storage-connector-dynamodb 0.0.1-next.11 → 0.0.1-next.12

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.
@@ -306,6 +306,9 @@ class DynamoDbEntityStorageConnector {
306
306
  await docClient.send(putCommand);
307
307
  }
308
308
  catch (err) {
309
+ if (core.BaseError.isErrorName(err, "ConditionalCheckFailedException")) {
310
+ return;
311
+ }
309
312
  if (core.BaseError.isErrorCode(err, "ResourceNotFoundException")) {
310
313
  throw new core.GeneralError(this.CLASS_NAME, "tableDoesNotExist", {
311
314
  tableName: this._config.tableName
@@ -304,6 +304,9 @@ class DynamoDbEntityStorageConnector {
304
304
  await docClient.send(putCommand);
305
305
  }
306
306
  catch (err) {
307
+ if (BaseError.isErrorName(err, "ConditionalCheckFailedException")) {
308
+ return;
309
+ }
307
310
  if (BaseError.isErrorCode(err, "ResourceNotFoundException")) {
308
311
  throw new GeneralError(this.CLASS_NAME, "tableDoesNotExist", {
309
312
  tableName: this._config.tableName
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/entity-storage-connector-dynamodb - Changelog
2
2
 
3
- ## v0.0.1-next.11
3
+ ## v0.0.1-next.12
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/entity-storage-connector-dynamodb",
3
- "version": "0.0.1-next.11",
3
+ "version": "0.0.1-next.12",
4
4
  "description": "Entity Storage connector implementation using DynamoDb storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "@aws-sdk/util-dynamodb": "3.656",
20
20
  "@twin.org/core": "next",
21
21
  "@twin.org/entity": "next",
22
- "@twin.org/entity-storage-models": "0.0.1-next.11",
22
+ "@twin.org/entity-storage-models": "0.0.1-next.12",
23
23
  "@twin.org/logging-models": "next",
24
24
  "@twin.org/nameof": "next"
25
25
  },