@lokalise/background-jobs-common
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -56,9 +56,9 @@ "use strict"; | ||
return; | ||
const clonedJobData = (0, node_core_1.deepClone)(job.data); | ||
this.jobProcessingResults.set(job.id, { job: { ...job, data: clonedJobData }, state }); | ||
const clonedJob = { ...job, data: (0, node_core_1.deepClone)(job.data) }; | ||
this.jobProcessingResults.set(job.id, { job: clonedJob, state }); | ||
if (this.promises.length === 0) | ||
return; | ||
const indexes = this.promises.map((promise, index) => { | ||
if (promise.selector(job) && state === promise.awaitedState) { | ||
promise.resolve(job); | ||
if (promise.selector(clonedJob) && state === promise.awaitedState) { | ||
promise.resolve(clonedJob); | ||
return index; | ||
@@ -65,0 +65,0 @@ } |
{ | ||
"name": "@lokalise/background-jobs-common", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist", |
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
47984