@algolia/client-search 5.12.0 → 5.14.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/README.md +4 -4
- package/dist/browser.d.ts +1 -1
- package/dist/builds/browser.js +4 -3
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +4 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +4 -3
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +4 -3
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/src/searchClient.cjs +4 -3
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +4 -3
- package/dist/src/searchClient.js.map +1 -1
- package/package.json +9 -9
package/dist/fetch.d.ts
CHANGED
|
@@ -3041,7 +3041,7 @@ type ReplaceAllObjectsOptions = {
|
|
|
3041
3041
|
batchSize?: number;
|
|
3042
3042
|
};
|
|
3043
3043
|
|
|
3044
|
-
declare const apiClientVersion = "5.
|
|
3044
|
+
declare const apiClientVersion = "5.14.0";
|
|
3045
3045
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3046
3046
|
transporter: _algolia_client_common.Transporter;
|
|
3047
3047
|
/**
|
package/dist/node.d.cts
CHANGED
|
@@ -3041,7 +3041,7 @@ type ReplaceAllObjectsOptions = {
|
|
|
3041
3041
|
batchSize?: number;
|
|
3042
3042
|
};
|
|
3043
3043
|
|
|
3044
|
-
declare const apiClientVersion = "5.
|
|
3044
|
+
declare const apiClientVersion = "5.14.0";
|
|
3045
3045
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3046
3046
|
transporter: _algolia_client_common.Transporter;
|
|
3047
3047
|
/**
|
package/dist/node.d.ts
CHANGED
|
@@ -3041,7 +3041,7 @@ type ReplaceAllObjectsOptions = {
|
|
|
3041
3041
|
batchSize?: number;
|
|
3042
3042
|
};
|
|
3043
3043
|
|
|
3044
|
-
declare const apiClientVersion = "5.
|
|
3044
|
+
declare const apiClientVersion = "5.14.0";
|
|
3045
3045
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3046
3046
|
transporter: _algolia_client_common.Transporter;
|
|
3047
3047
|
/**
|
|
@@ -25,7 +25,7 @@ __export(searchClient_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(searchClient_exports);
|
|
27
27
|
var import_client_common = require("@algolia/client-common");
|
|
28
|
-
var apiClientVersion = "5.
|
|
28
|
+
var apiClientVersion = "5.14.0";
|
|
29
29
|
function getDefaultHosts(appId) {
|
|
30
30
|
return [
|
|
31
31
|
{
|
|
@@ -261,6 +261,7 @@ function createSearchClient({
|
|
|
261
261
|
indexName,
|
|
262
262
|
browseParams: {
|
|
263
263
|
cursor: previousResponse ? previousResponse.cursor : void 0,
|
|
264
|
+
hitsPerPage: 1e3,
|
|
264
265
|
...browseParams
|
|
265
266
|
}
|
|
266
267
|
},
|
|
@@ -300,7 +301,7 @@ function createSearchClient({
|
|
|
300
301
|
requestOptions
|
|
301
302
|
);
|
|
302
303
|
},
|
|
303
|
-
validate: (response) => response.
|
|
304
|
+
validate: (response) => response.hits.length < params.hitsPerPage,
|
|
304
305
|
...browseRulesOptions
|
|
305
306
|
});
|
|
306
307
|
},
|
|
@@ -340,7 +341,7 @@ function createSearchClient({
|
|
|
340
341
|
params.page += 1;
|
|
341
342
|
return resp;
|
|
342
343
|
},
|
|
343
|
-
validate: (response) => response.
|
|
344
|
+
validate: (response) => response.hits.length < params.hitsPerPage,
|
|
344
345
|
...browseSynonymsOptions
|
|
345
346
|
});
|
|
346
347
|
},
|