Socket
Socket
Sign inDemoInstall

@vue/shared

Package Overview
Dependencies
Maintainers
2
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/shared - npm Package Compare versions

Comparing version 3.5.0-alpha.5 to 3.5.0-beta.1

20

dist/shared.cjs.js
/**
* @vue/shared v3.5.0-alpha.5
* @vue/shared v3.5.0-beta.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -68,5 +68,7 @@ * @license MIT

const camelizeRE = /-(\w)/g;
const camelize = cacheStringFunction((str) => {
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
});
const camelize = cacheStringFunction(
(str) => {
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
}
);
const hyphenateRE = /\B([A-Z])/g;

@@ -79,6 +81,8 @@ const hyphenate = cacheStringFunction(

});
const toHandlerKey = cacheStringFunction((str) => {
const s = str ? `on${capitalize(str)}` : ``;
return s;
});
const toHandlerKey = cacheStringFunction(
(str) => {
const s = str ? `on${capitalize(str)}` : ``;
return s;
}
);
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);

@@ -85,0 +89,0 @@ const invokeArrayFns = (fns, ...arg) => {

/**
* @vue/shared v3.5.0-alpha.5
* @vue/shared v3.5.0-beta.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -68,5 +68,7 @@ * @license MIT

const camelizeRE = /-(\w)/g;
const camelize = cacheStringFunction((str) => {
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
});
const camelize = cacheStringFunction(
(str) => {
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
}
);
const hyphenateRE = /\B([A-Z])/g;

@@ -79,6 +81,8 @@ const hyphenate = cacheStringFunction(

});
const toHandlerKey = cacheStringFunction((str) => {
const s = str ? `on${capitalize(str)}` : ``;
return s;
});
const toHandlerKey = cacheStringFunction(
(str) => {
const s = str ? `on${capitalize(str)}` : ``;
return s;
}
);
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);

@@ -85,0 +89,0 @@ const invokeArrayFns = (fns, ...arg) => {

23

dist/shared.d.ts

@@ -21,12 +21,7 @@ /**

export declare const isOn: (key: string) => boolean;
export declare const isModelListener: (key: string) => boolean;
export declare const extend: {
<T extends {}, U>(target: T, source: U): T & U;
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
(target: object, ...sources: any[]): any;
};
export declare const isModelListener: (key: string) => key is `onUpdate:${string}`;
export declare const extend: typeof Object.assign;
export declare const remove: <T>(arr: T[], el: T) => void;
export declare const hasOwn: (val: object, key: string | symbol) => key is never;
export declare const isArray: (arg: any) => arg is any[];
export declare const hasOwn: (val: object, key: string | symbol) => key is keyof typeof val;
export declare const isArray: typeof Array.isArray;
export declare const isMap: (val: unknown) => val is Map<any, any>;

@@ -41,3 +36,3 @@ export declare const isSet: (val: unknown) => val is Set<any>;

export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
export declare const objectToString: () => string;
export declare const objectToString: typeof Object.prototype.toString;
export declare const toTypeString: (value: unknown) => string;

@@ -64,3 +59,3 @@ export declare const toRawType: (value: unknown) => string;

*/
export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`;
export declare const toHandlerKey: <T extends string>(str: T) => T extends '' ? '' : `on${Capitalize<T>}`;
export declare const hasChanged: (value: any, oldValue: any) => boolean;

@@ -236,7 +231,3 @@ export declare const invokeArrayFns: (fns: Function[], ...arg: any[]) => void;

*/
export declare const slotFlagsText: {
1: string;
2: string;
3: string;
};
export declare const slotFlagsText: Record<SlotFlags, string>;

@@ -243,0 +234,0 @@ export declare const isGloballyAllowed: (key: string) => boolean;

/**
* @vue/shared v3.5.0-alpha.5
* @vue/shared v3.5.0-beta.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -64,5 +64,7 @@ * @license MIT

const camelizeRE = /-(\w)/g;
const camelize = cacheStringFunction((str) => {
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
});
const camelize = cacheStringFunction(
(str) => {
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
}
);
const hyphenateRE = /\B([A-Z])/g;

@@ -75,6 +77,8 @@ const hyphenate = cacheStringFunction(

});
const toHandlerKey = cacheStringFunction((str) => {
const s = str ? `on${capitalize(str)}` : ``;
return s;
});
const toHandlerKey = cacheStringFunction(
(str) => {
const s = str ? `on${capitalize(str)}` : ``;
return s;
}
);
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);

@@ -81,0 +85,0 @@ const invokeArrayFns = (fns, ...arg) => {

{
"name": "@vue/shared",
"version": "3.5.0-alpha.5",
"version": "3.5.0-beta.1",
"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