claude-code-kr 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/patches/fragile.js +5 -0
- package/package.json +1 -1
package/lib/patches/fragile.js
CHANGED
|
@@ -105,6 +105,11 @@ const patches = [
|
|
|
105
105
|
[/return`\$\{([\w$]+)\}d`;if\(([\w$]+)>0\)return`\$\{\2\}h`;if\(([\w$]+)>0\)return`\$\{\3\}m`;return`\$\{([\w$]+)\}s`/,
|
|
106
106
|
'return`${$1}일`;if($2>0)return`${$2}시간`;if($3>0)return`${$3}분`;return`${$4}초`'],
|
|
107
107
|
|
|
108
|
+
// formatDuration — 인라인 짧은 버전 (spinner용)
|
|
109
|
+
// function fn(q){if(q<60000)return`${Math.round(q/1000)}s`;let K=...,_=...;return _>0?`${K}m ${_}s`:`${K}m`}
|
|
110
|
+
[/if\((\w+)<60000\)return`\$\{Math\.round\(\1\/1000\)\}s`;let (\w+)=Math\.floor\(\1\/60000\),(\w+)=Math\.round\(\1%60000\/1000\);return \3>0\?`\$\{\2\}m \$\{\3\}s`:`\$\{\2\}m`/,
|
|
111
|
+
'if($1<60000)return`${Math.round($1/1000)}초`;let $2=Math.floor($1/60000),$3=Math.round($1%60000/1000);return $3>0?`${$2}분 ${$3}초`:`${$2}분`'],
|
|
112
|
+
|
|
108
113
|
// formatNumber compact — "1.3k" → "1.3천", "1.3M" → "130만", "1B" → "10억"
|
|
109
114
|
// Intl.NumberFormat의 locale을 ko로 바꿈
|
|
110
115
|
['new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1})',
|