From 2ac66582968f5117c88e6b95623ca5e3087a0d9d Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 31 Jan 2018 17:50:21 -0800 Subject: [PATCH] crypto,doc: fix unassignd deprecation codes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Missed when landing the original PRs PR-URL: https://github.com/nodejs/node/pull/18492 Reviewed-By: Vse Mozhet Byt Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- doc/api/deprecations.md | 8 ++++---- lib/crypto.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 7bc38cf5b48639..1f762f3934b5e1 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -824,15 +824,15 @@ a future version at which point only authentication tag lengths of 128, 120, is not included in this list will be considered invalid in compliance with [NIST SP 800-38D][]. - -### DEP00XX: crypto.DEFAULT_ENCODING + +### DEP0091: crypto.DEFAULT_ENCODING Type: Runtime The [`crypto.DEFAULT_ENCODING`][] property is deprecated. - -### DEP00XX: Top-level `this` bound to `module.exports` + +### DEP0092: Top-level `this` bound to `module.exports` Type: Documentation-only diff --git a/lib/crypto.js b/lib/crypto.js index 5983f1db4f54d2..aa6d4f463d7c7e 100644 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -206,9 +206,9 @@ Object.defineProperties(exports, { enumerable: true, configurable: true, get: deprecate(getDefaultEncoding, - 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP00XX'), + 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP0091'), set: deprecate(setDefaultEncoding, - 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP00XX') + 'crypto.DEFAULT_ENCODING is deprecated.', 'DEP0091') }, constants: { configurable: false,