From 8b7f5531ee1ccde897e87890e9aabc554fedb9dd Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 9 Nov 2020 06:25:13 -0800 Subject: feat(std/node): consistent Node.js builtin shapes (#8274) --- std/node/_crypto/pbkdf2.ts | 2 +- std/node/_crypto/randomBytes.ts | 2 +- std/node/_crypto/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'std/node/_crypto') diff --git a/std/node/_crypto/pbkdf2.ts b/std/node/_crypto/pbkdf2.ts index 15b5eec3a..80aacdaf2 100644 --- a/std/node/_crypto/pbkdf2.ts +++ b/std/node/_crypto/pbkdf2.ts @@ -1,5 +1,5 @@ import { createHash } from "../../hash/mod.ts"; -import Buffer from "../buffer.ts"; +import { Buffer } from "../buffer.ts"; import { MAX_ALLOC } from "./constants.ts"; import { HASH_DATA } from "./types.ts"; diff --git a/std/node/_crypto/randomBytes.ts b/std/node/_crypto/randomBytes.ts index 7b8276151..28c7e454e 100644 --- a/std/node/_crypto/randomBytes.ts +++ b/std/node/_crypto/randomBytes.ts @@ -1,4 +1,4 @@ -import Buffer from "../buffer.ts"; +import { Buffer } from "../buffer.ts"; export const MAX_RANDOM_VALUES = 65536; export const MAX_SIZE = 4294967295; diff --git a/std/node/_crypto/types.ts b/std/node/_crypto/types.ts index 093fccadc..e56d8416c 100644 --- a/std/node/_crypto/types.ts +++ b/std/node/_crypto/types.ts @@ -1,3 +1,3 @@ -import Buffer from "../buffer.ts"; +import { Buffer } from "../buffer.ts"; export type HASH_DATA = string | ArrayBufferView | Buffer; -- cgit v1.2.3