@carto/api-client 0.2.2 → 0.3.1
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 +7 -1
- package/build/api-client.cjs +24 -1897
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.modern.js +25 -1895
- package/build/api-client.modern.js.map +1 -1
- package/package.json +10 -10
- package/src/global.d.ts +4 -3
- package/src/sources/widget-base-source.ts +3 -2
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"repository": "github:CartoDB/carto-api-client",
|
|
5
5
|
"author": "Don McCurdy <donmccurdy@carto.com>",
|
|
6
6
|
"packageManager": "yarn@4.3.1",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.3.1",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public",
|
|
@@ -51,9 +51,17 @@
|
|
|
51
51
|
"README.md",
|
|
52
52
|
"LICENSE.md"
|
|
53
53
|
],
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@deck.gl/carto": "^9.0.30",
|
|
56
|
+
"@turf/bbox-clip": "^7.1.0",
|
|
57
|
+
"@turf/bbox-polygon": "^7.1.0",
|
|
58
|
+
"@turf/helpers": "^7.1.0",
|
|
59
|
+
"@turf/invariant": "^7.1.0",
|
|
60
|
+
"@turf/union": "^7.1.0",
|
|
61
|
+
"@types/geojson": "^7946.0.14"
|
|
62
|
+
},
|
|
54
63
|
"devDependencies": {
|
|
55
64
|
"@deck.gl/aggregation-layers": "^9.0.30",
|
|
56
|
-
"@deck.gl/carto": "^9.0.30",
|
|
57
65
|
"@deck.gl/core": "^9.0.30",
|
|
58
66
|
"@deck.gl/extensions": "^9.0.30",
|
|
59
67
|
"@deck.gl/geo-layers": "^9.0.30",
|
|
@@ -90,13 +98,5 @@
|
|
|
90
98
|
"vite": "^5.2.10",
|
|
91
99
|
"vitest": "1.6.0",
|
|
92
100
|
"vue": "^3.4.27"
|
|
93
|
-
},
|
|
94
|
-
"dependencies": {
|
|
95
|
-
"@turf/bbox-clip": "^7.1.0",
|
|
96
|
-
"@turf/bbox-polygon": "^7.1.0",
|
|
97
|
-
"@turf/helpers": "^7.1.0",
|
|
98
|
-
"@turf/invariant": "^7.1.0",
|
|
99
|
-
"@turf/union": "^7.1.0",
|
|
100
|
-
"@types/geojson": "^7946.0.14"
|
|
101
101
|
}
|
|
102
102
|
}
|
package/src/global.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Injected by microbundle
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Injected by microbundle, with:
|
|
3
|
+
* ```
|
|
4
|
+
* --define __CARTO_API_CLIENT_VERSION=$npm_package_version
|
|
5
|
+
* ```
|
|
5
6
|
*/
|
|
6
7
|
declare const __CARTO_API_CLIENT_VERSION: string;
|
|
@@ -258,8 +258,9 @@ export abstract class WidgetBaseSource<Props extends WidgetBaseSourceProps> {
|
|
|
258
258
|
},
|
|
259
259
|
opts: {abortController},
|
|
260
260
|
}).then((res: TableModelResponse) => ({
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
// Avoid `normalizeObjectKeys()`, which changes column names.
|
|
262
|
+
rows: res.rows ?? (res as any).ROWS,
|
|
263
|
+
totalCount: res.metadata?.total ?? (res as any).METADATA?.TOTAL,
|
|
263
264
|
}));
|
|
264
265
|
}
|
|
265
266
|
|