Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

isomorphic-dompurify

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-dompurify - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

10

index.js

@@ -1,9 +0,1 @@

function r(m){return m && m.default || m;}
module.exports = global.DOMPurify = global.DOMPurify || (
typeof process === 'undefined' ? r(require('dompurify')) : (function() {
const DOMPurifyInitializer = r(require('dompurify'));
const { JSDOM } = r(require('jsdom'));
const { window } = new JSDOM('<!DOCTYPE html>');
return DOMPurifyInitializer(window);
})()
);
function e(e){return e&&e.default||e}module.exports=global.DOMPurify=global.DOMPurify||("undefined"==typeof process?e(require("dompurify")):function(){const r=e(require("dompurify")),{JSDOM:u}=e(require("jsdom")),{window:o}=new u("<!DOCTYPE html>");return r(o)}());

8

package.json
{
"name": "isomorphic-dompurify",
"version": "0.11.0",
"version": "0.12.0",
"description": "Makes it possible to use DOMPurify on server and client in the same way.",

@@ -16,3 +16,4 @@ "keywords": [

"scripts": {
"test": "jest"
"test": "jest",
"build": "terser src/index.js --compress --mangle --module -o index.js"
},

@@ -38,4 +39,5 @@ "bugs": {

"devDependencies": {
"jest": "^26.6.3"
"jest": "^26.6.3",
"terser": "^5.5.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc