Skip to content

Commit 92508fa

Browse files
committed
include the entire console api in the production stub
1 parent b1d5f4a commit 92508fa

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/registry/routes/helpers/get-component.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,27 @@ export default function getComponent(conf: Config, repository: Repository) {
491491
(...args: unknown[]) => unknown
492492
>
493493
},
494-
console: conf.local ? console : { log: _.noop },
494+
console: conf.local ? console : {
495+
assert: _.noop,
496+
clear: _.noop,
497+
count: _.noop,
498+
countReset: _.noop,
499+
debug: _.noop,
500+
dir: _.noop,
501+
dirxml: _.noop,
502+
error: _.noop,
503+
group: _.noop,
504+
groupCollapsed: _.noop,
505+
groupEnd: _.noop,
506+
info: _.noop,
507+
log: _.noop,
508+
table: _.noop,
509+
time: _.noop,
510+
timeEnd: _.noop,
511+
timeLog: _.noop,
512+
trace: _.noop,
513+
warn: _.noop,
514+
},
495515
setTimeout,
496516
Buffer
497517
};

0 commit comments

Comments
 (0)