mini-shiki 3.18.0 → 3.19.0
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 -1
- package/package.json +5 -5
package/dist/shiki.js
CHANGED
|
@@ -857,7 +857,11 @@ var Registry$1 = class extends Registry {
|
|
|
857
857
|
const langsGraphArray = Array.from(this._langGraph.entries());
|
|
858
858
|
const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
|
|
859
859
|
if (missingLangs.length) {
|
|
860
|
-
const dependents = langsGraphArray.filter(([_, lang]) =>
|
|
860
|
+
const dependents = langsGraphArray.filter(([_, lang]) => {
|
|
861
|
+
if (!lang) return false;
|
|
862
|
+
const embedded = lang.embeddedLanguages || lang.embeddedLangs;
|
|
863
|
+
return embedded?.some((l) => missingLangs.map(([name]) => name).includes(l));
|
|
864
|
+
}).filter((lang) => !missingLangs.includes(lang));
|
|
861
865
|
throw new ShikiError$1(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
|
|
862
866
|
}
|
|
863
867
|
for (const [_, lang] of langsGraphArray) this._resolver.addLanguage(lang);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mini-shiki",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
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": "^3.
|
|
25
|
-
"@shikijs/langs": "^3.
|
|
26
|
-
"@shikijs/themes": "^3.
|
|
27
|
-
"@shikijs/types": "^3.
|
|
24
|
+
"@shikijs/engine-oniguruma": "^3.19.0",
|
|
25
|
+
"@shikijs/langs": "^3.19.0",
|
|
26
|
+
"@shikijs/themes": "^3.19.0",
|
|
27
|
+
"@shikijs/types": "^3.19.0",
|
|
28
28
|
"@shikijs/vscode-textmate": "^10.0.2"
|
|
29
29
|
}
|
|
30
30
|
}
|