crypto: use buffer from node:buffer

This commit is contained in:
Abdullah Atta
2023-08-13 13:08:54 +05:00
committed by Abdullah Atta
parent 6561791530
commit 1190da7c91
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ import {
crypto_secretstream_xchacha20poly1305_STATEBYTES,
crypto_secretstream_xchacha20poly1305_TAGBYTES
} from "sodium-native";
import { Buffer } from "buffer";
import { Buffer } from "node:buffer";
export type Uint8ArrayOutputFormat = "uint8array";
export type StringOutputFormat = "text" | "hex" | "base64";