@twin.org/entity-storage-connector-dynamodb 0.0.1-next.25 → 0.0.1-next.26
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/dist/cjs/index.cjs +5 -1
- package/dist/esm/index.mjs +5 -1
- package/docs/changelog.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -677,7 +677,11 @@ class DynamoDbEntityStorageConnector {
|
|
|
677
677
|
const results = await connection.send(query);
|
|
678
678
|
let entities = [];
|
|
679
679
|
if (core.Is.arrayValue(results.Items)) {
|
|
680
|
-
entities = results.Items.map(item =>
|
|
680
|
+
entities = results.Items.map(item => {
|
|
681
|
+
const unmarshalled = utilDynamodb.unmarshall(item);
|
|
682
|
+
delete unmarshalled[DynamoDbEntityStorageConnector._PARTITION_ID_NAME];
|
|
683
|
+
return unmarshalled;
|
|
684
|
+
});
|
|
681
685
|
}
|
|
682
686
|
return {
|
|
683
687
|
entities,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -675,7 +675,11 @@ class DynamoDbEntityStorageConnector {
|
|
|
675
675
|
const results = await connection.send(query);
|
|
676
676
|
let entities = [];
|
|
677
677
|
if (Is.arrayValue(results.Items)) {
|
|
678
|
-
entities = results.Items.map(item =>
|
|
678
|
+
entities = results.Items.map(item => {
|
|
679
|
+
const unmarshalled = unmarshall(item);
|
|
680
|
+
delete unmarshalled[DynamoDbEntityStorageConnector._PARTITION_ID_NAME];
|
|
681
|
+
return unmarshalled;
|
|
682
|
+
});
|
|
679
683
|
}
|
|
680
684
|
return {
|
|
681
685
|
entities,
|
package/docs/changelog.md
CHANGED
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.
|
|
3
|
+
"version": "0.0.1-next.26",
|
|
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.758",
|
|
20
20
|
"@twin.org/core": "next",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
|
-
"@twin.org/entity-storage-models": "0.0.1-next.
|
|
22
|
+
"@twin.org/entity-storage-models": "0.0.1-next.26",
|
|
23
23
|
"@twin.org/logging-models": "next",
|
|
24
24
|
"@twin.org/nameof": "next"
|
|
25
25
|
},
|