xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.10-alpha.0 to 3.0.10-alpha.1
@@ -13,2 +13,3 @@ import { objectSpread2 as _objectSpread2 } from "../_virtual/_rollupPluginBabelHelpers.js"; | ||
onRetryError: void 0, | ||
onPreProcessUrl: void 0, | ||
transformRequest: void 0, | ||
@@ -15,0 +16,0 @@ transformResponse: void 0, |
@@ -8,5 +8,7 @@ export class NetLoader { | ||
_currentTask: any; | ||
_finnalUrl: string; | ||
_config: any; | ||
log: any; | ||
isFetch(): boolean; | ||
get finnalUrl(): string; | ||
load(url: any, config?: {}): Promise<any>; | ||
@@ -13,0 +15,0 @@ cancel(): Promise<void>; |
@@ -22,2 +22,3 @@ import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from "../_virtual/_rollupPluginBabelHelpers.js"; | ||
_defineProperty(_assertThisInitialized(_this), "_currentTask", null); | ||
_defineProperty(_assertThisInitialized(_this), "_finnalUrl", ""); | ||
_defineProperty(_assertThisInitialized(_this), "_config", void 0); | ||
@@ -37,2 +38,7 @@ _this._config = getConfig(cfg); | ||
}, { | ||
key: "finnalUrl", | ||
get: function get() { | ||
return this._finnalUrl; | ||
} | ||
}, { | ||
key: "load", | ||
@@ -48,2 +54,6 @@ value: function load(url) { | ||
config = Object.assign({}, this._config, config); | ||
if (this._config.onPreProcessUrl) { | ||
config.url = this._config.onPreProcessUrl(config.url).url; | ||
} | ||
this._finnalUrl = config.url; | ||
if (config.params) | ||
@@ -50,0 +60,0 @@ config.params = Object.assign({}, config.params); |
{ | ||
"name": "xgplayer-streaming-shared", | ||
"version": "3.0.10-alpha.0", | ||
"version": "3.0.10-alpha.1", | ||
"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
354564
4616