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.0 to 2.14.1

6

History.md
2.14.1 / 2022-12-07
==================
**fixes**
* [[`cb92bc9`](http://github.com/koajs/koa/commit/cb92bc98939bd71fd3c01e2dc681caf6545baa38)] - fix: should export createAsyncCtxStorageMiddleware function on application (#1724) (fengmk2 <<fengmk2@gmail.com>>)
2.14.0 / 2022-12-06

@@ -3,0 +9,0 @@ ==================

19

lib/application.js

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

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

@@ -238,12 +238,13 @@ }

}
createAsyncCtxStorageMiddleware() {
const app = this;
return async function asyncCtxStorage(ctx, next) {
await app.ctxStorage.run(ctx, async() => {
return await next();
});
};
}
};
function createAsyncCtxStorage(app) {
return async function asyncCtxStorage(ctx, next) {
await app.ctxStorage.run(ctx, async() => {
return await next();
});
};
}
/**

@@ -250,0 +251,0 @@ * Response helper.

{
"name": "koa",
"version": "2.14.0",
"version": "2.14.1",
"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