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

super-media-element

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-media-element - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "super-media-element",
"version": "1.1.2",
"version": "1.1.3",
"description": "Helps you create a custom element w/ a HTMLMediaElement API.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -111,3 +111,5 @@ /**

const observedAttributes = this.observedAttributes;
const propsToAttrs = new Set(this.observedAttributes);
// defaultMuted maps to the muted attribute, handled manually below.
propsToAttrs.delete('muted');

@@ -143,3 +145,3 @@ // Passthrough native el functions from the custom el to the native el

let attr = prop.toLowerCase();
if (observedAttributes.includes(attr)) {
if (propsToAttrs.has(attr)) {
const val = this.getAttribute(attr);

@@ -166,3 +168,3 @@ return val === null ? false : val === '' ? true : val;

let attr = prop.toLowerCase();
if (observedAttributes.includes(attr)) {
if (propsToAttrs.has(attr)) {
if (val === true || val === false || val == null) {

@@ -169,0 +171,0 @@ this.toggleAttribute(attr, Boolean(val));

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