isomorphic-dompurify 1.5.0 → 1.6.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 +5 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -40,10 +40,13 @@ Please note that DOMPurify library [doesn't follow Semantic Versioning](https://
40
40
  1. Import the library:
41
41
 
42
42
  ```javascript
43
- // Import as an ES6 module.
43
+ // Import a necessary function in the ES6 way (recommended):
44
+ import { sanitize, isSupported } from "isomorphic-dompurify";
45
+
46
+ // or the entire module:
44
47
  import DOMPurify from 'isomorphic-dompurify';
45
48
 
46
- // Or as a CommonJS module.
49
+ // or as a CommonJS module:
47
50
  const DOMPurify = require('isomorphic-dompurify');
48
51
  ```
49
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
6
  "security",
@@ -33,10 +33,10 @@
33
33
  "dependencies": {
34
34
  "@types/dompurify": "^3.0.2",
35
35
  "dompurify": "^3.0.3",
36
- "jsdom": "^22.0.0"
36
+ "jsdom": "^22.1.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "jest": "^29.5.0",
40
- "terser": "^5.17.3"
40
+ "terser": "^5.17.6"
41
41
  }
42
42
  }