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

@asymmetrik/elastic-querybuilder

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asymmetrik/elastic-querybuilder - npm Package Compare versions

Comparing version 0.9.4 to 0.9.5

4

__tests__/QueryBuilder.test.js

@@ -59,3 +59,3 @@ const QueryBuilder = require('../src/index');

const query = new QueryBuilder()
.raw('min_score', 2)
.raw('min_score', 0)
.raw('query.boost', 1.2)

@@ -68,3 +68,3 @@ .raw('query.minimum_should_match', 1)

size: 15,
min_score: 2,
min_score: 0,
query: {

@@ -71,0 +71,0 @@ match_all: {},

@@ -111,2 +111,7 @@ const utils = require('../src/utils');

test('should be able to add an existent but falsy value', () => {
const query = {};
utils.applyRawParameter(query, 'min_score', 0);
});
test('should add properties to the object if the path does not yet exist', () => {

@@ -113,0 +118,0 @@ const south_park = {};

{
"name": "@asymmetrik/elastic-querybuilder",
"version": "0.9.4",
"version": "0.9.5",
"description": "A query builder for Elasticsearch.",

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

@@ -28,3 +28,3 @@ const invariant = require('./invariant');

const applyRawParameter = (object, path, value) => {
invariant((object && path && value), ERRORS.APPLY_RAW_PARAMETER);
invariant((object && path !== undefined && value !== undefined), ERRORS.APPLY_RAW_PARAMETER);
const props = path.split('.');

@@ -31,0 +31,0 @@

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