jsx-dom-cjs
Advanced tools
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134788
3377
Updatedcsstype@^3.1.2