mini-shiki 4.0.0 → 4.0.2
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/dist/shiki.js +5 -5
- package/package.json +5 -5
package/dist/shiki.js
CHANGED
|
@@ -708,13 +708,13 @@ function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
|
|
|
708
708
|
/**
|
|
709
709
|
* Get tokens with multiple themes
|
|
710
710
|
*/
|
|
711
|
-
function codeToTokensWithThemes(primitive, code, options) {
|
|
711
|
+
function codeToTokensWithThemes(primitive, code, options, codeToTokensBaseFn = codeToTokensBase) {
|
|
712
712
|
const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
|
|
713
713
|
color: i[0],
|
|
714
714
|
theme: i[1]
|
|
715
715
|
}));
|
|
716
716
|
const themedTokens = themes.map((t) => {
|
|
717
|
-
const tokens$1 =
|
|
717
|
+
const tokens$1 = codeToTokensBaseFn(primitive, code, {
|
|
718
718
|
...options,
|
|
719
719
|
theme: t.theme
|
|
720
720
|
});
|
|
@@ -790,7 +790,7 @@ function alignThemesTokenization(...themes) {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
//#endregion
|
|
793
|
-
//#region node_modules/shiki/dist/langs-bundle-full-
|
|
793
|
+
//#region node_modules/shiki/dist/langs-bundle-full-DfKZStlK.mjs
|
|
794
794
|
const bundledLanguagesInfo = [
|
|
795
795
|
{
|
|
796
796
|
"id": "abap",
|
|
@@ -1514,7 +1514,7 @@ const bundledLanguagesInfo = [
|
|
|
1514
1514
|
},
|
|
1515
1515
|
{
|
|
1516
1516
|
"id": "nextflow-groovy",
|
|
1517
|
-
"name": "
|
|
1517
|
+
"name": "Nextflow Groovy",
|
|
1518
1518
|
"import": () => import("@shikijs/langs/nextflow-groovy")
|
|
1519
1519
|
},
|
|
1520
1520
|
{
|
|
@@ -2246,7 +2246,7 @@ const bundledThemesInfo = [
|
|
|
2246
2246
|
{
|
|
2247
2247
|
"id": "horizon-bright",
|
|
2248
2248
|
"displayName": "Horizon Bright",
|
|
2249
|
-
"type": "
|
|
2249
|
+
"type": "light",
|
|
2250
2250
|
"import": () => import("@shikijs/themes/horizon-bright")
|
|
2251
2251
|
},
|
|
2252
2252
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mini-shiki",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "git+https://github.com/un-ts/mini-shiki.git",
|
|
6
6
|
"homepage": "https://github.com/un-ts/mini-shiki#readme",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"static"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@shikijs/engine-oniguruma": "^4.0.
|
|
25
|
-
"@shikijs/langs": "^4.0.
|
|
26
|
-
"@shikijs/themes": "^4.0.
|
|
27
|
-
"@shikijs/types": "^4.0.
|
|
24
|
+
"@shikijs/engine-oniguruma": "^4.0.2",
|
|
25
|
+
"@shikijs/langs": "^4.0.2",
|
|
26
|
+
"@shikijs/themes": "^4.0.2",
|
|
27
|
+
"@shikijs/types": "^4.0.2",
|
|
28
28
|
"@shikijs/vscode-textmate": "^10.0.2"
|
|
29
29
|
}
|
|
30
30
|
}
|