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 1.3.1 to 1.3.2

17

dist/index.js

@@ -416,2 +416,8 @@ (function () {

const customStateMap = new WeakMap();
function addState(ref, stateName) {
ref.toggleAttribute(stateName, true);
if (ref.part) {
ref.part.add(stateName);
}
}
class CustomStateSet extends Set {

@@ -434,6 +440,11 @@ static get isPolyfilled() {

const ref = customStateMap.get(this);
ref.toggleAttribute(`state${state}`, true);
if (ref.part) {
ref.part.add(`state${state}`);
const stateName = `state${state}`;
if (ref.isConnected) {
addState(ref, stateName);
}
else {
setTimeout(() => {
addState(ref, stateName);
});
}
return result;

@@ -440,0 +451,0 @@ }

2

package.json
{
"name": "element-internals-polyfill",
"version": "1.3.1",
"version": "1.3.2",
"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