@vue/shared
Advanced tools
Comparing version 3.0.0-beta.13 to 3.0.0-beta.14
@@ -519,2 +519,6 @@ 'use strict'; | ||
}; | ||
const toNumber = (val) => { | ||
const n = parseFloat(val); | ||
return isNaN(n) ? val : n; | ||
}; | ||
@@ -568,3 +572,4 @@ exports.EMPTY_ARR = EMPTY_ARR; | ||
exports.toDisplayString = toDisplayString; | ||
exports.toNumber = toNumber; | ||
exports.toRawType = toRawType; | ||
exports.toTypeString = toTypeString; |
@@ -518,2 +518,6 @@ 'use strict'; | ||
}; | ||
const toNumber = (val) => { | ||
const n = parseFloat(val); | ||
return isNaN(n) ? val : n; | ||
}; | ||
@@ -567,3 +571,4 @@ exports.EMPTY_ARR = EMPTY_ARR; | ||
exports.toDisplayString = toDisplayString; | ||
exports.toNumber = toNumber; | ||
exports.toRawType = toRawType; | ||
exports.toTypeString = toTypeString; |
@@ -147,2 +147,4 @@ | ||
export declare const toNumber: (val: any) => any; | ||
export declare const toRawType: (value: unknown) => string; | ||
@@ -149,0 +151,0 @@ |
@@ -516,3 +516,7 @@ // Make a map and return a function for checking if a key | ||
}; | ||
const toNumber = (val) => { | ||
const n = parseFloat(val); | ||
return isNaN(n) ? val : n; | ||
}; | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isHTMLTag, isKnownAttr, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, stringifyStyle, toDisplayString, toRawType, toTypeString }; | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isHTMLTag, isKnownAttr, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, stringifyStyle, toDisplayString, toNumber, toRawType, toTypeString }; |
{ | ||
"name": "@vue/shared", | ||
"version": "3.0.0-beta.13", | ||
"version": "3.0.0-beta.14", | ||
"description": "internal utils shared across @vue packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
68751
1733