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 +3 -1
- package/impl/bulk.d.mts.map +1 -1
- package/impl/bulk.mjs +3 -1
- package/package.json +1 -1
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
|
-
|
|
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);
|
package/impl/bulk.d.mts.map
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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 } */
|