@carto/api-client 0.4.7 → 0.4.8
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 +8 -2
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.modern.js +8 -2
- package/build/api-client.modern.js.map +1 -1
- package/build/sources/base-source.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/query.ts +2 -1
- package/src/sources/base-source.ts +4 -2
|
@@ -1924,7 +1924,6 @@ function excludeURLParameters(baseUrlString, parameters) {
|
|
|
1924
1924
|
const _excluded$1 = ["accessToken", "connectionName", "cache"];
|
|
1925
1925
|
const SOURCE_DEFAULTS = {
|
|
1926
1926
|
apiBaseUrl: DEFAULT_API_BASE_URL,
|
|
1927
|
-
clientId: getClient(),
|
|
1928
1927
|
format: 'tilejson',
|
|
1929
1928
|
headers: {},
|
|
1930
1929
|
maxLengthURL: DEFAULT_MAX_LENGTH_URL
|
|
@@ -1937,6 +1936,7 @@ async function baseSource(endpoint, options, urlParameters) {
|
|
|
1937
1936
|
} = options,
|
|
1938
1937
|
optionalOptions = _objectWithoutPropertiesLoose(options, _excluded$1);
|
|
1939
1938
|
const mergedOptions = _extends({}, SOURCE_DEFAULTS, {
|
|
1939
|
+
clientId: getClient(),
|
|
1940
1940
|
accessToken,
|
|
1941
1941
|
connectionName,
|
|
1942
1942
|
endpoint
|
|
@@ -1981,6 +1981,9 @@ async function baseSource(endpoint, options, urlParameters) {
|
|
|
1981
1981
|
if (format === 'tilejson') {
|
|
1982
1982
|
const json = await requestWithParameters({
|
|
1983
1983
|
baseUrl: dataUrl,
|
|
1984
|
+
parameters: {
|
|
1985
|
+
client: clientId
|
|
1986
|
+
},
|
|
1984
1987
|
headers,
|
|
1985
1988
|
errorContext,
|
|
1986
1989
|
maxLengthURL,
|
|
@@ -1993,6 +1996,9 @@ async function baseSource(endpoint, options, urlParameters) {
|
|
|
1993
1996
|
}
|
|
1994
1997
|
return await requestWithParameters({
|
|
1995
1998
|
baseUrl: dataUrl,
|
|
1999
|
+
parameters: {
|
|
2000
|
+
client: clientId
|
|
2001
|
+
},
|
|
1996
2002
|
headers,
|
|
1997
2003
|
errorContext,
|
|
1998
2004
|
maxLengthURL,
|
|
@@ -3680,8 +3686,8 @@ const vectorTilesetSource = async function vectorTilesetSource(options) {
|
|
|
3680
3686
|
const query = async function query(options) {
|
|
3681
3687
|
const {
|
|
3682
3688
|
apiBaseUrl = SOURCE_DEFAULTS.apiBaseUrl,
|
|
3683
|
-
clientId = SOURCE_DEFAULTS.clientId,
|
|
3684
3689
|
maxLengthURL = SOURCE_DEFAULTS.maxLengthURL,
|
|
3690
|
+
clientId = getClient(),
|
|
3685
3691
|
localCache,
|
|
3686
3692
|
connectionName,
|
|
3687
3693
|
sqlQuery,
|