isomorphic-dompurify
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "isomorphic-dompurify", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Makes it possible to use DOMPurify on server and client in the same way.", | ||
@@ -36,8 +36,8 @@ "keywords": [ | ||
"dompurify": "^3.0.3", | ||
"jsdom": "^22.0.0" | ||
"jsdom": "^22.1.0" | ||
}, | ||
"devDependencies": { | ||
"jest": "^29.5.0", | ||
"terser": "^5.17.3" | ||
"terser": "^5.17.6" | ||
} | ||
} |
@@ -43,6 +43,9 @@ # Isomorphic DOMPurify | ||
```javascript | ||
// Import as an ES6 module. | ||
// Import a necessary function in the ES6 way (recommended): | ||
import { sanitize, isSupported } from "isomorphic-dompurify"; | ||
// or the entire module: | ||
import DOMPurify from 'isomorphic-dompurify'; | ||
// Or as a CommonJS module. | ||
// or as a CommonJS module: | ||
const DOMPurify = require('isomorphic-dompurify'); | ||
@@ -49,0 +52,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5699
71
Updatedjsdom@^22.1.0