@tinkatinka/static-map 3.0.4 → 3.0.6

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/base64img.js CHANGED
@@ -26,7 +26,7 @@ export async function base64img(url, userAgent = 'StaticMap/3', timeout = 0) {
26
26
  },
27
27
  signal: controller.signal
28
28
  });
29
- if (response.status !== 200) {
29
+ if (!response.ok) {
30
30
  throw new Error(`Server status ${response.status} for request '${url}'`);
31
31
  }
32
32
  const buf = await response.arrayBuffer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkatinka/static-map",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Render static map images",
5
5
  "author": "Florian Gmeiner <florian@tinkatinka.com>",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "@types/node": "^25.5.0",
44
44
  "eslint": "^10.0.2",
45
45
  "type-fest": "^5.0.1",
46
- "typescript": "^5.9.3",
46
+ "typescript": "^6.0.2",
47
47
  "typescript-eslint": "^8.2.0"
48
48
  }
49
49
  }