🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@carto/api-client

Package Overview
Dependencies
Maintainers
15
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carto/api-client - npm Package Compare versions

Comparing version

to
0.5.2-alpha.2

6

package.json

@@ -11,3 +11,3 @@ {

"packageManager": "yarn@4.3.1",
"version": "0.5.2-alpha.1",
"version": "0.5.2-alpha.2",
"license": "MIT",

@@ -71,3 +71,3 @@ "publishConfig": {

"d3-scale": "^4.0.2",
"h3-js": "4.1.0",
"h3-js": "4.2.1",
"quadbin": "^0.4.1-alpha.0"

@@ -128,3 +128,3 @@ },

"vite": "^6.2.2",
"vitest": "3.1.1"
"vitest": "3.1.2"
},

@@ -131,0 +131,0 @@ "resolutions": {

@@ -36,2 +36,3 @@ import {deviation, extent, groupSort, median, variance} from 'd3-array';

import {DEFAULT_AGGREGATION_EXP_ALIAS} from '../constants-internal.js';
import type {SchemaField} from '../types-internal.js';

@@ -499,7 +500,7 @@ const SCALE_FUNCS: Record<string, () => any> = {

provider: ProviderType,
columns: string[]
schema: SchemaField[]
): string {
if (columns && layerType === 'clusterTile') {
if (schema && layerType === 'clusterTile') {
return getColumnAliasForAggregationExp(
getDefaultColumnFromSchemaForAggregationExp(columns),
getDefaultColumnFromSchemaForAggregationExp(schema),
'count',

@@ -525,5 +526,5 @@ provider

function getDefaultColumnFromSchemaForAggregationExp(
columns: string[]
schema: SchemaField[]
): string {
return columns ? columns[0] : '';
return schema ? schema[0].name : '';
}

@@ -530,0 +531,0 @@

@@ -282,3 +282,3 @@ import type {ColorParameters} from '@luma.gl/core';

dataset.providerId,
dataset.columns
data.schema
);

@@ -285,0 +285,0 @@

@@ -58,3 +58,3 @@ // deck.gl

};
const mapInstantiation =
const {tilejson, schema} =
await requestWithParameters<TilejsonMapInstantiation>({

@@ -69,3 +69,3 @@ baseUrl,

const dataUrl = mapInstantiation.tilejson.url[0];
const dataUrl = tilejson.url[0];
if (cache) {

@@ -90,3 +90,6 @@ cache.value = parseInt(

}
if (schema) {
json.schema = schema;
}
return json;
}

@@ -417,3 +417,7 @@ // deck.gl

export type TilejsonResult = Tilejson & {accessToken: string};
export type TilejsonResult = Tilejson & {
accessToken: string;
schema: SchemaField[];
};
export type QueryResult = {

@@ -420,0 +424,0 @@ meta: {cacheHit: boolean; location: string; totalBytesProcessed: string};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet