@algolia/transporter
Advanced tools
Comparing version 4.0.0-beta.6 to 4.0.0-beta.7
@@ -190,4 +190,7 @@ 'use strict'; | ||
add(options) { | ||
// eslint-disable-next-line functional/immutable-data | ||
userAgent.value = `${userAgent.value}; ${options.segment}${options.version !== undefined ? ` (${options.version})` : ''}`; | ||
const addedUserAgent = `; ${options.segment}${options.version !== undefined ? ` (${options.version})` : ''}`; | ||
if (userAgent.value.indexOf(addedUserAgent) === -1) { | ||
// eslint-disable-next-line functional/immutable-data | ||
userAgent.value = `${userAgent.value}${addedUserAgent}`; | ||
} | ||
return userAgent; | ||
@@ -194,0 +197,0 @@ }, |
@@ -186,4 +186,7 @@ // If an host is down, it will remain down for 5 mins. | ||
add(options) { | ||
// eslint-disable-next-line functional/immutable-data | ||
userAgent.value = `${userAgent.value}; ${options.segment}${options.version !== undefined ? ` (${options.version})` : ''}`; | ||
const addedUserAgent = `; ${options.segment}${options.version !== undefined ? ` (${options.version})` : ''}`; | ||
if (userAgent.value.indexOf(addedUserAgent) === -1) { | ||
// eslint-disable-next-line functional/immutable-data | ||
userAgent.value = `${userAgent.value}${addedUserAgent}`; | ||
} | ||
return userAgent; | ||
@@ -190,0 +193,0 @@ }, |
{ | ||
"name": "@algolia/transporter", | ||
"version": "4.0.0-beta.6", | ||
"version": "4.0.0-beta.7", | ||
"private": false, | ||
@@ -16,6 +16,6 @@ "description": "Promise-based transporter layer with embedded retry strategy.", | ||
"dependencies": { | ||
"@algolia/cache-common": "4.0.0-beta.6", | ||
"@algolia/logger-common": "4.0.0-beta.6", | ||
"@algolia/requester-common": "4.0.0-beta.6" | ||
"@algolia/cache-common": "4.0.0-beta.7", | ||
"@algolia/logger-common": "4.0.0-beta.7", | ||
"@algolia/requester-common": "4.0.0-beta.7" | ||
} | ||
} |
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
30098
759
+ Added@algolia/cache-common@4.0.0-beta.7(transitive)
+ Added@algolia/logger-common@4.0.0-beta.7(transitive)
+ Added@algolia/requester-common@4.0.0-beta.7(transitive)
- Removed@algolia/cache-common@4.0.0-beta.6(transitive)
- Removed@algolia/logger-common@4.0.0-beta.6(transitive)
- Removed@algolia/requester-common@4.0.0-beta.6(transitive)