es-alchemy
Advanced tools
Comparing version 1.8.3 to 1.8.4
@@ -18,3 +18,3 @@ // Convert raw data into index ready data | ||
.map(field => [field, origin[field]]).filter(kv => kv[1] !== undefined).reduce((prev, [key, value]) => Object.assign(prev, { | ||
[key]: fieldRemap[fieldTypes[key]](value) | ||
[key]: fieldRemap[fieldTypes[key].endsWith("[]") ? fieldTypes[key].slice(0, -2) : fieldTypes[key]](value) | ||
}), entry); | ||
@@ -32,2 +32,2 @@ Object.entries(specs.nested || {}) // handle nested | ||
module.exports.remap = (specs, input, models) => remapRec(specs, input, models); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2RhdGEuanMiXSwibmFtZXMiOlsiYXNzZXJ0IiwicmVxdWlyZSIsImZpZWxkUmVtYXAiLCJyZW1hcFJlYyIsInNwZWNzIiwiaW5wdXQiLCJtb2RlbHMiLCJyZXN1bHQiLCJzb3VyY2VzIiwidW5kZWZpbmVkIiwiQXJyYXkiLCJpc0FycmF5IiwibGVuZ3RoIiwibWFwIiwic291cmNlUGF0aCIsInNwbGl0IiwicmVkdWNlIiwib3JpZ2lucyIsInNlZ21lbnQiLCJvcmlnaW4iLCJmaWx0ZXIiLCJwcmV2IiwibmV4dCIsImNvbmNhdCIsImZvckVhY2giLCJlbnRyeSIsImZpZWxkVHlwZXMiLCJtb2RlbCIsImVuZHNXaXRoIiwic2xpY2UiLCJmaWVsZHMiLCJmaWVsZCIsImt2Iiwia2V5IiwidmFsdWUiLCJPYmplY3QiLCJhc3NpZ24iLCJlbnRyaWVzIiwibmVzdGVkIiwicHVzaCIsIm1vZHVsZSIsImV4cG9ydHMiLCJyZW1hcCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxNQUFNQSxTQUFTQyxRQUFRLFFBQVIsQ0FBZjs7QUFDQSxNQUFNQyxhQUFhRCxRQUFRLDBCQUFSLENBQW5COztBQUVBLE1BQU1FLF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lYyhzcGVjcywgaW5wdXQsIG1vZGVscyk7XG4iXX0= |
{ | ||
"name": "es-alchemy", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Simplification of Elasticsearch interactions", | ||
@@ -47,3 +47,3 @@ "main": "lib/index.js", | ||
"nyc": "13.0.1", | ||
"semantic-release": "15.9.15", | ||
"semantic-release": "15.9.16", | ||
"uuid": "3.3.2", | ||
@@ -50,0 +50,0 @@ "request": "2.88.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105417