@volcengine/veplayer 2.1.0-rc.1 → 2.1.0-rc.3
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/esm/veplayer.biz.live.development.js +7 -5
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +10 -7
- package/esm/veplayer.live.development.js +10 -7
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +2 -1
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +7 -5
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +10 -7
- package/umd/veplayer.live.development.js +10 -7
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +2 -1
- package/umd/veplayer.vod.production.js +1 -1
package/package.json
CHANGED
|
@@ -2798,14 +2798,16 @@ var __publicField = (obj, key, value) => {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
try {
|
|
2800
2800
|
const urlObject = new URL(url);
|
|
2801
|
-
if ((_a = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _a.get("_session_id")) {
|
|
2802
|
-
|
|
2801
|
+
if (!((_a = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _a.get("_session_id"))) {
|
|
2802
|
+
(_b = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _b.append("_session_id", generateSessionId());
|
|
2803
2803
|
}
|
|
2804
|
-
|
|
2805
|
-
return urlObject.toString();
|
|
2804
|
+
url = urlObject.toString();
|
|
2806
2805
|
} catch (error2) {
|
|
2807
|
-
return url;
|
|
2808
2806
|
}
|
|
2807
|
+
if (withoutProtocol) {
|
|
2808
|
+
return url == null ? void 0 : url.replace(location.protocol, "");
|
|
2809
|
+
}
|
|
2810
|
+
return url;
|
|
2809
2811
|
};
|
|
2810
2812
|
const hashCode = (str) => {
|
|
2811
2813
|
str += "";
|