@tinkatinka/static-map 3.1.4 → 3.1.7
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.d.ts +1 -1
- package/dist/compactmap.d.ts +0 -5
- package/dist/compactmap.js +0 -5
- package/package.json +3 -2
package/dist/base64img.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function mimeFromURL(url: string): "
|
|
1
|
+
export declare function mimeFromURL(url: string): "application/octet-stream" | "image/jpeg" | "image/png" | "image/svg+xml";
|
|
2
2
|
export declare function base64img(url: string, userAgent: string, timeout?: number): Promise<string>;
|
package/dist/compactmap.d.ts
CHANGED
package/dist/compactmap.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
const isDefined = (value) => (value !== undefined && value !== null);
|
|
2
2
|
export const compactMap = (array, func) => array.map(func).filter(isDefined);
|
|
3
|
-
if (!Array.prototype.compactMap) {
|
|
4
|
-
Array.prototype.compactMap = function (func) {
|
|
5
|
-
return compactMap(this, func);
|
|
6
|
-
};
|
|
7
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkatinka/static-map",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "Render static map images",
|
|
5
5
|
"author": "Florian Gmeiner <florian@tinkatinka.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,9 +41,10 @@
|
|
|
41
41
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
42
42
|
"@types/lodash-es": "^4.17.12",
|
|
43
43
|
"@types/node": "^26.0.1",
|
|
44
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
44
45
|
"eslint": "^10.0.2",
|
|
45
46
|
"type-fest": "^5.8.0",
|
|
46
|
-
"typescript": "
|
|
47
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
47
48
|
"typescript-eslint": "^8.2.0"
|
|
48
49
|
},
|
|
49
50
|
"allowScripts": {
|