Skip to content

Commit 7378732

Browse files
author
kevin
committed
release(0.2.64): Release typescript-fetch SDK
1 parent 3bc66df commit 7378732

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## @emergentmethods/asknews-typescript-sdk@0.2.63
1+
## @emergentmethods/asknews-typescript-sdk@0.2.64
22

33
Typescript SDK for the AskNews API.
44
This SDK utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
@@ -21,7 +21,7 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
2121
### Installation
2222

2323
```
24-
npm install @emergentmethods/asknews-typescript-sdk@0.2.63 --save
24+
npm install @emergentmethods/asknews-typescript-sdk@0.2.64 --save
2525
```
2626

2727
## Usage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emergentmethods/asknews-typescript-sdk",
3-
"version": "0.2.63",
3+
"version": "0.2.64",
44
"description": "Typescript SDK for AskNews API",
55
"author": "Emergent Methods <contact@emergentmethods.ai>",
66
"license": "MIT",

src/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class BaseAPI {
175175
console.log('Requesting access token using client credentials');
176176
}
177177
const token = btoa(`${this.configuration.clientId}:${this.configuration.clientSecret}`);
178-
const response = await fetch(this.authUrl, {
178+
const response = await fetch(this.configuration.authUrl ?? AUTH_URL, {
179179
headers: new Headers({
180180
'Authorization': `Basic ${token}`,
181181
'Content-Type': 'application/x-www-form-urlencoded',

0 commit comments

Comments
 (0)