🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

es-mapping-ts

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-mapping-ts - npm Package Compare versions

Comparing version

to
0.0.10

@@ -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",