@locker/html-sanitizer
Advanced tools
Comparing version 0.23.5 to 0.23.6
@@ -146,3 +146,3 @@ /*! | ||
function sanitizeSvgHref$LWS(url$LWS) { | ||
const urlAsString$LWS = shared$LWS.toString(url$LWS); | ||
const urlAsString$LWS = shared$LWS.toSafeStringValue(url$LWS); | ||
if (shared$LWS.ReflectApply(shared$LWS.StringProtoStartsWith, urlAsString$LWS, ['#'])) { | ||
@@ -282,2 +282,2 @@ return url$LWS; | ||
exports.uponSanitizeAttribute = uponSanitizeAttribute$LWS; | ||
/*! version: 0.23.5 */ | ||
/*! version: 0.23.6 */ |
/*! | ||
* Copyright (C) 2019 salesforce.com, inc. | ||
*/ | ||
import { ArrayConcat as ArrayConcat$LWS, shallowCloneArray as shallowCloneArray$LWS, ObjectAssign as ObjectAssign$LWS, ReflectApply as ReflectApply$LWS, ArrayProtoFilter as ArrayProtoFilter$LWS, toSafeArray as toSafeArray$LWS, toSafeSet as toSafeSet$LWS, SetCtor as SetCtor$LWS, LockerSecurityError as LockerSecurityError$LWS, ERR_INVALID_SANDBOX_KEY as ERR_INVALID_SANDBOX_KEY$LWS, toString as toString$LWS, StringProtoStartsWith as StringProtoStartsWith$LWS, StringProtoSplit as StringProtoSplit$LWS, StringProtoToLowerCase as StringProtoToLowerCase$LWS, StringProtoReplace as StringProtoReplace$LWS, StringProtoToUpperCase as StringProtoToUpperCase$LWS, RegExpProtoTest as RegExpProtoTest$LWS } from '@locker/shared'; | ||
import { ArrayConcat as ArrayConcat$LWS, shallowCloneArray as shallowCloneArray$LWS, ObjectAssign as ObjectAssign$LWS, ReflectApply as ReflectApply$LWS, ArrayProtoFilter as ArrayProtoFilter$LWS, toSafeArray as toSafeArray$LWS, toSafeSet as toSafeSet$LWS, SetCtor as SetCtor$LWS, LockerSecurityError as LockerSecurityError$LWS, ERR_INVALID_SANDBOX_KEY as ERR_INVALID_SANDBOX_KEY$LWS, toSafeStringValue as toSafeStringValue$LWS, StringProtoStartsWith as StringProtoStartsWith$LWS, StringProtoSplit as StringProtoSplit$LWS, StringProtoToLowerCase as StringProtoToLowerCase$LWS, StringProtoReplace as StringProtoReplace$LWS, StringProtoToUpperCase as StringProtoToUpperCase$LWS, RegExpProtoTest as RegExpProtoTest$LWS } from '@locker/shared'; | ||
import { DocumentProtoCreateElement as DocumentProtoCreateElement$LWS, DocumentProtoGetElementById as DocumentProtoGetElementById$LWS, WindowSetInterval as WindowSetInterval$LWS, WindowClearInterval as WindowClearInterval$LWS, XhrCtor as XhrCtor$LWS, EventTargetProtoAddEventListener as EventTargetProtoAddEventListener$LWS, XhrProtoStatusGetter as XhrProtoStatusGetter$LWS, XhrProtoResponseTextGetter as XhrProtoResponseTextGetter$LWS, DocumentFragmentProtoGetElementById as DocumentFragmentProtoGetElementById$LWS, ElementProtoSetAttribute as ElementProtoSetAttribute$LWS, NodeProtoAppendChild as NodeProtoAppendChild$LWS, XhrProtoOpen as XhrProtoOpen$LWS, XhrProtoSend as XhrProtoSend$LWS, HTMLAnchorElementProtoHrefSetter as HTMLAnchorElementProtoHrefSetter$LWS, HTMLAnchorElementProtoHrefGetter as HTMLAnchorElementProtoHrefGetter$LWS, HTMLAnchorElementProtoProtocolGetter as HTMLAnchorElementProtoProtocolGetter$LWS, NodeProtoNodeNameGetter as NodeProtoNodeNameGetter$LWS, DocumentProtoBodyGetter as DocumentProtoBodyGetter$LWS, ElementProtoQuerySelector as ElementProtoQuerySelector$LWS, ElementProtoHasAttribute as ElementProtoHasAttribute$LWS, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME as CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME$LWS } from '@locker/shared-dom'; | ||
@@ -135,3 +135,3 @@ import { URL_SCHEMES_LIST as URL_SCHEMES_LIST$LWS, normalizerAnchor as normalizerAnchor$LWS } from '@locker/shared-url'; | ||
function sanitizeSvgHref$LWS(url$LWS) { | ||
const urlAsString$LWS = toString$LWS(url$LWS); | ||
const urlAsString$LWS = toSafeStringValue$LWS(url$LWS); | ||
if (ReflectApply$LWS(StringProtoStartsWith$LWS, urlAsString$LWS, ['#'])) { | ||
@@ -267,2 +267,2 @@ return url$LWS; | ||
export { blobSanitizer$LWS as blobSanitizer, getSanitizerForConfig$LWS as getSanitizerForConfig, sanitizeSvgHref$LWS as sanitizeSvgHref, sanitizeSvgTextReturnDOM$LWS as sanitizeSvgTextReturnDOM, uponSanitizeAttribute$LWS as uponSanitizeAttribute }; | ||
/*! version: 0.23.5 */ | ||
/*! version: 0.23.6 */ |
{ | ||
"name": "@locker/html-sanitizer", | ||
"version": "0.23.5", | ||
"version": "0.23.6", | ||
"license": "SEE LICENSE IN LICENSE.txt", | ||
@@ -19,6 +19,6 @@ "author": "Salesforce UI Security Team", | ||
"dependencies": { | ||
"@locker/shared": "0.23.5", | ||
"@locker/shared-dom": "0.23.5", | ||
"@locker/shared-url": "0.23.5", | ||
"@locker/trusted-types": "0.23.5", | ||
"@locker/shared": "0.23.6", | ||
"@locker/shared-dom": "0.23.6", | ||
"@locker/shared-url": "0.23.6", | ||
"@locker/trusted-types": "0.23.6", | ||
"@types/dompurify": "3.0.5", | ||
@@ -25,0 +25,0 @@ "dompurify": "3.1.6" |
43372
+ Added@locker/shared@0.23.6(transitive)
+ Added@locker/shared-dom@0.23.6(transitive)
+ Added@locker/shared-url@0.23.6(transitive)
+ Added@locker/trusted-types@0.23.6(transitive)
- Removed@locker/shared@0.23.5(transitive)
- Removed@locker/shared-dom@0.23.5(transitive)
- Removed@locker/shared-url@0.23.5(transitive)
- Removed@locker/trusted-types@0.23.5(transitive)
Updated@locker/shared@0.23.6
Updated@locker/shared-dom@0.23.6
Updated@locker/shared-url@0.23.6
Updated@locker/trusted-types@0.23.6