Socket
Socket
Sign inDemoInstall

haunted

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haunted - npm Package Compare versions

Comparing version 4.6.0 to 4.6.1

12

haunted.js

@@ -164,3 +164,6 @@ import { directive, render } from 'https://unpkg.com/lit-html@^1.0.0/lit-html.js';

}
attributeChangedCallback(name, _, newValue) {
attributeChangedCallback(name, oldValue, newValue) {
if (oldValue === newValue) {
return;
}
let val = newValue === '' ? true : newValue;

@@ -189,6 +192,11 @@ Reflect.set(this, toCamelCase(name), val);

set(target, key, value, receiver) {
let desc;
if (key in target) {
desc = Object.getOwnPropertyDescriptor(target, key);
if (desc && desc.set) {
desc.set.call(receiver, value);
return true;
}
Reflect.set(target, key, value);
}
let desc;
if (typeof key === 'symbol' || key[0] === '_') {

@@ -195,0 +203,0 @@ desc = {

@@ -36,3 +36,6 @@ import { BaseScheduler } from './scheduler.js';

}
attributeChangedCallback(name, _, newValue) {
attributeChangedCallback(name, oldValue, newValue) {
if (oldValue === newValue) {
return;
}
let val = newValue === '' ? true : newValue;

@@ -62,6 +65,11 @@ Reflect.set(this, toCamelCase(name), val);

set(target, key, value, receiver) {
let desc;
if (key in target) {
desc = Object.getOwnPropertyDescriptor(target, key);
if (desc && desc.set) {
desc.set.call(receiver, value);
return true;
}
Reflect.set(target, key, value);
}
let desc;
if (typeof key === 'symbol' || key[0] === '_') {

@@ -68,0 +76,0 @@ desc = {

2

package.json
{
"name": "haunted",
"version": "4.6.0",
"version": "4.6.1",
"description": "Hooks for web components",

@@ -5,0 +5,0 @@ "main": "lib/haunted.js",

@@ -164,3 +164,6 @@ import { directive, render } from '../lit-html/lit-html.js';

}
attributeChangedCallback(name, _, newValue) {
attributeChangedCallback(name, oldValue, newValue) {
if (oldValue === newValue) {
return;
}
let val = newValue === '' ? true : newValue;

@@ -189,6 +192,11 @@ Reflect.set(this, toCamelCase(name), val);

set(target, key, value, receiver) {
let desc;
if (key in target) {
desc = Object.getOwnPropertyDescriptor(target, key);
if (desc && desc.set) {
desc.set.call(receiver, value);
return true;
}
Reflect.set(target, key, value);
}
let desc;
if (typeof key === 'symbol' || key[0] === '_') {

@@ -195,0 +203,0 @@ desc = {

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