New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsx-dom-runtime

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom-runtime - npm Package Compare versions

Comparing version 0.60.0 to 0.60.1

10

jsx-runtime/index.js
const appendChildren = (children, node) => {
if (Array.isArray(children)) {
children.some(child => appendChildren(child, node));
} else if (children != null && children !== false) {
} else if (null != children && false !== children) {
node.append(children);

@@ -17,3 +17,3 @@ }

const extensions = new Map([['style', (node, val, key) => {
if (typeof val === 'string') {
if ('string' === typeof val) {
node.setAttribute(key, val);

@@ -42,3 +42,3 @@ } else {

node[key] = val;
} else if (val != null && (typeof val !== 'boolean' || key[4] === '-')) {
} else if (null != val && ('boolean' !== typeof val || '-' === key[4])) {
node.setAttribute(key, val);

@@ -50,5 +50,5 @@ } else if (val) {

}
appendChildren(props.children, tag === 'template' ? node.content : node);
appendChildren(props.children, 'template' === tag ? node.content : node);
if (key = props.ref) {
if (typeof key === 'function') {
if ('function' === typeof key) {
key(node);

@@ -55,0 +55,0 @@ } else {

{
"name": "jsx-dom-runtime",
"version": "0.60.0",
"version": "0.60.1",
"description": "A tiny in 500 bytes library to JSX syntax templates for DOM. Support HTML, SVG and MathML tags",

@@ -25,4 +25,4 @@ "type": "module",

"scripts": {
"lint": "eslint 'src/**/*.{js,ts}' 'tests/**/*.{js,ts,tsx}'",
"test": "npx jest --clearCache && node --experimental-vm-modules node_modules/.bin/jest",
"lint": "eslint 'src/**/*.ts' 'tests/**/*.{ts,tsx}'",
"test": "node --experimental-vm-modules node_modules/.bin/jest",
"build": "rollup -c",

@@ -33,9 +33,7 @@ "size": "size-limit",

"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-plugin-utils": "^7.24.0",
"@babel/helper-validator-identifier": "^7.22.20",
"@babel/plugin-syntax-jsx": "^7.23.3",
"@babel/types": "^7.23.5",
"csstype": "^3.1.3",
"html-tags": "^3.3.1",
"svg-tags": "^1.0.0"
"@babel/types": "^7.24.0",
"csstype": "^3.1.3"
},

@@ -46,23 +44,22 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.23.5",
"@babel/core": "^7.24.0",
"@babel/preset-typescript": "^7.23.3",
"@evilmartians/lefthook": "^1.5.5",
"@evilmartians/lefthook": "^1.6.5",
"@jest/globals": "^29.7.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@size-limit/preset-small-lib": "^11.0.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.5",
"@size-limit/preset-small-lib": "^11.0.2",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@types/babel__helper-validator-identifier": "^7.15.2",
"@types/jest": "^29.5.11",
"@types/svg-tags": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"babel-jest": "^29.7.0",
"eslint": "^8.55.0",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"rollup": "^4.7.0",
"size-limit": "^11.0.1",
"typescript": "^5.3.3"
"rollup": "^4.12.1",
"size-limit": "^11.0.2",
"typescript": "^5.4.2"
},

@@ -69,0 +66,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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