From 83e66cb54d7d042aefecfb96b36e0cbf9007f569 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 18 Jul 2024 16:33:05 +0000 Subject: [PATCH] chore: rebuild project due to codegen change --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 490dfdcf..8197045f 100644 --- a/README.md +++ b/README.md @@ -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 }); @@ -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 }); @@ -108,7 +108,7 @@ You can use the `maxRetries` option to configure or disable this: ```js // Configure the default for all requests: -const mux = new Mux({ +const client = new Mux({ maxRetries: 0, // default is 2 }); @@ -125,7 +125,7 @@ Requests time out after 1 minute by default. You can configure this with a `time ```ts // Configure the default for all requests: -const mux = new Mux({ +const client = new Mux({ timeout: 20 * 1000, // 20 seconds (default is 1 minute) }); @@ -180,7 +180,7 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi ```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' }] }) @@ -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), });