algoliasearch-helper 3.7.1 → 3.7.4
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/CHANGELOG +10 -0
- package/README.md +2 -2
- package/dist/algoliasearch.helper.js +7 -2
- package/dist/algoliasearch.helper.js.map +3 -3
- package/dist/algoliasearch.helper.min.js +2 -2
- package/dist/algoliasearch.helper.min.js.map +1 -1
- package/index.d.ts +18 -3
- package/package.json +1 -1
- package/src/SearchResults/index.js +6 -1
- package/src/version.js +1 -1
package/CHANGELOG
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
3.7.4 - 2022-03-21
|
|
2
|
+
* fix(type): implement correctly https://github.com/algolia/algoliasearch-helper-js/commit/1c8670b21a507024d2ddf797feae5bb15343c244
|
|
3
|
+
|
|
4
|
+
3.7.3 - 2022-03-18
|
|
5
|
+
* fix(ts): remove stray comment https://github.com/algolia/algoliasearch-helper-js/commit/24fe8de4bebc74500b33c95b124500b8499ef588
|
|
6
|
+
|
|
7
|
+
3.7.2 - 2022-03-18
|
|
8
|
+
* chore(docs): fix capitalization of Github and npm https://github.com/algolia/algoliasearch-helper-js/commit/5babbcad0b3d406a0b56f7a55682ff169e2b853f
|
|
9
|
+
* fix(results): implement search result options via an argument https://github.com/algolia/algoliasearch-helper-js/commit/4e6ac6926bd284c7eafe060480fc4258844d121a
|
|
10
|
+
|
|
1
11
|
3.7.1 - 2022-03-17
|
|
2
12
|
* docs(readme): fixed angular.js example link (#885) https://github.com/algolia/algoliasearch-helper-js/commit/c16287e6685040a3786b8d0bac0922cdc583134e, closes https://github.com/algolia/algoliasearch-helper-js/issues/885
|
|
3
13
|
* fix(types): allow "__isArtificial" (#890) https://github.com/algolia/algoliasearch-helper-js/commit/1e2aef0fb8aa88c80b985ef009bff5a3dd71ca80
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ track of the search parameters and provides a higher level API.
|
|
|
36
36
|
- [Helper cheatsheet](#helper-cheatsheet)
|
|
37
37
|
- [Add the helper in your project](#add-the-helper-in-your-project)
|
|
38
38
|
- [Regular `<script>` tag](#regular-script-tag)
|
|
39
|
-
- [With
|
|
39
|
+
- [With npm](#with-npm)
|
|
40
40
|
- [Init the helper](#init-the-helper)
|
|
41
41
|
- [Helper lifecycle](#helper-lifecycle)
|
|
42
42
|
- [Objects](#objects)
|
|
@@ -138,7 +138,7 @@ Use our [jsDelivr](http://www.jsdelivr.com/) build:
|
|
|
138
138
|
|
|
139
139
|
`<script src="https://cdn.jsdelivr.net/algoliasearch.helper/2/algoliasearch.helper.min.js"></script>`
|
|
140
140
|
|
|
141
|
-
### With
|
|
141
|
+
### With npm
|
|
142
142
|
|
|
143
143
|
`npm install algoliasearch-helper`
|
|
144
144
|
|
|
@@ -2504,7 +2504,7 @@ function findMatchingHierarchicalFacetFromAttributeName(
|
|
|
2504
2504
|
}
|
|
2505
2505
|
**/
|
|
2506
2506
|
/*eslint-enable */
|
|
2507
|
-
function SearchResults(state, results) {
|
|
2507
|
+
function SearchResults(state, results, options) {
|
|
2508
2508
|
var mainSubResponse = results[0];
|
|
2509
2509
|
|
|
2510
2510
|
this._rawResults = results;
|
|
@@ -2516,6 +2516,11 @@ function SearchResults(state, results) {
|
|
|
2516
2516
|
self[key] = mainSubResponse[key];
|
|
2517
2517
|
});
|
|
2518
2518
|
|
|
2519
|
+
// Make every key of the result options reachable from the instance
|
|
2520
|
+
Object.keys(options || {}).forEach(function(key) {
|
|
2521
|
+
self[key] = options[key];
|
|
2522
|
+
});
|
|
2523
|
+
|
|
2519
2524
|
/**
|
|
2520
2525
|
* query used to generate the results
|
|
2521
2526
|
* @name query
|
|
@@ -5447,7 +5452,7 @@ module.exports = function isValidUserToken(userToken) {
|
|
|
5447
5452
|
},{}],23:[function(require,module,exports){
|
|
5448
5453
|
'use strict';
|
|
5449
5454
|
|
|
5450
|
-
module.exports = '3.7.
|
|
5455
|
+
module.exports = '3.7.4';
|
|
5451
5456
|
|
|
5452
5457
|
},{}]},{},[1])(1)
|
|
5453
5458
|
});
|