browser-use-sdk 2.0.5 → 2.0.6

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.
@@ -49,8 +49,8 @@ class BrowserUseClient {
49
49
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "browser-use-sdk",
52
- "X-Fern-SDK-Version": "2.0.5",
53
- "User-Agent": "browser-use-sdk/2.0.5",
52
+ "X-Fern-SDK-Version": "2.0.6",
53
+ "User-Agent": "browser-use-sdk/2.0.6",
54
54
  "X-Fern-Runtime": core.RUNTIME.type,
55
55
  "X-Fern-Runtime-Version": core.RUNTIME.version,
56
56
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.5";
1
+ export declare const SDK_VERSION = "2.0.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.0.5";
4
+ exports.SDK_VERSION = "2.0.6";
@@ -39,7 +39,6 @@ exports.wrapCreateTaskResponse = wrapCreateTaskResponse;
39
39
  const crypto_1 = require("crypto");
40
40
  const fast_json_stable_stringify_1 = __importDefault(require("fast-json-stable-stringify"));
41
41
  const zod_1 = __importDefault(require("zod"));
42
- const types_js_1 = require("./types.js");
43
42
  function stringifyStructuredOutput(schema) {
44
43
  return JSON.stringify(zod_1.default.toJSONSchema(schema));
45
44
  }
@@ -95,8 +94,8 @@ function wrapCreateTaskResponse(client, response, schema) {
95
94
  case "started":
96
95
  yield __await(new Promise((resolve) => setTimeout(resolve, intervalMs)));
97
96
  break;
98
- default:
99
- throw new types_js_1.ExhaustiveSwitchCheck(res.status);
97
+ // default:
98
+ // throw new ExhaustiveSwitchCheck(res.status as never);
100
99
  }
101
100
  } while (true);
102
101
  });
@@ -173,8 +172,8 @@ function wrapCreateTaskResponse(client, response, schema) {
173
172
  case "stopped":
174
173
  case "started":
175
174
  break;
176
- default:
177
- throw new types_js_1.ExhaustiveSwitchCheck(msg.data.status);
175
+ // default:
176
+ // throw new ExhaustiveSwitchCheck(msg.data.status as never);
178
177
  }
179
178
  }
180
179
  }
@@ -13,8 +13,8 @@ export class BrowserUseClient {
13
13
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
14
14
  "X-Fern-Language": "JavaScript",
15
15
  "X-Fern-SDK-Name": "browser-use-sdk",
16
- "X-Fern-SDK-Version": "2.0.5",
17
- "User-Agent": "browser-use-sdk/2.0.5",
16
+ "X-Fern-SDK-Version": "2.0.6",
17
+ "User-Agent": "browser-use-sdk/2.0.6",
18
18
  "X-Fern-Runtime": core.RUNTIME.type,
19
19
  "X-Fern-Runtime-Version": core.RUNTIME.version,
20
20
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.5";
1
+ export declare const SDK_VERSION = "2.0.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.5";
1
+ export const SDK_VERSION = "2.0.6";
@@ -30,7 +30,6 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
30
30
  import { createHash } from "crypto";
31
31
  import stringify from "fast-json-stable-stringify";
32
32
  import z, {} from "zod";
33
- import { ExhaustiveSwitchCheck } from "./types.mjs";
34
33
  export function stringifyStructuredOutput(schema) {
35
34
  return JSON.stringify(z.toJSONSchema(schema));
36
35
  }
@@ -86,8 +85,8 @@ export function wrapCreateTaskResponse(client, response, schema) {
86
85
  case "started":
87
86
  yield __await(new Promise((resolve) => setTimeout(resolve, intervalMs)));
88
87
  break;
89
- default:
90
- throw new ExhaustiveSwitchCheck(res.status);
88
+ // default:
89
+ // throw new ExhaustiveSwitchCheck(res.status as never);
91
90
  }
92
91
  } while (true);
93
92
  });
@@ -164,8 +163,8 @@ export function wrapCreateTaskResponse(client, response, schema) {
164
163
  case "stopped":
165
164
  case "started":
166
165
  break;
167
- default:
168
- throw new ExhaustiveSwitchCheck(msg.data.status);
166
+ // default:
167
+ // throw new ExhaustiveSwitchCheck(msg.data.status as never);
169
168
  }
170
169
  }
171
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-use-sdk",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "private": false,
5
5
  "repository": "github:browser-use/browser-use-node",
6
6
  "type": "commonjs",