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.7 to 0.0.8

3

lib/handlers/abstract.js
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')
})
})
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