featureserver
Advanced tools
Comparing version 2.15.0 to 2.15.1
@@ -5,3 +5,7 @@ # Change Log | ||
## [2.15.0] -05-30-2018 | ||
## [2.15.1] - 06-06-2018 | ||
### Added | ||
* Add warnings for invalid GeoJSON when `NODE_ENV !== 'production'` | ||
## [2.15.0] - 05-30-2018 | ||
### Fixed | ||
@@ -315,2 +319,3 @@ * Authentication and authorization error messages now properly handled if request has `callback` query parameter | ||
[2.15.1]: https://github.com/koopjs/featureserver/compare/v2.15.0...v2.15.1 | ||
[2.15.0]: https://github.com/koopjs/featureserver/compare/v2.14.1...v2.15.0 | ||
@@ -317,0 +322,0 @@ [2.14.1]: https://github.com/koopjs/featureserver/compare/v2.14.0...v2.14.1 |
@@ -0,1 +1,2 @@ | ||
var geojsonhint = require('@mapbox/geojsonhint') | ||
var FsInfo = require('./info.js') | ||
@@ -17,2 +18,8 @@ var FsQuery = require('./query.js') | ||
function route (req, res, geojson, options) { | ||
// Check for valid GeoJSON and warn if not found (non-production environments) | ||
if (process.env.NODE_ENV !== 'production') { | ||
var geojsonErrors = geojsonhint.hint(geojson) | ||
if (geojsonErrors.length > 0) { console.log(("\nWARNING: Source data for " + (req.path) + " is invalid GeoJSON:\n " + (geojsonErrors.map(function (err, i) { return ("\t " + (i + 1) + ") " + (err.message) + "\n"); })))) } | ||
} | ||
req.query = req.query || {} | ||
@@ -19,0 +26,0 @@ req.query = coerceQuery(req.query) |
{ | ||
"name": "featureserver", | ||
"version": "2.15.0", | ||
"version": "2.15.1", | ||
"description": "*An open source implementation of the GeoServices specification*", | ||
@@ -18,2 +18,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@mapbox/geojsonhint": "^2.1.0", | ||
"chroma-js": "^1.3.4", | ||
@@ -25,3 +26,3 @@ "classybrew": "0.0.3", | ||
"terraformer-arcgis-parser": "^1.0.4", | ||
"winnow": "^1.14.0" | ||
"winnow": "^1.15.3" | ||
}, | ||
@@ -28,0 +29,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
171810
1317
8
4
+ Added@mapbox/geojsonhint@^2.1.0
+ Added@mapbox/geojsonhint@2.2.0(transitive)
+ Added@types/unist@2.0.11(transitive)
+ AddedJSV@4.0.2(transitive)
+ Addedansi-regex@3.0.1(transitive)
+ Addedansi-styles@1.0.0(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedchalk@0.4.0(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedhas-color@0.1.7(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedis-buffer@2.0.5(transitive)
+ Addedis-fullwidth-code-point@2.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjsonlint-lines@1.7.1(transitive)
+ Addedminimist@1.2.0(transitive)
+ Addednomnom@1.8.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring-width@2.1.1(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@0.1.14.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunderscore@1.6.0(transitive)
+ Addedunist-util-stringify-position@2.0.3(transitive)
+ Addedvfile@4.2.1(transitive)
+ Addedvfile-message@2.0.4(transitive)
+ Addedvfile-reporter@5.1.2(transitive)
+ Addedvfile-sort@2.2.2(transitive)
+ Addedvfile-statistics@1.1.4(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
Updatedwinnow@^1.15.3