blob: 90feb337038fb9e5e136e7cace588084e91f3ccf (
plain) (
tree)
|
|
'use strict';
// module PursLoader.Plugin
function getFn(nothing, just, map, key) {
var value = map.get(key);
return value === undefined ? nothing : just(value);
}
exports.getFn = getFn;
function dependenciesOfFn(left, right, graph, node) {
try {
var dependencies = graph.dependenciesOf(node);
return right(dependencies);
}
catch (error) {
return left(error);
}
}
exports.dependenciesOfFn = dependenciesOfFn;
|