File tree Expand file tree Collapse file tree 8 files changed +8
-28
lines changed
Expand file tree Collapse file tree 8 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " browser-use-sdk" ,
3- "version" : " 2.0.0-rc1 " ,
3+ "version" : " 1.2.1 " ,
44 "private" : false ,
55 "repository" : " github:browser-use/browser-use-node" ,
66 "type" : " commonjs" ,
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ export class BrowserUseClient {
5050 {
5151 "X-Fern-Language" : "JavaScript" ,
5252 "X-Fern-SDK-Name" : "browser-use-sdk" ,
53- "X-Fern-SDK-Version" : "2.0.0-rc1 " ,
54- "User-Agent" : "browser-use-sdk/2.0.0-rc1 " ,
53+ "X-Fern-SDK-Version" : "1.2.1 " ,
54+ "User-Agent" : "browser-use-sdk/1.2.1 " ,
5555 "X-Fern-Runtime" : core . RUNTIME . type ,
5656 "X-Fern-Runtime-Version" : core . RUNTIME . version ,
5757 } ,
Original file line number Diff line number Diff line change 11export * from "./NotFoundError.js" ;
22export * from "./UnprocessableEntityError.js" ;
33export * from "./BadRequestError.js" ;
4- export * from "./PaymentRequiredError.js" ;
54export * from "./InternalServerError.js" ;
5+ export * from "./PaymentRequiredError.js" ;
Original file line number Diff line number Diff line change @@ -152,10 +152,8 @@ export class Tasks {
152152 * @param {Tasks.RequestOptions } requestOptions - Request-specific configuration.
153153 *
154154 * @throws {@link BrowserUse.BadRequestError }
155- * @throws {@link BrowserUse.PaymentRequiredError }
156155 * @throws {@link BrowserUse.NotFoundError }
157156 * @throws {@link BrowserUse.UnprocessableEntityError }
158- * @throws {@link BrowserUse.InternalServerError }
159157 *
160158 * @example
161159 * await client.tasks.createTask({
@@ -203,20 +201,13 @@ export class Tasks {
203201 switch ( _response . error . statusCode ) {
204202 case 400 :
205203 throw new BrowserUse . BadRequestError ( _response . error . body as unknown , _response . rawResponse ) ;
206- case 402 :
207- throw new BrowserUse . PaymentRequiredError (
208- _response . error . body as BrowserUse . InsufficientCreditsError ,
209- _response . rawResponse ,
210- ) ;
211204 case 404 :
212205 throw new BrowserUse . NotFoundError ( _response . error . body as unknown , _response . rawResponse ) ;
213206 case 422 :
214207 throw new BrowserUse . UnprocessableEntityError (
215208 _response . error . body as unknown ,
216209 _response . rawResponse ,
217210 ) ;
218- case 500 :
219- throw new BrowserUse . InternalServerError ( _response . error . body as unknown , _response . rawResponse ) ;
220211 default :
221212 throw new errors . BrowserUseError ( {
222213 statusCode : _response . error . statusCode ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ export * from "./BadRequestErrorBody.js";
22export * from "./NotFoundErrorBody.js" ;
33export * from "./AccountNotFoundError.js" ;
44export * from "./AccountView.js" ;
5- export * from "./CreditsDeductionError.js" ;
65export * from "./DownloadUrlGenerationError.js" ;
76export * from "./FileView.js" ;
87export * from "./HttpValidationError.js" ;
Original file line number Diff line number Diff line change 1- export const SDK_VERSION = "2.0.0-rc1 " ;
1+ export const SDK_VERSION = "1.2.1 " ;
Original file line number Diff line number Diff line change @@ -1444,9 +1444,9 @@ eciesjs@^0.4.10:
14441444 " @noble/hashes" " ^1.8.0"
14451445
14461446electron-to-chromium@^1.5.211 :
1447- version "1.5.211 "
1448- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.211 .tgz#749317bf9cf894c06f67980940cf8074e5eb08ca "
1449- integrity sha512-IGBvimJkotaLzFnwIVgW9/UD/AOJ2tByUmeOrtqBfACSbAw5b1G0XpvdaieKyc7ULmbwXVx+4e4Be8pOPBrYkw ==
1447+ version "1.5.212 "
1448+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.212 .tgz#9b541f90d7d8415ccea94d4be4bb86e73e3f9547 "
1449+ integrity sha512-gE7ErIzSW+d8jALWMcOIgf+IB6lpfsg6NwOhPVwKzDtN2qcBix47vlin4yzSregYDxTCXOUqAZjVY/Z3naS7ww ==
14501450
14511451emittery@^0.13.1 :
14521452 version "0.13.1"
You can’t perform that action at this time.
0 commit comments