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

@koopjs/output-geoservices

Package Overview
Dependencies
Maintainers
7
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koopjs/output-geoservices - npm Package Compare versions

Comparing version 8.1.15 to 8.1.16

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc