@@ -13,11 +13,6 @@ export interface InboundFiltersOptions {
13
13
denyUrls : Array < string | RegExp > ;
14
14
ignoreErrors : Array < string | RegExp > ;
15
15
ignoreInternal : boolean ;
16
-
17
- /** @deprecated use {@link InboundFiltersOptions.allowUrls} instead. */
18
- whitelistUrls : Array < string | RegExp > ;
19
- /** @deprecated use {@link InboundFiltersOptions.denyUrls} instead. */
20
- blacklistUrls : Array < string | RegExp > ;
21
16
}
22
17
23
18
/** Inbound filters configurable by the user */
@@ -60,22 +55,8 @@ export function _mergeOptions(
60
55
clientOptions : Partial < InboundFiltersOptions > = { } ,
61
56
) : Partial < InboundFiltersOptions > {
62
57
return {
63
- allowUrls : [
64
- // eslint-disable-next-line deprecation/deprecation
65
- ...( internalOptions . whitelistUrls || [ ] ) ,
66
- ...( internalOptions . allowUrls || [ ] ) ,
67
- // eslint-disable-next-line deprecation/deprecation
68
- ...( clientOptions . whitelistUrls || [ ] ) ,
69
- ...( clientOptions . allowUrls || [ ] ) ,
70
- ] ,
71
- denyUrls : [
72
- // eslint-disable-next-line deprecation/deprecation
73
- ...( internalOptions . blacklistUrls || [ ] ) ,
74
- ...( internalOptions . denyUrls || [ ] ) ,
75
- // eslint-disable-next-line deprecation/deprecation
76
- ...( clientOptions . blacklistUrls || [ ] ) ,
77
- ...( clientOptions . denyUrls || [ ] ) ,
78
- ] ,
58
+ allowUrls : [ ...( internalOptions . allowUrls || [ ] ) , ...( clientOptions . allowUrls || [ ] ) ] ,
59
+ denyUrls : [ ...( internalOptions . denyUrls || [ ] ) , ...( clientOptions . denyUrls || [ ] ) ] ,
79
60
ignoreErrors : [
80
61
...( internalOptions . ignoreErrors || [ ] ) ,
81
62
...( clientOptions . ignoreErrors || [ ] ) ,
0 commit comments