@vue/shared
Advanced tools
Comparing version 3.0.0-beta.5 to 3.0.0-beta.6
@@ -329,2 +329,7 @@ 'use strict'; | ||
} | ||
// https://www.w3.org/TR/html52/syntax.html#comments | ||
const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g; | ||
function escapeHtmlComment(src) { | ||
return src.replace(commentStripRE, ''); | ||
} | ||
@@ -436,3 +441,3 @@ function looseEqual(a, b) { | ||
const hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue); | ||
// for converting {{ interpolation }} values to displayed strings. | ||
// For converting {{ interpolation }} values to displayed strings. | ||
const toDisplayString = (val) => { | ||
@@ -463,2 +468,3 @@ return val == null | ||
exports.escapeHtml = escapeHtml; | ||
exports.escapeHtmlComment = escapeHtmlComment; | ||
exports.extend = extend; | ||
@@ -465,0 +471,0 @@ exports.generateCodeFrame = generateCodeFrame; |
@@ -329,2 +329,7 @@ 'use strict'; | ||
} | ||
// https://www.w3.org/TR/html52/syntax.html#comments | ||
const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g; | ||
function escapeHtmlComment(src) { | ||
return src.replace(commentStripRE, ''); | ||
} | ||
@@ -435,3 +440,3 @@ function looseEqual(a, b) { | ||
const hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue); | ||
// for converting {{ interpolation }} values to displayed strings. | ||
// For converting {{ interpolation }} values to displayed strings. | ||
const toDisplayString = (val) => { | ||
@@ -462,2 +467,3 @@ return val == null | ||
exports.escapeHtml = escapeHtml; | ||
exports.escapeHtmlComment = escapeHtmlComment; | ||
exports.extend = extend; | ||
@@ -464,0 +470,0 @@ exports.generateCodeFrame = generateCodeFrame; |
@@ -16,2 +16,4 @@ | ||
export declare function escapeHtmlComment(src: string): string; | ||
export declare const extend: <T extends object, U extends object>(a: T, b: U) => T & U; | ||
@@ -18,0 +20,0 @@ |
@@ -325,2 +325,7 @@ // Make a map and return a function for checking if a key | ||
} | ||
// https://www.w3.org/TR/html52/syntax.html#comments | ||
const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g; | ||
function escapeHtmlComment(src) { | ||
return src.replace(commentStripRE, ''); | ||
} | ||
@@ -433,3 +438,3 @@ function looseEqual(a, b) { | ||
const hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue); | ||
// for converting {{ interpolation }} values to displayed strings. | ||
// For converting {{ interpolation }} values to displayed strings. | ||
const toDisplayString = (val) => { | ||
@@ -451,2 +456,2 @@ return val == null | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isHTMLTag, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, propsToAttrMap, remove, stringifyStyle, toDisplayString, toRawType, toTypeString }; | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isHTMLTag, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, propsToAttrMap, remove, stringifyStyle, toDisplayString, toRawType, toTypeString }; |
{ | ||
"name": "@vue/shared", | ||
"version": "3.0.0-beta.5", | ||
"version": "3.0.0-beta.6", | ||
"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
60057
1513