Skip to content
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

Closed
wants to merge 48 commits into from
Closed

[WIP] Introducing OpenPGPjs v5 #100

wants to merge 48 commits into from

Conversation

Cronosh
Copy link
Contributor

@Cronosh Cronosh commented Oct 9, 2020

No description provided.

README.md Outdated Show resolved Hide resolved
lib/key/ecdh.js Outdated Show resolved Hide resolved
lib/key/utils.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
lib/message/decrypt.js Outdated Show resolved Hide resolved
@@ -1,4 +1,14 @@
import { openpgp } from './openpgp';
import { unarmor, stream } from 'openpgp';
Copy link
Member

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)

Comment on lines +8 to +11
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);
Copy link
Member

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';

lib/utils.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
test/key/utils.spec.js Outdated Show resolved Hide resolved
test/helper.js Show resolved Hide resolved
@larabr larabr mentioned this pull request Nov 11, 2021
10 tasks
@larabr
Copy link
Collaborator

larabr commented Dec 3, 2021

Superseeded by #123

@larabr larabr closed this Dec 3, 2021
@larabr larabr deleted the openpgpjs-v5 branch November 6, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants