File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed
Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- version : 0.1.6
1+ version : 0.1.7
22commit : ' chore: bump to v%.%.%'
33files :
44 README.md : Cell v%.%.%
Original file line number Diff line number Diff line change 11<img src =" https://kt3k.github.io/cell/cell-logo.svg " width =" 70 " alt =" cell " />
22
3- # Cell v0.1.6
3+ # Cell v0.1.7
44
55> Event-driven DOM programming in a new style
66
Original file line number Diff line number Diff line change 11{
22 "name" : " @kt3k/cell" ,
3- "version" : " 0.1.6 " ,
3+ "version" : " 0.1.7 " ,
44 "exports" : {
55 "." : " ./mod.ts"
66 },
Original file line number Diff line number Diff line change 1- /*! Cell v0.1.6 | Copyright 2024 Yoshiya Hinosawa and Capsule contributors | MIT license */
1+ /*! Cell v0.1.7 | Copyright 2024 Yoshiya Hinosawa and Capsule contributors | MIT license */
22import { documentReady , logEvent } from "./util.ts" ;
33
44interface Initializer {
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const boldColor = (color: string): string =>
3333const defaultEventColor = "#f012be" ;
3434
3535declare const __DEV__ : boolean ;
36+ declare const DEBUG_IGNORE : undefined | Set < string > ;
3637
3738export function logEvent ( {
3839 component,
@@ -43,6 +44,8 @@ export function logEvent({
4344 if ( typeof __DEV__ === "boolean" && ! __DEV__ ) return ;
4445 const event = e . type ;
4546
47+ if ( typeof DEBUG_IGNORE === "object" && DEBUG_IGNORE ?. has ( event ) ) return ;
48+
4649 console . groupCollapsed (
4750 `${ module } > %c${ event } %c on %c${ component } ` ,
4851 boldColor ( color || defaultEventColor ) ,
You can’t perform that action at this time.
0 commit comments