@bunt/app
Advanced tools
Comparing version 0.24.0 to 0.24.1
@@ -75,2 +75,3 @@ "use strict"; | ||
await request.linkState?.(state); | ||
// @todo | ||
return __classPrivateFieldGet(this, _Application_unit, "f").run(route.action, state); | ||
@@ -77,0 +78,0 @@ } |
@@ -7,1 +7,2 @@ export * from "./interfaces"; | ||
export * from "./Route"; | ||
export * from "./fn"; |
@@ -23,2 +23,3 @@ "use strict"; | ||
__exportStar(require("./Route"), exports); | ||
__exportStar(require("./fn"), exports); | ||
//# sourceMappingURL=index.js.map |
import { ActionAny, ActionContext, ActionFactory, ActionState, ApplyContext } from "@bunt/unit"; | ||
import { Ctor } from "@bunt/util"; | ||
import { IRequest } from "../interfaces"; | ||
@@ -9,3 +8,3 @@ import { Payload } from "../Payload"; | ||
readonly route: string; | ||
readonly action: ActionFactory<any>; | ||
readonly action: ActionFactory<A>; | ||
readonly payload?: Payload<A>; | ||
@@ -24,3 +23,3 @@ test(route: string): boolean; | ||
export declare type RouteRuleArg<A extends ActionAny> = ActionState<A> extends null ? string : RouteRule<A>; | ||
export declare type RouteFactory = <A extends ActionAny>(action: Ctor<A>, rule: RouteRuleArg<A>) => Route<A>; | ||
export declare type RouteFactory = <A extends ActionAny>(action: ActionFactory<A>, rule: RouteRuleArg<A>) => Route<A>; | ||
export interface IRouteContext<A extends ActionAny> { | ||
@@ -27,0 +26,0 @@ request: IRequest; |
@@ -10,5 +10,11 @@ import { ActionAny, ActionFactory } from "@bunt/unit"; | ||
readonly route: string; | ||
readonly action: ActionFactory<any>; | ||
readonly action: ActionFactory<A>; | ||
readonly payload?: RouteRule<A>; | ||
constructor(matcher: RouteMatcherFactory, action: ActionFactory<any>, rule: RouteRuleArg<A>); | ||
constructor(matcher: RouteMatcherFactory, action: ActionFactory<A>, rule: RouteRuleArg<A>); | ||
/** | ||
* @deprecated | ||
* | ||
* @param matcher RouteMatcherFactory | ||
* @returns RouteFactory | ||
*/ | ||
static create(matcher: RouteMatcherFactory): RouteFactory; | ||
@@ -15,0 +21,0 @@ getLogValue(): { |
@@ -26,2 +26,8 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated | ||
* | ||
* @param matcher RouteMatcherFactory | ||
* @returns RouteFactory | ||
*/ | ||
static create(matcher) { | ||
@@ -28,0 +34,0 @@ return (action, rule) => (new Route(matcher, action, rule)); |
{ | ||
"name": "@bunt/app", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"keywords": [ | ||
@@ -30,3 +30,3 @@ "typescript" | ||
"@bunt/input": "^0.24.0", | ||
"@bunt/unit": "^0.24.0", | ||
"@bunt/unit": "^0.24.1", | ||
"@bunt/util": "^0.24.0", | ||
@@ -36,3 +36,3 @@ "path-to-regexp": "^6.2.0" | ||
"license": "MIT", | ||
"gitHead": "870927e58da8dcc164c48be4bb13ddb171c5b1fd" | ||
"gitHead": "94b67a8bf9440c40e0c33ed8931d85f23dca7af4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
50612
77
836
Updated@bunt/unit@^0.24.1