diff --git a/docs/compat.md b/docs/compat.md index 7300c0c..79a37bb 100644 --- a/docs/compat.md +++ b/docs/compat.md @@ -19,11 +19,13 @@ However, there are still incompatibilities between Node.js and the browser. Generate a temporary auth token on the server. ```js - import { AssemblyAI } from "assemblyai" + import { AssemblyAI } from "assemblyai"; // Ideally, to avoid embedding your API key client side, // you generate this token on the server, and pass it to the client via an API. const client = new AssemblyAI({ apiKey: "YOUR_API_KEY" }); - const token = await client.streaming.createTemporaryToken({ expires_in_seconds: 60 }); + const token = await client.streaming.createTemporaryToken({ + expires_in_seconds: 60, + }); ``` > [!NOTE] diff --git a/package.json b/package.json index e2edb47..6ba4283 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "assemblyai", - "version": "4.21.0", + "version": "4.22.0", "description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.", "engines": { "node": ">=18"