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

@functions-api/core

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@functions-api/core - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

lib/logger.js

7

lib/handlers/abstract.js
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",

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