@carto/api-client 0.4.7 → 0.4.8-alpha.0
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/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 +3 -2
- package/src/api/query.ts +2 -1
- package/src/sources/base-source.ts +4 -2
package/build/api-client.cjs
CHANGED
|
@@ -1956,6 +1956,7 @@ const baseSource = function (endpoint, options, urlParameters) {
|
|
|
1956
1956
|
} = options;
|
|
1957
1957
|
const mergedOptions = {
|
|
1958
1958
|
...SOURCE_DEFAULTS,
|
|
1959
|
+
clientId: getClient(),
|
|
1959
1960
|
accessToken,
|
|
1960
1961
|
connectionName,
|
|
1961
1962
|
endpoint
|
|
@@ -1998,6 +1999,9 @@ const baseSource = function (endpoint, options, urlParameters) {
|
|
|
1998
1999
|
function _temp2(_result) {
|
|
1999
2000
|
return _exit ? _result : Promise.resolve(requestWithParameters({
|
|
2000
2001
|
baseUrl: dataUrl,
|
|
2002
|
+
parameters: {
|
|
2003
|
+
client: clientId
|
|
2004
|
+
},
|
|
2001
2005
|
headers,
|
|
2002
2006
|
errorContext,
|
|
2003
2007
|
maxLengthURL,
|
|
@@ -2013,6 +2017,9 @@ const baseSource = function (endpoint, options, urlParameters) {
|
|
|
2013
2017
|
if (format === 'tilejson') {
|
|
2014
2018
|
return Promise.resolve(requestWithParameters({
|
|
2015
2019
|
baseUrl: dataUrl,
|
|
2020
|
+
parameters: {
|
|
2021
|
+
client: clientId
|
|
2022
|
+
},
|
|
2016
2023
|
headers,
|
|
2017
2024
|
errorContext,
|
|
2018
2025
|
maxLengthURL,
|
|
@@ -2034,7 +2041,6 @@ const baseSource = function (endpoint, options, urlParameters) {
|
|
|
2034
2041
|
};
|
|
2035
2042
|
const SOURCE_DEFAULTS = {
|
|
2036
2043
|
apiBaseUrl: DEFAULT_API_BASE_URL,
|
|
2037
|
-
clientId: getClient(),
|
|
2038
2044
|
format: 'tilejson',
|
|
2039
2045
|
headers: {},
|
|
2040
2046
|
maxLengthURL: DEFAULT_MAX_LENGTH_URL
|
|
@@ -3961,8 +3967,8 @@ const query = function (options) {
|
|
|
3961
3967
|
try {
|
|
3962
3968
|
const {
|
|
3963
3969
|
apiBaseUrl = SOURCE_DEFAULTS.apiBaseUrl,
|
|
3964
|
-
clientId = SOURCE_DEFAULTS.clientId,
|
|
3965
3970
|
maxLengthURL = SOURCE_DEFAULTS.maxLengthURL,
|
|
3971
|
+
clientId = getClient(),
|
|
3966
3972
|
localCache,
|
|
3967
3973
|
connectionName,
|
|
3968
3974
|
sqlQuery,
|