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

media-chrome

Package Overview
Dependencies
Maintainers
1
Versions
640
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-chrome - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

2

dist/cjs/menu/media-chrome-menu.js

@@ -648,3 +648,3 @@ var __defProp = Object.defineProperty;

const maxHeight = boundsRect.height - realBottom - parseFloat(computedStyle.marginBottom);
style.setProperty("--_menu-max-height", `${maxHeight}px`);
this.style.setProperty("--_menu-max-height", `${maxHeight}px`);
};

@@ -651,0 +651,0 @@ _resizeMenu = new WeakSet();

@@ -145,8 +145,8 @@ var __defProp = Object.defineProperty;

function getCSSRule(styleParent, predicate) {
var _a;
var _a, _b;
let style;
for (style of styleParent.querySelectorAll("style")) {
for (style of (_a = styleParent.querySelectorAll("style:not([media])")) != null ? _a : []) {
let cssRules;
try {
cssRules = (_a = style.sheet) == null ? void 0 : _a.cssRules;
cssRules = (_b = style.sheet) == null ? void 0 : _b.cssRules;
} catch {

@@ -163,3 +163,3 @@ continue;

var _a, _b;
const styles = (_a = styleParent.querySelectorAll("style")) != null ? _a : [];
const styles = (_a = styleParent.querySelectorAll("style:not([media])")) != null ? _a : [];
const style = styles == null ? void 0 : styles[styles.length - 1];

@@ -166,0 +166,0 @@ if (!(style == null ? void 0 : style.sheet)) {

@@ -630,3 +630,3 @@ var __accessCheck = (obj, member, msg) => {

const maxHeight = boundsRect.height - realBottom - parseFloat(computedStyle.marginBottom);
style.setProperty("--_menu-max-height", `${maxHeight}px`);
this.style.setProperty("--_menu-max-height", `${maxHeight}px`);
};

@@ -633,0 +633,0 @@ _resizeMenu = new WeakSet();

@@ -103,8 +103,8 @@ import { MediaStateReceiverAttributes } from "../constants.js";

function getCSSRule(styleParent, predicate) {
var _a;
var _a, _b;
let style;
for (style of styleParent.querySelectorAll("style")) {
for (style of (_a = styleParent.querySelectorAll("style:not([media])")) != null ? _a : []) {
let cssRules;
try {
cssRules = (_a = style.sheet) == null ? void 0 : _a.cssRules;
cssRules = (_b = style.sheet) == null ? void 0 : _b.cssRules;
} catch {

@@ -121,3 +121,3 @@ continue;

var _a, _b;
const styles = (_a = styleParent.querySelectorAll("style")) != null ? _a : [];
const styles = (_a = styleParent.querySelectorAll("style:not([media])")) != null ? _a : [];
const style = styles == null ? void 0 : styles[styles.length - 1];

@@ -124,0 +124,0 @@ if (!(style == null ? void 0 : style.sheet)) {

{
"name": "media-chrome",
"version": "4.1.2",
"version": "4.1.3",
"description": "Custom elements (web components) for making audio and video player controls that look great in your website or app.",

@@ -5,0 +5,0 @@ "author": "@muxinc",

@@ -644,3 +644,5 @@ import { MediaStateReceiverAttributes } from '../constants.js';

style.setProperty('--_menu-max-height', `${maxHeight}px`);
// Safari required directly setting the element style property instead of
// updating the style node for the styles to be refreshed.
this.style.setProperty('--_menu-max-height', `${maxHeight}px`);
}

@@ -647,0 +649,0 @@

@@ -218,3 +218,3 @@ import { MediaStateReceiverAttributes } from '../constants.js';

for (style of styleParent.querySelectorAll('style')) {
for (style of styleParent.querySelectorAll('style:not([media])') ?? []) {
// Catch this error. e.g. browser extension adds style tags.

@@ -244,3 +244,3 @@ // Uncaught DOMException: CSSStyleSheet.cssRules getter:

): CSSStyleRule | undefined {
const styles = styleParent.querySelectorAll('style') ?? [];
const styles = styleParent.querySelectorAll('style:not([media])') ?? [];
const style = styles?.[styles.length - 1];

@@ -247,0 +247,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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