Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[_addCssAsset](options = {}) {
if (!options.value) {
const v = this[_compabillity](this.cssRoute);
return this[_sanitize](v, options.prefix);
}
const args = Object.assign({}, options, {pathname: this._pathname});
this.cssRoute.push(new AssetCss(args));
// deprecate
deprecateCssReturn();
return this[_sanitize](args.value, args.prefix);
}
[_addCssAsset](options = {}) {
if (!options.value) {
const v = this[_compabillity](this.cssRoute);
return this[_sanitize](v, options.prefix);
}
const args = Object.assign({}, options, {pathname: this._pathname});
this.cssRoute.push(new AssetCss(args));
// deprecate
return new CssDeprecation(this[_sanitize](args.value, args.prefix));
}