@functions-api/core
Advanced tools
Comparing version 0.0.4 to 0.0.5
const Errors = require('../errors.js') | ||
const Logger = require('../logger.js') | ||
module.exports = class AbstractHandler { | ||
init () { | ||
init (providedOptions) { | ||
this.options = { ...providedOptions } | ||
this.logger = new Logger(this.options.logLevel) | ||
this.setIdentity() | ||
@@ -65,3 +68,3 @@ this.setHeaders() | ||
console.log('error', `Fatal Error ${e}`) | ||
this.logger.error(`Fatal Error ${e}`) | ||
throw e | ||
@@ -68,0 +71,0 @@ } |
{ | ||
"name": "@functions-api/core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A small framework for building APIs as functions (to run in a FaaS, like Lambda)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
16902
15
417
6