diff --git a/ghcrawler/lib/traversalPolicy.js b/ghcrawler/lib/traversalPolicy.js index badb8679..208113c4 100644 --- a/ghcrawler/lib/traversalPolicy.js +++ b/ghcrawler/lib/traversalPolicy.js @@ -143,6 +143,10 @@ class TraversalPolicy { return new TraversalPolicy('storageOnly', 'always', TraversalPolicy._resolveMapSpec(map)) } + static reharvestAlways(map) { + return new TraversalPolicy('mutables', 'always', TraversalPolicy._resolveMapSpec(map)) + } + static clone(policy) { return new TraversalPolicy(policy.fetch, policy.freshness, policy.map) }