You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewTypeError('Please provide all return functions while initiating the parser')
242
248
}
249
+
for(varkeyinoptions){
250
+
if(typeofoptions[key]!==optionTypes[key]){
251
+
thrownewTypeError('The options argument contains unkown properties or properties of a wrong type')
252
+
}
253
+
}
243
254
if(options.name==='hiredis'){
244
255
/* istanbul ignore next: hiredis is only supported for legacy usage */
245
256
try{
246
257
varHiredis=require('../test/hiredis')
247
-
console.error(newTypeError('Using the hiredis parser is discouraged. Please remove the name option.').stack.replace('Error','Warning'))
258
+
console.error(newTypeError('Using hiredis is discouraged. Please use the faster JS parser by removing the name option.').stack.replace('Error','Warning'))
248
259
returnnewHiredis(options)
249
260
}catch(e){
250
261
console.error(newTypeError('Hiredis is not installed. Please remove the `name` option. The (faster) JS parser is used instead.').stack.replace('Error','Warning'))
0 commit comments