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.3.1 to 1.3.2

dist/src-7de7a5e4.cjs.prod.js

2

dist/declarations/src/media/controller.d.ts
import { StoreApi } from 'zustand/vanilla';
import { Src } from './src';
import { ClientStorage } from '../storage';
export declare const DEFAULT_VOLUME_LEVEL = 0.2;
export declare const DEFAULT_VOLUME_LEVEL = 1;
export declare const DEFAULT_AUTOHIDE_TIME = 3000;

@@ -6,0 +6,0 @@ export type DeviceInformation = {

@@ -41,2 +41,18 @@ import { Asset, CreateStreamArgs, MultistreamTargetRef, Stream, StreamSession, TranscodingProfile, ViewsMetrics } from '../../types';

};
export type StudioStorageConfig = {
ipfs?: {
spec?: null | {
/**
* Name of the NFT metadata template to export. 'player' will embed the Livepeer Player on the NFT while 'file' will reference only the immutable MP4 files.
*/
nftMetadataTemplate?: 'player' | 'file';
/**
* Additional data to add to the NFT metadata exported to IPFS. Will be deep merged with the default metadata exported.
*/
nftMetadata?: {
[k: string]: unknown;
};
};
} | (boolean | null);
};
export type StudioAssetPatchPayload = {

@@ -48,19 +64,22 @@ /**

/** Storage configs for the asset */
storage?: {
ipfs?: {
spec?: null | {
/**
* Name of the NFT metadata template to export. 'player' will embed the Livepeer Player on the NFT while 'file' will reference only the immutable MP4 files.
*/
nftMetadataTemplate?: 'player' | 'file';
/**
* Additional data to add to the NFT metadata exported to IPFS. Will be deep merged with the default metadata exported.
*/
nftMetadata?: {
[k: string]: unknown;
};
};
} | (boolean | null);
};
storage?: StudioStorageConfig;
};
export type StudioCreateAssetArgs = {
/**
* Name of the asset. This is not necessarily the filename, can be a custom name or title
*/
name: string;
/** Storage configs for the asset */
storage?: StudioStorageConfig;
};
export type StudioCreateAssetUrlArgs = {
/**
* Name of the asset. This is not necessarily the filename, can be a custom name or title
*/
name: string;
/** External URL to be imported */
url: string;
/** Storage configs for the asset */
storage?: StudioStorageConfig;
};
export interface StudioCreateStreamArgs extends CreateStreamArgs {

@@ -67,0 +86,0 @@ profiles?: StudioFfmpegProfile[];

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

export declare const core = "@livepeer/core@1.3.1";
export declare const react = "@livepeer/react@2.3.1";
export declare const reactNative = "@livepeer/react-native@1.3.1";
export declare const core = "@livepeer/core@1.3.2";
export declare const react = "@livepeer/react@2.3.2";
export declare const reactNative = "@livepeer/react-native@1.3.2";

@@ -165,5 +165,29 @@ /// <reference types="node" />

};
export type StorageConfig = {
/**
* If the asset should be stored on IPFS.
*/
ipfs?: boolean;
/**
* Metadata exported to the storage provider. This will be deep merged with the default
* metadata from the livepeer provider. This should ideally be EIP-721/EIP-1155 compatible.
*
* @see {@link https://eips.ethereum.org/EIPS/eip-721}
*/
metadata?: (Partial<Metadata> & {
[k: string]: unknown;
});
/**
* The NFT metadata template to use. `player` will embed the Livepeer Player's IPFS CID on the NFT while `file`
* will reference only the immutable media files.
*/
metadataTemplate?: 'player' | 'file';
};
export type CreateAssetSourceBase = {
/** Name for the new asset */
name: string;
/**
* The storage configs to use for the asset. This also includes EIP-721 or EIP-1155 compatible NFT metadata configs.
*/
storage?: StorageConfig;
};

@@ -240,22 +264,3 @@ export type CreateAssetSourceUrl = CreateAssetSourceBase & {

*/
storage?: {
/**
* If the asset should be stored on IPFS.
*/
ipfs?: boolean;
/**
* Metadata exported to the storage provider. This will be deep merged with the default
* metadata from the livepeer provider. This should ideally be EIP-721/EIP-1155 compatible.
*
* @see {@link https://eips.ethereum.org/EIPS/eip-721}
*/
metadata?: (Partial<Metadata> & {
[k: string]: unknown;
});
/**
* The NFT metadata template to use. `player` will embed the Livepeer Player's IPFS CID on the NFT while `file`
* will reference only the immutable media files.
*/
metadataTemplate?: 'player' | 'file';
};
storage?: StorageConfig;
} & ({

@@ -262,0 +267,0 @@ name: string;

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

var provider = require('./provider-838e9dd9.cjs.dev.js');
var src = require('./src-4bd2ea42.cjs.dev.js');
var src = require('./src-d1c903ff.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-eeb4b2d4.cjs.prod.js');
var src = require('./src-7de7a5e4.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-6007c27b.esm.js';
export { c as createControllerStore, g as getMediaSourceType } from './src-c300ce89.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-4bd2ea42.cjs.dev.js');
var src = require('../../dist/src-d1c903ff.cjs.dev.js');
var fetch = require('cross-fetch');

@@ -187,3 +187,3 @@ require('zustand/middleware');

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

@@ -190,0 +190,0 @@ videoWidth: null

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

var src = require('../../dist/src-eeb4b2d4.cjs.prod.js');
var src = require('../../dist/src-7de7a5e4.cjs.prod.js');
var fetch = require('cross-fetch');

@@ -187,3 +187,3 @@ require('zustand/middleware');

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

@@ -190,0 +190,0 @@ videoWidth: null

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

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

@@ -179,3 +179,3 @@ import 'zustand/middleware';

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

@@ -182,0 +182,0 @@ videoWidth: null

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

"license": "MIT",
"version": "1.3.1",
"version": "1.3.2",
"repository": {

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

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

const core = `@livepeer/core@1.3.1`;
const react = `@livepeer/react@2.3.1`;
const reactNative = `@livepeer/react-native@1.3.1`;
const core = `@livepeer/core@1.3.2`;
const react = `@livepeer/react@2.3.2`;
const reactNative = `@livepeer/react-native@1.3.2`;

@@ -194,3 +194,13 @@ class BaseLivepeerProvider {

name: source.name,
url: source.url
url: source.url,
storage: source?.storage?.ipfs ? {
ipfs: {
spec: {
nftMetadata: source?.storage?.metadata ?? {},
...(source?.storage?.metadataTemplate ? {
nftMetadataTemplate: source.storage.metadataTemplate
} : {})
}
}
} : undefined
},

@@ -203,3 +213,13 @@ headers: this._defaultHeaders

json: {
name: source.name
name: source.name,
storage: source?.storage?.ipfs ? {
ipfs: {
spec: {
nftMetadata: source?.storage?.metadata ?? {},
...(source?.storage?.metadataTemplate ? {
nftMetadataTemplate: source.storage.metadataTemplate
} : {})
}
}
} : undefined
},

@@ -340,3 +360,5 @@ headers: this._defaultHeaders

nftMetadata: storage?.metadata ?? {},
nftMetadataTemplate: storage?.metadataTemplate ?? 'player'
...(storage?.metadataTemplate ? {
nftMetadataTemplate: storage.metadataTemplate
} : {})
}

@@ -343,0 +365,0 @@ }

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

const core = `@livepeer/core@1.3.1`;
const react = `@livepeer/react@2.3.1`;
const reactNative = `@livepeer/react-native@1.3.1`;
const core = `@livepeer/core@1.3.2`;
const react = `@livepeer/react@2.3.2`;
const reactNative = `@livepeer/react-native@1.3.2`;

@@ -194,3 +194,13 @@ class BaseLivepeerProvider {

name: source.name,
url: source.url
url: source.url,
storage: source?.storage?.ipfs ? {
ipfs: {
spec: {
nftMetadata: source?.storage?.metadata ?? {},
...(source?.storage?.metadataTemplate ? {
nftMetadataTemplate: source.storage.metadataTemplate
} : {})
}
}
} : undefined
},

@@ -203,3 +213,13 @@ headers: this._defaultHeaders

json: {
name: source.name
name: source.name,
storage: source?.storage?.ipfs ? {
ipfs: {
spec: {
nftMetadata: source?.storage?.metadata ?? {},
...(source?.storage?.metadataTemplate ? {
nftMetadataTemplate: source.storage.metadataTemplate
} : {})
}
}
} : undefined
},

@@ -340,3 +360,5 @@ headers: this._defaultHeaders

nftMetadata: storage?.metadata ?? {},
nftMetadataTemplate: storage?.metadataTemplate ?? 'player'
...(storage?.metadataTemplate ? {
nftMetadataTemplate: storage.metadataTemplate
} : {})
}

@@ -343,0 +365,0 @@ }

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

const core = `@livepeer/core@1.3.1`;
const react = `@livepeer/react@2.3.1`;
const reactNative = `@livepeer/react-native@1.3.1`;
const core = `@livepeer/core@1.3.2`;
const react = `@livepeer/react@2.3.2`;
const reactNative = `@livepeer/react-native@1.3.2`;

@@ -167,3 +167,13 @@ class BaseLivepeerProvider {

name: source.name,
url: source.url
url: source.url,
storage: source?.storage?.ipfs ? {
ipfs: {
spec: {
nftMetadata: source?.storage?.metadata ?? {},
...(source?.storage?.metadataTemplate ? {
nftMetadataTemplate: source.storage.metadataTemplate
} : {})
}
}
} : undefined
},

@@ -176,3 +186,13 @@ headers: this._defaultHeaders

json: {
name: source.name
name: source.name,
storage: source?.storage?.ipfs ? {
ipfs: {
spec: {
nftMetadata: source?.storage?.metadata ?? {},
...(source?.storage?.metadataTemplate ? {
nftMetadataTemplate: source.storage.metadataTemplate
} : {})
}
}
} : undefined
},

@@ -313,3 +333,5 @@ headers: this._defaultHeaders

nftMetadata: storage?.metadata ?? {},
nftMetadataTemplate: storage?.metadataTemplate ?? 'player'
...(storage?.metadataTemplate ? {
nftMetadataTemplate: storage.metadataTemplate
} : {})
}

@@ -316,0 +338,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