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

jsx-dom

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

13

dist/index.cjs.js

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

}
return createElement.apply(void 0, [tag, attr].concat(children));
return createElement(tag, attr, children);
};

@@ -161,10 +161,14 @@ }

attr = attr || {};
var node;
if (isString(tag)) {
var node = 'namespaceURI' in attr ? document.createElementNS(attr.namespaceURI, tag) : tag in svg ? document.createElementNS(SVGNamespace, tag) : document.createElement(tag);
node = 'namespaceURI' in attr ? document.createElementNS(attr.namespaceURI, tag) : tag in svg ? document.createElementNS(SVGNamespace, tag) : document.createElement(tag);
attributes(attr, node);
append(children, node);
return node;
} else if (isFunction(tag)) {
return tag(__assign({}, attr, { children: children }));
node = tag(__assign({}, attr, { children: children }));
}
if ('ref' in attr && isFunction(attr.ref)) {
attr.ref(node);
}
return node;
}

@@ -212,2 +216,3 @@ function append(children, node) {

continue;
case 'ref':
case 'namespaceURI':

@@ -214,0 +219,0 @@ continue;

@@ -39,3 +39,3 @@

}
return createElement.apply(void 0, [tag, attr].concat(children));
return createElement(tag, attr, children);
};

@@ -159,10 +159,14 @@ }

attr = attr || {};
var node;
if (isString(tag)) {
var node = 'namespaceURI' in attr ? document.createElementNS(attr.namespaceURI, tag) : tag in svg ? document.createElementNS(SVGNamespace, tag) : document.createElement(tag);
node = 'namespaceURI' in attr ? document.createElementNS(attr.namespaceURI, tag) : tag in svg ? document.createElementNS(SVGNamespace, tag) : document.createElement(tag);
attributes(attr, node);
append(children, node);
return node;
} else if (isFunction(tag)) {
return tag(__assign({}, attr, { children: children }));
node = tag(__assign({}, attr, { children: children }));
}
if ('ref' in attr && isFunction(attr.ref)) {
attr.ref(node);
}
return node;
}

@@ -210,2 +214,3 @@ function append(children, node) {

continue;
case 'ref':
case 'namespaceURI':

@@ -212,0 +217,0 @@ continue;

{
"name": "jsx-dom",
"version": "4.3.0",
"version": "4.4.0",
"description": "JSX to document.createElement.",

@@ -16,3 +16,3 @@ "main": "dist/index.cjs.js",

"typings": "dist/jsx-dom.d.ts",
"author": "Alex Mattrick",
"author": "@alexlur",
"license": "MIT",

@@ -22,13 +22,13 @@ "devDependencies": {

"@types/babel-core": "^6.7.14",
"@types/chai": "^3.5.0",
"@types/chai": "^3.5.2",
"@types/jsdom": "^2.0.30",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.12",
"@types/node": "^7.0.18",
"babel-core": "^6.24.1",
"chai": "^3.5.0",
"jsdom": "^10.1.0",
"mocha": "^3.2.0",
"mocha": "^3.4.1",
"rollup": "^0.41.6",
"ts-node": "^3.0.2",
"typescript": "^2.2.2"
"ts-node": "^3.0.4",
"typescript": "^2.3.2"
},

@@ -35,0 +35,0 @@ "repository": {

@@ -71,5 +71,5 @@ # jsx-dom

2. `stopPropagation(event: Event): Event`
3. `SVGNamespace` is the `namespaceURI` for SVG Elements.
3. `SVGNamespace` is the `namespaceURI` string for SVG Elements.
## Browser Support
`jsx-dom` requires `Object.keys` and `Object.create` support. This means IE9 or later.

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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