@comunica/mediator-combine-union
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -15,5 +15,11 @@ "use strict"; | ||
async mediate(action) { | ||
const testResults = this.publish(action); | ||
let testResults; | ||
try { | ||
testResults = this.publish(action); | ||
} | ||
catch (e) { | ||
testResults = []; | ||
} | ||
// Delegate test errors. | ||
await Promise.all(require('lodash.map')(testResults, 'reply')); | ||
await Promise.all(testResults.map(({ reply }) => reply)); | ||
// Run action on all actors. | ||
@@ -30,3 +36,3 @@ const results = await Promise.all(testResults.map((result) => result.actor.runObservable(action))); | ||
const data = {}; | ||
data[this.field] = require('lodash.defaults').apply({}, [{}].concat(require('lodash.map')(results, this.field))); | ||
data[this.field] = require('lodash.defaults').apply({}, [{}].concat(results.map((result) => result[this.field]))); | ||
return data; | ||
@@ -33,0 +39,0 @@ }; |
{ | ||
"name": "@comunica/mediator-combine-union", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "A combine-union mediator", | ||
@@ -36,4 +36,3 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-combine-union", | ||
"dependencies": { | ||
"lodash.defaults": "^4.2.0", | ||
"lodash.map": "^4.6.0" | ||
"lodash.defaults": "^4.2.0" | ||
}, | ||
@@ -44,3 +43,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@comunica/core": "^1.8.0" | ||
"@comunica/core": "^1.9.0" | ||
}, | ||
@@ -70,3 +69,3 @@ "jest": { | ||
}, | ||
"gitHead": "7e65817dad65cf10c032f7548b37cedf3055eea1" | ||
"gitHead": "2e0cba815fd65d5660f15c96ffc734f9099d8b6a" | ||
} |
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
8274
2
67
- Removedlodash.map@^4.6.0
- Removedlodash.map@4.6.0(transitive)