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.20240527.0 to 3.20240527.1-minor.0

20

dist/shared.cjs.js
/**
* @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);

10

dist/shared.d.ts

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

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