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

@livepeer/core

Package Overview
Dependencies
Maintainers
6
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livepeer/core - npm Package Compare versions

Comparing version 2.0.10 to 2.1.0

dist/version-005bcfd2.esm.js

2

dist/declarations/src/index.d.ts

@@ -8,3 +8,3 @@ export { createAsset, createClip, createStream, getAsset, getAssetMetrics, getLivepeerProvider, getPlaybackInfo, getStream, getStreamSession, getStreamSessions, updateAsset, updateStream, watchLivepeerProvider, } from './actions';

export { createControllerStore, getMediaSourceType, sanitizeMediaControllerState, } from './media';
export type { AudioSrc, Base64Src, ClipLength, ControlsOptions, DeviceInformation, ElementSize, HlsSrc, MediaControllerCallbackState, MediaControllerState, MediaControllerStore, MediaMetrics, MediaPropsOptions, MediaSizing, Metadata, MetricsStatus, ObjectFit, PlaybackError, PlaybackMonitor, Src, VideoSrc, WebRTCSrc, } from './media';
export type { AudioSrc, AudioTrackSelector, Base64Src, ClipLength, ControlsOptions, DeviceInformation, ElementSize, HlsSrc, MediaControllerCallbackState, MediaControllerState, MediaControllerStore, MediaMetrics, MediaPropsOptions, MediaSizing, Metadata, MetricsStatus, ObjectFit, PlaybackError, PlaybackMonitor, SingleAudioTrackSelector, SingleTrackSelector, SingleVideoTrackSelector, Src, VideoSrc, VideoTrackSelector, WebRTCSrc, } from './media';
export { createStorage, noopStorage } from './storage';

@@ -11,0 +11,0 @@ export type { ClientStorage as Storage } from './storage';

@@ -6,4 +6,4 @@ export { DEFAULT_AUTOHIDE_TIME, DEFAULT_VOLUME_LEVEL, createControllerStore, sanitizeMediaControllerState, } from './controller';

export { getMediaSourceType } from './src';
export type { AudioSrc, Base64Src, HlsSrc, Src, VideoSrc, WebRTCSrc, } from './src';
export type { AudioSrc, AudioTrackSelector, Base64Src, HlsSrc, SingleAudioTrackSelector, SingleTrackSelector, SingleVideoTrackSelector, Src, VideoSrc, VideoTrackSelector, WebRTCSrc, } from './src';
export { aspectRatios } from './theme';
export type { AspectRatio, FontWeights, ThemeConfig } from './theme';

@@ -32,3 +32,97 @@ import { MimeType } from './mime';

export type Src = AudioSrc | HlsSrc | VideoSrc | Base64Src | WebRTCSrc;
/**
* Represents a single track selector
*/
export type SingleTrackSelector =
/** Selects no tracks */
'none'
/** Selects all tracks */
| 'all'
/** Selects all tracks */
| '*'
/** Specific track ID */
| `${number}`
/** Highest bit rate */
| 'maxbps'
/** Lowest bit rate */
| 'minbps'
/** Specific bit rate */
| `${number}bps`
/** Specific bit rate */
| `${number}kbps`
/** Specific bit rate */
| `${number}mbps`
/** Greater than specific bit rate */
| `>${number}bps`
/** Greater than specific bit rate */
| `>${number}kbps`
/** Greater than specific bit rate */
| `>${number}mbps`
/** Less than specific bit rate */
| `<${number}bps`
/** Less than specific bit rate */
| `<${number}kbps`
/** Less than specific bit rate */
| `<${number}mbps`
/** Max less than specific bit rate */
| `max<${number}bps`
/** Max less than specific bit rate */
| `max<${number}kbps`
/** Max less than specific bit rate */
| `max<${number}mbps`;
/**
* Represents a single audio track selector
*/
export type SingleAudioTrackSelector = SingleTrackSelector
/** Channel count */
| 'surround'
/** Channel count */
| 'mono'
/** Channel count */
| 'stereo'
/** Channel count */
| `${number}ch`;
/**
* Represents a single video track selector
*/
export type SingleVideoTrackSelector = SingleTrackSelector
/** Highest pixel surface area */
| 'maxres'
/** Lowest pixel surface area */
| 'minres'
/** Specific pixel surface area */
| `${number}x${number}`
/** Closest to specific pixel surface area */
| `~${number}x${number}`
/** Greater than pixel surface area */
| `>${number}x${number}`
/** Less than pixel surface area */
| `<${number}x${number}`
/** Resolution */
| '720p'
/** Resolution */
| '1080p'
/** Resolution */
| '1440p'
/** Resolution */
| '2k'
/** Resolution */
| '4k'
/** Resolution */
| '5k'
/** Resolution */
| '8k';
/**
* Generic track selector for a given type
*/
type TrackSelector<T extends string> = T
/** Union of selectors */
| `${T},${T}`
/** Difference of selectors */
| `${T},!${T}`
/** Intersection of selectors */
| `${T},|${T}`;
export type VideoTrackSelector = TrackSelector<SingleVideoTrackSelector>;
export type AudioTrackSelector = TrackSelector<SingleAudioTrackSelector>;
export declare const getMediaSourceType: (src: string) => HlsSrc | AudioSrc | VideoSrc | Base64Src | WebRTCSrc | null;
export {};
export declare const version: {
readonly core: "@livepeer/core@2.0.10";
readonly react: "@livepeer/react@3.0.10";
readonly core: "@livepeer/core@2.1.0";
readonly react: "@livepeer/react@3.1.0";
readonly reactNative: "@livepeer/react-native@2.0.9";
};

@@ -7,3 +7,3 @@ 'use strict';

var client = require('./client-7e4fd284.cjs.dev.js');
var version = require('./version-7ea75dcd.cjs.dev.js');
var version = require('./version-4dd5c7ee.cjs.dev.js');
var updateStream = require('./updateStream-835a5d34.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-f3897ae4.cjs.prod.js');
var version = require('./version-b8082fa0.cjs.prod.js');
var updateStream = require('./updateStream-f8b5c94f.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-ffff481c.esm.js';
export { v as version } from './version-005bcfd2.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-ecc4927f.esm.js';

@@ -5,0 +5,0 @@ export { g as getLivepeerProvider, a as getStream } from './getStream-fd5ec1b5.esm.js';

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "2.0.10",
"version": "2.1.0",
"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-7ea75dcd.cjs.dev.js');
var version = require('../../../dist/version-4dd5c7ee.cjs.dev.js');
var provider = require('../../../dist/provider-8be95bb2.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-f3897ae4.cjs.prod.js');
var version = require('../../../dist/version-b8082fa0.cjs.prod.js');
var provider = require('../../../dist/provider-81c54dc4.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-ffff481c.esm.js';
import { v as version } from '../../../dist/version-005bcfd2.esm.js';
import { d as defaultStudioConfig } from '../../../dist/provider-d7595ad8.esm.js';

@@ -6,0 +6,0 @@

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