@bodhiapp/app-bindings 0.0.29 → 0.0.30

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.
Files changed (3) hide show
  1. package/index.d.ts +3 -0
  2. package/index.js +4 -1
  3. package/package.json +8 -5
package/index.d.ts CHANGED
@@ -50,6 +50,9 @@ export const BODHI_KEEP_ALIVE_SECS: string
50
50
  export const BODHI_PUBLIC_SCHEME: string
51
51
  export const BODHI_PUBLIC_HOST: string
52
52
  export const BODHI_PUBLIC_PORT: string
53
+ export const BODHI_SESSION_DB_URL: string
54
+ export const BODHI_APP_DB_URL: string
55
+ export const BODHI_DEPLOYMENT: string
53
56
  export const HF_HOME: string
54
57
  export const DEFAULT_HOST: string
55
58
  export const DEFAULT_PORT: number
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_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
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, BODHI_SESSION_DB_URL, BODHI_APP_DB_URL, BODHI_DEPLOYMENT, HF_HOME, DEFAULT_HOST, DEFAULT_PORT, BodhiServer } = nativeBinding
314
314
 
315
315
  module.exports.createNapiAppOptions = createNapiAppOptions
316
316
  module.exports.setEnvVar = setEnvVar
@@ -338,6 +338,9 @@ module.exports.BODHI_KEEP_ALIVE_SECS = BODHI_KEEP_ALIVE_SECS
338
338
  module.exports.BODHI_PUBLIC_SCHEME = BODHI_PUBLIC_SCHEME
339
339
  module.exports.BODHI_PUBLIC_HOST = BODHI_PUBLIC_HOST
340
340
  module.exports.BODHI_PUBLIC_PORT = BODHI_PUBLIC_PORT
341
+ module.exports.BODHI_SESSION_DB_URL = BODHI_SESSION_DB_URL
342
+ module.exports.BODHI_APP_DB_URL = BODHI_APP_DB_URL
343
+ module.exports.BODHI_DEPLOYMENT = BODHI_DEPLOYMENT
341
344
  module.exports.HF_HOME = HF_HOME
342
345
  module.exports.DEFAULT_HOST = DEFAULT_HOST
343
346
  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.29",
3
+ "version": "0.0.30",
4
4
  "description": "NAPI-RS bindings for BodhiApp server with integrated tests",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,7 +25,10 @@
25
25
  "update-optional-dependencies": "node scripts/update-optional-dependencies.js",
26
26
  "verify-packages": "node scripts/verify-npm-packages.js",
27
27
  "test:run": "vitest run",
28
- "test:playwright": "playwright test --config=playwright.config.mjs --reporter=list",
28
+ "test:playwright": "cross-env HEADLESS=true playwright test --config=playwright.config.mjs --reporter=list",
29
+ "test:playwright:sqlite": "cross-env HEADLESS=true playwright test --config=playwright.config.mjs --reporter=list --project sqlite",
30
+ "test:playwright:postgres": "cross-env HEADLESS=true playwright test --config=playwright.config.mjs --reporter=list --project postgres",
31
+ "test:playwright:all": "cross-env HEADLESS=true playwright test --config=playwright.config.mjs --reporter=list",
29
32
  "test:playwright:ci": "playwright test --config=playwright.config.mjs",
30
33
  "test:playwright:ui": "playwright test --config=playwright.config.mjs --ui",
31
34
  "test:playwright:headed": "playwright test --config=playwright.config.mjs --headed",
@@ -42,6 +45,7 @@
42
45
  "@biomejs/biome": "^1.9.4",
43
46
  "@napi-rs/cli": "^2.18.4",
44
47
  "@playwright/test": "1.57.0",
48
+ "cross-env": "^10.1.0",
45
49
  "dotenv": "^16.5.0",
46
50
  "express": "^5.1.0",
47
51
  "rimraf": "^6.0.1",
@@ -76,8 +80,7 @@
76
80
  "index.js"
77
81
  ],
78
82
  "optionalDependencies": {
79
- "@bodhiapp/app-bindings-darwin-arm64": "0.0.29",
80
- "@bodhiapp/app-bindings-linux-x64-gnu": "0.0.29",
81
- "@bodhiapp/app-bindings-win32-x64-msvc": "0.0.29"
83
+ "@bodhiapp/app-bindings-darwin-arm64": "0.0.30",
84
+ "@bodhiapp/app-bindings-linux-x64-gnu": "0.0.30"
82
85
  }
83
86
  }