Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue/shared-canary

Package Overview
Dependencies
Maintainers
10
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/shared-canary - npm Package Compare versions

Comparing version 3.20230710.0 to 3.20230717.0

2

dist/shared.cjs.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc