-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Introducing OpenPGPjs v5 #100
Conversation
…into openpgpjs-v5
…into openpgpjs-v5
@@ -1,4 +1,14 @@ | |||
import { openpgp } from './openpgp'; | |||
import { unarmor, stream } from 'openpgp'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you import stream
from web-stream-tools (same as openpgp is doing) instead of from openpgp? (And only import the functions you need)
export const isStream = (args) => stream.isStream(args); | ||
export const concatArrays = (args) => stream.concatUint8Array(args); | ||
export const readToEnd = (args) => stream.readToEnd(args); | ||
export const transform = (args) => stream.transform(args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the original code was also doing this, but this can be shortened to
export const isStream = stream.isStream;
or even:
export { isStream, ... } from 'web-stream-tools';
Superseeded by #123 |
No description provided.