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

@gera2ld/jsx-dom

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gera2ld/jsx-dom - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

8

dist/index.js

@@ -1,2 +0,2 @@

/*! @gera2ld/jsx-dom v2.2.0 | ISC License */
/*! @gera2ld/jsx-dom v2.2.1 | ISC License */
(function (exports) {

@@ -88,4 +88,8 @@ 'use strict';

function flatten(arr) {
return arr.reduce((prev, item) => prev.concat(item), []);
}
function mountChildren(children, env) {
return Array.isArray(children) ? children.map(child => mount(child, env)) : mount(children, env);
return Array.isArray(children) ? flatten(children.map(child => mountChildren(child, env))) : mount(children, env);
}

@@ -92,0 +96,0 @@

{
"name": "@gera2ld/jsx-dom",
"version": "2.2.0",
"version": "2.2.1",
"description": "Use JSX for HTML elements.",

@@ -5,0 +5,0 @@ "author": "Gerald <i@gerald.top>",

@@ -29,3 +29,3 @@ import { VType, VTYPE_ELEMENT, VTYPE_FUNCTION } from './consts';

export declare type VChild = string | number | boolean | null | Node | VNode;
export declare type VChildren = VChild | VChild[];
export declare type VChildren = VChild | VChildren[];
export interface MountEnv {

@@ -32,0 +32,0 @@ isSvg: boolean;

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