Socket
Socket
Sign inDemoInstall

xgplayer-streaming-shared

Package Overview
Dependencies
Maintainers
5
Versions
203
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-next.11 to 3.0.0-next.12

dist/index.min.js

40

es/net/fetch.js

@@ -126,33 +126,35 @@ import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from "../_virtual/_rollupPluginBabelHelpers.js";

}
if (!response.ok) {
_this._running = false;
reject(NetError(url, init, response, "bad network response"));
if (response.ok) {
_context.next = 7;
break;
}
throw new NetError(url, init, response, "bad network response");
case 7:
firstByteTime = Date.now();
if (!(responseType === ResponseType.TEXT)) {
_context.next = 14;
_context.next = 15;
break;
}
_context.next = 10;
_context.next = 11;
return response.text();
case 10:
case 11:
data = _context.sent;
_this._running = false;
_context.next = 35;
_context.next = 36;
break;
case 14:
case 15:
if (!(responseType === ResponseType.JSON)) {
_context.next = 21;
_context.next = 22;
break;
}
_context.next = 17;
_context.next = 18;
return response.json();
case 17:
case 18:
data = _context.sent;
_this._running = false;
_context.next = 35;
_context.next = 36;
break;
case 21:
case 22:
if (!onProgress) {
_context.next = 28;
_context.next = 29;
break;

@@ -164,6 +166,6 @@ }

return _context.abrupt("return");
case 28:
_context.next = 30;
case 29:
_context.next = 31;
return response.arrayBuffer();
case 30:
case 31:
data = _context.sent;

@@ -179,6 +181,6 @@ data = new Uint8Array(data);

});
case 35:
case 36:
_this._logger.debug("[fetch load end], index,", index, ",range,", range);
resolve(createResponse(data, true, response, response.headers.get("Content-Length"), response.headers.get("age"), startTime, firstByteTime, index, range, _this._vid));
case 37:
case 38:
case "end":

@@ -185,0 +187,0 @@ return _context.stop();

@@ -112,3 +112,4 @@ import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from "../_virtual/_rollupPluginBabelHelpers.js";

}
this._currentTask.exec().finally(function() {
this._currentTask.exec().catch(function(e) {
}).finally(function() {
_this._processTask();

@@ -115,0 +116,0 @@ });

{
"name": "xgplayer-streaming-shared",
"version": "3.0.0-next.11",
"version": "3.0.0-next.12",
"main": "dist/index.min.js",

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

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