UNPKG

@typed/content-hash

Version:

Content hash a directory of HTML/JS/CSS files and other static assets

12 lines 613 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDependents = void 0; const function_1 = require("fp-ts/function"); const Option_1 = require("fp-ts/Option"); const ReadonlyMap_1 = require("fp-ts/ReadonlyMap"); const toDependentGraph_1 = require("./toDependentGraph"); function getDependents(vertice, graph, dependents = (0, toDependentGraph_1.toDependentMap)(graph)) { return (0, function_1.pipe)(dependents, (0, ReadonlyMap_1.lookup)(graph)(vertice), (0, Option_1.getOrElse)(() => [])); } exports.getDependents = getDependents; //# sourceMappingURL=getDependents.js.map