@vue/shared-canary
Advanced tools
Comparing version 3.20230710.0 to 3.20230717.0
@@ -41,3 +41,3 @@ 'use strict'; | ||
const isPromise = (val) => { | ||
return isObject(val) && isFunction(val.then) && isFunction(val.catch); | ||
return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); | ||
}; | ||
@@ -44,0 +44,0 @@ const objectToString = Object.prototype.toString; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
const isPromise = (val) => { | ||
return isObject(val) && isFunction(val.then) && isFunction(val.catch); | ||
return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); | ||
}; | ||
@@ -44,0 +44,0 @@ const objectToString = Object.prototype.toString; |
@@ -310,2 +310,5 @@ /** | ||
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N; | ||
export type Awaited<T> = T extends null | undefined ? T : T extends object & { | ||
then(onfulfilled: infer F, ...args: infer _): any; | ||
} ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T; | ||
@@ -37,3 +37,3 @@ function makeMap(str, expectsLowerCase) { | ||
const isPromise = (val) => { | ||
return isObject(val) && isFunction(val.then) && isFunction(val.catch); | ||
return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); | ||
}; | ||
@@ -40,0 +40,0 @@ const objectToString = Object.prototype.toString; |
{ | ||
"name": "@vue/shared-canary", | ||
"version": "3.20230710.0", | ||
"version": "3.20230717.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
71958
1675