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

@verdaccio/readme

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/readme - npm Package Compare versions

Comparing version 10.4.1 to 10.4.2

9

lib/index.js

@@ -7,18 +7,11 @@ "use strict";

exports.default = parseReadme;
var _dompurify = _interopRequireDefault(require("dompurify"));
var _jsdom = require("jsdom");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const DOMPurify = (0, _dompurify.default)(new _jsdom.JSDOM('').window);
const {
marked
} = require('marked');
function parseReadme(readme, options = {}) {
let result;
if (readme) {

@@ -28,3 +21,2 @@ result = DOMPurify.sanitize(marked(readme, {

}).trim());
if ('string' === typeof options.pathname) {

@@ -34,5 +26,4 @@ result = result.replace(/href="#/gi, `href="${options.pathname}#`);

}
return result;
}
//# sourceMappingURL=index.js.map

8

package.json
{
"name": "@verdaccio/readme",
"version": "10.4.1",
"version": "10.4.2",
"description": "Readme markdown parser",

@@ -33,8 +33,8 @@ "keywords": [

"dependencies": {
"dompurify": "2.3.9",
"dompurify": "2.4.0",
"jsdom": "16.7.0",
"marked": "4.0.18"
"marked": "4.2.2"
},
"devDependencies": {
"@verdaccio/types": "10.5.1"
"@verdaccio/types": "10.7.0"
},

@@ -41,0 +41,0 @@ "funding": {

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