Skip to content

Commit 4cf49be

Browse files
committed
SDK regeneration
1 parent 1ce2853 commit 4cf49be

File tree

6 files changed

+39
-125
lines changed

6 files changed

+39
-125
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,30 @@ jobs:
2828

2929
- name: Compile
3030
run: yarn && yarn test
31+
32+
publish:
33+
needs: [ compile, test ]
34+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout repo
38+
uses: actions/checkout@v4
39+
- name: Set up node
40+
uses: actions/setup-node@v3
41+
- name: Install dependencies
42+
run: yarn install
43+
- name: Build
44+
run: yarn build
45+
46+
- name: Publish to npm
47+
run: |
48+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
49+
if [[ ${GITHUB_REF} == *alpha* ]]; then
50+
npm publish --access public --tag alpha
51+
elif [[ ${GITHUB_REF} == *beta* ]]; then
52+
npm publish --access public --tag beta
53+
else
54+
npm publish --access public
55+
fi
56+
env:
57+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# BrowserUse TypeScript Library
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fbrowser-use%2Fbrowser-use-node)
4-
[![npm shield](https://img.shields.io/npm/v/)](https://www.npmjs.com/package/)
4+
[![npm shield](https://img.shields.io/npm/v/browser-use-sdk)](https://www.npmjs.com/package/browser-use-sdk)
55

66
The BrowserUse TypeScript library provides convenient access to the BrowserUse APIs from TypeScript.
77

@@ -403,7 +403,7 @@ On the other hand, contributions to the README are always very welcome!
403403
## Installation
404404

405405
```sh
406-
npm i -s
406+
npm i -s browser-use-sdk
407407
```
408408

409409
## Reference
@@ -415,7 +415,7 @@ A full reference for this library is available [here](https://github.com/browser
415415
Instantiate and use the client with the following:
416416

417417
```typescript
418-
import { BrowserUseClient } from "";
418+
import { BrowserUseClient } from "browser-use-sdk";
419419

420420
const client = new BrowserUseClient({ apiKey: "YOUR_API_KEY" });
421421
await client.tasks.createTask({
@@ -429,7 +429,7 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
429429
following namespace:
430430

431431
```typescript
432-
import { BrowserUse } from "BrowserUse";
432+
import { BrowserUse } from "browser-use-sdk";
433433

434434
const request: BrowserUse.ListTasksTasksGetRequest = {
435435
...
@@ -442,7 +442,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
442442
will be thrown.
443443

444444
```typescript
445-
import { BrowserUseError } from "BrowserUse";
445+
import { BrowserUseError } from "browser-use-sdk";
446446

447447
try {
448448
await client.tasks.createTask(...);
@@ -553,7 +553,7 @@ The SDK provides a way for you to customize the underlying HTTP client / Fetch f
553553
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
554554

555555
```typescript
556-
import { BrowserUseClient } from "BrowserUse";
556+
import { BrowserUseClient } from "browser-use-sdk";
557557

558558
const client = new BrowserUseClient({
559559
...

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "",
3-
"version": "0.0.40",
2+
"name": "browser-use-sdk",
3+
"version": "1.2.1",
44
"private": false,
55
"repository": "github:browser-use/browser-use-node",
66
"type": "commonjs",

src/Client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export class BrowserUseClient {
4949
headers: mergeHeaders(
5050
{
5151
"X-Fern-Language": "JavaScript",
52-
"X-Fern-SDK-Name": "",
53-
"X-Fern-SDK-Version": "0.0.40",
52+
"X-Fern-SDK-Name": "browser-use-sdk",
53+
"X-Fern-SDK-Version": "1.2.1",
54+
"User-Agent": "browser-use-sdk/1.2.1",
5455
"X-Fern-Runtime": core.RUNTIME.type,
5556
"X-Fern-Runtime-Version": core.RUNTIME.version,
5657
},

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "0.0.40";
1+
export const SDK_VERSION = "1.2.1";

tests/wrapper/webhooks.test.ts

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)