Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xgplayer-streaming-shared

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xgplayer-streaming-shared - npm Package Compare versions

Comparing version 3.0.0-alpha.5-12 to 3.0.0-alpha.5-13

35

es/net/fetch.js

@@ -356,3 +356,4 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';

var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
var startByte, costTime;
var _startByte, err, startByte, costTime;
return _regeneratorRuntime.wrap(function _callee3$(_context3) {

@@ -370,3 +371,3 @@ while (1) {

endTime = Date.now();
_context3.next = 16;
_context3.next = 15;
break;

@@ -377,13 +378,8 @@

_context3.t0 = _context3["catch"](1);
if (!_this2._aborted) {
_context3.next = 14;
break;
}
return _context3.abrupt("return");
case 14:
// request aborted
endTime = Date.now();
_startByte = _this2._range[0] + _this2._receivedLength;
err = _this2._aborted ? null : _context3.t0;
onProgress(undefined, false, {
range: [_this2._range[0] + _this2._receivedLength, _this2._range[0] + _this2._receivedLength],
range: [_startByte, _startByte],
vid: _this2._vid,

@@ -393,12 +389,11 @@ index: _this2._index,

endTime: endTime,
err: _context3.t0
err: err
}, response);
return _context3.abrupt("return");
case 16:
case 15:
startByte = _this2._range[0] + _this2._receivedLength;
_this2._receivedLength += data.value ? data.value.byteLength : 0;
if (!_this2._aborted) {
_context3.next = 21;
_context3.next = 19;
break;

@@ -408,3 +403,3 @@ }

onProgress(undefined, false, {
range: [startByte, _this2._range[0] + _this2._receivedLength],
range: [startByte, startByte],
vid: _this2._vid,

@@ -417,3 +412,5 @@ index: _this2._index,

case 21:
case 19:
_this2._receivedLength += data.value ? data.value.byteLength : 0;
_this2._logger.debug('【fetchLoader,onProgress call】,task,', _this2._range, ', start,', startByte, ', end,', _this2._range[0] + _this2._receivedLength, ', done,', data.done);

@@ -447,3 +444,3 @@

case 27:
case 26:
case "end":

@@ -450,0 +447,0 @@ return _context3.stop();

{
"name": "xgplayer-streaming-shared",
"version": "3.0.0-alpha.5-12",
"version": "3.0.0-alpha.5-13",
"main": "dist/index.min.js",

@@ -5,0 +5,0 @@ "module": "es/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc