Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions src/runtime/node/internal/crypto/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ export const checkPrimeSync = /*@__PURE__*/ notImplemented<
typeof nodeCrypto.checkPrimeSync
>("crypto.checkPrimeSync");

/** @deprecated */
export const createCipher = /*@__PURE__*/ notImplemented("crypto.createCipher");
/** @deprecated https://nodejs.org/docs/latest/api/deprecations.html#dep0106-cryptocreatecipher-and-cryptocreatedecipher */
export const createCipher = undefined;

/** @deprecated */
export const createDecipher = /*@__PURE__*/ notImplemented(
"crypto.createDecipher",
);
/** @deprecated https://nodejs.org/docs/latest/api/deprecations.html#dep0106-cryptocreatecipher-and-cryptocreatedecipher */
export const createDecipher = undefined;

export const pseudoRandomBytes = /*@__PURE__*/ notImplemented<
typeof nodeCrypto.pseudoRandomBytes
Expand Down Expand Up @@ -268,23 +266,21 @@ export const hash =

// ---- Unimplemented Classes ----

/** @deprecated https://nodejs.org/docs/latest/api/deprecations.html#dep0106-cryptocreatecipher-and-cryptocreatedecipher */
export const Cipher = undefined as unknown as typeof nodeCrypto.Cipher;

/** @deprecated https://nodejs.org/docs/latest/api/deprecations.html#dep0106-cryptocreatecipher-and-cryptocreatedecipher */
export const Decipher = undefined as unknown as typeof nodeCrypto.Decipher;

export const Certificate = /*@__PURE__*/ notImplementedClass(
"crypto.Certificate",
) as unknown as typeof nodeCrypto.Certificate;

export const Cipher = /*@__PURE__*/ notImplementedClass(
"crypto.Cipher",
) as unknown as typeof nodeCrypto.Cipher;

export const Cipheriv = /*@__PURE__*/ notImplementedClass(
"crypto.Cipheriv",
// @ts-expect-error not typed yet
) as unknown as typeof nodeCrypto.Cipheriv;

export const Decipher = /*@__PURE__*/ notImplementedClass(
"crypto.Decipher",
) as unknown as typeof nodeCrypto.Decipher;

export const Decipheriv = /*@__PURE__*/ notImplementedClass(
"crypto.Decipheriv",
// @ts-expect-error not typed yet
Expand Down