Skip to content

Commit 9a0eff4

Browse files
committed
Updated lint
1 parent 2867639 commit 9a0eff4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rss-generator-api",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "RSS.app generator API",
55
"types": "lib/index.d.ts",
66
"keywords": [

src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
RssAppError,
1313
} from './types';
1414

15-
const DEFAULT_HOST = 'https://api.rss.app';
15+
const DEFAULT_PROTOCOL = 'https';
16+
const DEFAULT_HOST = DEFAULT_PROTOCOL + '://' + 'api.rss.app';
1617
const DEFAULT_BASE_PATH = '/api/v1/';
1718

1819
class RssApp {
@@ -30,7 +31,7 @@ class RssApp {
3031
this._credentials = credentials;
3132
this._api = {
3233
host: options?.host || DEFAULT_HOST,
33-
protocol: options?.protocol || 'https',
34+
protocol: options?.protocol || DEFAULT_PROTOCOL,
3435
basePath: DEFAULT_BASE_PATH,
3536
};
3637
}
@@ -51,6 +52,7 @@ class RssApp {
5152
params: options && { $limit: options.limit, $offset: options.offset },
5253
});
5354
},
55+
5456
/**
5557
* A feed is returned. Otherwise, an error is returned.
5658
*
@@ -65,6 +67,7 @@ class RssApp {
6567
path: `feed/${feedId}`,
6668
});
6769
},
70+
6871
/**
6972
* A feed with posts is returned. Otherwise, an error is returned.
7073
*
@@ -82,6 +85,7 @@ class RssApp {
8285
body: createFeedOptions,
8386
});
8487
},
88+
8589
/**
8690
* A feed with posts is returned. Otherwise, an error is returned.
8791
*

0 commit comments

Comments
 (0)