Socket
Socket
Sign inDemoInstall

koa

Package Overview
Dependencies
Maintainers
11
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa - npm Package Compare versions

Comparing version 2.14.1 to 2.14.2

8

lib/application.js

@@ -72,3 +72,2 @@

this.ctxStorage = new AsyncLocalStorage();
this.use(this.createAsyncCtxStorageMiddleware());
}

@@ -158,3 +157,8 @@ }

const ctx = this.createContext(req, res);
return this.handleRequest(ctx, fn);
if (!this.ctxStorage) {
return this.handleRequest(ctx, fn);
}
return this.ctxStorage.run(ctx, async() => {
return await this.handleRequest(ctx, fn);
});
};

@@ -161,0 +165,0 @@

{
"name": "koa",
"version": "2.14.1",
"version": "2.14.2",
"description": "Koa web app framework",

@@ -5,0 +5,0 @@ "main": "lib/application.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