@rokkit/ui 1.3.0 → 1.3.1
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/package.json +5 -5
- package/src/utils/shiki.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Data driven UI components for Rokkit applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"dropdown"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rokkit/core": "1.3.
|
|
49
|
-
"@rokkit/data": "1.3.
|
|
50
|
-
"@rokkit/states": "1.3.
|
|
51
|
-
"@rokkit/actions": "1.3.
|
|
48
|
+
"@rokkit/core": "1.3.1",
|
|
49
|
+
"@rokkit/data": "1.3.1",
|
|
50
|
+
"@rokkit/states": "1.3.1",
|
|
51
|
+
"@rokkit/actions": "1.3.1",
|
|
52
52
|
"marked": "^15.0.0",
|
|
53
53
|
"dompurify": "^3.0.0"
|
|
54
54
|
},
|
package/src/utils/shiki.ts
CHANGED
|
@@ -48,6 +48,7 @@ function initializeHighlighter(): Promise<Highlighter> {
|
|
|
48
48
|
return hl
|
|
49
49
|
})
|
|
50
50
|
.catch((error: Error) => {
|
|
51
|
+
/* v8 ignore next 3 -- createHighlighter failure not reachable in test env (singleton already initialized) */
|
|
51
52
|
isInitializing = false
|
|
52
53
|
initPromise = null
|
|
53
54
|
throw error
|
|
@@ -122,6 +123,7 @@ export async function highlightCode(code: string, options: HighlightOptions = {}
|
|
|
122
123
|
export async function preloadHighlighter(): Promise<void> {
|
|
123
124
|
try {
|
|
124
125
|
await initializeHighlighter()
|
|
126
|
+
/* v8 ignore next 3 -- preload catch body unreachable in tests (singleton already initialized) */
|
|
125
127
|
} catch {
|
|
126
128
|
// Preload failures are non-critical - highlighting will still work on demand
|
|
127
129
|
}
|