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

html-element-property-mixins

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-element-property-mixins - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

2

package.json
{
"name": "html-element-property-mixins",
"version": "0.10.1",
"version": "0.10.2",
"description": "A collection of mixins extending HTMLElement with properties.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -29,5 +29,3 @@ export const DOMProperties = (SuperClass) => class extends SuperClass {

const attrValues = new Map();
this.getAttributeNames().map(attrName => {
attrValues.set(attrName, this.getAttribute(attrName));
});
this.getAttributeNames().map(attrName => attrValues.set(attrName, this.getAttribute(attrName)));
this.constructor.__initialAttributeValues = attrValues;

@@ -34,0 +32,0 @@ }

@@ -10,2 +10,3 @@ export const ObservedProperties = (SuperClass) => class extends SuperClass {

connectedCallback() {
this.constructor.__propertiesInited = true;
super.connectedCallback && super.connectedCallback();

@@ -12,0 +13,0 @@ this.constructor.__setInitialPropertyValues.call(this);

@@ -10,2 +10,3 @@ export const ReflectedProperties = (SuperClass) => class extends SuperClass {

if(!this.isConnected) return;
if(!this.constructor.__propertiesInited) return;
this.constructor.__setDOMAttribute.call(this, attrName, propName, newValue);

@@ -12,0 +13,0 @@ }

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