@carto/api-client 0.5.23 → 0.5.24

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://github.com/CartoDB/carto-api-client#readme",
9
9
  "author": "Don McCurdy <donmccurdy@carto.com>",
10
10
  "packageManager": "yarn@4.3.1",
11
- "version": "0.5.23",
11
+ "version": "0.5.24",
12
12
  "license": "MIT",
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -322,7 +322,10 @@ export async function fetchMap({
322
322
  /* global FontFace, window, document */
323
323
  if (
324
324
  textLayers.length &&
325
+ typeof window !== 'undefined' &&
326
+ typeof document !== 'undefined' &&
325
327
  window.FontFace &&
328
+ document.fonts &&
326
329
  !document.fonts.check('12px Inter')
327
330
  ) {
328
331
  // Fetch font needed for labels