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

addsearch-js-client

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addsearch-js-client - npm Package Compare versions

Comparing version 0.8.4 to 0.8.5

2

package.json
{
"name": "addsearch-js-client",
"version": "0.8.4",
"version": "0.8.5",
"description": "AddSearch API JavaScript client",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -85,4 +85,3 @@ 'use strict';

settingToQueryParam(settings.searchOperator, 'defaultOperator') +
settingToQueryParam(settings.analyticsTag, 'analyticsTag') +
settingToQueryParam(settings.hierarchicalFacetSetting, 'hierarchicalFacets');
settingToQueryParam(settings.analyticsTag, 'analyticsTag');

@@ -117,6 +116,11 @@ // Add sortBy and sortOrder

if (settings.rangeFacets) {
qs = qs + '&rangeFacets=' + JSON.stringify(settings.rangeFacets);
qs = qs + '&rangeFacets=' + encodeURIComponent(JSON.stringify(settings.rangeFacets));
}
// Hierarchical facets
if (settings.hierarchicalFacetSetting) {
qs = qs + '&hierarchicalFacets=' + encodeURIComponent(JSON.stringify(settings.hierarchicalFacetSetting));
}
// Stats fields

@@ -123,0 +127,0 @@ if (settings.statsFields) {

@@ -179,3 +179,3 @@ 'use strict';

this.addHierarchicalFacetSetting = function(setting) {
this.settings.hierarchicalFacetSetting = JSON.stringify(setting);
this.settings.hierarchicalFacetSetting = setting;
}

@@ -182,0 +182,0 @@

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

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