@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/CHANGELOG.md +4 -0
- package/build/api-client.cjs +1 -1
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.js +1 -1
- package/build/api-client.js.map +1 -1
- package/package.json +1 -1
- package/src/fetch-map/fetch-map.ts +3 -0
package/build/api-client.js
CHANGED
|
@@ -11035,7 +11035,7 @@ async function fetchMap({
|
|
|
11035
11035
|
const pointType = layer.props?.pointType || "";
|
|
11036
11036
|
return pointType.includes("text");
|
|
11037
11037
|
});
|
|
11038
|
-
if (textLayers.length && window.FontFace && !document.fonts.check("12px Inter")) {
|
|
11038
|
+
if (textLayers.length && typeof window !== "undefined" && typeof document !== "undefined" && window.FontFace && document.fonts && !document.fonts.check("12px Inter")) {
|
|
11039
11039
|
const font = new FontFace(
|
|
11040
11040
|
"Inter",
|
|
11041
11041
|
"url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2)"
|