koishi-plugin-vercel-satori-png-service 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -242,7 +242,7 @@ var loadDynamicAsset = /* @__PURE__ */ __name(({ emoji }) => {
242
242
  }
243
243
  }, "fn");
244
244
  return async (...args) => {
245
- const key = JSON.stringify(args);
245
+ const key = emoji + "-" + JSON.stringify(args);
246
246
  const cache = assetCache.get(key);
247
247
  if (cache) return cache;
248
248
  const asset = await fn(...args);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-vercel-satori-png-service",
3
3
  "description": "Use Vercel Satori and Resvg.js to convert html to png",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "scripts": {