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

babel-plugin-transform-event

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-event - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

dest/index.js

@@ -71,3 +71,3 @@ 'use strict';

if (t.isFunctionDeclaration(path.node) || t.isFunctionExpression(path.node) || t.isClassMethod(path.node)) {
if (path.node.params[0].name === 'e') {
if (path.node.params.length && path.node.params[0].name === 'e') {
return path;

@@ -74,0 +74,0 @@ }

{
"name": "babel-plugin-transform-event",
"version": "0.0.5",
"version": "0.0.6",
"description": "add support e.scrElement e.returnValue e.cancelBubble in IE8",

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

@@ -5,5 +5,4 @@ # Babel-plugin-event-target

* `e.preventDefault()` => `e.preventDefault ? e.preventDefault() : e.returnValue = false`
* `e.stopPropagation()` => `e.stopPropagation ? e.stopPropagation() :
e.cancelBubble = true`
* `e.stopImmediatePropagation()` => `e.stopImmediatePropagation()`
* `e.stopPropagation()` => `e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true`
* `e.stopImmediatePropagation()` => `e.stopImmediatePropagation ? e.stopImmediatePropagation() : void(0)`

@@ -22,3 +22,3 @@ import template from 'babel-template'

if (t.isFunctionDeclaration(path.node) || t.isFunctionExpression(path.node) || t.isClassMethod(path.node)) {
if (path.node.params[0].name === 'e') {
if (path.node.params.length && path.node.params[0].name === 'e') {
return path

@@ -25,0 +25,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