es-mapping-ts
Advanced tools
Comparing version
@@ -8,2 +8,3 @@ "use strict"; | ||
function EsMapping() { | ||
this.body = { properties: [] }; | ||
} | ||
@@ -10,0 +11,0 @@ return EsMapping; |
@@ -181,3 +181,3 @@ "use strict"; | ||
return [4 /*yield*/, bluebird.each(mappings, function (internalMapping) { return __awaiter(_this, void 0, void 0, function () { | ||
var esMapping, index, indexExist; | ||
var esMapping, indexExist; | ||
return __generator(this, function (_a) { | ||
@@ -188,6 +188,5 @@ switch (_a.label) { | ||
esMapping = internalMapping.esmapping; | ||
index = internalMapping.esmapping.index; | ||
// Delete readonly for ES compatibility | ||
delete internalMapping.readonly; | ||
return [4 /*yield*/, esclient.indices.exists({ index: index })]; | ||
return [4 /*yield*/, esclient.indices.exists({ index: esMapping.index })]; | ||
case 1: | ||
@@ -194,0 +193,0 @@ indexExist = _a.sent(); |
{ | ||
"name": "es-mapping-ts", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "ES Mapping TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
23989
-0.17%