@algolia/client-common
Advanced tools
Comparing version 5.0.0-alpha.8 to 5.0.0-alpha.9
@@ -533,5 +533,3 @@ 'use strict'; | ||
} : {}; | ||
const queryParameters = { | ||
'x-algolia-agent': algoliaAgent.value, | ||
...baseQueryParameters, | ||
const queryParameters = { ...baseQueryParameters, | ||
...request.queryParameters, | ||
@@ -541,2 +539,6 @@ ...dataQueryParameters | ||
if (algoliaAgent.value) { | ||
queryParameters['x-algolia-agent'] = algoliaAgent.value; | ||
} | ||
if (requestOptions && requestOptions.queryParameters) { | ||
@@ -543,0 +545,0 @@ for (const key of Object.keys(requestOptions.queryParameters)) { |
@@ -529,5 +529,3 @@ function createAuth(appId, apiKey, authMode = 'WithinHeaders') { | ||
} : {}; | ||
const queryParameters = { | ||
'x-algolia-agent': algoliaAgent.value, | ||
...baseQueryParameters, | ||
const queryParameters = { ...baseQueryParameters, | ||
...request.queryParameters, | ||
@@ -537,2 +535,6 @@ ...dataQueryParameters | ||
if (algoliaAgent.value) { | ||
queryParameters['x-algolia-agent'] = algoliaAgent.value; | ||
} | ||
if (requestOptions && requestOptions.queryParameters) { | ||
@@ -539,0 +541,0 @@ for (const key of Object.keys(requestOptions.queryParameters)) { |
{ | ||
"name": "@algolia/client-common", | ||
"version": "5.0.0-alpha.8", | ||
"version": "5.0.0-alpha.9", | ||
"description": "Common package for the Algolia JavaScript API client.", | ||
@@ -5,0 +5,0 @@ "repository": "algolia/algoliasearch-client-javascript", |
@@ -113,3 +113,2 @@ import type { | ||
const queryParameters: QueryParameters = { | ||
'x-algolia-agent': algoliaAgent.value, | ||
...baseQueryParameters, | ||
@@ -120,2 +119,6 @@ ...request.queryParameters, | ||
if (algoliaAgent.value) { | ||
queryParameters['x-algolia-agent'] = algoliaAgent.value; | ||
} | ||
if (requestOptions && requestOptions.queryParameters) { | ||
@@ -122,0 +125,0 @@ for (const key of Object.keys(requestOptions.queryParameters)) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131308
3529