@types/koa
Advanced tools
Comparing version 2.13.12 to 2.14.0
@@ -13,2 +13,3 @@ /* =================== USAGE =================== | ||
import * as accepts from "accepts"; | ||
import { AsyncLocalStorage } from "async_hooks"; | ||
import * as Cookies from "cookies"; | ||
@@ -447,2 +448,3 @@ import { EventEmitter } from "events"; | ||
keys: Keygrip | string[]; | ||
ctxStorage: AsyncLocalStorage<Application.Context> | undefined; | ||
@@ -457,2 +459,3 @@ /** | ||
* @param {number} [options.maxIpsCount] Max IPs read from proxy IP header, default to 0 (means infinity) | ||
* @param {boolean} [options.asyncLocalStorage] Enable AsyncLocalStorage | ||
*/ | ||
@@ -466,2 +469,3 @@ constructor(options?: { | ||
maxIpsCount?: number | undefined; | ||
asyncLocalStorage?: boolean | undefined; | ||
}); | ||
@@ -527,2 +531,7 @@ | ||
onerror(err: Error): void; | ||
/** | ||
* return currnect contenxt from async local storage | ||
*/ | ||
readonly currentContext: Application.Context | undefined; | ||
} | ||
@@ -529,0 +538,0 @@ |
{ | ||
"name": "@types/koa", | ||
"version": "2.13.12", | ||
"version": "2.14.0", | ||
"description": "TypeScript definitions for koa", | ||
@@ -62,4 +62,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa", | ||
}, | ||
"typesPublisherContentHash": "315a6c400f485e1f68c4e52b51adb6d5e5992d86bbc48507465d788f93d834f0", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "ea3e87a04337431bd14788b80d9cb269e572086b53c8a5add6be83f96fbc1e04", | ||
"typeScriptVersion": "4.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT | ||
* Last updated: Tue, 09 Jan 2024 10:36:31 GMT | ||
* Dependencies: [@types/accepts](https://npmjs.com/package/@types/accepts), [@types/content-disposition](https://npmjs.com/package/@types/content-disposition), [@types/cookies](https://npmjs.com/package/@types/cookies), [@types/http-assert](https://npmjs.com/package/@types/http-assert), [@types/http-errors](https://npmjs.com/package/@types/http-errors), [@types/keygrip](https://npmjs.com/package/@types/keygrip), [@types/koa-compose](https://npmjs.com/package/@types/koa-compose), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25452
663