@helenejs/data
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -239,3 +239,3 @@ "use strict"; | ||
const docs = (0, isArray_1.default)(preparedDoc) ? preparedDoc : [preparedDoc]; | ||
await this.persistence.persistNewState(docs); | ||
(0, op_queue_1.queueOperation)(async () => this.persistence.persistNewState(docs)).catch(console.error); | ||
await Promise.all(docs.map(doc => this.afterInsert(doc))); | ||
@@ -394,3 +394,3 @@ return (0, model_1.deepCopy)(preparedDoc); | ||
const updatedDocs = (0, utils_1.pluck)(modifications, 'newDoc'); | ||
await this.persistence.persistNewState(updatedDocs); | ||
(0, op_queue_1.queueOperation)(async () => this.persistence.persistNewState(updatedDocs)).catch(console.error); | ||
if (options?.returnUpdatedDocs) { | ||
@@ -440,3 +440,3 @@ const updatedDocsDC = []; | ||
} | ||
await self.persistence.persistNewState(removedDocs); | ||
(0, op_queue_1.queueOperation)(async () => self.persistence.persistNewState(removedDocs)).catch(console.error); | ||
await Promise.all(candidates.map(doc => self.afterRemove(doc))); | ||
@@ -443,0 +443,0 @@ return numRemoved; |
{ | ||
"name": "@helenejs/data", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Real-time Web Apps for Node.js", | ||
@@ -50,3 +50,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "9eeacc93fbb3379f25bcd3b3da37cd96552b5cb2" | ||
"gitHead": "9e824a461bffd5be639a91440e442254f5ae340e" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237642