nuxt-og-image 2.0.0-beta.11 → 2.0.0-beta.13
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/module.json
CHANGED
|
@@ -4,7 +4,8 @@ export default async function(svg, options) {
|
|
|
4
4
|
const loader = wasmLoader("/* NUXT_OG_IMAGE_SVG2PNG_WASM */", "/svg2png.wasm", options.baseUrl);
|
|
5
5
|
if (!await loader.loaded()) {
|
|
6
6
|
await initialize(await loader.load()).catch((e) => {
|
|
7
|
-
|
|
7
|
+
if (!e.message.trim().endsWith("function can be used only once."))
|
|
8
|
+
throw e;
|
|
8
9
|
});
|
|
9
10
|
}
|
|
10
11
|
return await svg2png(svg, options);
|