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

detect-audio-video

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-audio-video - npm Package Compare versions

Comparing version 0.31.0 to 0.32.0

20

dist/index.js

@@ -478,16 +478,16 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"';

}
function isWideGamutSupported() {
return isSrgbSupported() || isRec2020Supported();
function isWideGamutSupported(win = window) {
return isSrgbSupported(win) || isRec2020Supported(win);
}
function isSrgbSupported() {
return checkColorSpace('srgb');
function isSrgbSupported(win = window) {
return checkColorSpace('srgb', win);
}
function isP3Supported() {
return checkColorSpace('p3');
function isP3Supported(win = window) {
return checkColorSpace('p3', win);
}
function isRec2020Supported() {
return checkColorSpace('rec2020');
function isRec2020Supported(win = window) {
return checkColorSpace('rec2020', win);
}
function checkColorSpace(type) {
return window.matchMedia && window.matchMedia(`(color-gamut: ${type})`).matches;
function checkColorSpace(type, win = window) {
return win.matchMedia && win.matchMedia(`(color-gamut: ${type})`).matches;
}

@@ -494,0 +494,0 @@

@@ -25,5 +25,5 @@ declare global {

export declare function getResolutionMode(height?: number): string;
export declare function isWideGamutSupported(): boolean;
export declare function isSrgbSupported(): boolean;
export declare function isP3Supported(): boolean;
export declare function isRec2020Supported(): boolean;
export declare function isWideGamutSupported(win?: Window & typeof globalThis): boolean;
export declare function isSrgbSupported(win?: Window & typeof globalThis): boolean;
export declare function isP3Supported(win?: Window & typeof globalThis): boolean;
export declare function isRec2020Supported(win?: Window & typeof globalThis): boolean;
{
"name": "detect-audio-video",
"version": "0.31.0",
"version": "0.32.0",
"description": "Detect audio video features",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

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