-
Notifications
You must be signed in to change notification settings - Fork 630
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
feat(node/crypto): Stub out missing exports #2263
feat(node/crypto): Stub out missing exports #2263
Conversation
return ( | ||
obj != null && (obj as Record<symbol, unknown>)[kKeyObject] !== undefined | ||
); | ||
} |
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.
This file avoids circular deps issues.
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.
@cmorten Thanks for doing this! Left one comment
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.
LGTM
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.
LGTM. Thanks!
Stub out the remainder of the
crypto
module with the correct interfaces, invokingnotImplemented()
if called.With the inclusion of the browserify directory into
deno_std
I suspect there are some methods which could already be implemented, but to narrow scope here I have opted for usingnotImplemented()
more often than not.I have restructured the
crypto
implementation somewhat to align with the Node directory structure ( see #1707 ) but have left thecrypto_browserify
directory where it was as moving results in a ~250 file change which is probably best done as a chore in a separate PR to make for easier reviewing.This structural PR should hopefully pave the way to make implementing the following easier:
X509Certificate
class from node.js crypto deno#17851X509Certificate
within hash module #981