Skip to content

Commit 6a728ec

Browse files
committed
Bump version
1 parent b67498c commit 6a728ec

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Optionally, supply the maximum number of milliseconds which a request can take t
136136
import { LastFMTrack } from 'lastfm-ts-api';
137137

138138
const track = new LastFMTrack('API_KEY', 'SECRET', 'SESSION_KEY', {
139-
timeout: 3000 // timeout request after 3 seconds, throws an exception
139+
timeout: 3000 // timeout request after 3 seconds, throws an exception
140140
});
141141
```
142142

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lastfm-ts-api",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "An API client for the Last.FM API written in TypeScript",
55
"keywords": [
66
"Last.FM",

src/api-request.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export class LastFMApiRequest<T> {
146146
? method
147147
: undefined
148148
: typeof callback === 'function'
149-
? callback
150-
: undefined;
149+
? callback
150+
: undefined;
151151
}
152152

153153
private getMethod(method?: string | LastFMUnknownFunction): string | LastFMUnknownFunction | undefined {
@@ -160,7 +160,7 @@ export class LastFMApiRequest<T> {
160160
path: this.config.path ?? '/2.0'
161161
};
162162

163-
if(this.config.timeout !== undefined) {
163+
if (this.config.timeout !== undefined) {
164164
options.signal = AbortSignal.timeout(this.config.timeout);
165165
}
166166

0 commit comments

Comments
 (0)