@forklaunch/express 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +21 -21
- package/lib/index.d.ts +21 -21
- package/lib/index.js +0 -1
- package/lib/index.mjs +0 -1
- package/package.json +8 -8
package/lib/index.d.mts
CHANGED
@@ -107,7 +107,7 @@ type ExpressRequestHandler = (req: Omit<Request, 'query' | 'headers'> & {
|
|
107
107
|
* @template SV - A type that extends AnySchemaValidator.
|
108
108
|
* @implements {ForklaunchRouter<SV>}
|
109
109
|
*/
|
110
|
-
declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}`,
|
110
|
+
declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}`, RouterSession extends SessionObject<SV>> extends ForklaunchExpressLikeRouter<SV, BasePath, RequestHandler$1, Router$1, Request, Response, NextFunction, RouterSession> implements ForklaunchRouter<SV> {
|
111
111
|
basePath: BasePath;
|
112
112
|
private configOptions;
|
113
113
|
/**
|
@@ -116,7 +116,7 @@ declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}
|
|
116
116
|
* @param {string} basePath - The base path for the router.
|
117
117
|
* @param {SV} schemaValidator - The schema validator.
|
118
118
|
*/
|
119
|
-
constructor(basePath: BasePath, schemaValidator: SV, openTelemetryCollector: OpenTelemetryCollector<MetricsDefinition>, options?: ExpressRouterOptions<SV,
|
119
|
+
constructor(basePath: BasePath, schemaValidator: SV, openTelemetryCollector: OpenTelemetryCollector<MetricsDefinition>, options?: ExpressRouterOptions<SV, RouterSession>);
|
120
120
|
route(path: string): this;
|
121
121
|
param<ParamName extends string, Types extends {
|
122
122
|
req?: LiteralSchema | SV['_SchemaCatchall'];
|
@@ -124,25 +124,25 @@ declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}
|
|
124
124
|
} & {
|
125
125
|
[K in ParamName]: IdiomaticSchema<SV>;
|
126
126
|
}>(name: ParamName, _types: Types, handler: (req: SchemaResolve<Types['req']>, res: SchemaResolve<Types['res']>, next: NextFunction, value: SchemaResolve<Types[ParamName]>, name: ParamName) => void): this;
|
127
|
-
checkout: TypedMiddlewareDefinition<this, SV,
|
128
|
-
copy: TypedMiddlewareDefinition<this, SV,
|
129
|
-
lock: TypedMiddlewareDefinition<this, SV,
|
130
|
-
merge: TypedMiddlewareDefinition<this, SV,
|
131
|
-
mkcactivity: TypedMiddlewareDefinition<this, SV,
|
132
|
-
mkcol: TypedMiddlewareDefinition<this, SV,
|
133
|
-
move: TypedMiddlewareDefinition<this, SV,
|
134
|
-
'm-search': TypedMiddlewareDefinition<this, SV,
|
135
|
-
notify: TypedMiddlewareDefinition<this, SV,
|
136
|
-
propfind: TypedMiddlewareDefinition<this, SV,
|
137
|
-
proppatch: TypedMiddlewareDefinition<this, SV,
|
138
|
-
purge: TypedMiddlewareDefinition<this, SV,
|
139
|
-
report: TypedMiddlewareDefinition<this, SV,
|
140
|
-
search: TypedMiddlewareDefinition<this, SV,
|
141
|
-
subscribe: TypedMiddlewareDefinition<this, SV,
|
142
|
-
unlock: TypedMiddlewareDefinition<this, SV,
|
143
|
-
unsubscribe: TypedMiddlewareDefinition<this, SV,
|
144
|
-
link: TypedMiddlewareDefinition<this, SV,
|
145
|
-
unlink: TypedMiddlewareDefinition<this, SV,
|
127
|
+
checkout: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
128
|
+
copy: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
129
|
+
lock: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
130
|
+
merge: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
131
|
+
mkcactivity: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
132
|
+
mkcol: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
133
|
+
move: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
134
|
+
'm-search': TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
135
|
+
notify: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
136
|
+
propfind: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
137
|
+
proppatch: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
138
|
+
purge: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
139
|
+
report: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
140
|
+
search: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
141
|
+
subscribe: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
142
|
+
unlock: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
143
|
+
unsubscribe: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
144
|
+
link: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
145
|
+
unlink: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
146
146
|
clone(): this;
|
147
147
|
}
|
148
148
|
|
package/lib/index.d.ts
CHANGED
@@ -107,7 +107,7 @@ type ExpressRequestHandler = (req: Omit<Request, 'query' | 'headers'> & {
|
|
107
107
|
* @template SV - A type that extends AnySchemaValidator.
|
108
108
|
* @implements {ForklaunchRouter<SV>}
|
109
109
|
*/
|
110
|
-
declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}`,
|
110
|
+
declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}`, RouterSession extends SessionObject<SV>> extends ForklaunchExpressLikeRouter<SV, BasePath, RequestHandler$1, Router$1, Request, Response, NextFunction, RouterSession> implements ForklaunchRouter<SV> {
|
111
111
|
basePath: BasePath;
|
112
112
|
private configOptions;
|
113
113
|
/**
|
@@ -116,7 +116,7 @@ declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}
|
|
116
116
|
* @param {string} basePath - The base path for the router.
|
117
117
|
* @param {SV} schemaValidator - The schema validator.
|
118
118
|
*/
|
119
|
-
constructor(basePath: BasePath, schemaValidator: SV, openTelemetryCollector: OpenTelemetryCollector<MetricsDefinition>, options?: ExpressRouterOptions<SV,
|
119
|
+
constructor(basePath: BasePath, schemaValidator: SV, openTelemetryCollector: OpenTelemetryCollector<MetricsDefinition>, options?: ExpressRouterOptions<SV, RouterSession>);
|
120
120
|
route(path: string): this;
|
121
121
|
param<ParamName extends string, Types extends {
|
122
122
|
req?: LiteralSchema | SV['_SchemaCatchall'];
|
@@ -124,25 +124,25 @@ declare class Router<SV extends AnySchemaValidator, BasePath extends `/${string}
|
|
124
124
|
} & {
|
125
125
|
[K in ParamName]: IdiomaticSchema<SV>;
|
126
126
|
}>(name: ParamName, _types: Types, handler: (req: SchemaResolve<Types['req']>, res: SchemaResolve<Types['res']>, next: NextFunction, value: SchemaResolve<Types[ParamName]>, name: ParamName) => void): this;
|
127
|
-
checkout: TypedMiddlewareDefinition<this, SV,
|
128
|
-
copy: TypedMiddlewareDefinition<this, SV,
|
129
|
-
lock: TypedMiddlewareDefinition<this, SV,
|
130
|
-
merge: TypedMiddlewareDefinition<this, SV,
|
131
|
-
mkcactivity: TypedMiddlewareDefinition<this, SV,
|
132
|
-
mkcol: TypedMiddlewareDefinition<this, SV,
|
133
|
-
move: TypedMiddlewareDefinition<this, SV,
|
134
|
-
'm-search': TypedMiddlewareDefinition<this, SV,
|
135
|
-
notify: TypedMiddlewareDefinition<this, SV,
|
136
|
-
propfind: TypedMiddlewareDefinition<this, SV,
|
137
|
-
proppatch: TypedMiddlewareDefinition<this, SV,
|
138
|
-
purge: TypedMiddlewareDefinition<this, SV,
|
139
|
-
report: TypedMiddlewareDefinition<this, SV,
|
140
|
-
search: TypedMiddlewareDefinition<this, SV,
|
141
|
-
subscribe: TypedMiddlewareDefinition<this, SV,
|
142
|
-
unlock: TypedMiddlewareDefinition<this, SV,
|
143
|
-
unsubscribe: TypedMiddlewareDefinition<this, SV,
|
144
|
-
link: TypedMiddlewareDefinition<this, SV,
|
145
|
-
unlink: TypedMiddlewareDefinition<this, SV,
|
127
|
+
checkout: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
128
|
+
copy: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
129
|
+
lock: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
130
|
+
merge: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
131
|
+
mkcactivity: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
132
|
+
mkcol: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
133
|
+
move: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
134
|
+
'm-search': TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
135
|
+
notify: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
136
|
+
propfind: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
137
|
+
proppatch: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
138
|
+
purge: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
139
|
+
report: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
140
|
+
search: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
141
|
+
subscribe: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
142
|
+
unlock: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
143
|
+
unsubscribe: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
144
|
+
link: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
145
|
+
unlink: TypedMiddlewareDefinition<this, SV, RouterSession, Request, Response, NextFunction, ExpressRequestHandler>;
|
146
146
|
clone(): this;
|
147
147
|
}
|
148
148
|
|
package/lib/index.js
CHANGED
@@ -2062,7 +2062,6 @@ var Application = class extends import_http3.ForklaunchExpressLikeApplication {
|
|
2062
2062
|
openTelemetryCollector,
|
2063
2063
|
options2
|
2064
2064
|
);
|
2065
|
-
console.log("this.routerOptions offa", this.routerOptions);
|
2066
2065
|
this.hostingConfiguration = options2?.hosting;
|
2067
2066
|
this.docsConfiguration = options2?.docs;
|
2068
2067
|
this.mcpConfiguration = options2?.mcp;
|
package/lib/index.mjs
CHANGED
@@ -2035,7 +2035,6 @@ var Application = class extends ForklaunchExpressLikeApplication {
|
|
2035
2035
|
openTelemetryCollector,
|
2036
2036
|
options2
|
2037
2037
|
);
|
2038
|
-
console.log("this.routerOptions offa", this.routerOptions);
|
2039
2038
|
this.hostingConfiguration = options2?.hosting;
|
2040
2039
|
this.docsConfiguration = options2?.docs;
|
2041
2040
|
this.mcpConfiguration = options2?.mcp;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@forklaunch/express",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.3",
|
4
4
|
"description": "Forklaunch framework for express.",
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
6
6
|
"bugs": {
|
@@ -26,8 +26,8 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@forklaunch/fastmcp-fork": "^1.0.5",
|
29
|
-
"@modelcontextprotocol/sdk": "^1.17.
|
30
|
-
"@scalar/express-api-reference": "^0.8.
|
29
|
+
"@modelcontextprotocol/sdk": "^1.17.4",
|
30
|
+
"@scalar/express-api-reference": "^0.8.15",
|
31
31
|
"@types/multer": "^2.0.0",
|
32
32
|
"body-parser": "^2.2.0",
|
33
33
|
"busboy": "^1.6.0",
|
@@ -37,12 +37,12 @@
|
|
37
37
|
"qs": "^6.14.0",
|
38
38
|
"range-parser": "^1.2.1",
|
39
39
|
"swagger-ui-express": "^5.0.1",
|
40
|
-
"@forklaunch/common": "0.5.
|
41
|
-
"@forklaunch/
|
42
|
-
"@forklaunch/
|
40
|
+
"@forklaunch/common": "0.5.2",
|
41
|
+
"@forklaunch/core": "0.13.3",
|
42
|
+
"@forklaunch/validator": "0.9.3"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@eslint/js": "^9.
|
45
|
+
"@eslint/js": "^9.34.0",
|
46
46
|
"@types/body-parser": "^1.19.6",
|
47
47
|
"@types/bun": "^1.2.20",
|
48
48
|
"@types/busboy": "^1.5.4",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"@types/qs": "^6.14.0",
|
54
54
|
"@types/range-parser": "^1.2.7",
|
55
55
|
"@types/swagger-ui-express": "^4.1.8",
|
56
|
-
"@typescript/native-preview": "7.0.0-dev.
|
56
|
+
"@typescript/native-preview": "7.0.0-dev.20250823.8",
|
57
57
|
"jest": "^30.0.5",
|
58
58
|
"kill-port-process": "^3.2.1",
|
59
59
|
"prettier": "^3.6.2",
|