isomorphic-dompurify 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -1
  2. package/package.json +4 -5
package/README.md CHANGED
@@ -18,6 +18,12 @@ This project was born with the idea of encapsulating DOMPurify initilization det
18
18
 
19
19
  It was inspired by [Isomorphic Unfetch](https://github.com/developit/unfetch/tree/master/packages/isomorphic-unfetch).
20
20
 
21
+ ## Requirements
22
+
23
+ | isomorphic-dompurify | Node.js | Environment |
24
+ | ------------- | ------------- | ------------- |
25
+ | `<=0.19.0` | `>=12` | Server |
26
+ | `>=0.20.0` | `>=14` | Server |
21
27
 
22
28
  ## Installation
23
29
 
@@ -44,7 +50,7 @@ const DOMPurify = require('isomorphic-dompurify');
44
50
  2. Sanitize a string:
45
51
 
46
52
  ```javascript
47
- var clean = DOMPurify.sanitize(dirty);
53
+ const clean = DOMPurify.sanitize(dirty);
48
54
  ```
49
55
 
50
56
  ## Known Issues
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
6
  "security",
@@ -30,13 +30,12 @@
30
30
  "browser": "browser.js",
31
31
  "main": "index.js",
32
32
  "dependencies": {
33
- "@types/dompurify": "^2.3.3",
34
- "dompurify": "^2.3.8",
33
+ "dompurify": "^2.3.12",
35
34
  "jsdom": "^20.0.0"
36
35
  },
37
36
  "types": "index.d.ts",
38
37
  "devDependencies": {
39
- "jest": "^28.1.1",
40
- "terser": "^5.14.1"
38
+ "jest": "^28.1.3",
39
+ "terser": "^5.15.0"
41
40
  }
42
41
  }