@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/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.
|
|
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
|