@@ -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' ;
1617const DEFAULT_BASE_PATH = '/api/v1/' ;
1718
1819class 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