mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
init
This commit is contained in:
31
providers/providerContext.ts
Normal file
31
providers/providerContext.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import axios from 'axios';
|
||||
import {getBaseUrl} from './getBaseUrl';
|
||||
import {headers} from './headers';
|
||||
import * as cheerio from 'cheerio';
|
||||
import {hubcloudExtracter} from './hubcloudExtractor';
|
||||
import {gofileExtracter} from './gofileExtracter';
|
||||
import {superVideoExtractor} from './superVideoExtractor';
|
||||
import {gdFlixExtracter} from './gdflixExtractor';
|
||||
import {ProviderContext} from './types';
|
||||
import Aes from 'react-native-aes-crypto';
|
||||
|
||||
/**
|
||||
* Context for provider functions.
|
||||
* This context is used to pass common dependencies to provider functions.
|
||||
*/
|
||||
|
||||
const extractors = {
|
||||
hubcloudExtracter,
|
||||
gofileExtracter,
|
||||
superVideoExtractor,
|
||||
gdFlixExtracter,
|
||||
};
|
||||
|
||||
export const providerContext: ProviderContext = {
|
||||
axios,
|
||||
getBaseUrl,
|
||||
commonHeaders: headers,
|
||||
Aes,
|
||||
cheerio,
|
||||
extractors,
|
||||
};
|
||||
Reference in New Issue
Block a user