@shotstack/shotstack-canvas 2.0.16 → 2.1.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/entry.web.js CHANGED
@@ -32091,10 +32091,7 @@ var _FontRegistry = class _FontRegistry {
32091
32091
  return;
32092
32092
  }
32093
32093
  try {
32094
- const canvasMod = await import(
32095
- /* @vite-ignore */
32096
- "canvas"
32097
- );
32094
+ const canvasMod = { GlobalFonts: void 0 };
32098
32095
  const GlobalFonts = canvasMod.GlobalFonts;
32099
32096
  if (GlobalFonts && typeof GlobalFonts.register === "function") {
32100
32097
  const buffer = Buffer.from(bytes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/shotstack-canvas",
3
- "version": "2.0.16",
3
+ "version": "2.1.0",
4
4
  "description": "Text layout & animation engine (HarfBuzz) for Node & Web - fully self-contained.",
5
5
  "type": "module",
6
6
  "main": "./dist/entry.node.cjs",