@koopjs/output-geoservices
Advanced tools
Comparing version 8.1.15 to 8.1.16
{ | ||
"name": "@koopjs/output-geoservices", | ||
"version": "8.1.15", | ||
"version": "8.1.16", | ||
"description": "Wraps FeatureServer as a Koop output plugin", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -108,3 +108,3 @@ const FeatureServer = require('@koopjs/featureserver'); | ||
methods: ['get', 'post'], | ||
handler: 'generalHandler', | ||
handler: 'invalidUrlHandler', | ||
}, | ||
@@ -148,9 +148,7 @@ ]; | ||
async generalHandler(req, res) { | ||
try { | ||
const data = await this.model.pull(req); | ||
return FeatureServer.route(req, res, data); | ||
} catch (error) { | ||
this.#errorHandler(error, req, res); | ||
} | ||
async invalidUrlHandler(req, res) { | ||
const error = new Error('Invalid URL'); | ||
error.code = 400; | ||
error.details = ['Invalid URL']; | ||
this.#errorHandler(error, req, res); | ||
} | ||
@@ -157,0 +155,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
12330
255