@stonyx/orm 0.3.2-beta.81 → 0.3.2-beta.82
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.
|
@@ -368,7 +368,7 @@ export default class DynamoDBDB {
|
|
|
368
368
|
if (currentData[col] !== oldState[col]) {
|
|
369
369
|
const value = currentData[col] ?? null;
|
|
370
370
|
// Date objects must be serialized to ISO-8601 strings for DynamoDB 'S' storage
|
|
371
|
-
changedData[col] = (
|
|
371
|
+
changedData[col] = (value instanceof Date)
|
|
372
372
|
? value.toISOString()
|
|
373
373
|
: value;
|
|
374
374
|
}
|
|
@@ -540,7 +540,7 @@ export default class DynamoDBDB {
|
|
|
540
540
|
if (data[col] !== undefined) {
|
|
541
541
|
const value = data[col];
|
|
542
542
|
// Date objects must be serialized to ISO-8601 strings for DynamoDB 'S' storage
|
|
543
|
-
item[col] = (
|
|
543
|
+
item[col] = (value instanceof Date)
|
|
544
544
|
? value.toISOString()
|
|
545
545
|
: value;
|
|
546
546
|
}
|
package/package.json
CHANGED
|
@@ -525,7 +525,7 @@ export default class DynamoDBDB {
|
|
|
525
525
|
if (currentData[col] !== oldState[col]) {
|
|
526
526
|
const value = currentData[col] ?? null;
|
|
527
527
|
// Date objects must be serialized to ISO-8601 strings for DynamoDB 'S' storage
|
|
528
|
-
changedData[col] = (
|
|
528
|
+
changedData[col] = (value instanceof Date)
|
|
529
529
|
? value.toISOString()
|
|
530
530
|
: value;
|
|
531
531
|
}
|
|
@@ -746,7 +746,7 @@ export default class DynamoDBDB {
|
|
|
746
746
|
if (data[col] !== undefined) {
|
|
747
747
|
const value = data[col];
|
|
748
748
|
// Date objects must be serialized to ISO-8601 strings for DynamoDB 'S' storage
|
|
749
|
-
item[col] = (
|
|
749
|
+
item[col] = (value instanceof Date)
|
|
750
750
|
? value.toISOString()
|
|
751
751
|
: value;
|
|
752
752
|
}
|