@locker/html-sanitizer
Advanced tools
Comparing version 0.11.11 to 0.11.15
@@ -8,8 +8,10 @@ /** | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var shared = require('@locker/shared'); | ||
var sharedDom = require('@locker/shared-dom'); | ||
var DOMPurify = _interopDefault(require('dompurify')); | ||
var DOMPurify = require('dompurify'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var DOMPurify__default = /*#__PURE__*/_interopDefaultLegacy(DOMPurify); | ||
const instances = shared.WeakMapCreate(); | ||
@@ -21,3 +23,3 @@ function sanitizer(config, hooks) { | ||
} | ||
sanitizer = DOMPurify(); | ||
sanitizer = DOMPurify__default['default'](); | ||
sanitizer.setConfig(config); | ||
@@ -249,2 +251,3 @@ if (hooks) { | ||
var config = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
DEFAULT_CONFIGURATION: DEFAULT_CONFIGURATION, | ||
@@ -404,2 +407,2 @@ STRING_BLOB: STRING_BLOB, | ||
exports.svgSanitizer = svgSanitizer; | ||
/** version: 0.11.11 */ | ||
/** version: 0.11.15 */ |
@@ -241,2 +241,3 @@ /** | ||
var config = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
DEFAULT_CONFIGURATION: DEFAULT_CONFIGURATION, | ||
@@ -391,2 +392,2 @@ STRING_BLOB: STRING_BLOB, | ||
export { config as CONFIG, blobSanitizer, sanitize, sanitizeSvgHrefValue, sanitizer, svgSanitizer }; | ||
/** version: 0.11.11 */ | ||
/** version: 0.11.15 */ |
{ | ||
"name": "@locker/html-sanitizer", | ||
"version": "0.11.11", | ||
"version": "0.11.15", | ||
"license": "Salesforce Developer Agreement", | ||
"author": "Salesforce UI Security Team", | ||
"description": "Locker Next HTML and SVG sanitize utility package", | ||
@@ -20,12 +22,11 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@locker/shared": "0.11.11", | ||
"@locker/shared-dom": "0.11.11", | ||
"@locker/shared": "0.11.15", | ||
"@locker/shared-dom": "0.11.15", | ||
"@types/dompurify": "^2.0.0", | ||
"dompurify": "^2.0.7" | ||
"dompurify": "2.0.8" | ||
}, | ||
"devDependencies": { | ||
"rollup-plugin-typescript": "1.0.1", | ||
"typescript": "3.8.3" | ||
}, | ||
"gitHead": "edea12f8387424f6b8f26cb9972db921e19c06ee" | ||
"gitHead": "3195c1166c8dddbe4494deee374365371377051e" | ||
} |
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
26744
1
11
802
1
1
80
+ Added@locker/shared@0.11.15(transitive)
+ Added@locker/shared-dom@0.11.15(transitive)
+ Addeddompurify@2.0.8(transitive)
- Removed@locker/shared@0.11.11(transitive)
- Removed@locker/shared-dom@0.11.11(transitive)
- Removeddompurify@2.5.8(transitive)
Updated@locker/shared@0.11.15
Updated@locker/shared-dom@0.11.15
Updateddompurify@2.0.8