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

njsx

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

njsx - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

5

njsx.js

@@ -14,3 +14,6 @@ Object.defineProperty(exports,"__esModule",{value:true});exports.default=

njsx;var _react=require('react');function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}var isArray=Array.isArray;var flatten=function flatten(array){return array.reduce(function(acum,elem){return[].concat(_toConsumableArray(acum),_toConsumableArray(isArray(elem)?elem:[elem]));},[]);};var asDynamic=function asDynamic(component){return!Proxy?component:new Proxy(component,{get:function get(target,name){var _component=component(),type=_component.type,_component$props=_component.props,_component$props$chil=_component$props.children,children=_component$props$chil===undefined?[]:_component$props$chil,props=_objectWithoutProperties(_component$props,['children']);var next=njsx.dynamicSelectorHandler(name,{props:props,children:children});return asDynamic(njsx(type,next.props,next.children));}});};function njsx(type){var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var children=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];
njsx;var _react=require('react');function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}var isArray=Array.isArray;var flatten=function flatten(array){return array.reduce(function(acum,elem){return[].concat(_toConsumableArray(acum),_toConsumableArray(isArray(elem)?elem:[elem]));},[]);};var asDynamic=function asDynamic(component){try{Proxy;}catch(error){return component;}return new Proxy(component,{get:function get(target,name){var _component=component(),type=_component.type,_component$props=_component.props,_component$props$chil=_component$props.children,children=_component$props$chil===undefined?[]:_component$props$chil,props=_objectWithoutProperties(_component$props,['children']);var next=njsx.dynamicSelectorHandler(name,{props:props,children:children});return asDynamic(njsx(type,next.props,next.children));}});};function njsx(type){var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var children=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];
var component=function component(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}var _flatten$reduce=

@@ -17,0 +20,0 @@ flatten(args).reduce(function(previous,arg){return(

2

package.json
{
"name": "njsx",
"version": "2.0.3",
"version": "2.0.4",
"description": "No-JSX: A customizable interface for creating React and React-Native components without JSX syntax.",

@@ -5,0 +5,0 @@ "repository": "uqbar-project/njsx",

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