safe-marked
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -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 : {}; |
{ | ||
"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
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
15277
209
+ Addedmarked@1.2.9(transitive)
- Removedmarked@0.8.2(transitive)
Updated@types/marked@^0.7.4
Updateddompurify@^2.0.8
Updatedjsdom@^16.2.2
Updatedmarked@^1.0.0