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

@h4ad/serverless-adapter

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@h4ad/serverless-adapter - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

lib/frameworks/lazy/index.d.ts

2

package.json
{
"name": "@h4ad/serverless-adapter",
"version": "2.2.0",
"version": "2.3.0",
"description": "This library enables you to utilize any Cloud or Event Source to respond to web and API requests using your existing Node.js application framework.",

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

@@ -66,2 +66,6 @@ <h1 align="center">

// if you create your app asynchronously
// check the docs about the LazyFramework.
// ServerlessAdapter.new(null)
// .setFramework(new LazyFramework(new ExpressFramework(), async () => createAsyncApp()))
export const handler = ServerlessAdapter.new(app)

@@ -123,2 +127,5 @@ .setFramework(new ExpressFramework())

- [Koa](https://koajs.com/) by using ([KoaFramework](src/frameworks/koa/koa.framework.ts))
- Async Initialization by using ([LazyFramework](src/frameworks/lazy/lazy.framework.ts))
- Use this framework to provide a way to create the instance of your app asynchronously.
- With him, you can create an instance of Express or Fastify asynchronously, [see the docs](src/frameworks/lazy/lazy.framework.ts).

@@ -125,0 +132,0 @@ We support these event sources:

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