@remotion/google-fonts 3.3.82 → 3.3.83

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/cjs/base.cjs CHANGED
@@ -57,7 +57,8 @@ const loadFonts = (meta, style, options) => {
57
57
  fontFace
58
58
  .load()
59
59
  .then(() => {
60
- document.fonts.add(fontFace);
60
+ var _a;
61
+ ((_a = options === null || options === void 0 ? void 0 : options.document) !== null && _a !== void 0 ? _a : document).fonts.add(fontFace);
61
62
  remotion.continueRender(handle);
62
63
  })
63
64
  .catch((err) => {
package/dist/esm/base.mjs CHANGED
@@ -55,7 +55,8 @@ const loadFonts = (meta, style, options) => {
55
55
  fontFace
56
56
  .load()
57
57
  .then(() => {
58
- document.fonts.add(fontFace);
58
+ var _a;
59
+ ((_a = options === null || options === void 0 ? void 0 : options.document) !== null && _a !== void 0 ? _a : document).fonts.add(fontFace);
59
60
  continueRender(handle);
60
61
  })
61
62
  .catch((err) => {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@remotion/google-fonts",
3
- "version": "3.3.82",
3
+ "version": "3.3.83",
4
4
  "description": "Load Google Fonts in Remotion",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.mjs",
7
7
  "license": "SEE LICENSE IN LICENSE.md",
8
8
  "dependencies": {
9
- "remotion": "3.3.82"
9
+ "remotion": "3.3.83"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@rollup/plugin-typescript": "^8.2.0",