Skip to content

chore: rebuild project due to codegen change #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The full API of this library can be found in [api.md](api.md).
```js
import Mux from '@mux/mux-node';

const mux = new Mux({
const client = new Mux({
tokenId: process.env['MUX_TOKEN_ID'], // This is the default and can be omitted
tokenSecret: process.env['MUX_TOKEN_SECRET'], // This is the default and can be omitted
});
Expand All @@ -44,7 +44,7 @@ This library includes TypeScript definitions for all request params and response
```ts
import Mux from '@mux/mux-node';

const mux = new Mux({
const client = new Mux({
tokenId: process.env['MUX_TOKEN_ID'], // This is the default and can be omitted
tokenSecret: process.env['MUX_TOKEN_SECRET'], // This is the default and can be omitted
});
Expand Down Expand Up @@ -108,7 +108,7 @@ You can use the `maxRetries` option to configure or disable this:
<!-- prettier-ignore -->
```js
// Configure the default for all requests:
const mux = new Mux({
const client = new Mux({
maxRetries: 0, // default is 2
});

Expand All @@ -125,7 +125,7 @@ Requests time out after 1 minute by default. You can configure this with a `time
<!-- prettier-ignore -->
```ts
// Configure the default for all requests:
const mux = new Mux({
const client = new Mux({
timeout: 20 * 1000, // 20 seconds (default is 1 minute)
});

Expand Down Expand Up @@ -180,7 +180,7 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi

<!-- prettier-ignore -->
```ts
const mux = new Mux();
const client = new Mux();

const response = await mux.video.assets
.create({ input: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }] })
Expand Down Expand Up @@ -291,7 +291,7 @@ import http from 'http';
import { HttpsProxyAgent } from 'https-proxy-agent';

// Configure the default for all requests:
const mux = new Mux({
const client = new Mux({
httpAgent: new HttpsProxyAgent(process.env.PROXY_URL),
});

Expand Down