Socket
Socket
Sign inDemoInstall

@spectrum-web-components/reactive-controllers

Package Overview
Dependencies
Maintainers
10
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/reactive-controllers - npm Package Compare versions

Comparing version 0.42.3 to 0.42.4

4

package.json
{
"name": "@spectrum-web-components/reactive-controllers",
"version": "0.42.3",
"version": "0.42.4",
"publishConfig": {

@@ -86,3 +86,3 @@ "access": "public"

],
"gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
"gitHead": "4924ffd06681ced537edaed873a9ce8b42cf155c"
}

@@ -20,4 +20,3 @@ "use strict";

set loaded(loaded) {
if (loaded === this.loaded)
return;
if (loaded === this.loaded) return;
this._loaded = loaded;

@@ -24,0 +23,0 @@ this.host.requestUpdate(dependencyManagerLoadedSymbol, !this.loaded);

@@ -10,4 +10,3 @@ "use strict";

mutationList.forEach((mutation) => {
if (needsResolution)
return;
if (needsResolution) return;
if (mutation.type === "childList") {

@@ -43,4 +42,3 @@ const currentElementRemoved = this.element && [...mutation.removedNodes].includes(this.element);

set element(element) {
if (element === this.element)
return;
if (element === this.element) return;
const previous = this.element;

@@ -54,4 +52,3 @@ this._element = element;

set selector(selector) {
if (selector === this.selector)
return;
if (selector === this.selector) return;
this.releaseElement();

@@ -58,0 +55,0 @@ this._selector = selector;

@@ -36,4 +36,3 @@ "use strict";

this.handleFocusin = (event) => {
if (!this.isEventWithinListenerScope(event))
return;
if (!this.isEventWithinListenerScope(event)) return;
if (this.isRelatedTargetAnElement(event)) {

@@ -136,4 +135,3 @@ this.hostContainsFocus();

set focused(focused) {
if (focused === this.focused)
return;
if (focused === this.focused) return;
this._focused = focused;

@@ -151,4 +149,3 @@ }

isEventWithinListenerScope(event) {
if (this._listenerScope() === this.host)
return true;
if (this._listenerScope() === this.host) return true;
return event.composedPath().includes(this._listenerScope());

@@ -164,4 +161,3 @@ }

this.clearElementCache();
if (this.elements.includes(focusedElement))
return;
if (this.elements.includes(focusedElement)) return;
const moveToNextElement = this.currentIndex !== this.elements.length;

@@ -183,4 +179,3 @@ const diff = moveToNextElement ? 1 : -1;

const elements = this.elements;
if (!elements.length)
return;
if (!elements.length) return;
let focusElement = elements[this.currentIndex];

@@ -187,0 +182,0 @@ if (!focusElement || !this.isFocusableElement(focusElement)) {

@@ -24,4 +24,3 @@ "use strict";

onChange(event) {
if (this.matches === event.matches)
return;
if (this.matches === event.matches) return;
this.matches = event.matches;

@@ -28,0 +27,0 @@ this.host.requestUpdate(this.key, !this.matches);

@@ -10,4 +10,3 @@ "use strict";

set focused(focused) {
if (focused === this.focused)
return;
if (focused === this.focused) return;
super.focused = focused;

@@ -22,4 +21,3 @@ this.manageTabindexes();

super.clearElementCache(offset);
if (!this.managed)
return;
if (!this.managed) return;
this.manageIndexesAnimationFrame = requestAnimationFrame(

@@ -50,4 +48,3 @@ () => this.manageTabindexes()

const updatable = el;
if (updatable.requestUpdate)
updatable.requestUpdate();
if (updatable.requestUpdate) updatable.requestUpdate();
});

@@ -54,0 +51,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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