mirror of
https://github.com/hanzoai/DOMPurify.git
synced 2026-09-24 16:55:05 +00:00
release: 3.4.2 (#1321)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG.
|
||||
|
||||
It's also very simple to use and get started with. DOMPurify was [started in February 2014](https://github.com/cure53/DOMPurify/commit/a630922616927373485e0e787ab19e73e3691b2b) and, meanwhile, has reached version **v3.4.1**.
|
||||
It's also very simple to use and get started with. DOMPurify was [started in February 2014](https://github.com/cure53/DOMPurify/commit/a630922616927373485e0e787ab19e73e3691b2b) and, meanwhile, has reached version **v3.4.2**.
|
||||
|
||||
DOMPurify runs as JavaScript and works in all modern browsers (Safari (10+), Opera (15+), Edge, Firefox and Chrome - as well as almost anything else using Blink, Gecko or WebKit). It doesn't break on MSIE or other legacy browsers. It simply does nothing.
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
/*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE */
|
||||
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
||||
|
||||
import { TrustedTypePolicy, TrustedTypesWindow, TrustedHTML } from 'trusted-types/lib/index.js';
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
/*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE */
|
||||
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -367,7 +367,7 @@ const _createHooksMap = function _createHooksMap() {
|
||||
function createDOMPurify() {
|
||||
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
||||
const DOMPurify = root => createDOMPurify(root);
|
||||
DOMPurify.version = '3.4.1';
|
||||
DOMPurify.version = '3.4.2';
|
||||
DOMPurify.removed = [];
|
||||
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
||||
// Not running in a browser, provide a factory function
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
/*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE */
|
||||
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
||||
|
||||
import { TrustedTypePolicy, TrustedTypesWindow, TrustedHTML } from 'trusted-types/lib/index.js';
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
/*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE */
|
||||
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
||||
|
||||
const {
|
||||
entries,
|
||||
@@ -365,7 +365,7 @@ const _createHooksMap = function _createHooksMap() {
|
||||
function createDOMPurify() {
|
||||
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
||||
const DOMPurify = root => createDOMPurify(root);
|
||||
DOMPurify.version = '3.4.1';
|
||||
DOMPurify.version = '3.4.2';
|
||||
DOMPurify.removed = [];
|
||||
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
||||
// Not running in a browser, provide a factory function
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
/*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE */
|
||||
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
||||
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
@@ -371,7 +371,7 @@
|
||||
function createDOMPurify() {
|
||||
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
||||
const DOMPurify = root => createDOMPurify(root);
|
||||
DOMPurify.version = '3.4.1';
|
||||
DOMPurify.version = '3.4.2';
|
||||
DOMPurify.removed = [];
|
||||
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
||||
// Not running in a browser, provide a factory function
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "dompurify",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dompurify",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.2",
|
||||
"license": "(MPL-2.0 OR Apache-2.0)",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.17.8",
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@
|
||||
},
|
||||
"name": "dompurify",
|
||||
"description": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not.",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.2",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>DOMPurify 3.4.1 "Cybertron"</title>
|
||||
<title>DOMPurify 3.4.2 "Mythotron"</title>
|
||||
<script src="../dist/purify.min.js"></script>
|
||||
<!-- we don't actually need it - just to demo and test the $(html) sanitation -->
|
||||
<script src="//code.jquery.com/jquery-3.2.0.min.js"></script>
|
||||
@@ -23,7 +23,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h4>DOMPurify 3.4.1 "Cybertron"</h4>
|
||||
<h4>DOMPurify 3.4.2 "Mythotron"</h4>
|
||||
<p>
|
||||
<a href="http://badge.fury.io/js/dompurify" rel="nofollow"><img alt="npm version" src="https://badge.fury.io/js/dompurify.svg"></a>
|
||||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/cure53/DOMPurify/workflows/Build%20and%20Test/badge.svg?branch=main"><img src="https://github.com/cure53/DOMPurify/workflows/Build%20and%20Test/badge.svg?branch=main" alt="Build and Test"></a>
|
||||
|
||||
Reference in New Issue
Block a user