From c82570258b844c9de103d81634e4afd7f342a1a6 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Mon, 24 Oct 2022 10:09:18 +0000 Subject: [PATCH] v3.18.0 feat: add disable log option `log`/`logger`. (#183) 56d078d3a56aa4c249eae9d1a420d6330b604ccc --- badges.svg | 8 +- coverage-summary.json | 6 +- example/index.html | 8 +- example/svgtofont.css | 12 +- example/svgtofont.eot | Bin 8192 -> 8192 bytes example/svgtofont.less | 12 +- example/svgtofont.module.less | 12 +- example/svgtofont.scss | 12 +- example/svgtofont.styl | 12 +- example/svgtofont.ttf | Bin 2292 -> 2292 bytes example/svgtofont.woff | Bin 1568 -> 1568 bytes example/svgtofont.woff2 | Bin 1176 -> 1144 bytes index.html | 8 +- lcov-report/cli.ts.html | 2 +- lcov-report/generate.ts.html | 2 +- lcov-report/index.html | 54 +++--- lcov-report/index.ts.html | 28 ++- lcov-report/log.ts.html | 29 ++- lcov-report/utils.ts.html | 2 +- lcov.info | 331 +++++++++++++++++--------------- templates/index.html | 8 +- templates/svgtofont.css | 12 +- templates/svgtofont.eot | Bin 8192 -> 8192 bytes templates/svgtofont.less | 12 +- templates/svgtofont.module.less | 12 +- templates/svgtofont.scss | 12 +- templates/svgtofont.styl | 12 +- templates/svgtofont.ttf | Bin 2068 -> 2068 bytes templates/svgtofont.woff | Bin 1404 -> 1404 bytes templates/svgtofont.woff2 | Bin 988 -> 1000 bytes 30 files changed, 322 insertions(+), 284 deletions(-) diff --git a/badges.svg b/badges.svg index bdd84a45..1c03e1a8 100644 --- a/badges.svg +++ b/badges.svg @@ -1,5 +1,5 @@ - - coverage: 86.91% + + coverage: 86.27% @@ -13,8 +13,8 @@ \ No newline at end of file diff --git a/coverage-summary.json b/coverage-summary.json index 025a2812..d0e6d7ab 100644 --- a/coverage-summary.json +++ b/coverage-summary.json @@ -1,7 +1,7 @@ -{"total": {"lines":{"total":280,"covered":248,"skipped":0,"pct":88.57},"statements":{"total":298,"covered":259,"skipped":0,"pct":86.91},"functions":{"total":67,"covered":60,"skipped":0,"pct":89.55},"branches":{"total":181,"covered":121,"skipped":0,"pct":66.85},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}} +{"total": {"lines":{"total":285,"covered":252,"skipped":0,"pct":88.42},"statements":{"total":306,"covered":264,"skipped":0,"pct":86.27},"functions":{"total":68,"covered":61,"skipped":0,"pct":89.7},"branches":{"total":189,"covered":124,"skipped":0,"pct":65.6},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}} ,"/home/runner/work/svgtofont/svgtofont/src/cli.ts": {"lines":{"total":11,"covered":0,"skipped":0,"pct":0},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":11,"covered":0,"skipped":0,"pct":0},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}} ,"/home/runner/work/svgtofont/svgtofont/src/generate.ts": {"lines":{"total":36,"covered":35,"skipped":0,"pct":97.22},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":41,"covered":40,"skipped":0,"pct":97.56},"branches":{"total":27,"covered":17,"skipped":0,"pct":62.96}} -,"/home/runner/work/svgtofont/svgtofont/src/index.ts": {"lines":{"total":98,"covered":94,"skipped":0,"pct":95.91},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":103,"covered":98,"skipped":0,"pct":95.14},"branches":{"total":87,"covered":71,"skipped":0,"pct":81.6}} -,"/home/runner/work/svgtofont/svgtofont/src/log.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":7,"covered":4,"skipped":0,"pct":57.14},"statements":{"total":12,"covered":8,"skipped":0,"pct":66.66},"branches":{"total":6,"covered":3,"skipped":0,"pct":50}} +,"/home/runner/work/svgtofont/svgtofont/src/index.ts": {"lines":{"total":100,"covered":96,"skipped":0,"pct":96},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":106,"covered":100,"skipped":0,"pct":94.33},"branches":{"total":91,"covered":73,"skipped":0,"pct":80.21}} +,"/home/runner/work/svgtofont/svgtofont/src/log.ts": {"lines":{"total":13,"covered":10,"skipped":0,"pct":76.92},"functions":{"total":8,"covered":5,"skipped":0,"pct":62.5},"statements":{"total":17,"covered":11,"skipped":0,"pct":64.7},"branches":{"total":10,"covered":4,"skipped":0,"pct":40}} ,"/home/runner/work/svgtofont/svgtofont/src/utils.ts": {"lines":{"total":125,"covered":111,"skipped":0,"pct":88.8},"functions":{"total":43,"covered":41,"skipped":0,"pct":95.34},"statements":{"total":131,"covered":113,"skipped":0,"pct":86.25},"branches":{"total":55,"covered":30,"skipped":0,"pct":54.54}} } diff --git a/example/index.html b/example/index.html index 30a69ee0..9db03044 100644 --- a/example/index.html +++ b/example/index.html @@ -74,12 +74,12 @@ /* IE9*/ src: url("svgtofont.eot#iefix") format("embedded-opentype"), /* IE6-IE8 */ - url("svgtofont.woff2?1666605679954") format("woff2"), - url("svgtofont.woff?1666605679954") format("woff"), + url("svgtofont.woff2?1666606152330") format("woff2"), + url("svgtofont.woff?1666606152330") format("woff"), /* chrome, firefox */ - url("svgtofont.ttf?1666605679954") format("truetype"), + url("svgtofont.ttf?1666606152330") format("truetype"), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url("svgtofont.svg#svgtofont?1666605679954") format("svg"); + url("svgtofont.svg#svgtofont?1666606152330") format("svg"); /* iOS 4.1- */ } .iconfont { diff --git a/example/svgtofont.css b/example/svgtofont.css index 53bba3b4..18d3b52d 100644 --- a/example/svgtofont.css +++ b/example/svgtofont.css @@ -1,11 +1,11 @@ @font-face { font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.eot b/example/svgtofont.eot index 79565f8918dea2d561ec558cb5bb1fcdf7b57f58..10a6409e4426523da7f314d181164bad8c6a32af 100644 GIT binary patch delta 2575 zcma)8Z%kWN6u-B9ef{%bEl{9rL#ky^p&&3e>R{3_oYm|@vjo|~ABzkeOJEgd1fqFW z6Xk;+2z9y-PDz|dqD~e}#%AJ(QG;fQ9ba7hvX_`8WKJbcld4&b%g=le95~c$N4$esy+3mBWk^}mPs`` zul`RHoudaJPv1$^oQQF;b=>4V0M>u4?nk}Q>dkzq&yAy2mK#@D3Cl`z8w>6weJkj_ zb8LDKbL5v6vf{u>J>eF>N0kHHnBAQ{!R_wEeiPT30|dVAKPu31`nXZ!X(j_F@RyAf zS$u^%OLJIu`~cxusDJl*CAaT%hqFV@^ghDvfPb;;TO0b>{rx#L-9q>_;D7SG{|Nuw zro^0;uDHOn0e^YsP|CqwXRS&|i3N9)0pP4;`4cB=aNXhB30w!$-r#CYugH)bQ2>;9 z?xdQ!$h``BPTkAfsYF2o5nZkU)fD&|aAISMnM8#t9^on}#@PW1;SkA3b<7V^cO*L? zaW_E>{eT-5i<8|#KaEDWIqFPS5wnjAXcUGiULNV%-4cKobfK3YK6=?-a3As`N3KP* zX4jjRfZ3W*&`TtjBiA}yNsAUSk0}NQ>Tnr6BVC)zyyI&v6%JUGdXRZUZ;}mTbHYNO zb5XOR0Jnkti4+mNgguKC6%~-ZS_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CNqR-@|&MA z^Ox`0vNx%g>2@j5Rm-s-Q5ZQRQ zkj+x2B$1q!Nh6ubT#-yUA~|UsqRvwzOib*)1yz=NO=V zRn{*BXx*Y`$tFv@ulQwU5e^sYtbXx5u~+oQ>cA?vIa0y4RtMU}-6i{!2CC48;eaL8 zSK{UeM*7FP*C9VNb1kB^sHaUKqcj<7>lJ#Mxz?`6Oj@K?>has{>Jn#Axv(gY8CQAV zyRQlrI94Y`DW_bqgoySm1_Em@N)dWm; zBj-_VS4rA;3sI0?$pp8?-CbI64 zHx<_3(KExw-wC`jx{+M)p8B#hd!pkxf2@z+E>g2`PKhLxf&IkYA4-Xjii6ONHh=i@ z-7qO)@(&RkVe(WWTT0`7A`mvrK*8gfJRA&vFD_#0^T-zY EU)R-1W&i*H diff --git a/example/svgtofont.less b/example/svgtofont.less index 8f74baed..b69fab95 100644 --- a/example/svgtofont.less +++ b/example/svgtofont.less @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.module.less b/example/svgtofont.module.less index 2d8a072c..38091382 100644 --- a/example/svgtofont.module.less +++ b/example/svgtofont.module.less @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.scss b/example/svgtofont.scss index ce261ebc..c890f92c 100644 --- a/example/svgtofont.scss +++ b/example/svgtofont.scss @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.styl b/example/svgtofont.styl index 8f74baed..b69fab95 100644 --- a/example/svgtofont.styl +++ b/example/svgtofont.styl @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.ttf b/example/svgtofont.ttf index ebe0b0866d9befd626f69f5e49b771ee3fc7be23..b0fda2b2a4db5d707014e806e0cb54f3b12154f7 100644 GIT binary patch delta 45 ucmew&_(gC+5K~_4#E_}dKmPBE=ePOFz|H)E0SNBbh@61Yn^_n?umb>~h!C;> delta 45 tcmew&_(gC+5L4Fbi6K*^f3nNP^V@u7;AVco00j4IgxLO diff --git a/example/svgtofont.woff b/example/svgtofont.wo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C67OOSCX&cl3Yl;V0z66N?~5l2 z@;%@#6gjqB>7x*T;2Xe5_}{=ed2zr4Ryk*sl^yJUkg!v903G~<7sIRA7QwVbJ;2#h zuR#EZ{K`_5tBzKEnV#*~^W_+%T%b#pp51iG7jxv8ja0!O!DgrG8ZwsxwOE}5W>(*q z=M;zng{6@L>UVCdzVBD^%F-`@=BDB!bI@G@7NCLLFQ$}#mfL!dVB^nC<1Fbz1O_}HumEBP`-WY@z$1`& zM3~zcp|KDIf32+$1FFKI;UPi6A-4(+hBmGIhJeiuCB7O1f|DQNm_Y~kW` zaB$lK=<_juZ8FzBR~9zzBd(O_= zxl5N1-ab8|1cCUVHS28571Xbe!pnMaC_0J2W23 zBAV>T9=EuyjEnXb4>xmBbmn3l=HB%TX~x2RQJ&L(xXG$?Va?m8Zymd>Nqth*13emL zOH_(!6j>;y$eIO>?mex6c?+d4&xBtpO{32%5f!3?A03_6 z4*O8R%W>nqa&UTZmEfwyGC}RT+b?JGJC_m!vQ+6S!zo!K&m1;kU{t-KcM{qN9!Vh1^)r~L& zfI-BfEL_r1Ha_y89C9f-+a+8(f{5`Ugc+!z6hTZzX~HZ73}Q3NBFa&eO_36(7C)?Z9ZAMe$4)K"log": false, -

log

Type: Boolean

A value of false disables logging

+

logger

+
+

Type: (msg) => void

+
+

log callback function

dist

Type: String
Default value: dist => fonts

diff --git a/lcov-report/cli.ts.html b/lcov-report/cli.ts.html index 195945fd..60ad0bac 100644 --- a/lcov-report/cli.ts.html +++ b/lcov-report/cli.ts.html @@ -241,7 +241,7 @@

All files cli.ts