@@ -63,8 +63,6 @@ const {
63
63
64
64
const { isArrayBufferView } = require ( 'internal/util/types' ) ;
65
65
66
- const { getOptionValue } = require ( 'internal/options' ) ;
67
-
68
66
function isJwk ( obj ) {
69
67
return obj != null && obj . kty !== undefined ;
70
68
}
@@ -204,16 +202,14 @@ function createJob(mode, type, options) {
204
202
hash, mgf1Hash, hashAlgorithm, mgf1HashAlgorithm, saltLength
205
203
} = options ;
206
204
207
- const pendingDeprecation = getOptionValue ( '--pending-deprecation' ) ;
208
-
209
205
if ( saltLength !== undefined )
210
206
validateInt32 ( saltLength , 'options.saltLength' , 0 ) ;
211
207
if ( hashAlgorithm !== undefined )
212
208
validateString ( hashAlgorithm , 'options.hashAlgorithm' ) ;
213
209
if ( mgf1HashAlgorithm !== undefined )
214
210
validateString ( mgf1HashAlgorithm , 'options.mgf1HashAlgorithm' ) ;
215
211
if ( hash !== undefined ) {
216
- pendingDeprecation && process . emitWarning (
212
+ process . emitWarning (
217
213
'"options.hash" is deprecated, ' +
218
214
'use "options.hashAlgorithm" instead.' ,
219
215
'DeprecationWarning' ,
@@ -224,7 +220,7 @@ function createJob(mode, type, options) {
224
220
}
225
221
}
226
222
if ( mgf1Hash !== undefined ) {
227
- pendingDeprecation && process . emitWarning (
223
+ process . emitWarning (
228
224
'"options.mgf1Hash" is deprecated, ' +
229
225
'use "options.mgf1HashAlgorithm" instead.' ,
230
226
'DeprecationWarning' ,
0 commit comments