@@ -12,7 +12,8 @@ import {
12
12
RssAppError ,
13
13
} from './types' ;
14
14
15
- const DEFAULT_HOST = 'https://api.rss.app' ;
15
+ const DEFAULT_PROTOCOL = 'https' ;
16
+ const DEFAULT_HOST = DEFAULT_PROTOCOL + '://' + 'api.rss.app' ;
16
17
const DEFAULT_BASE_PATH = '/api/v1/' ;
17
18
18
19
class RssApp {
@@ -30,7 +31,7 @@ class RssApp {
30
31
this . _credentials = credentials ;
31
32
this . _api = {
32
33
host : options ?. host || DEFAULT_HOST ,
33
- protocol : options ?. protocol || 'https' ,
34
+ protocol : options ?. protocol || DEFAULT_PROTOCOL ,
34
35
basePath : DEFAULT_BASE_PATH ,
35
36
} ;
36
37
}
@@ -51,6 +52,7 @@ class RssApp {
51
52
params : options && { $limit : options . limit , $offset : options . offset } ,
52
53
} ) ;
53
54
} ,
55
+
54
56
/**
55
57
* A feed is returned. Otherwise, an error is returned.
56
58
*
@@ -65,6 +67,7 @@ class RssApp {
65
67
path : `feed/${ feedId } ` ,
66
68
} ) ;
67
69
} ,
70
+
68
71
/**
69
72
* A feed with posts is returned. Otherwise, an error is returned.
70
73
*
@@ -82,6 +85,7 @@ class RssApp {
82
85
body : createFeedOptions ,
83
86
} ) ;
84
87
} ,
88
+
85
89
/**
86
90
* A feed with posts is returned. Otherwise, an error is returned.
87
91
*
0 commit comments