@functions-api/core
Advanced tools
Comparing version 0.0.7 to 0.0.8
const Errors = require('../errors.js') | ||
const Logger = require('../logger.js') | ||
const staticLogger = new Logger() | ||
@@ -68,3 +69,3 @@ module.exports = class AbstractHandler { | ||
this.logger.error(`Fatal Error ${e}`) | ||
staticLogger.error(`Fatal Error ${e}`) | ||
throw e | ||
@@ -71,0 +72,0 @@ } |
{ | ||
"name": "@functions-api/core", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A small framework for building APIs as functions (to run in a FaaS, like Lambda)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -108,4 +108,4 @@ const TestHandler = require('./test-handler.js') | ||
var erroredCall = AbstractHandler.handleErrors.bind(AbstractHandler, new Error('test')) | ||
expect(erroredCall).toThrow(Error) | ||
expect(erroredCall).toThrow('test') | ||
}) | ||
}) |
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
16991
420