crypto: make _toBuf non-enumerable
PR-URL: https://github.com/nodejs/node/pull/22551 Refs: https://github.com/nodejs/node/pull/22501 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
221df2286d
commit
503fd55a35
@ -137,7 +137,6 @@ function createVerify(algorithm, options) {
|
||||
|
||||
module.exports = exports = {
|
||||
// Methods
|
||||
_toBuf: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114'),
|
||||
createCipheriv,
|
||||
createDecipheriv,
|
||||
createDiffieHellman,
|
||||
@ -202,6 +201,10 @@ function getFipsForced() {
|
||||
}
|
||||
|
||||
Object.defineProperties(exports, {
|
||||
_toBuf: {
|
||||
enumerable: false,
|
||||
value: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114')
|
||||
},
|
||||
createCipher: {
|
||||
enumerable: false,
|
||||
value: deprecate(createCipher,
|
||||
|
Loading…
x
Reference in New Issue
Block a user