@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 CHANGED
@@ -121,4 +121,5 @@ If the body is not valid JSON, is not an object, or has no `signal` / `assign` /
121
121
 
122
122
  ## See also
123
123
 
124
- - [Plugin system](../../../docs/en/reference/plugin-api.md)
124
+ - [Plugin system](../../../docs/en/docs/reference/plugin-api.md)
125
+
package/README_ja.md CHANGED
@@ -121,4 +121,5 @@ JSON のトップレベル `"caption"` キーでも指定できます。この
121
121
 
122
122
  ## 関連資料
123
123
 
124
- - [プラグインシステム](../../../docs/ja/reference/plugin-api.md)
124
+ - [プラグインシステム](../../../docs/ja/docs/reference/plugin-api.md)
125
+
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 = await (skin === "narrow" ? import("wavedrom/skins/narrow") : import("wavedrom/skins/lowkey"));
59
- return mod[skin] ?? mod.default?.[skin] ?? api.waveSkin;
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.14",
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.14"
25
+ "@riebeckite/core": "0.0.15"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"