mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 09:35:05 +00:00
refactor(constants): Use namespace import internally (#396)
This commit is contained in:
@@ -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
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user