@koopjs/output-geoservices
Advanced tools
Comparing version 5.0.0 to 5.1.0
{ | ||
"name": "@koopjs/output-geoservices", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Wraps FeatureServer as a Koop output plugin", | ||
@@ -34,4 +34,4 @@ "main": "src/index.js", | ||
"@koopjs/featureserver": "5.0.1", | ||
"@koopjs/logger": "3.0.1" | ||
"@koopjs/logger": "4.0.0" | ||
} | ||
} |
const FeatureServer = require('@koopjs/featureserver'); | ||
const koopConfig = require('config'); | ||
const Logger = require('../../logger/src'); | ||
const log = new Logger(); | ||
console.log('WARNING: "/MapServer" routes will be registered, but only for specialized 404 handling in FeatureServer.'); | ||
const Logger = require('@koopjs/logger'); | ||
let logger = new Logger(); | ||
function Geoservices () {} | ||
function Geoservices (model, options) { | ||
this.model = model; | ||
if (options.logger) { | ||
logger = options.logger; | ||
} | ||
} | ||
@@ -118,3 +122,3 @@ /** | ||
// Log error then make generic for response | ||
log.error('error', error); | ||
logger.error('error', error); | ||
return { message: 'Internal Server Error', code: 500}; | ||
@@ -121,0 +125,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
175
9055
+ Added@koopjs/logger@4.0.0(transitive)
- Removed@koopjs/logger@3.0.1(transitive)
Updated@koopjs/logger@4.0.0