Closed aljones15 closed 3 years ago
https://github.com/digitalbazaar/edv-client/blob/14f4ba7d9cc0ea8622f9822771adfea5dbd1f789/util.js#L3
web-streams-polyfill is a depdenency in minimal-cipher, but not in edv client itself:
web-streams-polyfill
minimal-cipher
https://github.com/digitalbazaar/edv-client/blob/14f4ba7d9cc0ea8622f9822771adfea5dbd1f789/package.json#L26-L74
hence creating a situation where if minimal-cipher were to remove or change that dependency, util.js would fail.
util.js
Solutions:
edv-client
web-streams-poyfill
peerDependency
Since we're using it directly in this library, we should include it as a dependency.
Closing, this was implemented.
https://github.com/digitalbazaar/edv-client/blob/14f4ba7d9cc0ea8622f9822771adfea5dbd1f789/util.js#L3
web-streams-polyfill
is a depdenency inminimal-cipher
, but not in edv client itself:https://github.com/digitalbazaar/edv-client/blob/14f4ba7d9cc0ea8622f9822771adfea5dbd1f789/package.json#L26-L74
hence creating a situation where if
minimal-cipher
were to remove or change that dependency,util.js
would fail.Solutions:
web-streams-polyfill
inedv-client
itselfweb-streams-poyfill
as apeerDependency