hide-a-bed 5.2.3 → 5.2.4

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/cjs/impl/bulk.cjs CHANGED
@@ -134,7 +134,9 @@ const bulkRemove = import_bulk.BulkRemove.implement(async (config, ids) => {
134
134
  logger.warn(`Invalid document structure in bulk remove: ${row.id}`, e);
135
135
  }
136
136
  });
137
- return bulkSave(config, toRemove);
137
+ if (!toRemove.length) return [];
138
+ const result = await bulkSave(config, toRemove);
139
+ return result;
138
140
  });
139
141
  const bulkGetDictionary = import_bulk.BulkGetDictionary.implement(async (config, ids) => {
140
142
  const resp = await bulkGet(config, ids);
@@ -1 +1 @@
1
- {"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["bulk.mjs"],"names":[],"mappings":"AAWA,4DAA4D;AAC5D,uBADY,OAAO,oBAAoB,EAAE,cAAc,CA4CrD;AAEF,2DAA2D;AAC3D,sBADY,OAAO,oBAAoB,EAAE,aAAa,CAoCpD;AAIF,8DAA8D;AAC9D,yBADY,OAAO,oBAAoB,EAAE,gBAAgB,CAkBvD;AAEF,qEAAqE;AACrE,gCADY,OAAO,oBAAoB,EAAE,uBAAuB,CAwB9D;AAEF,2FAA2F;AAC3F,kCADY,OAAO,oBAAoB,EAAE,yBAAyB,CAiJhE"}
1
+ {"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["bulk.mjs"],"names":[],"mappings":"AAWA,4DAA4D;AAC5D,uBADY,OAAO,oBAAoB,EAAE,cAAc,CA4CrD;AAEF,2DAA2D;AAC3D,sBADY,OAAO,oBAAoB,EAAE,aAAa,CAoCpD;AAIF,8DAA8D;AAC9D,yBADY,OAAO,oBAAoB,EAAE,gBAAgB,CAoBvD;AAEF,qEAAqE;AACrE,gCADY,OAAO,oBAAoB,EAAE,uBAAuB,CAwB9D;AAEF,2FAA2F;AAC3F,kCADY,OAAO,oBAAoB,EAAE,yBAAyB,CAiJhE"}
package/impl/bulk.mjs CHANGED
@@ -112,7 +112,9 @@ export const bulkRemove = BulkRemove.implement(async (config, ids) => {
112
112
  logger.warn(`Invalid document structure in bulk remove: ${row.id}`, e)
113
113
  }
114
114
  })
115
- return bulkSave(config, toRemove)
115
+ if (!toRemove.length) return []
116
+ const result = await bulkSave(config, toRemove)
117
+ return result
116
118
  })
117
119
 
118
120
  /** @type { import('../schema/bulk.mjs').BulkGetDictionarySchema } */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hide-a-bed",
3
- "version": "5.2.3",
3
+ "version": "5.2.4",
4
4
  "description": "An abstraction over couchdb calls that includes easy mock/stubs with pouchdb",
5
5
  "module": "index.mjs",
6
6
  "main": "cjs/index.cjs",