electrodb 3.4.1 → 3.4.2
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/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/entity.js +1 -9
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/src/entity.js
CHANGED
|
@@ -943,9 +943,6 @@ class Entity {
|
|
|
943
943
|
response.Item,
|
|
944
944
|
config,
|
|
945
945
|
);
|
|
946
|
-
if (Object.keys(results).length === 0 && !config._objectOnEmpty) {
|
|
947
|
-
results = null;
|
|
948
|
-
}
|
|
949
946
|
} else if (!config._objectOnEmpty) {
|
|
950
947
|
results = null;
|
|
951
948
|
}
|
|
@@ -965,9 +962,7 @@ class Entity {
|
|
|
965
962
|
item,
|
|
966
963
|
config,
|
|
967
964
|
);
|
|
968
|
-
|
|
969
|
-
results.push(record);
|
|
970
|
-
}
|
|
965
|
+
results.push(record);
|
|
971
966
|
}
|
|
972
967
|
}
|
|
973
968
|
} else if (response.Attributes) {
|
|
@@ -1732,9 +1727,6 @@ class Entity {
|
|
|
1732
1727
|
|
|
1733
1728
|
if (Array.isArray(option.attributes)) {
|
|
1734
1729
|
config.attributes = config.attributes.concat(option.attributes);
|
|
1735
|
-
if (config.attributes.length > 0) {
|
|
1736
|
-
config._objectOnEmpty = true;
|
|
1737
|
-
}
|
|
1738
1730
|
}
|
|
1739
1731
|
|
|
1740
1732
|
if (option.preserveBatchOrder === true) {
|