Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import loglevel from 'loglevelnext/dist/loglevelnext';
const { MethodFactory } = loglevel.factories;
const css = {
prefix:
'color: #999; padding: 0 0 0 20px; line-height: 16px; background: url(https://cdn.rawgit.com/storybooks/press/2a20efb6/logo/v3/icon.svg) no-repeat; background-size: 16px 16px; background-position: 0 -2px;',
reset: 'color: #444',
};
const log = loglevel.getLogger({ name: 'sb', id: 'storybook' });
log.level = 'info';
function IconFactory(logger) {
MethodFactory.call(this, logger);
}
IconFactory.prototype = Object.create(MethodFactory.prototype);
IconFactory.prototype.constructor = IconFactory;
IconFactory.prototype.make = function make(methodName) {
const og = MethodFactory.prototype.make.call(this, methodName);
return function _(...params) {
const args = [].concat(params);
const prefix = '%c「sb」 %c';