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.4 to 0.0.5

2

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

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

# Babel-plugin-event-target
Transform `e.target` to `e.target || e.srcElement`
* `e.target` => `e.target || e.srcElement`
* `e.preventDefault()` => `e.preventDefault ? e.preventDefault() : e.returnValue = false`
* `e.stopPropagation()` => `e.stopPropagation ? e.stopPropagation() :
e.cancelBubble = true`
* `e.stopImmediatePropagation()` => `e.stopImmediatePropagation()`
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