diff --git a/README.md b/README.md index 4456fcf..1997f8f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ This API gives you programmatic access to APIMatic's Code Generation, Docs Gener Run the following command from your project directory to install the package from npm: ```ts -npm install @apimatic/sdk@0.0.1-alpha.2 +npm install @apimatic/sdk@0.0.1-alpha.10 + ``` ## Initialize the API Client diff --git a/package.json b/package.json index 6d73403..192031d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@apimatic/sdk", "description": "This API gives you programmatic access to APIMatic's Code Generation, Transformers Engine and Docs Generation.", "author": "Team APIMatic", - "version": "0.0.1-alpha.2", + "version": "0.0.1-alpha.10", "license": "MIT", "sideEffects": false, "main": "dist/index.js", diff --git a/src/client.ts b/src/client.ts index 2ebcba5..f0b8f1a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -42,11 +42,7 @@ export class Client implements ClientInterface { timeout: this._config.timeout, clientConfigOverrides: this._config.unstable_httpClientOptions, }), - [ - withErrorHandlers, - withUserAgent, - withAuthenticationByDefault, - ], + [withErrorHandlers, withUserAgent, withAuthenticationByDefault], new XmlSerialization() ); } @@ -72,7 +68,7 @@ function createHttpClientAdapter(client: HttpClient): HttpClientInterface { function getBaseUri(server: Server = 'default', config: Configuration): string { if (config.environment === Environment.Production) { if (server === 'default') { - return 'https://apimaticio-test.azurewebsites.net/api'; + return 'https://www.apimatic.io/api'; } } throw new Error('Could not get Base URL. Invalid environment or server.');