@x-edu/service 0.0.9 → 0.0.11
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.
- package/dist/config/index.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/service/ndr.d.ts +16 -0
- package/dist/service/uc.d.ts +7 -0
- package/dist/service.js +47 -6
- package/dist/service.mjs +47 -6
- package/dist/service.umd.js +47 -6
- package/package.json +3 -3
package/dist/config/index.d.ts
CHANGED
|
@@ -18,9 +18,11 @@ declare const config: {
|
|
|
18
18
|
train: string;
|
|
19
19
|
't-course': string;
|
|
20
20
|
eLabour: string;
|
|
21
|
+
library: string;
|
|
21
22
|
};
|
|
22
23
|
defaultAreaSite: string;
|
|
23
24
|
'elearning-library': string;
|
|
25
|
+
uc: string;
|
|
24
26
|
};
|
|
25
27
|
preproduction: {
|
|
26
28
|
'x-proxy': string;
|
|
@@ -32,6 +34,7 @@ declare const config: {
|
|
|
32
34
|
'x-study-record': string;
|
|
33
35
|
cdn: string;
|
|
34
36
|
'cdn-hot-proxy': string;
|
|
37
|
+
'cdn-bdcs-file': string;
|
|
35
38
|
'site-config': string;
|
|
36
39
|
serviceName: {
|
|
37
40
|
site: string;
|
|
@@ -39,6 +42,7 @@ declare const config: {
|
|
|
39
42
|
train: string;
|
|
40
43
|
't-course': string;
|
|
41
44
|
eLabour: string;
|
|
45
|
+
library: string;
|
|
42
46
|
};
|
|
43
47
|
defaultAreaSite: string;
|
|
44
48
|
'elearning-library': string;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,9 +35,11 @@ export declare const serviceConfig: {
|
|
|
35
35
|
train: string;
|
|
36
36
|
't-course': string;
|
|
37
37
|
eLabour: string;
|
|
38
|
+
library: string;
|
|
38
39
|
};
|
|
39
40
|
defaultAreaSite: string;
|
|
40
41
|
'elearning-library': string;
|
|
42
|
+
uc: string;
|
|
41
43
|
};
|
|
42
44
|
preproduction: {
|
|
43
45
|
'x-proxy': string;
|
|
@@ -49,6 +51,7 @@ export declare const serviceConfig: {
|
|
|
49
51
|
'x-study-record': string;
|
|
50
52
|
cdn: string;
|
|
51
53
|
'cdn-hot-proxy': string;
|
|
54
|
+
'cdn-bdcs-file': string;
|
|
52
55
|
'site-config': string;
|
|
53
56
|
serviceName: {
|
|
54
57
|
site: string;
|
|
@@ -56,6 +59,7 @@ export declare const serviceConfig: {
|
|
|
56
59
|
train: string;
|
|
57
60
|
't-course': string;
|
|
58
61
|
eLabour: string;
|
|
62
|
+
library: string;
|
|
59
63
|
};
|
|
60
64
|
defaultAreaSite: string;
|
|
61
65
|
'elearning-library': string;
|
package/dist/service/ndr.d.ts
CHANGED
|
@@ -91,5 +91,21 @@ declare class Ndr {
|
|
|
91
91
|
id: any;
|
|
92
92
|
serviceName: any;
|
|
93
93
|
}) => Promise<any>;
|
|
94
|
+
fetchTchMaterialDetail: ({ id, serviceName }: {
|
|
95
|
+
id: any;
|
|
96
|
+
serviceName: any;
|
|
97
|
+
}) => Promise<any>;
|
|
98
|
+
fetchTchMaterialAudio: ({ id, serviceName }: {
|
|
99
|
+
id: any;
|
|
100
|
+
serviceName: any;
|
|
101
|
+
}) => Promise<any>;
|
|
102
|
+
fetchLabourDetailNDR: ({ id, serviceName }: {
|
|
103
|
+
id: any;
|
|
104
|
+
serviceName: any;
|
|
105
|
+
}) => Promise<any>;
|
|
106
|
+
fetchResourceDetailNDR: ({ id, serviceName }: {
|
|
107
|
+
id: any;
|
|
108
|
+
serviceName: any;
|
|
109
|
+
}) => Promise<any>;
|
|
94
110
|
}
|
|
95
111
|
export default Ndr;
|
package/dist/service.js
CHANGED
|
@@ -17635,11 +17635,13 @@ const config = {
|
|
|
17635
17635
|
zxxRegion: "zxx_region",
|
|
17636
17636
|
train: "teach",
|
|
17637
17637
|
"t-course": "teach",
|
|
17638
|
-
eLabour: "ldjy"
|
|
17638
|
+
eLabour: "ldjy",
|
|
17639
|
+
library: "zxx"
|
|
17639
17640
|
},
|
|
17640
17641
|
defaultAreaSite: "hn",
|
|
17641
17642
|
// 内容库
|
|
17642
|
-
"elearning-library": "//elearning-library-gateway.ykt.eduyun.cn"
|
|
17643
|
+
"elearning-library": "//elearning-library-gateway.ykt.eduyun.cn",
|
|
17644
|
+
uc: "//uc-gateway.ykt.eduyun.cn"
|
|
17643
17645
|
},
|
|
17644
17646
|
preproduction: {
|
|
17645
17647
|
// 代理
|
|
@@ -17655,6 +17657,7 @@ const config = {
|
|
|
17655
17657
|
"x-study-record": "//x-study-record-api.beta.101.com",
|
|
17656
17658
|
cdn: "//ndcs-pre.101.com",
|
|
17657
17659
|
"cdn-hot-proxy": "//betacs.101.com",
|
|
17660
|
+
"cdn-bdcs-file": "//ndcs-pre.101.com",
|
|
17658
17661
|
// 站点配置(存在灰度能力)
|
|
17659
17662
|
"site-config": "//grey-config-web.ykt.cbern.com.cn",
|
|
17660
17663
|
serviceName: {
|
|
@@ -17662,12 +17665,13 @@ const config = {
|
|
|
17662
17665
|
zxxRegion: "preproduction_content_zxx_region",
|
|
17663
17666
|
train: "preproduction_content_staticize",
|
|
17664
17667
|
"t-course": "preproduction_content_x_course",
|
|
17665
|
-
eLabour: "preproduction_content_zxx"
|
|
17668
|
+
eLabour: "preproduction_content_zxx",
|
|
17669
|
+
library: "preproduction_content_zxx"
|
|
17666
17670
|
},
|
|
17667
17671
|
defaultAreaSite: "hn",
|
|
17668
17672
|
// 内容库
|
|
17669
17673
|
"elearning-library": "//elearning-library-gateway.beta.101.com",
|
|
17670
|
-
uc: "
|
|
17674
|
+
uc: "//uc-gateway.sdp.101.com"
|
|
17671
17675
|
}
|
|
17672
17676
|
};
|
|
17673
17677
|
const recommendAPIV2 = ({
|
|
@@ -19441,11 +19445,47 @@ class Ndr {
|
|
|
19441
19445
|
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/teaching_lesson/resources/${id}/relation_resource.json`);
|
|
19442
19446
|
return data;
|
|
19443
19447
|
});
|
|
19448
|
+
// 获取电子教材详情
|
|
19449
|
+
__publicField(this, "fetchTchMaterialDetail", async ({ id, serviceName: serviceName2 }) => {
|
|
19450
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrv2/resources/tch_material/details/${id}.json`);
|
|
19451
|
+
return data;
|
|
19452
|
+
});
|
|
19453
|
+
__publicField(this, "fetchTchMaterialAudio", async ({ id, serviceName: serviceName2 }) => {
|
|
19454
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/resources/${id}/relation_audios.json`);
|
|
19455
|
+
return data;
|
|
19456
|
+
});
|
|
19457
|
+
// 劳动教育
|
|
19458
|
+
__publicField(this, "fetchLabourDetailNDR", async ({ id, serviceName: serviceName2 }) => {
|
|
19459
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/special_edu/resources/details/${id}.json`);
|
|
19460
|
+
return data;
|
|
19461
|
+
});
|
|
19462
|
+
// 获取 ndr 详情数据
|
|
19463
|
+
__publicField(this, "fetchResourceDetailNDR", async ({ id, serviceName: serviceName2 }) => {
|
|
19464
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/special_edu/resources/details/${id}.json`);
|
|
19465
|
+
return data;
|
|
19466
|
+
});
|
|
19444
19467
|
const { request, config: config2 } = props;
|
|
19445
19468
|
this.request = request;
|
|
19446
19469
|
this.config = config2;
|
|
19447
19470
|
}
|
|
19448
19471
|
}
|
|
19472
|
+
class UC {
|
|
19473
|
+
constructor(props) {
|
|
19474
|
+
__publicField(this, "request");
|
|
19475
|
+
__publicField(this, "uc");
|
|
19476
|
+
__publicField(this, "getInstitutions", async () => {
|
|
19477
|
+
const response = await this.request.uc.ucAPI.get("/institutions/actions/search", {
|
|
19478
|
+
params: {
|
|
19479
|
+
app_id: this.uc.options.sdpAppId
|
|
19480
|
+
}
|
|
19481
|
+
});
|
|
19482
|
+
return response.data;
|
|
19483
|
+
});
|
|
19484
|
+
const { request, uc } = props;
|
|
19485
|
+
this.request = request;
|
|
19486
|
+
this.uc = uc;
|
|
19487
|
+
}
|
|
19488
|
+
}
|
|
19449
19489
|
const _Service = class _Service {
|
|
19450
19490
|
constructor(props) {
|
|
19451
19491
|
__publicField(this, "env");
|
|
@@ -19547,11 +19587,12 @@ const _Service = class _Service {
|
|
|
19547
19587
|
elearningTrain: ElearningTrain,
|
|
19548
19588
|
siteConfig: SiteConfig,
|
|
19549
19589
|
library: Library,
|
|
19550
|
-
Ndr
|
|
19590
|
+
Ndr,
|
|
19591
|
+
uc: UC
|
|
19551
19592
|
};
|
|
19552
19593
|
this.service = {};
|
|
19553
19594
|
Object.keys(services).forEach((key) => {
|
|
19554
|
-
this.service[key] = new services[key]({ request: this.request, config: this.config, sdpAppId: this.sdpAppId });
|
|
19595
|
+
this.service[key] = new services[key]({ request: this.request, config: this.config, sdpAppId: this.sdpAppId, uc: this.uc });
|
|
19555
19596
|
});
|
|
19556
19597
|
}
|
|
19557
19598
|
};
|
package/dist/service.mjs
CHANGED
|
@@ -17633,11 +17633,13 @@ const config = {
|
|
|
17633
17633
|
zxxRegion: "zxx_region",
|
|
17634
17634
|
train: "teach",
|
|
17635
17635
|
"t-course": "teach",
|
|
17636
|
-
eLabour: "ldjy"
|
|
17636
|
+
eLabour: "ldjy",
|
|
17637
|
+
library: "zxx"
|
|
17637
17638
|
},
|
|
17638
17639
|
defaultAreaSite: "hn",
|
|
17639
17640
|
// 内容库
|
|
17640
|
-
"elearning-library": "//elearning-library-gateway.ykt.eduyun.cn"
|
|
17641
|
+
"elearning-library": "//elearning-library-gateway.ykt.eduyun.cn",
|
|
17642
|
+
uc: "//uc-gateway.ykt.eduyun.cn"
|
|
17641
17643
|
},
|
|
17642
17644
|
preproduction: {
|
|
17643
17645
|
// 代理
|
|
@@ -17653,6 +17655,7 @@ const config = {
|
|
|
17653
17655
|
"x-study-record": "//x-study-record-api.beta.101.com",
|
|
17654
17656
|
cdn: "//ndcs-pre.101.com",
|
|
17655
17657
|
"cdn-hot-proxy": "//betacs.101.com",
|
|
17658
|
+
"cdn-bdcs-file": "//ndcs-pre.101.com",
|
|
17656
17659
|
// 站点配置(存在灰度能力)
|
|
17657
17660
|
"site-config": "//grey-config-web.ykt.cbern.com.cn",
|
|
17658
17661
|
serviceName: {
|
|
@@ -17660,12 +17663,13 @@ const config = {
|
|
|
17660
17663
|
zxxRegion: "preproduction_content_zxx_region",
|
|
17661
17664
|
train: "preproduction_content_staticize",
|
|
17662
17665
|
"t-course": "preproduction_content_x_course",
|
|
17663
|
-
eLabour: "preproduction_content_zxx"
|
|
17666
|
+
eLabour: "preproduction_content_zxx",
|
|
17667
|
+
library: "preproduction_content_zxx"
|
|
17664
17668
|
},
|
|
17665
17669
|
defaultAreaSite: "hn",
|
|
17666
17670
|
// 内容库
|
|
17667
17671
|
"elearning-library": "//elearning-library-gateway.beta.101.com",
|
|
17668
|
-
uc: "
|
|
17672
|
+
uc: "//uc-gateway.sdp.101.com"
|
|
17669
17673
|
}
|
|
17670
17674
|
};
|
|
17671
17675
|
const recommendAPIV2 = ({
|
|
@@ -19439,11 +19443,47 @@ class Ndr {
|
|
|
19439
19443
|
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/teaching_lesson/resources/${id}/relation_resource.json`);
|
|
19440
19444
|
return data;
|
|
19441
19445
|
});
|
|
19446
|
+
// 获取电子教材详情
|
|
19447
|
+
__publicField(this, "fetchTchMaterialDetail", async ({ id, serviceName: serviceName2 }) => {
|
|
19448
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrv2/resources/tch_material/details/${id}.json`);
|
|
19449
|
+
return data;
|
|
19450
|
+
});
|
|
19451
|
+
__publicField(this, "fetchTchMaterialAudio", async ({ id, serviceName: serviceName2 }) => {
|
|
19452
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/resources/${id}/relation_audios.json`);
|
|
19453
|
+
return data;
|
|
19454
|
+
});
|
|
19455
|
+
// 劳动教育
|
|
19456
|
+
__publicField(this, "fetchLabourDetailNDR", async ({ id, serviceName: serviceName2 }) => {
|
|
19457
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/special_edu/resources/details/${id}.json`);
|
|
19458
|
+
return data;
|
|
19459
|
+
});
|
|
19460
|
+
// 获取 ndr 详情数据
|
|
19461
|
+
__publicField(this, "fetchResourceDetailNDR", async ({ id, serviceName: serviceName2 }) => {
|
|
19462
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/special_edu/resources/details/${id}.json`);
|
|
19463
|
+
return data;
|
|
19464
|
+
});
|
|
19442
19465
|
const { request, config: config2 } = props;
|
|
19443
19466
|
this.request = request;
|
|
19444
19467
|
this.config = config2;
|
|
19445
19468
|
}
|
|
19446
19469
|
}
|
|
19470
|
+
class UC {
|
|
19471
|
+
constructor(props) {
|
|
19472
|
+
__publicField(this, "request");
|
|
19473
|
+
__publicField(this, "uc");
|
|
19474
|
+
__publicField(this, "getInstitutions", async () => {
|
|
19475
|
+
const response = await this.request.uc.ucAPI.get("/institutions/actions/search", {
|
|
19476
|
+
params: {
|
|
19477
|
+
app_id: this.uc.options.sdpAppId
|
|
19478
|
+
}
|
|
19479
|
+
});
|
|
19480
|
+
return response.data;
|
|
19481
|
+
});
|
|
19482
|
+
const { request, uc } = props;
|
|
19483
|
+
this.request = request;
|
|
19484
|
+
this.uc = uc;
|
|
19485
|
+
}
|
|
19486
|
+
}
|
|
19447
19487
|
const _Service = class _Service {
|
|
19448
19488
|
constructor(props) {
|
|
19449
19489
|
__publicField(this, "env");
|
|
@@ -19545,11 +19585,12 @@ const _Service = class _Service {
|
|
|
19545
19585
|
elearningTrain: ElearningTrain,
|
|
19546
19586
|
siteConfig: SiteConfig,
|
|
19547
19587
|
library: Library,
|
|
19548
|
-
Ndr
|
|
19588
|
+
Ndr,
|
|
19589
|
+
uc: UC
|
|
19549
19590
|
};
|
|
19550
19591
|
this.service = {};
|
|
19551
19592
|
Object.keys(services).forEach((key) => {
|
|
19552
|
-
this.service[key] = new services[key]({ request: this.request, config: this.config, sdpAppId: this.sdpAppId });
|
|
19593
|
+
this.service[key] = new services[key]({ request: this.request, config: this.config, sdpAppId: this.sdpAppId, uc: this.uc });
|
|
19553
19594
|
});
|
|
19554
19595
|
}
|
|
19555
19596
|
};
|
package/dist/service.umd.js
CHANGED
|
@@ -17637,11 +17637,13 @@ var __publicField = (obj, key, value) => {
|
|
|
17637
17637
|
zxxRegion: "zxx_region",
|
|
17638
17638
|
train: "teach",
|
|
17639
17639
|
"t-course": "teach",
|
|
17640
|
-
eLabour: "ldjy"
|
|
17640
|
+
eLabour: "ldjy",
|
|
17641
|
+
library: "zxx"
|
|
17641
17642
|
},
|
|
17642
17643
|
defaultAreaSite: "hn",
|
|
17643
17644
|
// 内容库
|
|
17644
|
-
"elearning-library": "//elearning-library-gateway.ykt.eduyun.cn"
|
|
17645
|
+
"elearning-library": "//elearning-library-gateway.ykt.eduyun.cn",
|
|
17646
|
+
uc: "//uc-gateway.ykt.eduyun.cn"
|
|
17645
17647
|
},
|
|
17646
17648
|
preproduction: {
|
|
17647
17649
|
// 代理
|
|
@@ -17657,6 +17659,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17657
17659
|
"x-study-record": "//x-study-record-api.beta.101.com",
|
|
17658
17660
|
cdn: "//ndcs-pre.101.com",
|
|
17659
17661
|
"cdn-hot-proxy": "//betacs.101.com",
|
|
17662
|
+
"cdn-bdcs-file": "//ndcs-pre.101.com",
|
|
17660
17663
|
// 站点配置(存在灰度能力)
|
|
17661
17664
|
"site-config": "//grey-config-web.ykt.cbern.com.cn",
|
|
17662
17665
|
serviceName: {
|
|
@@ -17664,12 +17667,13 @@ var __publicField = (obj, key, value) => {
|
|
|
17664
17667
|
zxxRegion: "preproduction_content_zxx_region",
|
|
17665
17668
|
train: "preproduction_content_staticize",
|
|
17666
17669
|
"t-course": "preproduction_content_x_course",
|
|
17667
|
-
eLabour: "preproduction_content_zxx"
|
|
17670
|
+
eLabour: "preproduction_content_zxx",
|
|
17671
|
+
library: "preproduction_content_zxx"
|
|
17668
17672
|
},
|
|
17669
17673
|
defaultAreaSite: "hn",
|
|
17670
17674
|
// 内容库
|
|
17671
17675
|
"elearning-library": "//elearning-library-gateway.beta.101.com",
|
|
17672
|
-
uc: "
|
|
17676
|
+
uc: "//uc-gateway.sdp.101.com"
|
|
17673
17677
|
}
|
|
17674
17678
|
};
|
|
17675
17679
|
const recommendAPIV2 = ({
|
|
@@ -19443,11 +19447,47 @@ var __publicField = (obj, key, value) => {
|
|
|
19443
19447
|
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/teaching_lesson/resources/${id}/relation_resource.json`);
|
|
19444
19448
|
return data;
|
|
19445
19449
|
});
|
|
19450
|
+
// 获取电子教材详情
|
|
19451
|
+
__publicField(this, "fetchTchMaterialDetail", async ({ id, serviceName: serviceName2 }) => {
|
|
19452
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrv2/resources/tch_material/details/${id}.json`);
|
|
19453
|
+
return data;
|
|
19454
|
+
});
|
|
19455
|
+
__publicField(this, "fetchTchMaterialAudio", async ({ id, serviceName: serviceName2 }) => {
|
|
19456
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/resources/${id}/relation_audios.json`);
|
|
19457
|
+
return data;
|
|
19458
|
+
});
|
|
19459
|
+
// 劳动教育
|
|
19460
|
+
__publicField(this, "fetchLabourDetailNDR", async ({ id, serviceName: serviceName2 }) => {
|
|
19461
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/special_edu/resources/details/${id}.json`);
|
|
19462
|
+
return data;
|
|
19463
|
+
});
|
|
19464
|
+
// 获取 ndr 详情数据
|
|
19465
|
+
__publicField(this, "fetchResourceDetailNDR", async ({ id, serviceName: serviceName2 }) => {
|
|
19466
|
+
const { data } = await this.request.cdn.cdnAPI.get(`${serviceName2}/ndrs/special_edu/resources/details/${id}.json`);
|
|
19467
|
+
return data;
|
|
19468
|
+
});
|
|
19446
19469
|
const { request, config: config2 } = props;
|
|
19447
19470
|
this.request = request;
|
|
19448
19471
|
this.config = config2;
|
|
19449
19472
|
}
|
|
19450
19473
|
}
|
|
19474
|
+
class UC {
|
|
19475
|
+
constructor(props) {
|
|
19476
|
+
__publicField(this, "request");
|
|
19477
|
+
__publicField(this, "uc");
|
|
19478
|
+
__publicField(this, "getInstitutions", async () => {
|
|
19479
|
+
const response = await this.request.uc.ucAPI.get("/institutions/actions/search", {
|
|
19480
|
+
params: {
|
|
19481
|
+
app_id: this.uc.options.sdpAppId
|
|
19482
|
+
}
|
|
19483
|
+
});
|
|
19484
|
+
return response.data;
|
|
19485
|
+
});
|
|
19486
|
+
const { request, uc } = props;
|
|
19487
|
+
this.request = request;
|
|
19488
|
+
this.uc = uc;
|
|
19489
|
+
}
|
|
19490
|
+
}
|
|
19451
19491
|
const _Service = class _Service {
|
|
19452
19492
|
constructor(props) {
|
|
19453
19493
|
__publicField(this, "env");
|
|
@@ -19549,11 +19589,12 @@ var __publicField = (obj, key, value) => {
|
|
|
19549
19589
|
elearningTrain: ElearningTrain,
|
|
19550
19590
|
siteConfig: SiteConfig,
|
|
19551
19591
|
library: Library,
|
|
19552
|
-
Ndr
|
|
19592
|
+
Ndr,
|
|
19593
|
+
uc: UC
|
|
19553
19594
|
};
|
|
19554
19595
|
this.service = {};
|
|
19555
19596
|
Object.keys(services).forEach((key) => {
|
|
19556
|
-
this.service[key] = new services[key]({ request: this.request, config: this.config, sdpAppId: this.sdpAppId });
|
|
19597
|
+
this.service[key] = new services[key]({ request: this.request, config: this.config, sdpAppId: this.sdpAppId, uc: this.uc });
|
|
19557
19598
|
});
|
|
19558
19599
|
}
|
|
19559
19600
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-edu/service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"main": "dist/service.js",
|
|
5
5
|
"module": "dist/service.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"vite-plugin-inspect": "^0.8.4"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"react": "17.
|
|
61
|
-
"react-dom": "17.
|
|
60
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
61
|
+
"react-dom": "^17.0.0 || ^18.0.0"
|
|
62
62
|
}
|
|
63
63
|
}
|