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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/lib/parse.js +4 -5
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/lib/parse.mjs +4 -5
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
53
|
-
"User-Agent": "browser-use-sdk/2.0.
|
|
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) });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.6";
|
package/dist/cjs/version.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
175
|
+
// default:
|
|
176
|
+
// throw new ExhaustiveSwitchCheck(msg.data.status as never);
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
179
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
17
|
-
"User-Agent": "browser-use-sdk/2.0.
|
|
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) });
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.6";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
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
|
-
|
|
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
|
-
|
|
166
|
+
// default:
|
|
167
|
+
// throw new ExhaustiveSwitchCheck(msg.data.status as never);
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
}
|