Socket
Socket
Sign inDemoInstall

elastic-dsl-typescript

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.6 to 1.1.7

Builders/EshopFacets/index.d.ts

6

Builders/Aggregation/index.js

@@ -25,3 +25,3 @@ "use strict";

sub = {
aggs: Object.assign({}, subAgg)
aggs: Object.assign({}, subAgg),
};

@@ -33,4 +33,4 @@ }

aggs: {
[`${name}_filtered`]: Object.assign({ [aggType]: Object.assign(Object.assign({}, all), (d.opts || {})) }, sub)
}
[`${name}_filtered`]: Object.assign({ [aggType]: Object.assign(Object.assign({}, all), (d.opts || {})) }, sub),
},
};

@@ -37,0 +37,0 @@ return this;

@@ -14,1 +14,2 @@ export * from './Query';

export * from './Builders/Text/types';
export * from './Builders/EshopFacets';

@@ -20,1 +20,3 @@ "use strict";

__export(require("./Builders/Text/index"));
// Eshop facets
__export(require("./Builders/EshopFacets"));
{
"name": "elastic-dsl-typescript",
"version": "1.1.6",
"version": "1.1.7",
"description": "Node.js ElasticSearch search query builder",

@@ -5,0 +5,0 @@ "main": "./",

@@ -6,3 +6,2 @@ import { AbstractBulder } from '../../Abstract/AbstractBuilder';

private _data = {};
public add<Type extends keyof SCHEMA>(aggType: Type, name: string, d: SCHEMA[Type]) {

@@ -14,4 +13,4 @@ const { filter, subAgg, ...all } = d.params as { filter?: any; subAgg?: any };

aggs: {
...subAgg
}
...subAgg,
},
};

@@ -25,5 +24,5 @@ }

[aggType]: { ...all, ...((d.opts as object) || {}) },
...sub
}
}
...sub,
},
},
};

@@ -35,7 +34,6 @@ return this;

[aggType]: { ...all, ...((d.opts as object) || {}) },
...sub
...sub,
};
return this;
}
public addCustom(name: string, cutsomAgg: object) {

@@ -45,2 +43,4 @@ this._data[name] = cutsomAgg;

public build(): object {

@@ -47,0 +47,0 @@ return this._data;

@@ -22,1 +22,3 @@ // basic query

export * from './Builders/Text/types';
// Eshop facets
export * from './Builders/EshopFacets';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc