Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@locker/html-sanitizer

Package Overview
Dependencies
Maintainers
6
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/html-sanitizer - npm Package Compare versions

Comparing version 0.11.11 to 0.11.15

LICENSE

13

dist/index.cjs.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc