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

element-internals-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-internals-polyfill - npm Package Compare versions

Comparing version 0.1.54 to 0.1.55

10

dist/index.js

@@ -355,3 +355,3 @@ (function () {

add(state) {
if (!/^--/.exec(state) || typeof state !== 'string') {
if (!/^--/.test(state) || typeof state !== 'string') {
throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${state} must start with '--'.`);

@@ -362,2 +362,5 @@ }

ref.toggleAttribute(`state${state}`, true);
if (ref.part) {
ref.part.add(`state--${state}`);
}
return result;

@@ -375,2 +378,5 @@ }

ref.toggleAttribute(`state${state}`, false);
if (ref.part) {
ref.part.remove(`state--${state}`);
}
return result;

@@ -500,3 +506,3 @@ }

if (shadowRoot) {
return shadowRootMap.get(ref);
return shadowRoot;
}

@@ -503,0 +509,0 @@ return null;

2

package.json
{
"name": "element-internals-polyfill",
"version": "0.1.54",
"version": "0.1.55",
"description": "A polyfill for the element internals specification",

@@ -5,0 +5,0 @@ "main": "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