isomorphic-dompurify
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "isomorphic-dompurify", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Makes it possible to use DOMPurify on server and client in the same way.", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@types/dompurify": "^2.4.0", | ||
"@types/dompurify": "^3.0.0", | ||
"dompurify": "^3.0.1", | ||
@@ -37,0 +37,0 @@ "jsdom": "^21.1.0" |
@@ -7,3 +7,3 @@ # Isomorphic DOMPurify | ||
The library makes it possible to seamlessly use [DOMPurify](https://github.com/cure53/DOMPurify) on server and client in the same way. | ||
It does nothing by itself except providing an isomorthic/universal wrapper around DOMPurify, so all credits go to DOMPurify authors and contributors. | ||
It does nothing by itself except providing an isomorphic/universal wrapper around DOMPurify, so all credits go to DOMPurify authors and contributors. | ||
@@ -16,5 +16,5 @@ > DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. | ||
DOMPurify needs a DOM tree to base on, which is not available in Node by default. To work on the server side, we need a fake DOM to be created and supplied to DOMPurify. It means that DOMPurify initialization logic on server is not the same as on client. | ||
DOMPurify needs a DOM tree to base on, which is not available in Node by default. To work on the server side, we need a fake DOM to be created and supplied to DOMPurify. It means that DOMPurify initialization logic on the server is not the same as on the client. | ||
This project was born with the idea of encapsulating DOMPurify initilization details and providing an easy way to import the library on both, server and client, for example in Next.js apps. | ||
This project was born with the idea of encapsulating DOMPurify initialization details and providing an easy way to import the library on both, server and client, for example in Next.js apps. | ||
@@ -21,0 +21,0 @@ It was inspired by [Isomorphic Unfetch](https://github.com/developit/unfetch/tree/master/packages/isomorphic-unfetch). |
5578
+ Added@types/dompurify@3.2.0(transitive)
- Removed@types/dompurify@2.4.0(transitive)
Updated@types/dompurify@^3.0.0