Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

featureserver

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

featureserver - npm Package Compare versions

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