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 1.4.2 to 1.4.3

dist/src-71932821.cjs.prod.js

3

dist/declarations/src/media/controller.d.ts

@@ -41,2 +41,4 @@ import { StoreApi } from 'zustand/vanilla';

preload: 'full' | 'metadata' | 'none';
/** The viewerId for the viewer passed in to Player */
viewerId: string;
/** If the media is current playing or paused */

@@ -140,2 +142,3 @@ playing: boolean;

preload?: 'full' | 'metadata' | 'none';
viewerId?: string;
};

@@ -26,2 +26,3 @@ import { MediaControllerStore } from '../controller';

userAgent: string;
uid: string;
};

@@ -28,0 +29,0 @@ type PlaybackRecord = {

6

dist/declarations/src/providers/version.d.ts

@@ -1,3 +0,3 @@

export declare const core = "@livepeer/core@1.4.2";
export declare const react = "@livepeer/react@2.4.2";
export declare const reactNative = "@livepeer/react-native@1.4.2";
export declare const core = "@livepeer/core@1.4.3";
export declare const react = "@livepeer/react@2.4.3";
export declare const reactNative = "@livepeer/react-native@1.4.3";

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

var provider = require('./provider-838e9dd9.cjs.dev.js');
var src = require('./src-e1446517.cjs.dev.js');
var src = require('./src-ff78db7f.cjs.dev.js');
var string = require('./string-0759efb1.cjs.dev.js');

@@ -13,0 +13,0 @@ var omick = require('./omick-69c95136.cjs.dev.js');

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

var provider = require('./provider-f763db3e.cjs.prod.js');
var src = require('./src-58b9e5f1.cjs.prod.js');
var src = require('./src-71932821.cjs.prod.js');
var string = require('./string-7bb3bb00.cjs.prod.js');

@@ -13,0 +13,0 @@ var omick = require('./omick-088c0789.cjs.prod.js');

@@ -6,3 +6,3 @@ export { HttpError } from '../errors/dist/livepeer-core-errors.esm.js';

export { d as defaultStudioConfig, a as defaultTranscodingProfiles } from './provider-3254bb2f.esm.js';
export { c as createControllerStore, g as getMediaSourceType } from './src-36073946.esm.js';
export { c as createControllerStore, g as getMediaSourceType } from './src-84c5ec08.esm.js';
export { b as b64Decode, a as b64Encode, c as b64UrlDecode, d as b64UrlEncode } from './string-9a973b0a.esm.js';

@@ -9,0 +9,0 @@ export { d as deepMerge, o as omit, p as pick } from './omick-f3e60faa.esm.js';

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

var src = require('../../dist/src-e1446517.cjs.dev.js');
var src = require('../../dist/src-ff78db7f.cjs.dev.js');
var fetch = require('cross-fetch');

@@ -150,2 +150,11 @@ require('zustand/middleware');

}
function isInIframe() {
try {
return typeof window !== 'undefined' && window.self !== window.top;
} catch (e) {
// if accessing window.top throws an exception due to cross-origin policy, the catch block will also return true,
// indicating the code is running inside an iframe
return true;
}
}
class MetricsStatus {

@@ -170,3 +179,3 @@ preloadTime = 0;

const windowHref = typeof window !== 'undefined' ? window?.location?.href ?? '' : '';
const pageUrl = windowHref?.includes('lvpr.tv') ? typeof document !== 'undefined' ? document?.referrer ?? windowHref : '' : windowHref;
const pageUrl = isInIframe() ? typeof document !== 'undefined' ? document?.referrer || windowHref : windowHref : windowHref;
this.currentMetrics = {

@@ -191,2 +200,3 @@ autoplay: currentState.priority && currentState.autoplay ? 'autoplay' : currentState.preload === 'full' ? 'preload-full' : currentState.preload === 'metadata' ? 'preload-metadata' : 'standard',

ttff: 0,
uid: currentState.viewerId,
userAgent: String(currentState?.device?.userAgent ?? '').replace(/\\|"/gm, ''),

@@ -193,0 +203,0 @@ videoHeight: null,

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

var src = require('../../dist/src-58b9e5f1.cjs.prod.js');
var src = require('../../dist/src-71932821.cjs.prod.js');
var fetch = require('cross-fetch');

@@ -150,2 +150,11 @@ require('zustand/middleware');

}
function isInIframe() {
try {
return typeof window !== 'undefined' && window.self !== window.top;
} catch (e) {
// if accessing window.top throws an exception due to cross-origin policy, the catch block will also return true,
// indicating the code is running inside an iframe
return true;
}
}
class MetricsStatus {

@@ -170,3 +179,3 @@ preloadTime = 0;

const windowHref = typeof window !== 'undefined' ? window?.location?.href ?? '' : '';
const pageUrl = windowHref?.includes('lvpr.tv') ? typeof document !== 'undefined' ? document?.referrer ?? windowHref : '' : windowHref;
const pageUrl = isInIframe() ? typeof document !== 'undefined' ? document?.referrer || windowHref : windowHref : windowHref;
this.currentMetrics = {

@@ -191,2 +200,3 @@ autoplay: currentState.priority && currentState.autoplay ? 'autoplay' : currentState.preload === 'full' ? 'preload-full' : currentState.preload === 'metadata' ? 'preload-metadata' : 'standard',

ttff: 0,
uid: currentState.viewerId,
userAgent: String(currentState?.device?.userAgent ?? '').replace(/\\|"/gm, ''),

@@ -193,0 +203,0 @@ videoHeight: null,

@@ -1,3 +0,3 @@

import { g as getMediaSourceType } from '../../dist/src-36073946.esm.js';
export { D as DEFAULT_AUTOHIDE_TIME, a as DEFAULT_VOLUME_LEVEL, c as createControllerStore, g as getMediaSourceType } from '../../dist/src-36073946.esm.js';
import { g as getMediaSourceType } from '../../dist/src-84c5ec08.esm.js';
export { D as DEFAULT_AUTOHIDE_TIME, a as DEFAULT_VOLUME_LEVEL, c as createControllerStore, g as getMediaSourceType } from '../../dist/src-84c5ec08.esm.js';
import fetch from 'cross-fetch';

@@ -142,2 +142,11 @@ import 'zustand/middleware';

}
function isInIframe() {
try {
return typeof window !== 'undefined' && window.self !== window.top;
} catch (e) {
// if accessing window.top throws an exception due to cross-origin policy, the catch block will also return true,
// indicating the code is running inside an iframe
return true;
}
}
class MetricsStatus {

@@ -162,3 +171,3 @@ preloadTime = 0;

const windowHref = typeof window !== 'undefined' ? window?.location?.href ?? '' : '';
const pageUrl = windowHref?.includes('lvpr.tv') ? typeof document !== 'undefined' ? document?.referrer ?? windowHref : '' : windowHref;
const pageUrl = isInIframe() ? typeof document !== 'undefined' ? document?.referrer || windowHref : windowHref : windowHref;
this.currentMetrics = {

@@ -183,2 +192,3 @@ autoplay: currentState.priority && currentState.autoplay ? 'autoplay' : currentState.preload === 'full' ? 'preload-full' : currentState.preload === 'metadata' ? 'preload-metadata' : 'standard',

ttff: 0,
uid: currentState.viewerId,
userAgent: String(currentState?.device?.userAgent ?? '').replace(/\\|"/gm, ''),

@@ -185,0 +195,0 @@ videoHeight: null,

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

"license": "MIT",
"version": "1.4.2",
"version": "1.4.3",
"repository": {

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

@@ -33,5 +33,5 @@ 'use strict';

const core = `@livepeer/core@1.4.2`;
const react = `@livepeer/react@2.4.2`;
const reactNative = `@livepeer/react-native@1.4.2`;
const core = `@livepeer/core@1.4.3`;
const react = `@livepeer/react@2.4.3`;
const reactNative = `@livepeer/react-native@1.4.3`;

@@ -38,0 +38,0 @@ class BaseLivepeerProvider {

@@ -33,5 +33,5 @@ 'use strict';

const core = `@livepeer/core@1.4.2`;
const react = `@livepeer/react@2.4.2`;
const reactNative = `@livepeer/react-native@1.4.2`;
const core = `@livepeer/core@1.4.3`;
const react = `@livepeer/react@2.4.3`;
const reactNative = `@livepeer/react-native@1.4.3`;

@@ -38,0 +38,0 @@ class BaseLivepeerProvider {

@@ -6,5 +6,5 @@ import * as tus from 'tus-js-client';

const core = `@livepeer/core@1.4.2`;
const react = `@livepeer/react@2.4.2`;
const reactNative = `@livepeer/react-native@1.4.2`;
const core = `@livepeer/core@1.4.3`;
const react = `@livepeer/react@2.4.3`;
const reactNative = `@livepeer/react-native@1.4.3`;

@@ -11,0 +11,0 @@ class BaseLivepeerProvider {

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