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.2 to 0.0.3

2

lib/handlers/abstract.js

@@ -61,3 +61,3 @@ const Errors = require('../errors.js')

try {
var func = new this(...args)
let func = new this(...args)
return await func.run()

@@ -64,0 +64,0 @@ } catch(e) {

@@ -5,3 +5,3 @@ const Errors = require('../errors.js')

const BodyHandler = require('./body.js')(BaseHandler)
return class JSONBodyHandler extends BodyHandler {
return class JsonBodyHandler extends BodyHandler {
constructor (...args) {

@@ -8,0 +8,0 @@ super(...args)

{
"name": "@functions-api/core",
"version": "0.0.2",
"version": "0.0.3",
"description": "A small framework for building APIs as functions (to run in a FaaS, like Lambda)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

const TestHandler = require('./test-handler.js')
const BodyHandler = require('../../lib/handlers/body.js')(TestHandler)
const AbstractBodyHandler = require('../../lib/handlers/body.js')
const AbstractHandler = require('../../lib/handlers/abstract.js')
const Errors = require('../../lib/errors.js')
describe('BodyHandler', () => {
const BodyHandler = AbstractBodyHandler(TestHandler)
test('throws an error if no body is defined', () => {

@@ -7,0 +10,0 @@ var call = () => { new BodyHandler() }

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