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

material

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material - npm Package Compare versions

Comparing version 0.9.19 to 0.9.20

2

package.json
{
"name": "material",
"version": "0.9.19",
"version": "0.9.20",
"description": "A lightweight implementation of Material Design Components for the web - ES6",

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

@@ -17,5 +17,3 @@ import Component from './component'

on (event, listener) {
if (!this.events[event]) {
this.events[event] = []
}
this.events[event] ??= []
this.events[event].push(listener)

@@ -27,5 +25,4 @@

emit (event, ...args) {
if (this.events[event]) {
this.events[event].forEach(listener => listener.apply(this, args))
}
this.events?.[event]?.forEach(listener => listener.apply(this, args))
return this

@@ -32,0 +29,0 @@ }

@@ -101,3 +101,5 @@ import emitter from './module/emitter'

setText (text) {
this.text.innerHTML = text
if (text) {
this.text.innerHTML = text
}
}

@@ -104,0 +106,0 @@

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