You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP →

@locker/html-sanitizer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/html-sanitizer - npm Package Compare versions

Comparing version

to
0.22.4

@@ -95,2 +95,3 @@ /*!

} = data$LWS;
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
const tagNameCheck$LWS = config$LWS == null || (_config$CUSTOM_ELEMEN$LWS = config$LWS.CUSTOM_ELEMENT_HANDLING) == null ? void 0 : _config$CUSTOM_ELEMEN$LWS.tagNameCheck;

@@ -264,2 +265,3 @@ if (tagNameCheck$LWS && shared$LWS.ReflectApply(shared$LWS.RegExpProtoTest, tagNameCheck$LWS, [tagName$LWS]) &&

// https://lit.dev/docs/templates/expressions/#boolean-attribute-expressions
// istanbul ignore next: this is tested under all normal CI runs, but is not included in coverage
if (attrName$LWS && (shared$LWS.ReflectApply(shared$LWS.StringProtoStartsWith, attrName$LWS, ['@']) || shared$LWS.ReflectApply(shared$LWS.StringProtoStartsWith, attrName$LWS, ['.']) || shared$LWS.ReflectApply(shared$LWS.StringProtoStartsWith, attrName$LWS, ['?']))) {

@@ -281,2 +283,2 @@ data$LWS.forceKeepAttr = true;

exports.uponSanitizeAttribute = uponSanitizeAttribute$LWS;
/*! version: 0.22.3 */
/*! version: 0.22.4 */

@@ -84,2 +84,3 @@ /*!

} = data$LWS;
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
const tagNameCheck$LWS = config$LWS == null || (_config$CUSTOM_ELEMEN$LWS = config$LWS.CUSTOM_ELEMENT_HANDLING) == null ? void 0 : _config$CUSTOM_ELEMEN$LWS.tagNameCheck;

@@ -253,2 +254,3 @@ if (tagNameCheck$LWS && ReflectApply$LWS(RegExpProtoTest$LWS, tagNameCheck$LWS, [tagName$LWS]) &&

// https://lit.dev/docs/templates/expressions/#boolean-attribute-expressions
// istanbul ignore next: this is tested under all normal CI runs, but is not included in coverage
if (attrName$LWS && (ReflectApply$LWS(StringProtoStartsWith$LWS, attrName$LWS, ['@']) || ReflectApply$LWS(StringProtoStartsWith$LWS, attrName$LWS, ['.']) || ReflectApply$LWS(StringProtoStartsWith$LWS, attrName$LWS, ['?']))) {

@@ -266,2 +268,2 @@ data$LWS.forceKeepAttr = true;

export { blobSanitizer$LWS as blobSanitizer, getSanitizerForConfig$LWS as getSanitizerForConfig, sanitizeSvgHref$LWS as sanitizeSvgHref, sanitizeSvgTextReturnDOM$LWS as sanitizeSvgTextReturnDOM, uponSanitizeAttribute$LWS as uponSanitizeAttribute };
/*! version: 0.22.3 */
/*! version: 0.22.4 */
{
"name": "@locker/html-sanitizer",
"version": "0.22.3",
"version": "0.22.4",
"license": "SEE LICENSE IN LICENSE.txt",

@@ -19,6 +19,6 @@ "author": "Salesforce UI Security Team",

"dependencies": {
"@locker/shared": "0.22.3",
"@locker/shared-dom": "0.22.3",
"@locker/shared-url": "0.22.3",
"@locker/trusted-types": "0.22.3",
"@locker/shared": "0.22.4",
"@locker/shared-dom": "0.22.4",
"@locker/shared-url": "0.22.4",
"@locker/trusted-types": "0.22.4",
"@types/dompurify": "3.0.2",

@@ -25,0 +25,0 @@ "dompurify": "3.0.5"