@vue/shared-canary
Advanced tools
Comparing version 3.20230703.0 to 3.20230710.0
@@ -72,8 +72,9 @@ 'use strict'; | ||
); | ||
const capitalize = cacheStringFunction( | ||
(str) => str.charAt(0).toUpperCase() + str.slice(1) | ||
); | ||
const toHandlerKey = cacheStringFunction( | ||
(str) => str ? `on${capitalize(str)}` : `` | ||
); | ||
const capitalize = cacheStringFunction((str) => { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}); | ||
const toHandlerKey = cacheStringFunction((str) => { | ||
const s = str ? `on${capitalize(str)}` : ``; | ||
return s; | ||
}); | ||
const hasChanged = (value, oldValue) => !Object.is(value, oldValue); | ||
@@ -80,0 +81,0 @@ const invokeArrayFns = (fns, arg) => { |
@@ -72,8 +72,9 @@ 'use strict'; | ||
); | ||
const capitalize = cacheStringFunction( | ||
(str) => str.charAt(0).toUpperCase() + str.slice(1) | ||
); | ||
const toHandlerKey = cacheStringFunction( | ||
(str) => str ? `on${capitalize(str)}` : `` | ||
); | ||
const capitalize = cacheStringFunction((str) => { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}); | ||
const toHandlerKey = cacheStringFunction((str) => { | ||
const s = str ? `on${capitalize(str)}` : ``; | ||
return s; | ||
}); | ||
const hasChanged = (value, oldValue) => !Object.is(value, oldValue); | ||
@@ -80,0 +81,0 @@ const invokeArrayFns = (fns, arg) => { |
@@ -57,7 +57,7 @@ /** | ||
*/ | ||
export declare const capitalize: (str: string) => string; | ||
export declare const capitalize: <T extends string>(str: T) => Capitalize<T>; | ||
/** | ||
* @private | ||
*/ | ||
export declare const toHandlerKey: (str: string) => string; | ||
export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`; | ||
export declare const hasChanged: (value: any, oldValue: any) => boolean; | ||
@@ -64,0 +64,0 @@ export declare const invokeArrayFns: (fns: Function[], arg?: any) => void; |
@@ -68,8 +68,9 @@ function makeMap(str, expectsLowerCase) { | ||
); | ||
const capitalize = cacheStringFunction( | ||
(str) => str.charAt(0).toUpperCase() + str.slice(1) | ||
); | ||
const toHandlerKey = cacheStringFunction( | ||
(str) => str ? `on${capitalize(str)}` : `` | ||
); | ||
const capitalize = cacheStringFunction((str) => { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}); | ||
const toHandlerKey = cacheStringFunction((str) => { | ||
const s = str ? `on${capitalize(str)}` : ``; | ||
return s; | ||
}); | ||
const hasChanged = (value, oldValue) => !Object.is(value, oldValue); | ||
@@ -76,0 +77,0 @@ const invokeArrayFns = (fns, arg) => { |
{ | ||
"name": "@vue/shared-canary", | ||
"version": "3.20230703.0", | ||
"version": "3.20230710.0", | ||
"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
71679
1672