@bodhiapp/app-bindings 0.0.16 → 0.0.18
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 +10 -2
- package/index.js +5 -1
- package/package.json +8 -7
package/index.d.ts
CHANGED
|
@@ -40,12 +40,16 @@ export const BODHI_LOGS: string
|
|
|
40
40
|
export const BODHI_ENV_TYPE: string
|
|
41
41
|
export const BODHI_APP_TYPE: string
|
|
42
42
|
export const BODHI_VERSION: string
|
|
43
|
+
export const BODHI_COMMIT_SHA: string
|
|
43
44
|
export const BODHI_AUTH_URL: string
|
|
44
45
|
export const BODHI_AUTH_REALM: string
|
|
45
46
|
export const BODHI_ENCRYPTION_KEY: string
|
|
46
47
|
export const BODHI_EXEC_LOOKUP_PATH: string
|
|
47
48
|
export const BODHI_EXEC_VARIANT: string
|
|
48
49
|
export const BODHI_KEEP_ALIVE_SECS: string
|
|
50
|
+
export const BODHI_PUBLIC_SCHEME: string
|
|
51
|
+
export const BODHI_PUBLIC_HOST: string
|
|
52
|
+
export const BODHI_PUBLIC_PORT: string
|
|
49
53
|
export const HF_HOME: string
|
|
50
54
|
export const DEFAULT_HOST: string
|
|
51
55
|
export const DEFAULT_PORT: number
|
|
@@ -57,10 +61,14 @@ export declare class BodhiServer {
|
|
|
57
61
|
get config(): NapiAppOptions
|
|
58
62
|
/** Get the server URL */
|
|
59
63
|
serverUrl(): string
|
|
60
|
-
/** Get the server host */
|
|
61
64
|
host(): string
|
|
62
|
-
/** Get the server port */
|
|
63
65
|
port(): number
|
|
66
|
+
/** Get the server host */
|
|
67
|
+
publicHost(): string
|
|
68
|
+
/** Get the server port */
|
|
69
|
+
publicPort(): number
|
|
70
|
+
/** Get the server scheme */
|
|
71
|
+
publicScheme(): string
|
|
64
72
|
/**
|
|
65
73
|
* Start the Bodhi server
|
|
66
74
|
*
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { createNapiAppOptions, setEnvVar, setAppSetting, setSystemSetting, setClientCredentials, setAppStatus, BODHI_HOME, BODHI_HOST, BODHI_PORT, BODHI_SCHEME, BODHI_LOG_LEVEL, BODHI_LOG_STDOUT, BODHI_LOGS, BODHI_ENV_TYPE, BODHI_APP_TYPE, BODHI_VERSION, BODHI_AUTH_URL, BODHI_AUTH_REALM, BODHI_ENCRYPTION_KEY, BODHI_EXEC_LOOKUP_PATH, BODHI_EXEC_VARIANT, BODHI_KEEP_ALIVE_SECS, HF_HOME, DEFAULT_HOST, DEFAULT_PORT, BodhiServer } = nativeBinding
|
|
313
|
+
const { createNapiAppOptions, setEnvVar, setAppSetting, setSystemSetting, setClientCredentials, setAppStatus, BODHI_HOME, BODHI_HOST, BODHI_PORT, BODHI_SCHEME, BODHI_LOG_LEVEL, BODHI_LOG_STDOUT, BODHI_LOGS, BODHI_ENV_TYPE, BODHI_APP_TYPE, BODHI_VERSION, BODHI_COMMIT_SHA, BODHI_AUTH_URL, BODHI_AUTH_REALM, BODHI_ENCRYPTION_KEY, BODHI_EXEC_LOOKUP_PATH, BODHI_EXEC_VARIANT, BODHI_KEEP_ALIVE_SECS, BODHI_PUBLIC_SCHEME, BODHI_PUBLIC_HOST, BODHI_PUBLIC_PORT, HF_HOME, DEFAULT_HOST, DEFAULT_PORT, BodhiServer } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.createNapiAppOptions = createNapiAppOptions
|
|
316
316
|
module.exports.setEnvVar = setEnvVar
|
|
@@ -328,12 +328,16 @@ module.exports.BODHI_LOGS = BODHI_LOGS
|
|
|
328
328
|
module.exports.BODHI_ENV_TYPE = BODHI_ENV_TYPE
|
|
329
329
|
module.exports.BODHI_APP_TYPE = BODHI_APP_TYPE
|
|
330
330
|
module.exports.BODHI_VERSION = BODHI_VERSION
|
|
331
|
+
module.exports.BODHI_COMMIT_SHA = BODHI_COMMIT_SHA
|
|
331
332
|
module.exports.BODHI_AUTH_URL = BODHI_AUTH_URL
|
|
332
333
|
module.exports.BODHI_AUTH_REALM = BODHI_AUTH_REALM
|
|
333
334
|
module.exports.BODHI_ENCRYPTION_KEY = BODHI_ENCRYPTION_KEY
|
|
334
335
|
module.exports.BODHI_EXEC_LOOKUP_PATH = BODHI_EXEC_LOOKUP_PATH
|
|
335
336
|
module.exports.BODHI_EXEC_VARIANT = BODHI_EXEC_VARIANT
|
|
336
337
|
module.exports.BODHI_KEEP_ALIVE_SECS = BODHI_KEEP_ALIVE_SECS
|
|
338
|
+
module.exports.BODHI_PUBLIC_SCHEME = BODHI_PUBLIC_SCHEME
|
|
339
|
+
module.exports.BODHI_PUBLIC_HOST = BODHI_PUBLIC_HOST
|
|
340
|
+
module.exports.BODHI_PUBLIC_PORT = BODHI_PUBLIC_PORT
|
|
337
341
|
module.exports.HF_HOME = HF_HOME
|
|
338
342
|
module.exports.DEFAULT_HOST = DEFAULT_HOST
|
|
339
343
|
module.exports.DEFAULT_PORT = DEFAULT_PORT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodhiapp/app-bindings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "NAPI-RS bindings for BodhiApp server with integrated tests",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
+
"clean": "rimraf app-bindings.*.node",
|
|
19
20
|
"artifacts": "napi artifacts",
|
|
20
21
|
"create-npm-dirs": "napi create-npm-dir --target .",
|
|
21
|
-
"build": "napi build --platform
|
|
22
|
-
"build:debug": "napi build --platform",
|
|
22
|
+
"build": "napi build --platform",
|
|
23
23
|
"build:release": "napi build --platform --release",
|
|
24
24
|
"build:release:win": "napi build --platform --release --target x86_64-pc-windows-msvc",
|
|
25
25
|
"update-optional-dependencies": "node scripts/update-optional-dependencies.js",
|
|
26
26
|
"verify-packages": "node scripts/verify-npm-packages.js",
|
|
27
|
-
"test": "npm run test:run && npm run test:playwright",
|
|
28
27
|
"test:run": "vitest run",
|
|
29
28
|
"test:playwright": "playwright test --config=playwright.config.mjs --reporter=list",
|
|
30
29
|
"test:playwright:ci": "playwright test --config=playwright.config.mjs",
|
|
31
30
|
"test:playwright:ui": "playwright test --config=playwright.config.mjs --ui",
|
|
32
31
|
"test:playwright:headed": "playwright test --config=playwright.config.mjs --headed",
|
|
32
|
+
"test:playwright:scheduled": "playwright test --config=playwright.config.mjs --reporter=list --grep @scheduled",
|
|
33
33
|
"test:all": "npm run test:run && npm run test:playwright",
|
|
34
34
|
"format": "biome format --write .",
|
|
35
35
|
"format:check": "biome format .",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@playwright/test": "^1.48.2",
|
|
45
45
|
"dotenv": "^16.5.0",
|
|
46
46
|
"express": "^5.1.0",
|
|
47
|
+
"rimraf": "^6.0.1",
|
|
47
48
|
"vitest": "^2.1.8"
|
|
48
49
|
},
|
|
49
50
|
"engines": {
|
|
@@ -75,8 +76,8 @@
|
|
|
75
76
|
"index.js"
|
|
76
77
|
],
|
|
77
78
|
"optionalDependencies": {
|
|
78
|
-
"@bodhiapp/app-bindings-darwin-arm64": "0.0.
|
|
79
|
-
"@bodhiapp/app-bindings-linux-x64-gnu": "0.0.
|
|
80
|
-
"@bodhiapp/app-bindings-win32-x64-msvc": "0.0.
|
|
79
|
+
"@bodhiapp/app-bindings-darwin-arm64": "0.0.18",
|
|
80
|
+
"@bodhiapp/app-bindings-linux-x64-gnu": "0.0.18",
|
|
81
|
+
"@bodhiapp/app-bindings-win32-x64-msvc": "0.0.18"
|
|
81
82
|
}
|
|
82
83
|
}
|