electrodb 3.7.1 → 3.7.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/package.json +1 -1
- package/src/entity.js +3 -1
package/package.json
CHANGED
package/src/entity.js
CHANGED
|
@@ -921,6 +921,8 @@ class Entity {
|
|
|
921
921
|
is(item, config) {
|
|
922
922
|
return (
|
|
923
923
|
config.ignoreOwnership &&
|
|
924
|
+
config.attributes &&
|
|
925
|
+
config.attributes.length > 0 &&
|
|
924
926
|
!this._itemIncludesKeys(item)
|
|
925
927
|
) || (
|
|
926
928
|
(config.ignoreOwnership || config.hydrate) &&
|
|
@@ -1019,8 +1021,8 @@ class Entity {
|
|
|
1019
1021
|
return null;
|
|
1020
1022
|
}
|
|
1021
1023
|
const config = {
|
|
1022
|
-
...(options || {}),
|
|
1023
1024
|
ignoreOwnership: true,
|
|
1025
|
+
...(options || {}),
|
|
1024
1026
|
};
|
|
1025
1027
|
return this.formatResponse(item, TableIndex, config);
|
|
1026
1028
|
}
|