es-alchemy
Advanced tools
Comparing version 8.3.3 to 8.4.0
@@ -168,3 +168,12 @@ "use strict"; | ||
} | ||
}), | ||
script: (field, script) => ({ | ||
bool: { | ||
filter: { | ||
script: { | ||
script | ||
} | ||
} | ||
} | ||
}) | ||
}; |
@@ -15,4 +15,3 @@ "use strict"; | ||
assert(specs.sources === undefined || Array.isArray(specs.sources) && specs.sources.length !== 0, 'Invalid sources definition.'); | ||
(specs.sources || ['']). // resolve to all objects for path | ||
map(sourcePath => sourcePath === '' ? input : sourcePath.split('.').reduce((origins, segment) => origins.map(origin => origin[segment]).filter(origin => !!origin).reduce((prev, next) => prev.concat(Array.isArray(next) ? next : [next]), []), [input])) // filter invalid origins | ||
(specs.sources || ['']).map(sourcePath => sourcePath === '' ? input : sourcePath.split('.').reduce((origins, segment) => origins.map(origin => origin[segment]).filter(origin => !!origin).reduce((prev, next) => prev.concat(Array.isArray(next) ? next : [next]), []), [input])) // filter invalid origins | ||
.filter(origins => !!origins) // ensure origins are array | ||
@@ -19,0 +18,0 @@ .map(origins => Array.isArray(origins) ? origins : [origins]) // extract recursively |
{ | ||
"name": "es-alchemy", | ||
"version": "8.3.3", | ||
"version": "8.4.0", | ||
"description": "Simplification of Elasticsearch interactions", | ||
@@ -43,4 +43,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.14.5", | ||
"@babel/core": "7.14.6", | ||
"@babel/cli": "7.14.8", | ||
"@babel/core": "7.14.8", | ||
"@babel/register": "7.14.5", | ||
@@ -54,3 +54,3 @@ "@blackflux/eslint-plugin-rules": "2.0.3", | ||
"deep-equal-in-any-order": "1.1.8", | ||
"eslint": "7.30.0", | ||
"eslint": "7.31.0", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
@@ -57,0 +57,0 @@ "eslint-plugin-import": "2.23.4", |
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
72058
1635