elasticsearch-concise-query
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,3 @@ import React from 'react'; | ||
results: never[]; | ||
query: IQueryRequestBody; | ||
}; | ||
@@ -24,2 +25,3 @@ componentDidMount(): void; | ||
results: never[]; | ||
query: IQueryRequestBody; | ||
}; | ||
@@ -26,0 +28,0 @@ componentDidMount(): void; |
@@ -37,3 +37,6 @@ "use strict"; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.state = { results: [] }; | ||
_this.state = { | ||
results: [], | ||
query: build_1.default(queries, config) | ||
}; | ||
_this.sendQuery = function (index) { | ||
@@ -43,3 +46,3 @@ return fetch(index + "_search", { | ||
headers: { 'content-type': 'application/json' }, | ||
body: JSON.stringify(build_1.default(queries, config)) | ||
body: JSON.stringify(_this.state.query) | ||
}) | ||
@@ -65,3 +68,3 @@ .then(function (res) { return res.json(); }) | ||
class_1.prototype.render = function () { | ||
return (react_1.default.createElement(Component, __assign({}, this.props, { results: this.state.results }))); | ||
return (react_1.default.createElement(Component, __assign({}, this.props, { query: this.state.query, results: this.state.results }))); | ||
}; | ||
@@ -68,0 +71,0 @@ return class_1; |
{ | ||
"name": "elasticsearch-concise-query", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A highly configurable and syntactically concise Elasticsearch query builder", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
20332
12
261
1
135