Searched refs:pickAlgorithm (Results 1 – 6 of 6) sorted by relevance
19 pickAlgorithm: {default: () => getPrioritizedHash}, property114 const algo = other.pickAlgorithm(opts)125 pickAlgorithm (opts) { method in Integrity127 const pickAlgorithm = opts.pickAlgorithm135 return pickAlgorithm(acc, algo) || acc249 const algorithm = sri.pickAlgorithm(opts)297 const algorithm = goodSri && sri.pickAlgorithm(opts)
25 * [`Integrity#pickAlgorithm`](#integrity-pick-algorithm)226 passed through to `parse` and [`pickAlgorithm()`](#integrity-pick-algorithm).243 #### <a name="integrity-pick-algorithm"></a> `> Integrity#pickAlgorithm([opts]) -> String`247 If `opts.pickAlgorithm` is provided, it will be passed two algorithms as257 …ELD1piyANiWnmdnpCL5F52f10UfUdEkHywVZeqTt0ymgrxR63Qz0GB7TKPoeeZQmWCaz7T1').pickAlgorithm() // sha512388 If `opts.pickAlgorithm` is provided, it will be used by389 [`Integrity#pickAlgorithm`](#integrity-pick-algorithm) when deciding which of422 If `opts.pickAlgorithm` is provided, it will be used by423 [`Integrity#pickAlgorithm`](#integrity-pick-algorithm) when deciding which of475 If `opts.pickAlgorithm` is provided, it will be passed two algorithms as
182 * **pickAlgorithm:** error if pickAlgorithm() is used in an empty Integrity ([fab470e](https://gith…244 * **pickAlgorithm:** Intergrity#pickAlgorithm() added ([b97a796](https://github.com/zkat/ssri/commi…274 * **verification:** add opts.pickAlgorithm ([f72e658](https://github.com/zkat/ssri/commit/f72e658))
136 const algo = sri.pickAlgorithm()142 return BB.any(sri[sri.pickAlgorithm()].map(meta => {163 const algo = sri.pickAlgorithm()170 for (const meta of sri[sri.pickAlgorithm()]) {
16 pickAlgorithm: {}, property
63 ? ssri.parse(manifest._integrity).pickAlgorithm()