@onehat/data 1.8.21 → 1.8.23

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.8.21",
3
+ "version": "1.8.23",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1605,12 +1605,14 @@ export default class Repository extends EventEmitter {
1605
1605
  if (this.isDestroyed) {
1606
1606
  throw Error('this.delete is no longer valid. Repository has been destroyed.');
1607
1607
  }
1608
-
1608
+ if (!entities) {
1609
+ return false;
1610
+ }
1609
1611
  if (!_.isArray(entities)) {
1610
1612
  entities = [entities];
1611
1613
  }
1612
1614
  if (!entities.length) {
1613
- return;
1615
+ return false;
1614
1616
  }
1615
1617
  _.each(entities, (entity) => {
1616
1618
  if (entity.isPhantom) {