🚀 Socket Launch Week 🚀 Day 3: Socket Acquires Coana.Learn More

instantsearch.js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instantsearch.js - npm Package Compare versions

Comparing version

to
4.50.2

@@ -137,6 +137,13 @@ "use strict";

helper = _ref5.helper,
state = _ref5.state,
parent = _ref5.parent,
existingState = _ref5.state,
instantSearchInstance = _ref5.instantSearchInstance;
var isFirstPage;
var currentPageHits = [];
/**
* We bail out of optimistic UI here, as the cache is based on search
* parameters, and we don't want to invalidate the cache when the search
* is loading.
*/
var state = parent.getPreviousState() || existingState;
var cachedHits = cache.read({

@@ -143,0 +150,0 @@ state: state

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

exports.default = void 0;
var _default = '4.50.1';
var _default = '4.50.2';
exports.default = _default;

@@ -136,2 +136,5 @@ "use strict";

},
getPreviousState: function getPreviousState() {
return lastValidSearchParameters;
},
getScopedResults: function getScopedResults() {

@@ -138,0 +141,0 @@ var widgetParent = this.getParent();

@@ -131,6 +131,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

helper = _ref5.helper,
state = _ref5.state,
parent = _ref5.parent,
existingState = _ref5.state,
instantSearchInstance = _ref5.instantSearchInstance;
var isFirstPage;
var currentPageHits = [];
/**
* We bail out of optimistic UI here, as the cache is based on search
* parameters, and we don't want to invalidate the cache when the search
* is loading.
*/
var state = parent.getPreviousState() || existingState;
var cachedHits = cache.read({

@@ -137,0 +144,0 @@ state: state

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

declare const _default: "4.50.1";
declare const _default: "4.50.2";
export default _default;

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

export default '4.50.1';
export default '4.50.2';

@@ -26,2 +26,3 @@ import type { AlgoliaSearchHelper as Helper, SearchParameters, SearchResults } from 'algoliasearch-helper';

getResults(): SearchResults | null;
getPreviousState(): SearchParameters | null;
getScopedResults(): ScopedResult[];

@@ -28,0 +29,0 @@ getParent(): IndexWidget | null;

@@ -129,2 +129,5 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

},
getPreviousState: function getPreviousState() {
return lastValidSearchParameters;
},
getScopedResults: function getScopedResults() {

@@ -131,0 +134,0 @@ var widgetParent = this.getParent();

{
"name": "instantsearch.js",
"version": "4.50.1",
"version": "4.50.2",
"description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",

@@ -58,5 +58,5 @@ "homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",

"devDependencies": {
"@instantsearch/mocks": "1.2.0",
"@instantsearch/tests": "1.2.0",
"@instantsearch/testutils": "1.0.5",
"@instantsearch/mocks": "1.3.0",
"@instantsearch/tests": "1.3.0",
"@instantsearch/testutils": "1.0.6",
"@storybook/html": "5.3.9",

@@ -69,3 +69,3 @@ "@types/scriptjs": "0.0.2",

},
"gitHead": "9c696ab3244d701c05d314bb765f086a50ff481b"
"gitHead": "929c1d782d17a0d743f8a16d8d7e2231534658e7"
}

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

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 too big to display

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

Sorry, the diff of this file is not supported yet