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

feathers-solr

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-solr - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

16

lib/index.js

@@ -398,2 +398,10 @@ 'use strict';

* Remove Data
* - .remove('*') = {"delete": {"query": "*:*"},"commit": {}}
* - .remove('*:*') = {"delete": {"query": "*:*"},"commit": {}}
* - .remove('987987FGHJSD') = {"delete": "262","commit": {}}
* - .remove(['987987FGHJSD','987987FGHJSD']) = {"delete": ["262"],"commit": {}}
* - .remove(null,{'*':'*'}) = {"delete": {"query": "*:*"},"commit": {}}
* - .remove(null,{id:257}) = {"delete": {"query": "id:257"},"commit": {}}
* - .remove(null,{id:*}) = {"delete": {"query": "id:*"},"commit": {}}
* - .remove(null,{other:*}) = {"delete": {"query": "other:257"},"commit": {}}
* @param {[type]} id [description]

@@ -410,12 +418,6 @@ * @param {[type]} params [description]

var _self = this;
var idQuery = {};
idQuery[_self.options.idfield] = id;
if (typeof id === 'undefined') {
idQuery = null;
}
return new Promise(function (resolve, reject) {
_this6.Solr.delete((0, _utils.queryDelete)(idQuery, params || null)).then(function (res) {
_this6.Solr.delete((0, _utils.queryDelete)(id, params || null)).then(function (res) {
resolve(res);

@@ -422,0 +424,0 @@ }).catch(function (err) {

@@ -179,4 +179,8 @@ 'use strict';

if (id !== null) {
if (id) {
if (id == '*' || id == '*:*') {
return { delete: { query: '*:*' } };
}
return { delete: id };

@@ -194,3 +198,3 @@ } else if (_.isObject(params)) {

return { delete: { query: '*' } };
return { delete: { query: '*:*' } };
}
{
"name": "feathers-solr",
"description": "Solr Adapter for Feathersjs",
"version": "1.1.2",
"version": "1.1.3",
"homepage": "https://github.com/sajov/feathers-solr",

@@ -6,0 +6,0 @@ "main": "lib/",

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