babel-runtime-jsx-plus
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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 l=Object.prototype.toString;var s={}.hasOwnProperty;e.$slot=function(e){var r=e.$slots,t=e.name,n=function(e,r){if(null==e)return{};var t,n,o={},f=Object.keys(e);for(n=0;n<f.length;n++)t=f[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 f=e.apply(null,n);f&&r.push(f)}else if("object"==o)for(var i in n)s.call(n,i)&&n[i]&&r.push(i)}}return r.join(" ")},e.createJSXMemo=function(e,r){return t.hasOwnProperty(r)?t[r]:t[r]=e},e.createList=function(e,r){var t,n,o,f,i;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]"===l.call(e)}(e))for(f=Object.keys(e),t=new Array(f.length),n=0,o=f.length;n<o;n++)i=f[n],t[n]=r.call(this,e[i],i,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 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]=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})}); |
{ | ||
"name": "babel-runtime-jsx-plus", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Babel runtime support for jsx plus.", | ||
@@ -5,0 +5,0 @@ "main": "dist/babel-runtime-jsx-plus.umd.js", |
@@ -5,3 +5,6 @@ # babel-runtime-jsx-plus | ||
- createCondition: Helper for condition directive. | ||
- createList: Helper for list directive. | ||
- createJSXMemo: Memorized cache of memo directive. | ||
- classnames: Same function as npm package: classnames. | ||
- $slot: Component support of slot directive. |
import $slot from './Slot'; | ||
import createJSXMemo from './createJSXMemo'; | ||
import createCondition from './createCondition'; | ||
import createList from './createList'; | ||
@@ -7,2 +8,3 @@ import classnames from './classnames'; | ||
export { | ||
createCondition, | ||
createList, | ||
@@ -9,0 +11,0 @@ createJSXMemo, |
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
6797
10
170
10