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

metal-events

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metal-events - npm Package Compare versions

Comparing version 2.6.0 to 2.6.4

26

lib/EventEmitter.js

@@ -7,4 +7,2 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -153,19 +151,11 @@

value: function buildFacade_(event) {
var _this2 = this;
if (this.getShouldUseFacade()) {
var _ret = function () {
var facade = {
preventDefault: function preventDefault() {
facade.preventedDefault = true;
},
target: _this2,
type: event
};
return {
v: facade
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
var facade = {
preventDefault: function preventDefault() {
facade.preventedDefault = true;
},
target: this,
type: event
};
return facade;
}

@@ -172,0 +162,0 @@ }

{
"name": "metal-events",
"version": "2.6.0",
"version": "2.6.4",
"description": "Classes responsible for emitting and listening to events",

@@ -25,3 +25,3 @@ "license": "BSD",

"dependencies": {
"metal": "^2.6.0"
"metal": "^2.6.4"
},

@@ -28,0 +28,0 @@ "devDependencies": {

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