Socket
Socket
Sign inDemoInstall

elastic-builder

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-builder - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

lib/queries/span-queries/span-field-masking-query.js

2

lib/core/util.js

@@ -30,3 +30,3 @@ 'use strict';

if (isNil(instance)) {
console.warn('Was expecting instance of ' + (typeof type === 'undefined' ? 'undefined' : (0, _typeof3.default)(type)) + ' but got ' + instance + '!');
console.warn('Was expecting instance of ' + type.name + ' but got ' + instance + '!');
} else console.warn(inspect(instance) + ' is of the type ' + (typeof instance === 'undefined' ? 'undefined' : (0, _typeof3.default)(instance)));

@@ -33,0 +33,0 @@

@@ -39,3 +39,2 @@ 'use strict';

*
* @borrows Query.boost
* @extends Query

@@ -42,0 +41,0 @@ */

@@ -91,3 +91,3 @@ 'use strict';

console.log('Please refer ' + ES_REF_URL);
throw new Error('`validationMethod` is not supported in GeoShapeQuery');
throw new Error('validationMethod is not supported in GeoShapeQuery');
}

@@ -94,0 +94,0 @@

'use strict';
exports.GeoQueryBase = require('./geo-query-base');
exports.GeoShapeQuery = require('./geo-shape-query');

@@ -4,0 +6,0 @@ exports.GeoBoundingBoxQuery = require('./geo-bounding-box-query');

@@ -64,4 +64,5 @@ 'use strict';

value: function scoreMode() {
console.log('`script_mode` is deprecated. Use `score` instead');
console.log('Please refer ' + ES_REF_URL);
throw new Error('`script_mode` is deprecated. Use `score` instead');
throw new Error('scoreMode is not supported in HasParentQuery');
}

@@ -68,0 +69,0 @@

'use strict';
exports.JoiningQueryBase = require('./joining-query-base');
exports.NestedQuery = require('./nested-query');

@@ -4,0 +6,0 @@ exports.HasChildQuery = require('./has-child-query');

@@ -132,3 +132,3 @@ 'use strict';

value: function innerHits(_innerHits) {
checkType(InnerHits);
checkType(_innerHits, InnerHits);

@@ -135,0 +135,0 @@ this._queryOpts.inner_hits = _innerHits;

@@ -42,3 +42,3 @@ 'use strict';

* @param {string=} type The **child** type. This must be a type with `_parent` field.
* @param {string|number=} id The required parent id select documents must referr to.
* @param {string|number=} id The required parent id select documents must refer to.
*/

@@ -73,3 +73,3 @@ function ParentIdQuery(type, id) {

*
* @param {string|number} id The required parent id select documents must referr to.
* @param {string|number} id The required parent id select documents must refer to.
* @returns {ParentIdQuery} returns `this` so that calls can be chained.

@@ -76,0 +76,0 @@ */

'use strict';
exports.SpanLittleBigQueryBase = require('./span-little-big-query-base');
exports.SpanTermQuery = require('./span-term-query');

@@ -11,2 +13,2 @@ exports.SpanMultiTermQuery = require('./span-multi-term-query');

exports.SpanWithinQuery = require('./span-within-query');
exports.SpanFieldMaskingQuery = require('./span-field-masing-query');
exports.SpanFieldMaskingQuery = require('./span-field-masking-query');

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

var SpanLittleBigQueryBase = require('./span-little-big-base');
var SpanLittleBigQueryBase = require('./span-little-big-query-base');

@@ -20,0 +20,0 @@ /**

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

var SpanLittleBigQueryBase = require('./span-little-big-base');
var SpanLittleBigQueryBase = require('./span-little-big-query-base');

@@ -20,0 +20,0 @@ /**

@@ -234,3 +234,2 @@ 'use strict';

// recursiveToJSON doesn't seem to be required here.
return (0, _defineProperty3.default)({}, this.queryType, Object.assign({}, this._queryOpts, (0, _defineProperty3.default)({}, this._field, this._isTermsLookup ? this._termsLookupOpts : this._values)));

@@ -237,0 +236,0 @@ }

{
"name": "elastic-builder",
"version": "0.1.9",
"version": "0.1.10",
"description": "A JavaScript implementation of the elasticsearch Query DSL",

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

@@ -78,3 +78,3 @@ [![Build Status](https://travis-ci.org/sudo-suhas/elastic-builder.svg?branch=master)](https://travis-ci.org/sudo-suhas/elastic-builder)

API documentation was generated using [documentation.js](https://github.com/documentationjs/documentation)
API documentation was generated using [documentation.js](https://github.com/documentationjs/documentation).
It is being hosted with help from this awesome project - https://github.com/js-org/dns.js.org

@@ -282,4 +282,2 @@

**Aggregations are tested with 100% coverage now!**
For running whatever tests _have_ been added:

@@ -286,0 +284,0 @@ ```

@@ -23,3 +23,3 @@ 'use strict';

if (isNil(instance)) {
console.warn(`Was expecting instance of ${typeof type} but got ${instance}!`);
console.warn(`Was expecting instance of ${type.name} but got ${instance}!`);
} else console.warn(`${inspect(instance)} is of the type ${typeof instance}`);

@@ -26,0 +26,0 @@

@@ -17,3 +17,2 @@ 'use strict';

*
* @borrows Query.boost
* @extends Query

@@ -20,0 +19,0 @@ */

@@ -65,3 +65,3 @@ 'use strict';

console.log(`Please refer ${ES_REF_URL}`);
throw new Error('`validationMethod` is not supported in GeoShapeQuery');
throw new Error('validationMethod is not supported in GeoShapeQuery');
}

@@ -68,0 +68,0 @@

'use strict';
exports.GeoQueryBase = require('./geo-query-base');
exports.GeoShapeQuery = require('./geo-shape-query');

@@ -4,0 +6,0 @@ exports.GeoBoundingBoxQuery = require('./geo-bounding-box-query');

@@ -37,4 +37,5 @@ 'use strict';

scoreMode() {
console.log('`script_mode` is deprecated. Use `score` instead');
console.log(`Please refer ${ES_REF_URL}`);
throw new Error('`script_mode` is deprecated. Use `score` instead');
throw new Error('scoreMode is not supported in HasParentQuery');
}

@@ -41,0 +42,0 @@

'use strict';
exports.JoiningQueryBase = require('./joining-query-base');
exports.NestedQuery = require('./nested-query');

@@ -4,0 +6,0 @@ exports.HasChildQuery = require('./has-child-query');

@@ -93,3 +93,3 @@ 'use strict';

innerHits(innerHits) {
checkType(InnerHits);
checkType(innerHits, InnerHits);

@@ -96,0 +96,0 @@ this._queryOpts.inner_hits = innerHits;

@@ -19,3 +19,3 @@ 'use strict';

* @param {string=} type The **child** type. This must be a type with `_parent` field.
* @param {string|number=} id The required parent id select documents must referr to.
* @param {string|number=} id The required parent id select documents must refer to.
*/

@@ -43,3 +43,3 @@ constructor(type, id) {

*
* @param {string|number} id The required parent id select documents must referr to.
* @param {string|number} id The required parent id select documents must refer to.
* @returns {ParentIdQuery} returns `this` so that calls can be chained.

@@ -46,0 +46,0 @@ */

'use strict';
exports.SpanLittleBigQueryBase = require('./span-little-big-query-base');
exports.SpanTermQuery = require('./span-term-query');

@@ -11,2 +13,2 @@ exports.SpanMultiTermQuery = require('./span-multi-term-query');

exports.SpanWithinQuery = require('./span-within-query');
exports.SpanFieldMaskingQuery = require('./span-field-masing-query');
exports.SpanFieldMaskingQuery = require('./span-field-masking-query');
'use strict';
const SpanLittleBigQueryBase = require('./span-little-big-base');
const SpanLittleBigQueryBase = require('./span-little-big-query-base');

@@ -5,0 +5,0 @@ /**

'use strict';
const SpanLittleBigQueryBase = require('./span-little-big-base');
const SpanLittleBigQueryBase = require('./span-little-big-query-base');

@@ -5,0 +5,0 @@ /**

@@ -170,3 +170,2 @@ 'use strict';

// recursiveToJSON doesn't seem to be required here.
return {

@@ -173,0 +172,0 @@ [this.queryType]: Object.assign({}, this._queryOpts, {

Sorry, the diff of this file is too big to display

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