@bodhiapp/app-bindings 0.0.11 → 0.0.12
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/index.d.ts +24 -4
- package/package.json +4 -7
package/index.d.ts
CHANGED
|
@@ -61,12 +61,32 @@ export declare class BodhiServer {
|
|
|
61
61
|
host(): string
|
|
62
62
|
/** Get the server port */
|
|
63
63
|
port(): number
|
|
64
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Start the Bodhi server
|
|
66
|
+
*
|
|
67
|
+
* # Safety
|
|
68
|
+
* Safe to call from JavaScript/Node.js context via NAPI bindings.
|
|
69
|
+
*/
|
|
65
70
|
start(): Promise<void>
|
|
66
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Stop the Bodhi server
|
|
73
|
+
*
|
|
74
|
+
* # Safety
|
|
75
|
+
* Safe to call from JavaScript/Node.js context via NAPI bindings.
|
|
76
|
+
*/
|
|
67
77
|
stop(): Promise<void>
|
|
68
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Check if the server is running
|
|
80
|
+
*
|
|
81
|
+
* # Safety
|
|
82
|
+
* Safe to call from JavaScript/Node.js context via NAPI bindings.
|
|
83
|
+
*/
|
|
69
84
|
isRunning(): Promise<boolean>
|
|
70
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Get server ping status
|
|
87
|
+
*
|
|
88
|
+
* # Safety
|
|
89
|
+
* Safe to call from JavaScript/Node.js context via NAPI bindings.
|
|
90
|
+
*/
|
|
71
91
|
ping(): Promise<boolean>
|
|
72
92
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodhiapp/app-bindings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "NAPI-RS bindings for BodhiApp server with integrated tests",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
"verify-packages": "node scripts/verify-npm-packages.js",
|
|
27
27
|
"test": "npm run test:run && npm run test:playwright",
|
|
28
28
|
"test:run": "vitest run",
|
|
29
|
-
"test:config": "vitest run --testNamePattern='Configuration'",
|
|
30
|
-
"test:integration": "vitest run --testNamePattern='Integration'",
|
|
31
|
-
"test:live": "vitest run --testNamePattern='Live Server'",
|
|
32
29
|
"test:playwright": "playwright test --config=playwright.config.mjs --reporter=list",
|
|
33
30
|
"test:playwright:ci": "playwright test --config=playwright.config.mjs",
|
|
34
31
|
"test:playwright:ui": "playwright test --config=playwright.config.mjs --ui",
|
|
@@ -77,8 +74,8 @@
|
|
|
77
74
|
"index.js"
|
|
78
75
|
],
|
|
79
76
|
"optionalDependencies": {
|
|
80
|
-
"@bodhiapp/app-bindings-darwin-arm64": "0.0.
|
|
81
|
-
"@bodhiapp/app-bindings-linux-x64-gnu": "0.0.
|
|
82
|
-
"@bodhiapp/app-bindings-win32-x64-msvc": "0.0.
|
|
77
|
+
"@bodhiapp/app-bindings-darwin-arm64": "0.0.12",
|
|
78
|
+
"@bodhiapp/app-bindings-linux-x64-gnu": "0.0.12",
|
|
79
|
+
"@bodhiapp/app-bindings-win32-x64-msvc": "0.0.12"
|
|
83
80
|
}
|
|
84
81
|
}
|