diff options
author | Guy Bedford <guybedford@gmail.com> | 2020-11-27 10:40:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-27 13:40:11 -0500 |
commit | ff3c5897ea7b8720894d2092c28889994f31c40e (patch) | |
tree | 8695a4858ce382cdd7f160303eae19892d04e811 /std/node/crypto.ts | |
parent | d2b32a65a787c8d3185a8d3ad1212bc82e24a195 (diff) |
fix(std/node): Inline default objects to ensure correct prototype (#8513)
Diffstat (limited to 'std/node/crypto.ts')
-rw-r--r-- | std/node/crypto.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/std/node/crypto.ts b/std/node/crypto.ts index d27cab67d..0db8e2b13 100644 --- a/std/node/crypto.ts +++ b/std/node/crypto.ts @@ -1,4 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -export * from "./_crypto.ts"; -import * as m from "./_crypto.ts"; -export default m; +import { default as randomBytes } from "./_crypto/randomBytes.ts"; +import { pbkdf2, pbkdf2Sync } from "./_crypto/pbkdf2.ts"; + +export default { randomBytes, pbkdf2, pbkdf2Sync }; +export { pbkdf2, pbkdf2Sync, randomBytes }; |