New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-serverless

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-serverless - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test/run.js

2

package.json
{
"name": "koa-serverless",
"version": "0.0.4",
"version": "0.0.5",
"description": "",

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

@@ -7,11 +7,16 @@ # koa-serverless

- standard nodejs deployment
- default ctx.session middleware (koa-session)
- default ctx.log middleware
- default nested querystring support
- default session middleware (koa-session)
- default log middleware
- default security header middleware (koa-helmet)
- default cors middleware (kcors)
- default ctx.body middlware (koa-bodyparser)
- default body parser middlware (koa-bodyparser)
## Usage
Runs only with esm enabled.
```js
// Run with node -r esm
// drop in replacement for `koa`.

@@ -18,0 +23,0 @@ import App from "koa-serverless";

@@ -1,14 +0,2 @@

// drop in replacement for `koa`.
import App from "..";
// import your koa middleware.
import serve from "koa-static";
// create your application.
var app = new App();
// add your own middleware
app.use(serve("./public"));
// run program as daemon or export handler for lambda.
export const handler = app.run(/* isLambdaOverride */);
require = require("esm")(module);
exports.handler = require("./run");
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