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

apidoc-core

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apidoc-core - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

11

lib/parser.js

@@ -234,2 +234,13 @@ var _ = require('lodash');

values[field] = values[field].replace(/(\r\n|\n|\r)/g, ' ');
values[field] = values[field].trim();
// TODO: Little hacky, not sure to handle this here or in template
if ( elementParser.markdownRemovePTags &&
elementParser.markdownRemovePTags.length > 0 &&
elementParser.markdownRemovePTags.indexOf(field) !== -1
) {
// Remove p-Tags
values[field] = values[field].replace(/(<p>|<\/p>)/g, '');
}
}

@@ -236,0 +247,0 @@ }

3

lib/parsers/api_error.js

@@ -19,3 +19,4 @@ // Same as @apiParam

method : apiParser.method,
markdownFields: [ 'description', 'type' ]
markdownFields: [ 'description', 'type' ],
markdownRemovePTags: [ 'type' ]
};

@@ -135,3 +135,4 @@ var trim = require('../utils/trim');

getGroup : getGroup,
markdownFields: [ 'description', 'type' ]
markdownFields: [ 'description', 'type' ],
markdownRemovePTags: [ 'type' ]
};

@@ -19,3 +19,4 @@ // Same as @apiParam

method : apiParser.method,
markdownFields: [ 'description', 'type' ]
markdownFields: [ 'description', 'type' ],
markdownRemovePTags: [ 'type' ]
};
{
"name": "apidoc-core",
"version": "0.4.1",
"version": "0.4.2",
"description": "Core parser library to generate apidoc result following the apidoc-spec",

@@ -36,4 +36,4 @@ "author": "Peter Rottmann <rottmann@inveris.de>",

"dependencies": {
"lodash": "~3.8.0",
"semver": "~4.3.4",
"lodash": "~3.10.1",
"semver": "~5.1.0",
"wrench": "~1.5.8"

@@ -43,7 +43,7 @@ },

"apidoc-example": "*",
"jshint": "~2.7.0",
"markdown-it": "^4.2.1",
"mocha": "~2.2.4",
"npm-check-updates": "^1.5.1",
"should": "~6.0.1"
"jshint": "~2.9.1-rc1",
"markdown-it": "^5.0.2",
"mocha": "~2.3.4",
"npm-check-updates": "^2.5.4",
"should": "~8.0.1"
},

@@ -50,0 +50,0 @@ "jshintConfig": {

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