@algolia/client-search
Advanced tools
Comparing version 4.7.0 to 4.8.0
@@ -962,3 +962,3 @@ 'use strict'; | ||
...requestOptions, | ||
replaceExistingSynonyms: true, | ||
clearExistingSynonyms: true, | ||
}); | ||
@@ -1029,3 +1029,3 @@ }; | ||
return (synonyms, requestOptions) => { | ||
const { forwardToReplicas, replaceExistingSynonyms, ...options } = requestOptions || {}; | ||
const { forwardToReplicas, clearExistingSynonyms, replaceExistingSynonyms, ...options } = requestOptions || {}; | ||
const mappedRequestOptions = transporter.createMappedRequestOptions(options); | ||
@@ -1035,3 +1035,3 @@ if (forwardToReplicas) { | ||
} | ||
if (replaceExistingSynonyms) { | ||
if (replaceExistingSynonyms || clearExistingSynonyms) { | ||
mappedRequestOptions.queryParameters.replaceExistingSynonyms = 1; // eslint-disable-line functional/immutable-data | ||
@@ -1038,0 +1038,0 @@ } |
@@ -958,3 +958,3 @@ import { createAuth, AuthMode, shuffle, addMethods, createWaitablePromise, createRetryablePromise, encode } from '@algolia/client-common'; | ||
...requestOptions, | ||
replaceExistingSynonyms: true, | ||
clearExistingSynonyms: true, | ||
}); | ||
@@ -1025,3 +1025,3 @@ }; | ||
return (synonyms, requestOptions) => { | ||
const { forwardToReplicas, replaceExistingSynonyms, ...options } = requestOptions || {}; | ||
const { forwardToReplicas, clearExistingSynonyms, replaceExistingSynonyms, ...options } = requestOptions || {}; | ||
const mappedRequestOptions = createMappedRequestOptions(options); | ||
@@ -1031,3 +1031,3 @@ if (forwardToReplicas) { | ||
} | ||
if (replaceExistingSynonyms) { | ||
if (replaceExistingSynonyms || clearExistingSynonyms) { | ||
mappedRequestOptions.queryParameters.replaceExistingSynonyms = 1; // eslint-disable-line functional/immutable-data | ||
@@ -1034,0 +1034,0 @@ } |
{ | ||
"name": "@algolia/client-search", | ||
"version": "4.7.0", | ||
"version": "4.8.0", | ||
"private": false, | ||
@@ -19,6 +19,6 @@ "repository": { | ||
"dependencies": { | ||
"@algolia/client-common": "4.7.0", | ||
"@algolia/requester-common": "4.7.0", | ||
"@algolia/transporter": "4.7.0" | ||
"@algolia/client-common": "4.8.0", | ||
"@algolia/requester-common": "4.8.0", | ||
"@algolia/transporter": "4.8.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
163985
4267
+ Added@algolia/cache-common@4.8.0(transitive)
+ Added@algolia/client-common@4.8.0(transitive)
+ Added@algolia/logger-common@4.8.0(transitive)
+ Added@algolia/requester-common@4.8.0(transitive)
+ Added@algolia/transporter@4.8.0(transitive)
- Removed@algolia/cache-common@4.7.0(transitive)
- Removed@algolia/client-common@4.7.0(transitive)
- Removed@algolia/logger-common@4.7.0(transitive)
- Removed@algolia/requester-common@4.7.0(transitive)
- Removed@algolia/transporter@4.7.0(transitive)
Updated@algolia/client-common@4.8.0
Updated@algolia/transporter@4.8.0