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

elastic-particles

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-particles - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

14

lib/filters/boolFilter.js

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

BoolFilter.prototype.mustEqualTerm = function filterMustEqual(field, value) {
BoolFilter.prototype.mustEqualTerm = function filterMustEqual(field, value, doNotNest) {
if (value === undefined || value === null) return this;
if (!this.bool.must) this.bool.must = [];
this.bool.must.push(new TermFilter(field, value));
this.bool.must.push(new TermFilter(field, value, doNotNest));

@@ -27,7 +27,7 @@ return this;

BoolFilter.prototype.mustNotEqualTerm = function filterMustNotEqual(field, value) {
BoolFilter.prototype.mustNotEqualTerm = function filterMustNotEqual(field, value, doNotNest) {
if (value === undefined || value === null) return this;
if (!this.bool.must_not) this.bool.must_not = [];
this.bool.must_not.push(new TermFilter(field, value));
this.bool.must_not.push(new TermFilter(field, value, doNotNest));

@@ -55,7 +55,7 @@ return this;

BoolFilter.prototype.shouldEqual = function shouldEqual(field, value) {
BoolFilter.prototype.shouldEqual = function shouldEqual(field, value, doNotNest) {
if (value === undefined || value === null) return this;
if (!this.bool.should) this.bool.should = [];
this.bool.should.push(new TermFilter(field, value));
this.bool.should.push(new TermFilter(field, value, doNotNest));

@@ -72,2 +72,2 @@ return this;

return this;
};
};
{
"name": "elastic-particles",
"version": "2.2.5",
"version": "2.2.6",
"description": "Building blocks for Elastic queries, filters, and aggregations which can be re-used, combed, and nested.",

@@ -5,0 +5,0 @@ "author": {

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