@livepeer/core
Advanced tools
Comparing version 2.0.5 to 2.0.6
export declare const version: { | ||
readonly core: "@livepeer/core@2.0.5"; | ||
readonly react: "@livepeer/react@3.0.5"; | ||
readonly reactNative: "@livepeer/react-native@2.0.5"; | ||
readonly core: "@livepeer/core@2.0.6"; | ||
readonly react: "@livepeer/react@3.0.6"; | ||
readonly reactNative: "@livepeer/react-native@2.0.6"; | ||
}; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var client = require('./client-7e4fd284.cjs.dev.js'); | ||
var version = require('./version-512cb114.cjs.dev.js'); | ||
var version = require('./version-6d77f0b1.cjs.dev.js'); | ||
var updateStream = require('./updateStream-26465265.cjs.dev.js'); | ||
@@ -10,0 +10,0 @@ var getStream = require('./getStream-a1e88460.cjs.dev.js'); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var client = require('./client-b49d615d.cjs.prod.js'); | ||
var version = require('./version-62d3c7cd.cjs.prod.js'); | ||
var version = require('./version-f1c033b0.cjs.prod.js'); | ||
var updateStream = require('./updateStream-7eba57a6.cjs.prod.js'); | ||
@@ -10,0 +10,0 @@ var getStream = require('./getStream-03a26cdc.cjs.prod.js'); |
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, HttpError, NOT_ACCEPTABLE_ERROR_MESSAGE, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isNotAcceptableError, isStreamOfflineError } from '../errors/dist/livepeer-core-errors.esm.js'; | ||
export { C as Client, c as clearClient, a as createClient, b as createStorage, n as noopStorage } from './client-8a4dc167.esm.js'; | ||
export { v as version } from './version-e14eff34.esm.js'; | ||
export { v as version } from './version-078bb235.esm.js'; | ||
export { c as createAsset, a as createClip, b as createStream, g as getAsset, d as getAssetMetrics, e as getPlaybackInfo, f as getStreamSession, h as getStreamSessions, u as updateAsset, i as updateStream, w as watchLivepeerProvider } from './updateStream-c0096efd.esm.js'; | ||
@@ -5,0 +5,0 @@ export { g as getLivepeerProvider, a as getStream } from './getStream-fd5ec1b5.esm.js'; |
@@ -317,2 +317,3 @@ 'use strict'; | ||
if (reportingWebsocketUrl) { | ||
ws?.close(3077); | ||
const newWebSocket = new WebSocket(reportingWebsocketUrl); | ||
@@ -341,3 +342,3 @@ newWebSocket.addEventListener('open', () => { | ||
}); | ||
newWebSocket.addEventListener('close', event => { | ||
newWebSocket.addEventListener('close', () => { | ||
// disable active statistics gathering | ||
@@ -350,11 +351,10 @@ if (timeOut) { | ||
// use random code for internal error | ||
if (event.code !== 3077) { | ||
// auto-reconnect with exponential backoff | ||
setTimeout(function () { | ||
createNewWebSocket(numRetries++).then(websocket => { | ||
// auto-reconnect with exponential backoff | ||
setTimeout(function () { | ||
if (enabled) { | ||
createNewWebSocket(numRetries + 1).then(websocket => { | ||
ws = websocket; | ||
}); | ||
}, Math.pow(2, numRetries) * 1e3); | ||
} | ||
} | ||
}, Math.pow(2, numRetries) * 1e3); | ||
}); | ||
@@ -361,0 +361,0 @@ return newWebSocket; |
@@ -317,2 +317,3 @@ 'use strict'; | ||
if (reportingWebsocketUrl) { | ||
ws?.close(3077); | ||
const newWebSocket = new WebSocket(reportingWebsocketUrl); | ||
@@ -341,3 +342,3 @@ newWebSocket.addEventListener('open', () => { | ||
}); | ||
newWebSocket.addEventListener('close', event => { | ||
newWebSocket.addEventListener('close', () => { | ||
// disable active statistics gathering | ||
@@ -350,11 +351,10 @@ if (timeOut) { | ||
// use random code for internal error | ||
if (event.code !== 3077) { | ||
// auto-reconnect with exponential backoff | ||
setTimeout(function () { | ||
createNewWebSocket(numRetries++).then(websocket => { | ||
// auto-reconnect with exponential backoff | ||
setTimeout(function () { | ||
if (enabled) { | ||
createNewWebSocket(numRetries + 1).then(websocket => { | ||
ws = websocket; | ||
}); | ||
}, Math.pow(2, numRetries) * 1e3); | ||
} | ||
} | ||
}, Math.pow(2, numRetries) * 1e3); | ||
}); | ||
@@ -361,0 +361,0 @@ return newWebSocket; |
@@ -314,2 +314,3 @@ import { a as getMetricsReportingUrl } from '../../dist/controller-9bf6e68a.esm.js'; | ||
if (reportingWebsocketUrl) { | ||
ws?.close(3077); | ||
const newWebSocket = new WebSocket(reportingWebsocketUrl); | ||
@@ -338,3 +339,3 @@ newWebSocket.addEventListener('open', () => { | ||
}); | ||
newWebSocket.addEventListener('close', event => { | ||
newWebSocket.addEventListener('close', () => { | ||
// disable active statistics gathering | ||
@@ -347,11 +348,10 @@ if (timeOut) { | ||
// use random code for internal error | ||
if (event.code !== 3077) { | ||
// auto-reconnect with exponential backoff | ||
setTimeout(function () { | ||
createNewWebSocket(numRetries++).then(websocket => { | ||
// auto-reconnect with exponential backoff | ||
setTimeout(function () { | ||
if (enabled) { | ||
createNewWebSocket(numRetries + 1).then(websocket => { | ||
ws = websocket; | ||
}); | ||
}, Math.pow(2, numRetries) * 1e3); | ||
} | ||
} | ||
}, Math.pow(2, numRetries) * 1e3); | ||
}); | ||
@@ -358,0 +358,0 @@ return newWebSocket; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var errors_dist_livepeerCoreErrors = require('../../../errors/dist/livepeer-core-errors.cjs.dev.js'); | ||
var version = require('../../../dist/version-512cb114.cjs.dev.js'); | ||
var version = require('../../../dist/version-6d77f0b1.cjs.dev.js'); | ||
var provider = require('../../../dist/provider-56b1ec78.cjs.dev.js'); | ||
@@ -11,0 +11,0 @@ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var errors_dist_livepeerCoreErrors = require('../../../errors/dist/livepeer-core-errors.cjs.prod.js'); | ||
var version = require('../../../dist/version-62d3c7cd.cjs.prod.js'); | ||
var version = require('../../../dist/version-f1c033b0.cjs.prod.js'); | ||
var provider = require('../../../dist/provider-68cbe4e6.cjs.prod.js'); | ||
@@ -11,0 +11,0 @@ |
import * as tus from 'tus-js-client'; | ||
import fetch from 'cross-fetch'; | ||
import { HttpError } from '../../../errors/dist/livepeer-core-errors.esm.js'; | ||
import { v as version } from '../../../dist/version-e14eff34.esm.js'; | ||
import { v as version } from '../../../dist/version-078bb235.esm.js'; | ||
import { d as defaultStudioConfig } from '../../../dist/provider-a18dabb6.esm.js'; | ||
@@ -6,0 +6,0 @@ |
883046