@vue/shared
Advanced tools
Comparing version 3.0.0-rc.2 to 3.0.0-rc.3
@@ -479,2 +479,3 @@ 'use strict'; | ||
const isOn = (key) => onRE.test(key); | ||
const isModelListener = (key) => key.startsWith('onUpdate:'); | ||
const extend = Object.assign; | ||
@@ -553,2 +554,16 @@ const remove = (arr, el) => { | ||
}; | ||
let _globalThis; | ||
const getGlobalThis = () => { | ||
return (_globalThis || | ||
(_globalThis = | ||
typeof globalThis !== 'undefined' | ||
? globalThis | ||
: typeof self !== 'undefined' | ||
? self | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof global !== 'undefined' | ||
? global | ||
: {})); | ||
}; | ||
@@ -568,2 +583,3 @@ exports.EMPTY_ARR = EMPTY_ARR; | ||
exports.generateCodeFrame = generateCodeFrame; | ||
exports.getGlobalThis = getGlobalThis; | ||
exports.hasChanged = hasChanged; | ||
@@ -580,2 +596,3 @@ exports.hasOwn = hasOwn; | ||
exports.isKnownAttr = isKnownAttr; | ||
exports.isModelListener = isModelListener; | ||
exports.isNoUnitNumericStyleProp = isNoUnitNumericStyleProp; | ||
@@ -582,0 +599,0 @@ exports.isObject = isObject; |
@@ -478,2 +478,3 @@ 'use strict'; | ||
const isOn = (key) => onRE.test(key); | ||
const isModelListener = (key) => key.startsWith('onUpdate:'); | ||
const extend = Object.assign; | ||
@@ -552,2 +553,16 @@ const remove = (arr, el) => { | ||
}; | ||
let _globalThis; | ||
const getGlobalThis = () => { | ||
return (_globalThis || | ||
(_globalThis = | ||
typeof globalThis !== 'undefined' | ||
? globalThis | ||
: typeof self !== 'undefined' | ||
? self | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof global !== 'undefined' | ||
? global | ||
: {})); | ||
}; | ||
@@ -567,2 +582,3 @@ exports.EMPTY_ARR = EMPTY_ARR; | ||
exports.generateCodeFrame = generateCodeFrame; | ||
exports.getGlobalThis = getGlobalThis; | ||
exports.hasChanged = hasChanged; | ||
@@ -579,2 +595,3 @@ exports.hasOwn = hasOwn; | ||
exports.isKnownAttr = isKnownAttr; | ||
exports.isModelListener = isModelListener; | ||
exports.isNoUnitNumericStyleProp = isNoUnitNumericStyleProp; | ||
@@ -581,0 +598,0 @@ exports.isObject = isObject; |
@@ -41,2 +41,4 @@ | ||
export declare const getGlobalThis: () => any; | ||
export declare const hasChanged: (value: any, oldValue: any) => boolean; | ||
@@ -76,2 +78,4 @@ | ||
export declare const isModelListener: (key: string) => boolean; | ||
/** | ||
@@ -78,0 +82,0 @@ * CSS properties that accept plain numbers |
@@ -476,2 +476,3 @@ /** | ||
const isOn = (key) => onRE.test(key); | ||
const isModelListener = (key) => key.startsWith('onUpdate:'); | ||
const extend = Object.assign; | ||
@@ -550,3 +551,17 @@ const remove = (arr, el) => { | ||
}; | ||
let _globalThis; | ||
const getGlobalThis = () => { | ||
return (_globalThis || | ||
(_globalThis = | ||
typeof globalThis !== 'undefined' | ||
? globalThis | ||
: typeof self !== 'undefined' | ||
? self | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof global !== 'undefined' | ||
? global | ||
: {})); | ||
}; | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, babelParserDefautPlugins, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isKnownAttr, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, stringifyStyle, toDisplayString, toNumber, toRawType, toTypeString }; | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, babelParserDefautPlugins, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isKnownAttr, isModelListener, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, stringifyStyle, toDisplayString, toNumber, toRawType, toTypeString }; |
{ | ||
"name": "@vue/shared", | ||
"version": "3.0.0-rc.2", | ||
"version": "3.0.0-rc.3", | ||
"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
75147
1929