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

@e2y/solr-client

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e2y/solr-client - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

lib/SolrClient.js

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

const solrQuery = urlSearchParamsToEncodeSolrSearchParams(new url_1.URLSearchParams(query));
const url = new URL(`${this.baseUrl}/${uri}?q=${solrQuery}`);
const url = new URL(`${this.baseUrl}/${uri}?${solrQuery}`);
const queryResponse = yield fetch(url, {

@@ -74,8 +74,8 @@ headers: this.headers,

function urlSearchParamsToEncodeSolrSearchParams(urlSearchParams) {
let solrSearchParams = '';
urlSearchParams.forEach((value, key) => {
solrSearchParams += `${key}:${value}&`;
});
return encodeURIComponent(solrSearchParams.slice(0, -1));
const query = [];
for (const [key, value] of urlSearchParams.entries()) {
query.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
}
return query.join('&');
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU29sckNsaWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9Tb2xyQ2xpZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBLDZCQUFzQztBQUl0Qzs7R0FFRztBQUNILE1BQWEsVUFBVTtJQUdyQjs7Ozs7T0FLRztJQUNILFlBQTZCLE9BQWUsRUFBbUIsSUFBNEM7UUFBOUUsWUFBTyxHQUFQLE9BQU8sQ0FBUTtRQUFtQixTQUFJLEdBQUosSUFBSSxDQUF3QztRQUN6RyxJQUFJLENBQUMsT0FBTyxHQUFHO1lBQ2IsTUFBTSxFQUFFLGtCQUFrQjtZQUMxQixhQUFhLEVBQUUsSUFBSSxDQUFDLHFCQUFxQixFQUF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DQUFDIn0=
{
"name": "@e2y/solr-client",
"version": "1.0.2",
"version": "1.0.3",
"description": "Solr client for SAP Commerce using native fetch from NodeJS.",

@@ -10,3 +10,3 @@ "author": "e2y",

"engines": {
"node": ">= 18"
"node": ">=18"
},

@@ -17,2 +17,6 @@ "contributors": [

"email": "jesus.fernandez@e2ycommerce.com"
},
{
"name": "Max Di Maria",
"email": "max.dimaria@e2ycommerce.com"
}

@@ -43,3 +47,3 @@ ],

},
"gitHead": "9e06cc2f26031b6d13d5e9feb40377063540d7bd"
"gitHead": "407ce9e9c3fd806edb4d3bc06f5640f5f77a2cf1"
}
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