@vue/shared
Advanced tools
Comparing version 3.0.0-beta.14 to 3.0.0-beta.15
@@ -5,7 +5,9 @@ 'use strict'; | ||
// Make a map and return a function for checking if a key | ||
// is in that map. | ||
// | ||
// IMPORTANT: all calls of this function must be prefixed with /*#__PURE__*/ | ||
// So that rollup can tree-shake them if necessary. | ||
/** | ||
* Make a map and return a function for checking if a key | ||
* is in that map. | ||
* IMPORTANT: all calls of this function must be prefixed with | ||
* \/\*#\_\_PURE\_\_\*\/ | ||
* So that rollup can tree-shake them if necessary. | ||
*/ | ||
function makeMap(str, expectsLowerCase) { | ||
@@ -457,8 +459,3 @@ const map = Object.create(null); | ||
const isOn = (key) => onRE.test(key); | ||
const extend = (a, b) => { | ||
for (const key in b) { | ||
a[key] = b[key]; | ||
} | ||
return a; | ||
}; | ||
const extend = Object.assign; | ||
const remove = (arr, el) => { | ||
@@ -465,0 +462,0 @@ const i = arr.indexOf(el); |
@@ -5,7 +5,9 @@ 'use strict'; | ||
// Make a map and return a function for checking if a key | ||
// is in that map. | ||
// | ||
// IMPORTANT: all calls of this function must be prefixed with /*#__PURE__*/ | ||
// So that rollup can tree-shake them if necessary. | ||
/** | ||
* Make a map and return a function for checking if a key | ||
* is in that map. | ||
* IMPORTANT: all calls of this function must be prefixed with | ||
* \/\*#\_\_PURE\_\_\*\/ | ||
* So that rollup can tree-shake them if necessary. | ||
*/ | ||
function makeMap(str, expectsLowerCase) { | ||
@@ -456,8 +458,3 @@ const map = Object.create(null); | ||
const isOn = (key) => onRE.test(key); | ||
const extend = (a, b) => { | ||
for (const key in b) { | ||
a[key] = b[key]; | ||
} | ||
return a; | ||
}; | ||
const extend = Object.assign; | ||
const remove = (arr, el) => { | ||
@@ -464,0 +461,0 @@ const i = arr.indexOf(el); |
@@ -18,3 +18,8 @@ | ||
export declare const extend: <T extends object, U extends object>(a: T, b: U) => T & U; | ||
export declare const extend: { | ||
<T, U>(target: T, source: U): T & U; | ||
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V; | ||
<T_2, 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; | ||
}; | ||
@@ -83,2 +88,9 @@ export declare function generateCodeFrame(source: string, start?: number, end?: number): string; | ||
/** | ||
* Make a map and return a function for checking if a key | ||
* is in that map. | ||
* IMPORTANT: all calls of this function must be prefixed with | ||
* \/\*#\_\_PURE\_\_\*\/ | ||
* So that rollup can tree-shake them if necessary. | ||
*/ | ||
export declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean; | ||
@@ -85,0 +97,0 @@ |
@@ -1,6 +0,8 @@ | ||
// Make a map and return a function for checking if a key | ||
// is in that map. | ||
// | ||
// IMPORTANT: all calls of this function must be prefixed with /*#__PURE__*/ | ||
// So that rollup can tree-shake them if necessary. | ||
/** | ||
* Make a map and return a function for checking if a key | ||
* is in that map. | ||
* IMPORTANT: all calls of this function must be prefixed with | ||
* \/\*#\_\_PURE\_\_\*\/ | ||
* So that rollup can tree-shake them if necessary. | ||
*/ | ||
function makeMap(str, expectsLowerCase) { | ||
@@ -453,8 +455,3 @@ const map = Object.create(null); | ||
const isOn = (key) => onRE.test(key); | ||
const extend = (a, b) => { | ||
for (const key in b) { | ||
a[key] = b[key]; | ||
} | ||
return a; | ||
}; | ||
const extend = Object.assign; | ||
const remove = (arr, el) => { | ||
@@ -461,0 +458,0 @@ const i = arr.indexOf(el); |
{ | ||
"name": "@vue/shared", | ||
"version": "3.0.0-beta.14", | ||
"version": "3.0.0-beta.15", | ||
"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
69015
1736