New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flora-solr

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flora-solr - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

18

index.js

@@ -117,7 +117,7 @@ 'use strict';

function convertFilterToSolrSyntax(filter) {
let value = filter.value;
const operator = filter.operator;
const { operator } = filter;
let { value } = filter;
if (SUPPORTED_FILTERS.indexOf(filter.operator) === -1) {
throw new ImplementationError(`DataSource "flora-solr" does not support "${filter.operator}" filters`);
throw new ImplementationError(`DataSource "flora-solr" does not support "${operator}" filters`);
}

@@ -188,4 +188,12 @@

/**
* @param {Array} urls
* @return {string}
*/
function getUrl(urls) {
return urls.length > 1 ? urls[Math.floor(Math.random() * urls.length)] : urls[0];
}
/**
*
* @param {Object} requestUrl
* @param {string} requestUrl
* @param {Object} params

@@ -261,3 +269,3 @@ * @param {Object} requestOptions

const requestUrl = this.options.servers[server].url + request.collection + '/select';
const requestUrl = getUrl(serverOpts[server].urls) + request.collection + '/select';

@@ -264,0 +272,0 @@ if (request.attributes) params.fl = request.attributes.join(',');

{
"name": "flora-solr",
"version": "0.8.0",
"version": "0.8.1",
"description": "Solr connection for Flora",

@@ -35,25 +35,29 @@ "main": "index.js",

"dependencies": {
"flora-errors": "^0.7.0",
"flora-errors": "^0.8.0",
"lodash": "^4.0.0"
},
"devDependencies": {
"chai": "^3.4.1",
"eslint": "^3.11.1",
"eslint-config-airbnb-base": "^11.0.0",
"@types/chai": "^4.1.6",
"@types/mocha": "^5.2.5",
"@types/nock": "^9.3.0",
"@types/sinon-chai": "^3.2.0",
"chai": "^4.2.0",
"eslint": "^5.7.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.2.0",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-eslint": "^19.0.0",
"grunt-contrib-clean": "^2.0.0",
"grunt-eslint": "^21.0.0",
"grunt-mocha-istanbul": "^5.0.1",
"grunt-mocha-test": "^0.13.2",
"istanbul": "^0.4.2",
"load-grunt-tasks": "^3.4.0",
"mocha": "^3.0.0",
"load-grunt-tasks": "^4.0.0",
"mocha": "^5.2.0",
"mocha-bamboo-reporter": "^1.1.0",
"nock": "^9.0.14",
"sinon": "^2.2.0",
"sinon-chai": "^2.10.0",
"sinon-test": "^1.0.2"
"nock": "^10.0.1",
"sinon": "^7.1.0",
"sinon-chai": "^3.2.0",
"sinon-test": "^2.4.0"
}
}

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