@mochabug/adapt-core 1.0.1-rc.7 → 1.0.1-rc.8

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.
@@ -15,6 +15,10 @@ import { AutomationService } from "./genproto/mochabugapis/adapt/automations/v1/
15
15
  * @returns A raw Connect client
16
16
  */
17
17
  export function createConnectClient(options) {
18
+ if (!options.id) {
19
+ throw new Error("[adapt] createConnectClient requires \"id\" (the automation ID). " +
20
+ "Usage: createConnectClient({ id: \"your-automation-id\" })");
21
+ }
18
22
  const config = getConfig();
19
23
  const transport = createConnectTransport({
20
24
  baseUrl: `${config.webUrl}/${options.id}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-core",
3
- "version": "1.0.1-rc.7",
3
+ "version": "1.0.1-rc.8",
4
4
  "description": "Cross-platform core client library for Adapt automation platform",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",