swagger-jsdoc
Advanced tools
Comparing version 7.0.0-rc.3 to 7.0.0-rc.4
{ | ||
"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
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
68078
12
9