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.5 to 8.0.6

21

index.js

@@ -131,6 +131,6 @@ /* eslint-disable */

const jsxDomType = Symbol.for("jsx-dom:type")
var JsxDomType
;(function (JsxDomType) {
var JsxDomType = /*#__PURE__*/ (function (JsxDomType) {
JsxDomType["ShadowRoot"] = "ShadowRoot"
})(JsxDomType || (JsxDomType = {}))
return JsxDomType
})(JsxDomType || {})
function ShadowRoot(_ref) {

@@ -319,7 +319,7 @@ let { children, ref, ...attr } = _ref

for (
var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2;
_key < _len;
_key++
var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2;
_key2 < _len;
_key2++
) {
children[_key - 2] = arguments[_key]
children[_key2 - 2] = arguments[_key2]
}

@@ -479,4 +479,9 @@ if (isString(attr) || Array.isArray(attr)) {

if (key[0] === "o" && key[1] === "n") {
const attribute = key.toLowerCase()
let attribute = key.toLowerCase()
const useCapture = attribute.endsWith("capture")
if (attribute === "ondoubleclick") {
attribute = "ondblclick"
} else if (useCapture && attribute === "ondoubleclickcapture") {
attribute = "ondblclickcapture"
}
if (!useCapture && node[attribute] === null) {

@@ -483,0 +488,0 @@ // use property when possible PR #17

@@ -52,6 +52,6 @@ /* eslint-disable */

const jsxDomType = Symbol.for("jsx-dom:type")
var JsxDomType
;(function (JsxDomType) {
var JsxDomType = /*#__PURE__*/ (function (JsxDomType) {
JsxDomType["ShadowRoot"] = "ShadowRoot"
})(JsxDomType || (JsxDomType = {}))
return JsxDomType
})(JsxDomType || {})
function ShadowRoot(_ref) {

@@ -174,7 +174,7 @@ let { children, ref, ...attr } = _ref

for (
var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2;
_key < _len;
_key++
var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2;
_key2 < _len;
_key2++
) {
children[_key - 2] = arguments[_key]
children[_key2 - 2] = arguments[_key2]
}

@@ -308,4 +308,9 @@ if (isString(attr) || Array.isArray(attr)) {

if (key[0] === "o" && key[1] === "n") {
const attribute = key.toLowerCase()
let attribute = key.toLowerCase()
const useCapture = attribute.endsWith("capture")
if (attribute === "ondoubleclick") {
attribute = "ondblclick"
} else if (useCapture && attribute === "ondoubleclickcapture") {
attribute = "ondblclickcapture"
}
if (!useCapture && node[attribute] === null) {

@@ -312,0 +317,0 @@ // use property when possible PR #17

{
"name": "jsx-dom-cjs",
"version": "8.0.5",
"version": "8.0.6",
"description": "JSX to document.createElement.",

@@ -14,3 +14,3 @@ "main": "index.js",

"dependencies": {
"csstype": "^3.1.1"
"csstype": "^3.1.2"
},

@@ -17,0 +17,0 @@ "eslintIgnore": [

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