@locker/shared-url
Advanced tools
Comparing version 0.22.5 to 0.23.1
@@ -27,3 +27,2 @@ /*! | ||
} | ||
const DISALLOWED_ENDPOINTS_LIST$LWS = ['/aura', '/webruntime']; | ||
const TRUSTED_DOMAINS_REG_EXP$LWS = /\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/; | ||
@@ -35,2 +34,4 @@ const URL_SCHEMES_LIST$LWS = shared$LWS.toSafeArray(['about:', 'http:', 'https:']); | ||
function isValidURL$LWS(parsedURL$LWS) { | ||
// Need to add /services to isValidUrl unit test and locker/scripts/test/disallowed-endpoints.js once we remove the gate. | ||
const DISALLOWED_ENDPOINTS_LIST$LWS = shared$LWS.isGaterEnabledFeature('enableBlockServicesEndpoint') ? ['/aura', '/webruntime', '/services'] : ['/aura', '/webruntime']; | ||
const loweredPathname$LWS = shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase, parsedURL$LWS.pathname, []); | ||
@@ -77,2 +78,2 @@ for (let i$LWS = 0, { | ||
exports.sanitizeURLString = sanitizeURLString$LWS; | ||
/*! version: 0.22.5 */ | ||
/*! version: 0.23.1 */ |
/*! | ||
* Copyright (C) 2019 salesforce.com, inc. | ||
*/ | ||
import { ReflectApply as ReflectApply$LWS, RegExpProtoTest as RegExpProtoTest$LWS, StringProtoStartsWith as StringProtoStartsWith$LWS, toSafeArray as toSafeArray$LWS, StringProtoToLowerCase as StringProtoToLowerCase$LWS, StringProtoEndsWith as StringProtoEndsWith$LWS, StringProtoIncludes as StringProtoIncludes$LWS, StringProtoReplace as StringProtoReplace$LWS } from '@locker/shared'; | ||
import { ReflectApply as ReflectApply$LWS, RegExpProtoTest as RegExpProtoTest$LWS, StringProtoStartsWith as StringProtoStartsWith$LWS, toSafeArray as toSafeArray$LWS, isGaterEnabledFeature as isGaterEnabledFeature$LWS, StringProtoToLowerCase as StringProtoToLowerCase$LWS, StringProtoEndsWith as StringProtoEndsWith$LWS, StringProtoIncludes as StringProtoIncludes$LWS, StringProtoReplace as StringProtoReplace$LWS } from '@locker/shared'; | ||
import { DocumentProtoCreateElement as DocumentProtoCreateElement$LWS, rootDocument as rootDocument$LWS, HTMLAnchorElementProtoHrefSetter as HTMLAnchorElementProtoHrefSetter$LWS, HTMLAnchorElementProtoProtocolGetter as HTMLAnchorElementProtoProtocolGetter$LWS, WindowDecodeURIComponent as WindowDecodeURIComponent$LWS, HTMLAnchorElementProtoPathnameGetter as HTMLAnchorElementProtoPathnameGetter$LWS, HTMLAnchorElementProtoHrefGetter as HTMLAnchorElementProtoHrefGetter$LWS } from '@locker/shared-dom'; | ||
@@ -22,3 +22,2 @@ const ALLOWED_MIME_TYPES$LWS = ['application/octet-stream', 'application/json', 'application/pdf', 'video/', 'audio/', 'image/', 'font/', 'text/plain', 'text/markdown', 'application/zip', 'application/x-bzip', 'application/x-rar-compressed', 'application/x-tar']; | ||
} | ||
const DISALLOWED_ENDPOINTS_LIST$LWS = ['/aura', '/webruntime']; | ||
const TRUSTED_DOMAINS_REG_EXP$LWS = /\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/; | ||
@@ -30,2 +29,4 @@ const URL_SCHEMES_LIST$LWS = toSafeArray$LWS(['about:', 'http:', 'https:']); | ||
function isValidURL$LWS(parsedURL$LWS) { | ||
// Need to add /services to isValidUrl unit test and locker/scripts/test/disallowed-endpoints.js once we remove the gate. | ||
const DISALLOWED_ENDPOINTS_LIST$LWS = isGaterEnabledFeature$LWS('enableBlockServicesEndpoint') ? ['/aura', '/webruntime', '/services'] : ['/aura', '/webruntime']; | ||
const loweredPathname$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, parsedURL$LWS.pathname, []); | ||
@@ -63,2 +64,2 @@ for (let i$LWS = 0, { | ||
export { TRUSTED_DOMAINS_REG_EXP$LWS as TRUSTED_DOMAINS_REG_EXP, URL_SCHEMES_LIST$LWS as URL_SCHEMES_LIST, isMIMETypeAllowed$LWS as isMIMETypeAllowed, isValidURL$LWS as isValidURL, isValidURLScheme$LWS as isValidURLScheme, normalizerAnchor$LWS as normalizerAnchor, parseURL$LWS as parseURL, resolveURL$LWS as resolveURL, sanitizeURLForElement$LWS as sanitizeURLForElement, sanitizeURLString$LWS as sanitizeURLString }; | ||
/*! version: 0.22.5 */ | ||
/*! version: 0.23.1 */ |
{ | ||
"name": "@locker/shared-url", | ||
"version": "0.22.5", | ||
"version": "0.23.1", | ||
"license": "SEE LICENSE IN LICENSE.txt", | ||
@@ -18,4 +18,4 @@ "author": "Salesforce UI Security Team", | ||
"dependencies": { | ||
"@locker/shared": "0.22.5", | ||
"@locker/shared-dom": "0.22.5" | ||
"@locker/shared": "0.23.1", | ||
"@locker/shared-dom": "0.23.1" | ||
}, | ||
@@ -22,0 +22,0 @@ "files": [ |
16051
170
+ Added@locker/shared@0.23.1(transitive)
+ Added@locker/shared-dom@0.23.1(transitive)
- Removed@locker/shared@0.22.5(transitive)
- Removed@locker/shared-dom@0.22.5(transitive)
Updated@locker/shared@0.23.1
Updated@locker/shared-dom@0.23.1