instantsearch.js 4.75.6 → 4.75.7
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/cjs/lib/utils/getAppIdAndApiKey.js +4 -1
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.js +6 -3
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/lib/utils/getAppIdAndApiKey.d.ts +1 -1
- package/es/lib/utils/getAppIdAndApiKey.js +4 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAppIdAndApiKey(searchClient: any): [string, string];
|
|
1
|
+
export declare function getAppIdAndApiKey(searchClient: any): [appId: string, apiKey: string] | [appId: undefined, apiKey: undefined];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// typed as any, since it accepts the _real_ js clients, not the interface we otherwise expect
|
|
2
2
|
export function getAppIdAndApiKey(searchClient) {
|
|
3
|
-
if (searchClient.
|
|
3
|
+
if (searchClient.appId && searchClient.apiKey) {
|
|
4
|
+
// searchClient v5
|
|
5
|
+
return [searchClient.appId, searchClient.apiKey];
|
|
6
|
+
} else if (searchClient.transporter) {
|
|
4
7
|
// searchClient v4 or v5
|
|
5
8
|
var transporter = searchClient.transporter;
|
|
6
9
|
var headers = transporter.headers || transporter.baseHeaders;
|
package/es/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.75.
|
|
1
|
+
declare const _default: "4.75.7";
|
|
2
2
|
export default _default;
|
package/es/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '4.75.
|
|
1
|
+
export default '4.75.7';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "instantsearch.js",
|
|
3
|
-
"version": "4.75.
|
|
3
|
+
"version": "4.75.7",
|
|
4
4
|
"description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
|
|
5
5
|
"homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",
|
|
6
6
|
"types": "es/index.d.ts",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"watch:es": "yarn --silent build:es:base --watch"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@instantsearch/mocks": "1.
|
|
60
|
-
"@instantsearch/tests": "1.
|
|
61
|
-
"@instantsearch/testutils": "1.
|
|
59
|
+
"@instantsearch/mocks": "1.65.0",
|
|
60
|
+
"@instantsearch/tests": "1.65.0",
|
|
61
|
+
"@instantsearch/testutils": "1.54.0",
|
|
62
62
|
"@storybook/html": "5.3.9",
|
|
63
63
|
"@types/scriptjs": "0.0.2",
|
|
64
64
|
"algoliasearch": "5.1.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"scriptjs": "2.5.9",
|
|
67
67
|
"webpack": "4.47.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b6ececb942232a4aacb79a7e5c3726a7e9655519"
|
|
70
70
|
}
|