Comparing version 2.0.3 to 2.0.4
@@ -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( |
{ | ||
"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", |
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
26265