refactor(constants): Use namespace import internally (#396)

This commit is contained in:
absidue
2023-05-06 20:46:20 +02:00
committed by GitHub
parent 891d889408
commit b1f19f16ac
11 changed files with 12 additions and 20 deletions

View File

@@ -78,11 +78,3 @@ export const INNERTUBE_HEADERS_BASE = Object.freeze({
'accept-encoding': 'gzip, deflate',
'content-type': 'application/json'
});
export default {
URLS,
OAUTH,
CLIENTS,
STREAM_HEADERS,
INNERTUBE_HEADERS_BASE
};

View File

@@ -5,7 +5,7 @@ import type Format from '../parser/classes/misc/Format.js';
import type AudioOnlyPlayability from '../parser/classes/AudioOnlyPlayability.js';
import type { YTNode } from '../parser/helpers.js';
import { Constants } from './index.js';
import * as Constants from './Constants.js';
import { getStringBetweenStrings, InnertubeError, Platform, streamToIterable } from './Utils.js';
export type URLTransformer = (url: URL) => URL;

View File

@@ -1,7 +1,7 @@
import type { Context } from '../core/Session.js';
import type Session from '../core/Session.js';
import type { FetchFunction } from '../types/PlatformShim.js';
import Constants from './Constants.js';
import * as Constants from './Constants.js';
import {
Platform,
generateSidAuth,