@arkstack/driver-express 0.1.30 → 0.2.1
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/dist/index.d.ts +0 -43
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,58 +6,15 @@ interface ExpressDriverOptions {
|
|
|
6
6
|
bindRouter: (app: Express) => PromiseOrValue<void>;
|
|
7
7
|
errorHandler?: ErrorRequestHandler | Handler;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
* The ExpressDriver class implements the ArkstackKitDriver
|
|
11
|
-
* contract for the Express framework.
|
|
12
|
-
*/
|
|
13
9
|
declare class ExpressDriver extends ArkstackKitDriver<Express, Handler> {
|
|
14
10
|
readonly name = "express";
|
|
15
11
|
private readonly options;
|
|
16
|
-
/**
|
|
17
|
-
* Creates an instance of ExpressDriver.
|
|
18
|
-
*
|
|
19
|
-
* @param options
|
|
20
|
-
*/
|
|
21
12
|
constructor(options: ExpressDriverOptions);
|
|
22
|
-
/**
|
|
23
|
-
* Creates an Express application instance.
|
|
24
|
-
*
|
|
25
|
-
* @returns
|
|
26
|
-
*/
|
|
27
13
|
createApp(): Express;
|
|
28
|
-
/**
|
|
29
|
-
* Mounts static assets from the specified public path to the Express application.
|
|
30
|
-
*
|
|
31
|
-
* @param app
|
|
32
|
-
* @param publicPath
|
|
33
|
-
*/
|
|
34
14
|
mountPublicAssets(app: Express, publicPath: string): void;
|
|
35
|
-
/**
|
|
36
|
-
* Binds the router to the Express application using the provided bindRouter function.
|
|
37
|
-
*
|
|
38
|
-
* @param app
|
|
39
|
-
*/
|
|
40
15
|
bindRouter(app: Express): PromiseOrValue<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Applies middleware to the Express application.
|
|
43
|
-
*
|
|
44
|
-
* @param app
|
|
45
|
-
* @param middleware
|
|
46
|
-
*/
|
|
47
16
|
applyMiddleware(app: Express, middleware: Handler): void;
|
|
48
|
-
/**
|
|
49
|
-
* Registers an error handler middleware to the Express
|
|
50
|
-
* application if provided in the options.
|
|
51
|
-
*
|
|
52
|
-
* @param app
|
|
53
|
-
*/
|
|
54
17
|
registerErrorHandler(app: Express): void;
|
|
55
|
-
/**
|
|
56
|
-
* Starts the Express server on the specified port.
|
|
57
|
-
*
|
|
58
|
-
* @param app
|
|
59
|
-
* @param port
|
|
60
|
-
*/
|
|
61
18
|
start(app: Express, port: number): void;
|
|
62
19
|
}
|
|
63
20
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/driver-express",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Express driver package for Arkstack providing Express-specific implementations of core Arkstack features such as routing, middleware, and database integration.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@arkstack/contract": "^0.1
|
|
38
|
+
"@arkstack/contract": "^0.2.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"express": "^5.2.1"
|