@rstreamlabs/webtty 1.6.3 → 1.6.4

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.js CHANGED
@@ -1903,15 +1903,17 @@ var WebTTY = class {
1903
1903
  */
1904
1904
  constructor(clientConfig, execConfig, events) {
1905
1905
  this.clientConfig = {
1906
- sendHeartbeat: true,
1907
- heartbeatIntervalMs: 5e3,
1908
- ...clientConfig
1906
+ heartbeatIntervalMs: clientConfig.heartbeatIntervalMs ?? 5e3,
1907
+ sendHeartbeat: clientConfig.sendHeartbeat ?? true,
1908
+ url: clientConfig.url
1909
1909
  };
1910
1910
  this.execConfig = {
1911
- allocateTty: true,
1912
- interactive: true,
1913
- envVars: [],
1914
- ...execConfig
1911
+ allocateTty: execConfig?.allocateTty ?? true,
1912
+ cmdArgs: execConfig?.cmdArgs,
1913
+ envVars: execConfig?.envVars ?? [],
1914
+ interactive: execConfig?.interactive ?? true,
1915
+ username: execConfig?.username,
1916
+ workdir: execConfig?.workdir
1915
1917
  };
1916
1918
  this.events = events || {};
1917
1919
  }
package/dist/index.mjs CHANGED
@@ -1867,15 +1867,17 @@ var WebTTY = class {
1867
1867
  */
1868
1868
  constructor(clientConfig, execConfig, events) {
1869
1869
  this.clientConfig = {
1870
- sendHeartbeat: true,
1871
- heartbeatIntervalMs: 5e3,
1872
- ...clientConfig
1870
+ heartbeatIntervalMs: clientConfig.heartbeatIntervalMs ?? 5e3,
1871
+ sendHeartbeat: clientConfig.sendHeartbeat ?? true,
1872
+ url: clientConfig.url
1873
1873
  };
1874
1874
  this.execConfig = {
1875
- allocateTty: true,
1876
- interactive: true,
1877
- envVars: [],
1878
- ...execConfig
1875
+ allocateTty: execConfig?.allocateTty ?? true,
1876
+ cmdArgs: execConfig?.cmdArgs,
1877
+ envVars: execConfig?.envVars ?? [],
1878
+ interactive: execConfig?.interactive ?? true,
1879
+ username: execConfig?.username,
1880
+ workdir: execConfig?.workdir
1879
1881
  };
1880
1882
  this.events = events || {};
1881
1883
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstreamlabs/webtty",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "Client-side implementation of the rstream WebTTY protocol.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -16,6 +16,8 @@
16
16
  "clean": "rm -rf .generated && rm -rf dist",
17
17
  "generate-proto-files": "bash scripts/generate-proto-files.sh",
18
18
  "lint": "eslint \"./**/*.ts*\"",
19
+ "pretest": "npm run generate-proto-files && npm run build",
20
+ "test": "node --test ./test/**/*.test.cjs",
19
21
  "type-check": "tsc --noEmit"
20
22
  },
21
23
  "devDependencies": {