Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-instantsearch-hooks

Package Overview
Dependencies
Maintainers
5
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-instantsearch-hooks - npm Package Compare versions

Comparing version 6.21.0 to 6.21.1

10

dist/cjs/hooks/useConnector.js

@@ -89,5 +89,13 @@ "use strict";

if (widget.getWidgetRenderState) {
var _widget$getWidgetSear;
// The helper exists because we've started InstantSearch.
var helper = parentIndex.getHelper();
var results = parentIndex.getResults() || (0, _createSearchResults.createSearchResults)(helper.state);
var results = // On SSR, we get the results injected on the Index.
parentIndex.getResults() || // On the browser, we create fallback results based on the widget's
// `getWidgetSearchParameters()` method to inject the initial UI state,
// or fall back to the helper state.
(0, _createSearchResults.createSearchResults)(((_widget$getWidgetSear = widget.getWidgetSearchParameters) === null || _widget$getWidgetSear === void 0 ? void 0 : _widget$getWidgetSear.call(widget, helper.state, {
uiState: parentIndex.getWidgetUiState({})[parentIndex.getIndexId()]
})) || helper.state);
var scopedResults = parentIndex.getScopedResults().map(function (scopedResult) {

@@ -94,0 +102,0 @@ var fallbackResults = scopedResult.indexId === parentIndex.getIndexId() ? results : (0, _createSearchResults.createSearchResults)(scopedResult.helper.state);

2

dist/cjs/version.js

@@ -7,3 +7,3 @@ "use strict";

exports.default = void 0;
var _default = '6.21.0';
var _default = '6.21.1';
exports.default = _default;

@@ -71,5 +71,13 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

if (widget.getWidgetRenderState) {
var _widget$getWidgetSear;
// The helper exists because we've started InstantSearch.
var helper = parentIndex.getHelper();
var results = parentIndex.getResults() || createSearchResults(helper.state);
var results = // On SSR, we get the results injected on the Index.
parentIndex.getResults() || // On the browser, we create fallback results based on the widget's
// `getWidgetSearchParameters()` method to inject the initial UI state,
// or fall back to the helper state.
createSearchResults(((_widget$getWidgetSear = widget.getWidgetSearchParameters) === null || _widget$getWidgetSear === void 0 ? void 0 : _widget$getWidgetSear.call(widget, helper.state, {
uiState: parentIndex.getWidgetUiState({})[parentIndex.getIndexId()]
})) || helper.state);
var scopedResults = parentIndex.getScopedResults().map(function (scopedResult) {

@@ -76,0 +84,0 @@ var fallbackResults = scopedResult.indexId === parentIndex.getIndexId() ? results : createSearchResults(scopedResult.helper.state);

@@ -1,2 +0,2 @@

declare const _default: "6.21.0";
declare const _default: "6.21.1";
export default _default;

@@ -1,1 +0,1 @@

export default '6.21.0';
export default '6.21.1';
{
"name": "react-instantsearch-hooks",
"version": "6.21.0",
"version": "6.21.1",
"description": "⚡ Lightning-fast search for React, by Algolia",

@@ -5,0 +5,0 @@ "source": "src/index.ts",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc