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

safe-marked

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safe-marked - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

2

lib/index.js

@@ -18,2 +18,4 @@ "use strict";

var window = (new jsdom_1.JSDOM("")).window;
// DOMWindow vs. Window @types/DOMPurify is mismatch
// @ts-ignore
var DOMPurify = dompurify_1.default(window);

@@ -20,0 +22,0 @@ var dompurifyOptions = options.dompurify ? options.dompurify : {};

32

package.json
{
"name": "safe-marked",
"version": "3.0.0",
"version": "4.0.0",
"description": "Markdown to HTML using marked and DOMPurify. Safe by default.",

@@ -61,21 +61,21 @@ "keywords": [

"@types/dompurify": "^2.0.1",
"@types/jsdom": "^12.2.4",
"@types/mocha": "^5.2.7",
"@types/node": "^13.1.6",
"cross-env": "^6.0.3",
"husky": "^4.0.9",
"lint-staged": "^9.5.0",
"mocha": "^7.0.0",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"ts-node": "^8.6.2",
"@types/jsdom": "^16.2.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.0",
"cross-env": "^7.0.2",
"husky": "^4.2.5",
"lint-staged": "^10.1.6",
"mocha": "^7.1.1",
"prettier": "^2.0.4",
"rimraf": "^3.0.2",
"ts-node": "^8.9.0",
"ts-node-test-register": "^8.0.1",
"typescript": "^3.5.3"
"typescript": "^3.8.3"
},
"dependencies": {
"@types/marked": "^0.7.2",
"dompurify": "^2.0.7",
"jsdom": "^16.0.0",
"marked": "^0.8.0"
"@types/marked": "^0.7.4",
"dompurify": "^2.0.8",
"jsdom": "^16.2.2",
"marked": "^1.0.0"
}
}

@@ -14,2 +14,4 @@ // Node.js version

const window = (new JSDOM("")).window;
// DOMWindow vs. Window @types/DOMPurify is mismatch
// @ts-ignore
const DOMPurify = createDOMPurify(window);

@@ -16,0 +18,0 @@ const dompurifyOptions = options.dompurify ? options.dompurify : {};

Sorry, the diff of this file is not supported yet

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