Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_prepareRequestFilterRules (rules) {
if (rules)
return castArray(rules);
return [RequestFilterRule.ANY];
}
public constructor (init: string | ClientScriptInit, basePath: string) {
this.init = init || null;
this.url = generateUniqueId(URL_UNIQUE_PART_LENGTH);
this.content = '';
this.path = null;
this.module = null;
this.hash = null;
this.page = RequestFilterRule.ANY;
this.basePath = basePath;
}