es-alchemy
Advanced tools
Comparing version 7.0.19 to 8.0.0
@@ -129,8 +129,5 @@ "use strict"; | ||
[l]: { | ||
shape: r.length === 2 && r.every(p => typeof p === 'number') ? { | ||
type: 'point', | ||
shape: { | ||
type: r.length === 2 && r.every(p => typeof p === 'number') ? 'point' : 'polygon', | ||
coordinates: r | ||
} : { | ||
type: 'polygon', | ||
coordinates: [r] | ||
}, | ||
@@ -137,0 +134,0 @@ relation: 'intersects' |
@@ -15,3 +15,3 @@ "use strict"; | ||
type: 'Polygon', | ||
coordinates: [v] | ||
coordinates: v | ||
} : null, | ||
@@ -18,0 +18,0 @@ datetime: identity, |
@@ -11,3 +11,3 @@ "use strict"; | ||
geo_point: identity, | ||
geo_shape: v => v !== null ? v.coordinates[0] : null, | ||
geo_shape: v => v !== null ? v.coordinates : null, | ||
text: identity, | ||
@@ -14,0 +14,0 @@ enum: identity, |
{ | ||
"name": "es-alchemy", | ||
"version": "7.0.19", | ||
"version": "8.0.0", | ||
"description": "Simplification of Elasticsearch interactions", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
70492
1582