Skip to content

Commit

Permalink
fix: Export SeamMultiWorkspace (#83)
Browse files Browse the repository at this point in the history
* fix: Export SeamMultiWorkspace

* ci: Format code

* ci: Format code

* docs: Fix SeamHttpRequest docs

* ci: Generate code

* ci: Format code

* Format README after generate

---------

Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
razor-x and seambot authored Apr 26, 2024
1 parent aeb47fc commit 3206672
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ This API is used internally and is not directly supported.

#### Inspecting the Request

All client methods return an instance of `SeamRequest`.
Inspect the request before it is sent to the server by intentionally not awaiting the `SeamRequest`:
All client methods return an instance of `SeamHttpRequest`.
Inspect the request before it is sent to the server by intentionally not awaiting the `SeamHttpRequest`:

```ts
const seam = new Seam('your-api-key')
Expand Down
1 change: 1 addition & 0 deletions generate-readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async function writeReadmeUsage(content: string): Promise<void> {
.replaceAll('@seamapi/webhook', 'seam')
.replaceAll('@seamapi/http', 'seam')
.replaceAll('SeamHttp', 'Seam')
.replaceAll('SeamRequest', 'SeamHttpRequest')
.replaceAll('seam/connect', 'seam')

const currentUsageSection = matches[1]
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
"lint": "eslint --ignore-path .gitignore .",
"prelint": "prettier --check --ignore-path .gitignore .",
"postversion": "git push --follow-tags",
"generate": "tsx generate-readme.ts",
"postgenerate": "markdown-toc -i README.md --bullets '-'",
"generate": "markdown-toc -i README.md --bullets '-'",
"pregenerate": "tsx generate-readme.ts",
"postgenerate": "prettier --write README.md",
"example": "tsx examples",
"example:inspect": "tsx --inspect examples",
"format": "eslint --ignore-path .gitignore --fix .",
Expand Down
10 changes: 8 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { SeamHttp as Seam } from '@seamapi/http/connect'
import {
SeamHttp as Seam,
SeamHttpMultiWorkspace as SeamMultiWorkspace,
type SeamHttpMultiWorkspaceOptions as SeamMultiWorkspaceOptions,
type SeamHttpOptions as SeamOptions,
} from '@seamapi/http/connect'

export * from '@seamapi/http/connect'
export type * from '@seamapi/types/connect'
export * from '@seamapi/webhook'
export { Seam }
export { Seam, SeamMultiWorkspace }
export type { SeamMultiWorkspaceOptions, SeamOptions }

0 comments on commit 3206672

Please sign in to comment.