@algolia/client-common 5.0.0-alpha.103 → 5.0.0-alpha.104
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/dist/client-common.cjs
CHANGED
|
@@ -387,7 +387,7 @@ function shuffle(array) {
|
|
|
387
387
|
}
|
|
388
388
|
function serializeUrl(host, path, queryParameters) {
|
|
389
389
|
const queryParametersAsString = serializeQueryParameters(queryParameters);
|
|
390
|
-
let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${path.charAt(0) === '/' ? path.
|
|
390
|
+
let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${path.charAt(0) === '/' ? path.substring(1) : path}`;
|
|
391
391
|
if (queryParametersAsString.length) {
|
|
392
392
|
url += `?${queryParametersAsString}`;
|
|
393
393
|
}
|
|
@@ -385,7 +385,7 @@ function shuffle(array) {
|
|
|
385
385
|
}
|
|
386
386
|
function serializeUrl(host, path, queryParameters) {
|
|
387
387
|
const queryParametersAsString = serializeQueryParameters(queryParameters);
|
|
388
|
-
let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${path.charAt(0) === '/' ? path.
|
|
388
|
+
let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${path.charAt(0) === '/' ? path.substring(1) : path}`;
|
|
389
389
|
if (queryParametersAsString.length) {
|
|
390
390
|
url += `?${queryParametersAsString}`;
|
|
391
391
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-common",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.104",
|
|
4
4
|
"description": "Common package for the Algolia JavaScript API client.",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@babel/preset-env": "7.23.9",
|
|
24
24
|
"@babel/preset-typescript": "7.23.3",
|
|
25
25
|
"@types/jest": "29.5.12",
|
|
26
|
-
"@types/node": "20.11.
|
|
26
|
+
"@types/node": "20.11.20",
|
|
27
27
|
"jest": "29.7.0",
|
|
28
28
|
"jest-environment-jsdom": "29.7.0",
|
|
29
29
|
"ts-jest": "29.1.2",
|
|
@@ -31,7 +31,7 @@ export function serializeUrl(
|
|
|
31
31
|
): string {
|
|
32
32
|
const queryParametersAsString = serializeQueryParameters(queryParameters);
|
|
33
33
|
let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${
|
|
34
|
-
path.charAt(0) === '/' ? path.
|
|
34
|
+
path.charAt(0) === '/' ? path.substring(1) : path
|
|
35
35
|
}`;
|
|
36
36
|
|
|
37
37
|
if (queryParametersAsString.length) {
|