@tarojs/shared
Advanced tools
Comparing version 3.0.0-beta.4 to 3.0.0-beta.5
@@ -26,2 +26,5 @@ 'use strict'; | ||
} | ||
function isBooleanStringLiteral(o) { | ||
return o === 'true' || o === 'false'; | ||
} | ||
var isArray = Array.isArray; | ||
@@ -137,3 +140,3 @@ | ||
percent: '', | ||
'show-info': 'fasle', | ||
'show-info': 'false', | ||
'border-radius': '0', | ||
@@ -362,3 +365,3 @@ 'font-size': '16', | ||
'indicator-active-color': singleQuote('#000000'), | ||
autoplay: 'fasle', | ||
autoplay: 'false', | ||
current: '0', | ||
@@ -368,3 +371,3 @@ interval: '5000', | ||
circular: 'false', | ||
vertical: 'fasle', | ||
vertical: 'false', | ||
'previous-margin': '\'0px\'', | ||
@@ -613,3 +616,3 @@ 'next-margin': '\'0px\'', | ||
} | ||
else if (propValue === 'true' || propValue === 'false') { | ||
else if (isBooleanStringLiteral(propValue) || isNumber(+propValue)) { | ||
propValue = "i." + (toCamelCase(prop)) + " === undefined ? " + propValue + " : i." + (toCamelCase(prop)); | ||
@@ -703,2 +706,3 @@ } | ||
exports.isBoolean = isBoolean; | ||
exports.isBooleanStringLiteral = isBooleanStringLiteral; | ||
exports.isFunction = isFunction; | ||
@@ -705,0 +709,0 @@ exports.isNull = isNull; |
@@ -8,2 +8,3 @@ export declare function isString(o: unknown): o is string; | ||
export declare function isNumber(o: unknown): o is number; | ||
export declare function isBooleanStringLiteral(o: unknown): o is string; | ||
export declare const isArray: (arg: any) => arg is any[]; |
@@ -22,2 +22,5 @@ function isString(o) { | ||
} | ||
function isBooleanStringLiteral(o) { | ||
return o === 'true' || o === 'false'; | ||
} | ||
const isArray = Array.isArray; | ||
@@ -117,3 +120,3 @@ | ||
percent: '', | ||
'show-info': 'fasle', | ||
'show-info': 'false', | ||
'border-radius': '0', | ||
@@ -342,3 +345,3 @@ 'font-size': '16', | ||
'indicator-active-color': singleQuote('#000000'), | ||
autoplay: 'fasle', | ||
autoplay: 'false', | ||
current: '0', | ||
@@ -348,3 +351,3 @@ interval: '5000', | ||
circular: 'false', | ||
vertical: 'fasle', | ||
vertical: 'false', | ||
'previous-margin': '\'0px\'', | ||
@@ -593,3 +596,3 @@ 'next-margin': '\'0px\'', | ||
} | ||
else if (propValue === 'true' || propValue === 'false') { | ||
else if (isBooleanStringLiteral(propValue) || isNumber(+propValue)) { | ||
propValue = `i.${toCamelCase(prop)} === undefined ? ${propValue} : i.${toCamelCase(prop)}`; | ||
@@ -671,3 +674,3 @@ } | ||
export { EMPTY_ARR, EMPTY_OBJ, box, capitalize, controlledComponent, createMiniComponents, ensure, focusComponents, hasOwn, internalComponents, isArray, isBoolean, isFunction, isNull, isNumber, isObject, isString, isUndefined, noop, toCamelCase, toDashed, unbox, warn }; | ||
export { EMPTY_ARR, EMPTY_OBJ, box, capitalize, controlledComponent, createMiniComponents, ensure, focusComponents, hasOwn, internalComponents, isArray, isBoolean, isBooleanStringLiteral, isFunction, isNull, isNumber, isObject, isString, isUndefined, noop, toCamelCase, toDashed, unbox, warn }; | ||
//# sourceMappingURL=shared.esm.js.map |
{ | ||
"name": "@tarojs/shared", | ||
"version": "3.0.0-beta.4", | ||
"version": "3.0.0-beta.5", | ||
"description": "> TODO: description", | ||
@@ -27,3 +27,3 @@ "author": "yuche <i@yuche.me>", | ||
}, | ||
"gitHead": "686840b81772486214998220ec70f78da75c3e9c" | ||
"gitHead": "b7a639a4b3ecbdae84f3d7073ec9df0ed1f7c0cc" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
125543
2008