hume 0.14.2-beta.4 → 0.14.2-beta.5

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.
@@ -84,7 +84,12 @@ class HumeClient extends Client_1.HumeClient {
84
84
  stream: e.replace('https://', 'wss://') + "/v0/stream",
85
85
  };
86
86
  }
87
- throw new Error(`Invalid environment URL: ${e}. Must start with http:// or https://`);
87
+ return {
88
+ base: 'https://' + e,
89
+ evi: 'wss://' + e + "/v0/evi",
90
+ tts: 'wss://' + e + "/v0/tts",
91
+ stream: 'wss://' + e + "/v0/stream",
92
+ };
88
93
  }
89
94
  else {
90
95
  return e;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.14.2-beta.4",
3
+ "version": "0.14.2-beta.5",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",
@@ -84,7 +84,12 @@ class HumeClient extends Client_1.HumeClient {
84
84
  stream: e.replace('https://', 'wss://') + "/v0/stream",
85
85
  };
86
86
  }
87
- throw new Error(`Invalid environment URL: ${e}. Must start with http:// or https://`);
87
+ return {
88
+ base: 'https://' + e,
89
+ evi: 'wss://' + e + "/v0/evi",
90
+ tts: 'wss://' + e + "/v0/tts",
91
+ stream: 'wss://' + e + "/v0/stream",
92
+ };
88
93
  }
89
94
  else {
90
95
  return e;