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

@dreamworld/dw-form

Package Overview
Dependencies
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-form - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0-remove-custom-getter-setter.1

22

dw-form-field.js
import { LitElement, html, css, unsafeCSS } from "@dreamworld/pwa-helpers/lit.js";
import { classMap } from 'lit/directives/class-map.js';
import { classMap } from "lit/directives/class-map.js";

@@ -100,2 +100,9 @@ import * as TypographyLiterals from "@dreamworld/material-styles/typography-literals";

updated(_changeProperties) {
if (_changeProperties.has("label")) {
const labelEl = this.renderRoot.querySelector(".dw-label");
this._hasLabel = !!(this.label || labelEl);
}
}
render() {

@@ -132,17 +139,4 @@ const classes = {

}
set label(value) {
const oldValue = this._label;
let labelEl = this.renderRoot?.querySelector('.dw-label') ?? null
// let labelEl = this.renderRoot.querySelector(".dw-label");
this._label = value;
this._hasLabel = !!(value || labelEl);
this.requestUpdate("label", oldValue);
}
get label() {
return this._label;
}
}
window.customElements.define("dw-form-field", DwFormField);
{
"name": "@dreamworld/dw-form",
"version": "4.0.0",
"version": "4.1.0-remove-custom-getter-setter.1",
"description": "",

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