@polyv/request-core 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import { RequestPlugin } from '../plugins';
2
+ export * from './polyv';
2
3
  export type BaseUrlFn = () => string;
3
4
  export interface PolyvRequestConfig<Options extends RequestOptions = RequestOptions> {
4
5
  /**
@@ -1 +1 @@
1
- export {};
1
+ export * from './polyv';
@@ -0,0 +1,31 @@
1
+ /**
2
+ * 保利威域名信息
3
+ */
4
+ export interface PolyvDomainInfo {
5
+ /**
6
+ * 观看页域名
7
+ * @default https://live.polyv.cn
8
+ */
9
+ watchPageDomain?: string;
10
+ /**
11
+ * 后台 api 域名
12
+ * @default https://live.polyv.net
13
+ */
14
+ backstageApiDomain?: string;
15
+ /**
16
+ * 直播 api 域名
17
+ * @default https://api.polyv.net
18
+ */
19
+ polyvApiDomain?: string;
20
+ /**
21
+ * 聊天室 api 域名
22
+ * @default https://apichat.polyv.net
23
+ */
24
+ chatApiDomain?: string;
25
+ /**
26
+ * 静态域名
27
+ * @default https://liveimages.videocc.net
28
+ */
29
+ staticDomain?: string;
30
+ }
31
+ export declare const defaultPolyvDomainInfo: Required<PolyvDomainInfo>;
@@ -0,0 +1,7 @@
1
+ export const defaultPolyvDomainInfo = {
2
+ backstageApiDomain: 'https://live.polyv.net',
3
+ polyvApiDomain: 'https://api.polyv.net',
4
+ chatApiDomain: 'https://apichat.polyv.net',
5
+ staticDomain: 'https://liveimages.videocc.net',
6
+ watchPageDomain: 'https://live.polyv.cn',
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyv/request-core",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "main": "./index.js",
5
5
  "peerDependencies": {
6
6
  "axios": ">=1.0.0"