Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bunt/app

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bunt/app - npm Package Compare versions

Comparing version 0.24.0 to 0.24.1

dist/Route/fn.d.ts

1

dist/Application.js

@@ -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

5

dist/Route/interfaces.d.ts
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

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