feat: Перенести патч videojs в библиотеку
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hublib-web/video-player",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Cross-framework video player package for React and Angular",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
@@ -10,7 +10,8 @@
|
||||
"sideEffects": true,
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
"README.md",
|
||||
"patches"
|
||||
],
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
@@ -63,7 +64,7 @@
|
||||
"hls.js": "1.6.14",
|
||||
"lodash": "4.17.21",
|
||||
"react-device-detect": "2.2.3",
|
||||
"video.js": "8.23.4"
|
||||
"video.js": "patch:video.js@npm:8.23.4#./patches/video.js+8.23.4.patch"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
||||
|
||||
21
packages/video-player/patches/video.js+8.23.4.patch
Normal file
21
packages/video-player/patches/video.js+8.23.4.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/dist/video.es.js b/dist/video.es.js
|
||||
index 20c8607..245bcba 100644
|
||||
--- a/dist/video.es.js
|
||||
+++ b/dist/video.es.js
|
||||
@@ -31129,11 +31129,11 @@ const xhrFactory = function () {
|
||||
callAllResponseHooks(_responseCallbackSet, request, error, response);
|
||||
return callbackWrapper(request, error, response, callback);
|
||||
});
|
||||
- const originalAbort = request.abort;
|
||||
- request.abort = function () {
|
||||
- request.aborted = true;
|
||||
- return originalAbort.apply(request, arguments);
|
||||
- };
|
||||
+ // const originalAbort = request.abort;
|
||||
+ // request.abort = function () {
|
||||
+ // request.aborted = true;
|
||||
+ // return originalAbort.apply(request, arguments);
|
||||
+ // };
|
||||
request.uri = options.uri;
|
||||
request.requestType = options.requestType;
|
||||
request.requestTime = Date.now();
|
||||
Reference in New Issue
Block a user