Commit dab6352 1 parent 2239924 commit dab6352 Copy full SHA for dab6352
File tree 5 files changed +7
-4
lines changed
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
2
2
commit : ' chore: bump to v%.%.%'
3
3
files :
4
4
README.md : Cell v%.%.%
Original file line number Diff line number Diff line change 1
1
<img src =" https://kt3k.github.io/cell/cell-logo.svg " width =" 70 " alt =" cell " />
2
2
3
- # Cell v0.1.6
3
+ # Cell v0.1.7
4
4
5
5
> Event-driven DOM programming in a new style
6
6
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kt3k/cell" ,
3
- "version" : " 0.1.6 " ,
3
+ "version" : " 0.1.7 " ,
4
4
"exports" : {
5
5
"." : " ./mod.ts"
6
6
},
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 */
2
2
import { documentReady , logEvent } from "./util.ts" ;
3
3
4
4
interface Initializer {
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const boldColor = (color: string): string =>
33
33
const defaultEventColor = "#f012be" ;
34
34
35
35
declare const __DEV__ : boolean ;
36
+ declare const DEBUG_IGNORE : undefined | Set < string > ;
36
37
37
38
export function logEvent ( {
38
39
component,
@@ -43,6 +44,8 @@ export function logEvent({
43
44
if ( typeof __DEV__ === "boolean" && ! __DEV__ ) return ;
44
45
const event = e . type ;
45
46
47
+ if ( typeof DEBUG_IGNORE === "object" && DEBUG_IGNORE ?. has ( event ) ) return ;
48
+
46
49
console . groupCollapsed (
47
50
`${ module } > %c${ event } %c on %c${ component } ` ,
48
51
boldColor ( color || defaultEventColor ) ,
You can’t perform that action at this time.
0 commit comments