blob: 90feb337038fb9e5e136e7cace588084e91f3ccf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
'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;
|