@vue/shared-canary
Advanced tools
Comparing version 3.20240527.0 to 3.20240527.1-minor.0
/** | ||
* @vue/shared-canary v3.20240527.0 | ||
* @vue/shared-canary v3.20240527.1-minor.0 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -83,5 +83,5 @@ * @license MIT | ||
const hasChanged = (value, oldValue) => !Object.is(value, oldValue); | ||
const invokeArrayFns = (fns, ...arg) => { | ||
const invokeArrayFns = (fns, arg) => { | ||
for (let i = 0; i < fns.length; i++) { | ||
fns[i](...arg); | ||
fns[i](arg); | ||
} | ||
@@ -215,3 +215,4 @@ }; | ||
for (let j = i - range; j <= i + range || end > count; j++) { | ||
if (j < 0 || j >= lines.length) continue; | ||
if (j < 0 || j >= lines.length) | ||
continue; | ||
const line = j + 1; | ||
@@ -281,4 +282,4 @@ res.push( | ||
const value = styles[key]; | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
if (isString(value) || typeof value === "number") { | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
ret += `${normalizedKey}:${value};`; | ||
@@ -310,3 +311,4 @@ } | ||
function normalizeProps(props) { | ||
if (!props) return null; | ||
if (!props) | ||
return null; | ||
let { class: klass, style } = props; | ||
@@ -416,3 +418,4 @@ if (klass && !isString(klass)) { | ||
function looseCompareArrays(a, b) { | ||
if (a.length !== b.length) return false; | ||
if (a.length !== b.length) | ||
return false; | ||
let equal = true; | ||
@@ -425,3 +428,4 @@ for (let i = 0; equal && i < a.length; i++) { | ||
function looseEqual(a, b) { | ||
if (a === b) return true; | ||
if (a === b) | ||
return true; | ||
let aValidType = isDate(a); | ||
@@ -428,0 +432,0 @@ let bValidType = isDate(b); |
/** | ||
* @vue/shared-canary v3.20240527.0 | ||
* @vue/shared-canary v3.20240527.1-minor.0 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -83,5 +83,5 @@ * @license MIT | ||
const hasChanged = (value, oldValue) => !Object.is(value, oldValue); | ||
const invokeArrayFns = (fns, ...arg) => { | ||
const invokeArrayFns = (fns, arg) => { | ||
for (let i = 0; i < fns.length; i++) { | ||
fns[i](...arg); | ||
fns[i](arg); | ||
} | ||
@@ -215,3 +215,4 @@ }; | ||
for (let j = i - range; j <= i + range || end > count; j++) { | ||
if (j < 0 || j >= lines.length) continue; | ||
if (j < 0 || j >= lines.length) | ||
continue; | ||
const line = j + 1; | ||
@@ -281,4 +282,4 @@ res.push( | ||
const value = styles[key]; | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
if (isString(value) || typeof value === "number") { | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
ret += `${normalizedKey}:${value};`; | ||
@@ -310,3 +311,4 @@ } | ||
function normalizeProps(props) { | ||
if (!props) return null; | ||
if (!props) | ||
return null; | ||
let { class: klass, style } = props; | ||
@@ -416,3 +418,4 @@ if (klass && !isString(klass)) { | ||
function looseCompareArrays(a, b) { | ||
if (a.length !== b.length) return false; | ||
if (a.length !== b.length) | ||
return false; | ||
let equal = true; | ||
@@ -425,3 +428,4 @@ for (let i = 0; equal && i < a.length; i++) { | ||
function looseEqual(a, b) { | ||
if (a === b) return true; | ||
if (a === b) | ||
return true; | ||
let aValidType = isDate(a); | ||
@@ -428,0 +432,0 @@ let bValidType = isDate(b); |
@@ -64,3 +64,3 @@ /** | ||
export declare const hasChanged: (value: any, oldValue: any) => boolean; | ||
export declare const invokeArrayFns: (fns: Function[], ...arg: any[]) => void; | ||
export declare const invokeArrayFns: (fns: Function[], arg?: any) => void; | ||
export declare const def: (obj: object, key: string | symbol, value: any, writable?: boolean) => void; | ||
@@ -325,2 +325,10 @@ /** | ||
} ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T; | ||
/** | ||
* Utility for extracting the parameters from a function overload (for typed emits) | ||
* https://github.com/microsoft/TypeScript/issues/32164#issuecomment-1146737709 | ||
*/ | ||
export type OverloadParameters<T extends (...args: any[]) => any> = Parameters<OverloadUnion<T>>; | ||
type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>; | ||
type OverloadUnionRecursive<TOverload, TPartialOverload = unknown> = TOverload extends (...args: infer TArgs) => infer TReturn ? TPartialOverload extends TOverload ? never : OverloadUnionRecursive<TPartialOverload & TOverload, TPartialOverload & ((...args: TArgs) => TReturn) & OverloadProps<TOverload>> | ((...args: TArgs) => TReturn) : never; | ||
type OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<OverloadUnionRecursive<(() => never) & TOverload>, TOverload extends () => never ? never : () => never>; | ||
/** | ||
* @vue/shared-canary v3.20240527.0 | ||
* @vue/shared-canary v3.20240527.1-minor.0 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -79,5 +79,5 @@ * @license MIT | ||
const hasChanged = (value, oldValue) => !Object.is(value, oldValue); | ||
const invokeArrayFns = (fns, ...arg) => { | ||
const invokeArrayFns = (fns, arg) => { | ||
for (let i = 0; i < fns.length; i++) { | ||
fns[i](...arg); | ||
fns[i](arg); | ||
} | ||
@@ -211,3 +211,4 @@ }; | ||
for (let j = i - range; j <= i + range || end > count; j++) { | ||
if (j < 0 || j >= lines.length) continue; | ||
if (j < 0 || j >= lines.length) | ||
continue; | ||
const line = j + 1; | ||
@@ -277,4 +278,4 @@ res.push( | ||
const value = styles[key]; | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
if (isString(value) || typeof value === "number") { | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
ret += `${normalizedKey}:${value};`; | ||
@@ -306,3 +307,4 @@ } | ||
function normalizeProps(props) { | ||
if (!props) return null; | ||
if (!props) | ||
return null; | ||
let { class: klass, style } = props; | ||
@@ -412,3 +414,4 @@ if (klass && !isString(klass)) { | ||
function looseCompareArrays(a, b) { | ||
if (a.length !== b.length) return false; | ||
if (a.length !== b.length) | ||
return false; | ||
let equal = true; | ||
@@ -421,3 +424,4 @@ for (let i = 0; equal && i < a.length; i++) { | ||
function looseEqual(a, b) { | ||
if (a === b) return true; | ||
if (a === b) | ||
return true; | ||
let aValidType = isDate(a); | ||
@@ -424,0 +428,0 @@ let bValidType = isDate(b); |
{ | ||
"name": "@vue/shared-canary", | ||
"version": "3.20240527.0", | ||
"version": "3.20240527.1-minor.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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
81561
1972
1