Socket
Socket
Sign inDemoInstall

babel-runtime-jsx-plus

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-runtime-jsx-plus - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

dist/babel-runtime-jsx-plus.umd.js

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

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self)["babel-runtime-jsx-plus"]={})}(this,function(e){"use strict";var t={};var f=Array.isArray;var a=Object.prototype.toString;var l={}.hasOwnProperty;e.$slot=function(e){var r=e.$slots,t=e.name,n=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],0<=r.indexOf(t)||(o[t]=e[t]);return o}(e,["$slots","name"]),o=r[t];return"function"==typeof o?o(n):null},e.classnames=function e(){for(var r=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"==o||"number"==o)r.push(n);else if(Array.isArray(n)&&n.length){var i=e.apply(null,n);i&&r.push(i)}else if("object"==o)for(var f in n)l.call(n,f)&&n[f]&&r.push(f)}}return r.join(" ")},e.createCondition=function(e){if(f(e))for(var r=0,t=e.length;r<t;r++){var n=e[r],o=n[0],i=n[1];if(o())return i()}return null},e.createJSXMemo=function(e,r){return t.hasOwnProperty(r)?t[r]:t[r]="function"==typeof e?e():e},e.createList=function(e,r){var t,n,o,i,f;if(Array.isArray(e)||"string"==typeof e)for(t=new Array(e.length),n=0,o=e.length;n<o;n++)t[n]=r.call(this,e[n],n);else if("number"==typeof e)for(t=new Array(e),n=0;n<e;n++)t[n]=r.call(this,n+1,n);else if(function(e){return"[object Object]"===a.call(e)}(e))for(i=Object.keys(e),t=new Array(i.length),n=0,o=i.length;n<o;n++)f=i[n],t[n]=r.call(this,e[f],f,n);return t},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self)["babel-runtime-jsx-plus"]={})}(this,function(e){"use strict";var n={};var l={}.hasOwnProperty;e.$slot=function(e){var r=e.$slots,n=e.name,t=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],0<=r.indexOf(n)||(o[n]=e[n]);return o}(e,["$slots","name"]),o=r?r[n]:null;return"function"==typeof o?o(t):null},e.classnames=function e(){for(var r=[],n=0;n<arguments.length;n++){var t=arguments[n];if(t){var o=typeof t;if("string"==o||"number"==o)r.push(t);else if(Array.isArray(t)&&t.length){var i=e.apply(null,t);i&&r.push(i)}else if("object"==o)for(var f in t)l.call(t,f)&&t[f]&&r.push(f)}}return r.join(" ")},e.createCondition=function(e){if(Array.isArray(e))for(var r=0,n=e.length;r<n;r++){var t=e[r],o=t[0],i=t[1];if(o())return i()}return null},e.createJSXMemo=function(e,r){return n.hasOwnProperty(r)?n[r]:n[r]="function"==typeof e?e():e},e.createList=function(e,r){var n,t,o,i,f,l;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),t=0,o=e.length;t<o;t++)n[t]=r.call(this,e[t],t);else if("number"==typeof e)for(n=new Array(e),t=0;t<e;t++)n[t]=r.call(this,t+1,t);else if(l=e,"[object Object]"==={}.toString.call(l))for(i=Object.keys(e),n=new Array(i.length),t=0,o=i.length;t<o;t++)f=i[t],n[t]=r.call(this,e[f],f,t);return n},Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "babel-runtime-jsx-plus",
"version": "0.1.4",
"version": "0.1.5",
"description": "Babel runtime support for jsx plus.",

@@ -5,0 +5,0 @@ "main": "dist/babel-runtime-jsx-plus.umd.js",

@@ -1,3 +0,1 @@

const isArray = Array.isArray;
/**

@@ -28,3 +26,3 @@ * Create condition helper.

export default function createCondition(conditions) {
if (isArray(conditions)) {
if (Array.isArray(conditions)) {
for (let i = 0, l = conditions.length; i < l; i++) {

@@ -31,0 +29,0 @@ const [getCondition, getRender] = conditions[i];

@@ -1,3 +0,1 @@

const ObjetProtoToString = Object.prototype.toString;
/**

@@ -38,3 +36,3 @@ * Render element list.

function isPlainObject(obj) {
return ObjetProtoToString.call(obj) === '[object Object]';
return {}.toString.call(obj) === '[object Object]';
}

@@ -6,4 +6,4 @@ /**

const { $slots, name, ...others } = props;
const getEl = $slots[name];
const getEl = $slots ? $slots[name] : null;
return typeof getEl === 'function' ? getEl(others) : null;
}
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