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 3.0.0-next.0 to 3.0.0-next.1

3

dist/cjs/crypto.js

@@ -44,2 +44,5 @@ Object.defineProperty(exports, '__esModule', { value: true });

}
if (typeof globalThis?.crypto !== "undefined" && globalThis?.crypto?.subtle) {
return globalThis.crypto.subtle;
}
if (typeof window !== "undefined") {

@@ -46,0 +49,0 @@ if (window?.crypto?.subtle) {

16

dist/cjs/external.d.ts

@@ -305,15 +305,5 @@ type MimeType = keyof typeof mime;

}
declare enum Hrn {
HlsTs = "HLS (TS)",
Mp4 = "MP4",
WebRTCH264 = "WebRTC (H264)"
}
declare enum PlaybackInfoSchemasType {
Html5ApplicationVndAppleMpegurl = "html5/application/vnd.apple.mpegurl",
Html5VideoMp4 = "html5/video/mp4",
Html5VideoH264 = "html5/video/h264"
}
interface Source {
hrn: Hrn;
type: PlaybackInfoSchemasType;
hrn: string;
type: string;
url: string;

@@ -339,2 +329,2 @@ size?: number;

export { type Attestation, type AttestationIpfs, type AttestationStorage, type Attestations, type Domain, Hrn, type Message, type Meta, Name, Phase, type PlaybackInfo, PlaybackInfoSchemasType, PlaybackInfoType, type PlaybackPolicy, PrimaryType, SignatureType, type Source, type StorageStatus, type Tasks, TypeT, Version, getSrc };
export { type Attestation, type AttestationIpfs, type AttestationStorage, type Attestations, type Domain, type Message, type Meta, Name, Phase, type PlaybackInfo, PlaybackInfoType, type PlaybackPolicy, PrimaryType, SignatureType, type Source, type StorageStatus, type Tasks, TypeT, Version, getSrc };

@@ -450,15 +450,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

})(PlaybackInfoType || (PlaybackInfoType = {}));
var Hrn;
(function(Hrn) {
Hrn["HlsTs"] = "HLS (TS)";
Hrn["Mp4"] = "MP4";
Hrn["WebRTCH264"] = "WebRTC (H264)";
})(Hrn || (Hrn = {}));
var PlaybackInfoSchemasType;
(function(PlaybackInfoSchemasType) {
PlaybackInfoSchemasType["Html5ApplicationVndAppleMpegurl"] = "html5/application/vnd.apple.mpegurl";
PlaybackInfoSchemasType["Html5VideoMp4"] = "html5/video/mp4";
PlaybackInfoSchemasType["Html5VideoH264"] = "html5/video/h264";
})(PlaybackInfoSchemasType || (PlaybackInfoSchemasType = {}));
exports.getSrc = getSrc;

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

export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, NOT_ACCEPTABLE_ERROR_MESSAGE, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isNotAcceptableError, isStreamOfflineError } from '@livepeer/core/errors';
export { AccessControlParams, AriaText, AudioSrc, AudioTrackSelector, Base64Src, ClipLength, ClipParams, ControlsOptions, ControlsState, DeviceInformation, ElementSize, HlsSrc, InitialProps, MediaControllerCallbackState, MediaControllerState, MediaControllerStore, MediaMetrics, MediaSizing, Metadata, MetricsStatus, ObjectFit, PlaybackError, PlaybackMonitor, PlaybackRate, SingleAudioTrackSelector, SingleTrackSelector, SingleVideoTrackSelector, Src, VideoQuality, VideoSrc, VideoTrackSelector, WebRTCSrc, createControllerStore, getMediaSourceType, sanitizeMediaControllerState } from '@livepeer/core/media';
export { ClientStorage as Storage, createStorage, noopStorage } from '@livepeer/core/storage';
export { Address, Hash } from '@livepeer/core/types';
export { b64Decode, b64Encode, b64UrlDecode, b64UrlEncode, deepMerge, omit, pick } from '@livepeer/core/utils';
export { version } from '@livepeer/core/version';
export { ACCESS_CONTROL_ERROR_MESSAGE, BFRAMES_ERROR_MESSAGE, NOT_ACCEPTABLE_ERROR_MESSAGE, STREAM_OFFLINE_ERROR_MESSAGE, STREAM_OPEN_ERROR_MESSAGE, isAccessControlError, isBframesError, isNotAcceptableError, isStreamOfflineError } from './errors.mjs';
export { AccessControlParams, AriaText, AudioSrc, AudioTrackSelector, Base64Src, ClipLength, ClipParams, ControlsOptions, ControlsState, DeviceInformation, ElementSize, HlsSrc, InitialProps, MediaControllerCallbackState, MediaControllerState, MediaControllerStore, MediaMetrics, MediaSizing, Metadata, MetricsStatus, ObjectFit, PlaybackError, PlaybackMonitor, PlaybackRate, SingleAudioTrackSelector, SingleTrackSelector, SingleVideoTrackSelector, Src, VideoQuality, VideoSrc, VideoTrackSelector, WebRTCSrc, createControllerStore, getMediaSourceType, sanitizeMediaControllerState } from './media.mjs';
export { ClientStorage as Storage, createStorage, noopStorage } from './storage.mjs';
export { Address, Hash } from './types.mjs';
export { b64Decode, b64Encode, b64UrlDecode, b64UrlEncode, deepMerge, omit, pick } from './utils.mjs';
export { version } from './version.mjs';
import { StoreApi } from 'zustand/vanilla';
import { ClientStorage } from '@livepeer/core/storage';
import { ClientStorage } from './storage.mjs';

@@ -525,2 +525,5 @@ type MimeType = keyof typeof mime;

};
persist: {
onFinishHydration: (fn: (state: MediaControllerState) => void) => () => void;
};
};

@@ -532,3 +535,6 @@ declare const createControllerStore: ({ device, storage, src, initialProps, }: {

initialProps: Partial<InitialProps>;
}) => MediaControllerStore;
}) => {
store: MediaControllerStore;
destroy: () => void;
};

@@ -535,0 +541,0 @@ type RawMetrics = {

@@ -762,2 +762,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

error: null,
errorCount: 0,
stalled: false,

@@ -1081,11 +1082,14 @@ waiting: false,

})));
store.persist.onFinishHydration(({ videoQuality, volume })=>{
if (videoQuality !== initialVideoQuality) {
const destroy = store.persist.onFinishHydration(({ videoQuality, volume })=>{
if (videoQuality !== store.getState().videoQuality) {
store.getState().__controlsFunctions.setVideoQuality(videoQuality);
}
if (volume !== initialVolume) {
if (volume !== store.getState().volume) {
store.getState().__controlsFunctions.setVolume(volume);
}
});
return store;
return {
store,
destroy
};
};

@@ -1092,0 +1096,0 @@

declare const version: {
readonly core: "@livepeer/core@3.0.0-next.0";
readonly react: "@livepeer/react@4.0.0-next.0";
readonly core: "@livepeer/core@3.0.0-next.1";
readonly react: "@livepeer/react@4.0.0-next.1";
};
export { version };
Object.defineProperty(exports, '__esModule', { value: true });
const core = "@livepeer/core@3.0.0-next.0";
const react = "@livepeer/react@4.0.0-next.0";
const core = "@livepeer/core@3.0.0-next.1";
const react = "@livepeer/react@4.0.0-next.1";
const version = {

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

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

"license": "MIT",
"version": "3.0.0-next.0",
"version": "3.0.0-next.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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