From 82c068f8f3bc667ec4528e84054a05fb9fa3516e Mon Sep 17 00:00:00 2001 From: Ealhad Date: Mon, 12 Nov 2018 15:55:09 +0000 Subject: [PATCH] Make `fetchAPI` method private --- src/invidious-api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious-api.ts b/src/invidious-api.ts index c9a482b..d44863f 100644 --- a/src/invidious-api.ts +++ b/src/invidious-api.ts @@ -2,7 +2,7 @@ import * as _ from 'lodash/fp'; import constants from './constants'; export default class InvidiousAPI { - static async _fetchAPI(action: string, params: any) { + private static async fetchAPI(action: string, params: any) { const paramString = typeof params == 'string' ? params : Object.keys(params).map(function(key) { @@ -18,10 +18,10 @@ export default class InvidiousAPI { } static async getVideo(id: string) { - return this._fetchAPI(constants.invidiousAPI.videos, id); + return this.fetchAPI(constants.invidiousAPI.videos, id); } static async getChannel(ucid: string) { - return this._fetchAPI(constants.invidiousAPI.channels, ucid); + return this.fetchAPI(constants.invidiousAPI.channels, ucid); } }