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

jsx-dom-cjs

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom-cjs - npm Package Compare versions

Comparing version 8.0.2 to 8.0.3

3

CHANGELOG.md

@@ -0,1 +1,4 @@

# 8.0.3
- Added: [RFC Support capture events, fix custom events, support on/onCapture](https://github.com/alex-kinokon/jsx-dom/pull/70)
# 8.0.2

@@ -2,0 +5,0 @@ - Bug fix: `import("jsx-dom").ShadowRoot` was not properly exported.

@@ -434,2 +434,9 @@ /* eslint-disable */

return
case "on":
case "onCapture":
forEach(value, (eventHandler, eventName) => {
node.addEventListener(eventName, eventHandler, key === "onCapture")
})
return
}

@@ -440,7 +447,10 @@

const attribute = key.toLowerCase()
const useCapture = attribute.endsWith("capture")
if (node[attribute] == null) {
if (!useCapture && node[attribute] === null) {
node[attribute] = value
} else if (useCapture) {
node.addEventListener(attribute.substring(2, attribute.length - 7), value, true)
} else {
node.addEventListener(key, value)
node.addEventListener(attribute.substring(2), value)
}

@@ -447,0 +457,0 @@ }

@@ -284,2 +284,9 @@ /* eslint-disable */

return
case "on":
case "onCapture":
forEach(value, (eventHandler, eventName) => {
node.addEventListener(eventName, eventHandler, key === "onCapture")
})
return
}

@@ -290,7 +297,10 @@

const attribute = key.toLowerCase()
const useCapture = attribute.endsWith("capture")
if (node[attribute] == null) {
if (!useCapture && node[attribute] === null) {
node[attribute] = value
} else if (useCapture) {
node.addEventListener(attribute.substring(2, attribute.length - 7), value, true)
} else {
node.addEventListener(key, value)
node.addEventListener(attribute.substring(2), value)
}

@@ -297,0 +307,0 @@ }

2

package.json
{
"name": "jsx-dom-cjs",
"version": "8.0.2",
"version": "8.0.3",
"description": "JSX to document.createElement.",

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

Sorry, the diff of this file is too big to display

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