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

swagger-jsdoc

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-jsdoc - npm Package Compare versions

Comparing version 7.0.0-rc.3 to 7.0.0-rc.4

lerna.json

23

package.json
{
"name": "swagger-jsdoc",
"description": "Generates swagger doc based on JSDoc",
"version": "7.0.0-rc.3",
"version": "7.0.0-rc.4",
"engines": {

@@ -9,7 +9,10 @@ "node": ">=12.0.0"

"scripts": {
"start": "node examples/app/app.js",
"lint": "eslint .",
"test:lint": "eslint .",
"test:js": "NODE_OPTIONS=--experimental-vm-modules jest --no-cache",
"test": "run-p test:* -cn"
"test:library": "NODE_OPTIONS=--experimental-vm-modules jest --no-cache",
"test:example:app": "cd examples/app && yarn run test",
"test:example:cli": "cd examples/cli && yarn run test",
"test:example:extensions": "cd examples/extensions && yarn run test",
"test:example:yaml": "cd examples/yaml-anchors-aliases && yarn run test",
"test": "run-p test:* test:example:*"
},

@@ -19,3 +22,7 @@ "type": "module",

"jest": {
"transform": {}
"transform": {},
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/examples/"
]
},

@@ -29,3 +36,2 @@ "dependencies": {

"devDependencies": {
"body-parser": "1.19.0",
"eslint": "7.19.0",

@@ -37,9 +43,8 @@ "eslint-config-prettier": "7.2.0",

"eslint-plugin-prettier": "3.3.1",
"express": "4.17.1",
"husky": "4.3.8",
"jest": "26.6.3",
"lerna": "3.22.1",
"lint-staged": "10.5.4",
"npm-run-all": "4.1.5",
"prettier": "2.2.1",
"supertest": "6.1.3"
"prettier": "2.2.1"
},

@@ -46,0 +51,0 @@ "license": "MIT",

@@ -251,2 +251,3 @@ import doctrine from 'doctrine';

const errsToDelete = [];
docWithErr.errors.forEach((error, index) => {

@@ -272,8 +273,10 @@ if (error.name === 'YAMLReferenceError') {

}
});
// reverse sort the deletion array so we always delete from the end
errsToDelete.sort((a, b) => b - a);
// Cleanup solved errors in order to allow for parser to pass through.
for (const errIndex of errsToDelete) {
docWithErr.errors.splice(errIndex, 1);
}
});
// Cleanup solved errors in order to allow for parser to pass through.
for (const errIndex of errsToDelete) {
docWithErr.errors.splice(errIndex, 1);
}
}

@@ -280,0 +283,0 @@

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