@riebeckite/plugin-wavedrom 0.0.14 → 0.0.15
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/README.md +2 -1
- package/README_ja.md +2 -1
- package/dist/client.js +2 -2
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
package/README_ja.md
CHANGED
package/dist/client.js
CHANGED
|
@@ -55,8 +55,8 @@ async function loadSkin(name, api) {
|
|
|
55
55
|
const skin = name ?? "default";
|
|
56
56
|
if (!SKINS.includes(skin) || skin === "default") return api.waveSkin;
|
|
57
57
|
try {
|
|
58
|
-
const mod =
|
|
59
|
-
return mod
|
|
58
|
+
const mod = skin === "narrow" ? await import("wavedrom/skins/narrow") : await import("wavedrom/skins/lowkey");
|
|
59
|
+
return mod.default ?? mod;
|
|
60
60
|
} catch {
|
|
61
61
|
return api.waveSkin;
|
|
62
62
|
}
|
package/dist/index.js
CHANGED
|
@@ -207,6 +207,10 @@ function wavedrom(options = {}) {
|
|
|
207
207
|
return definePlugin({
|
|
208
208
|
name: "wavedrom",
|
|
209
209
|
order: -10,
|
|
210
|
+
processedContentCache: {
|
|
211
|
+
version: "wavedrom-v1",
|
|
212
|
+
dependencyMode: "none"
|
|
213
|
+
},
|
|
210
214
|
options,
|
|
211
215
|
validateOptions: validateWavedromOptions,
|
|
212
216
|
extendHtmlPipeline: (pipeline) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-wavedrom",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"wavedrom": "^3.7.0",
|
|
25
|
-
"@riebeckite/core": "0.0.
|
|
25
|
+
"@riebeckite/core": "0.0.15"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|