@shotstack/shotstack-canvas 2.0.12 → 2.0.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.
@@ -1220,10 +1220,9 @@ var FontRegistry = class _FontRegistry {
1220
1220
  return;
1221
1221
  }
1222
1222
  try {
1223
- const moduleName = "canvas";
1224
1223
  const canvasMod = await import(
1225
1224
  /* @vite-ignore */
1226
- moduleName
1225
+ "canvas"
1227
1226
  );
1228
1227
  const GlobalFonts = canvasMod.GlobalFonts;
1229
1228
  if (GlobalFonts && typeof GlobalFonts.register === "function") {
@@ -823,10 +823,9 @@ var FontRegistry = class _FontRegistry {
823
823
  return;
824
824
  }
825
825
  try {
826
- const moduleName = "canvas";
827
826
  const canvasMod = await import(
828
827
  /* @vite-ignore */
829
- moduleName
828
+ "canvas"
830
829
  );
831
830
  const GlobalFonts = canvasMod.GlobalFonts;
832
831
  if (GlobalFonts && typeof GlobalFonts.register === "function") {
package/dist/entry.web.js CHANGED
@@ -32091,11 +32091,7 @@ var _FontRegistry = class _FontRegistry {
32091
32091
  return;
32092
32092
  }
32093
32093
  try {
32094
- const moduleName = "canvas";
32095
- const canvasMod = await import(
32096
- /* @vite-ignore */
32097
- moduleName
32098
- );
32094
+ const canvasMod = { GlobalFonts: void 0 };
32099
32095
  const GlobalFonts = canvasMod.GlobalFonts;
32100
32096
  if (GlobalFonts && typeof GlobalFonts.register === "function") {
32101
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.12",
3
+ "version": "2.0.13",
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",