diff --git a/.travis.yml b/.travis.yml index b18021a..b8704d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ env: matrix: - SEQUELIZE_VERSION=4.* - SEQUELIZE_VERSION=5.* - - SEQUELIZE_VERSION=next + - SEQUELIZE_VERSION=6.* global: - TEST=1 diff --git a/lib/utils/lodash-natives.js b/lib/utils/lodash-natives.js index dac8ea0..7ffb045 100644 --- a/lib/utils/lodash-natives.js +++ b/lib/utils/lodash-natives.js @@ -10,7 +10,8 @@ /* eslint-disable func-names */ /* eslint-disable no-prototype-builtins */ /* eslint-disable no-param-reassign */ -/* eslint-disable unicorn/prevent-abbreviations */ +/* eslint-disable unicorn/prevent-abbreviations */ +/* eslint-disable unicorn/no-reduce */ const capitalize = function (string) { if (typeof string !== 'string') { diff --git a/lib/utils/type-checks.js b/lib/utils/type-checks.js index f9c9074..f3bb549 100644 --- a/lib/utils/type-checks.js +++ b/lib/utils/type-checks.js @@ -30,7 +30,7 @@ function checkType(name, value, type, errorPrefix) { * @returns {bool} * @throws {TypeError} */ -const checkTypeOptional = function (name, value, type) { +const checkTypeOptional = function check(name, value, type) { if (value === null) { return true; } @@ -47,7 +47,7 @@ const checkTypeOptional = function (name, value, type) { * @returns {bool} * @throws {TypeError} */ -const checkTypeRequired = function (name, value, type) { +const checkTypeRequired = function check(name, value, type) { if (value === null) { throw new TypeError(`Required configuration setting '${name}' is missing`); } diff --git a/package.json b/package.json index fed7043..3b776be 100644 --- a/package.json +++ b/package.json @@ -48,33 +48,33 @@ "oasv3" ], "devDependencies": { - "@release-it/conventional-changelog": "^1.1.4", - "acorn": "^7.2.0", - "ajv": "^6.12.2", - "codecov": "^3.6.5", + "@release-it/conventional-changelog": "^2.0.0", + "acorn": "^8.0.0", + "ajv": "^6.12.5", + "codecov": "^3.7.2", "cross-env": "^7.0.2", - "del-cli": "^3.0.0", - "eslint": "^7.0.0", - "eslint-config-airbnb-base": "^14.1.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-import": "^2.20.2", - "eslint-plugin-jest": "^23.10.0", - "eslint-plugin-jsdoc": "^25.0.0", - "eslint-plugin-prettier": "^3.1.3", - "eslint-plugin-unicorn": "^19.0.0", + "del-cli": "^3.0.1", + "eslint": "^7.10.0", + "eslint-config-airbnb-base": "^14.2.0", + "eslint-config-prettier": "^6.12.0", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jest": "^24.0.0", + "eslint-plugin-jsdoc": "^30.0.0", + "eslint-plugin-prettier": "^3.1.4", + "eslint-plugin-unicorn": "^22.0.0", "fs": "0.0.1-security", - "husky": "^4.2.5", + "husky": "^4.3.0", "jest": "^25.0.0", - "jsdoc": "^3.6.4", - "lint-staged": "^10.2.2", + "jsdoc": "^3.6.6", + "lint-staged": "^10.4.0", "lodash.clonedeep": "^4.5.0", - "moment": "^2.25.3", - "mysql2": "^2.1.0", + "moment": "^2.29.0", + "mysql2": "^2.2.5", "npm-run-all": "^4.1.3", - "prettier": "^2.0.0", - "release-it": "^13.0.0", - "sequelize": "^5.21.8", - "swagger-parser": "^9.0.0" + "prettier": "^2.1.2", + "release-it": "^14.0.0", + "sequelize": "^6.0.0", + "swagger-parser": "^10.0.0" }, "esdoc": { "source": "./src", diff --git a/test/strategies/openapi-v3-validation-wrapper.js b/test/strategies/openapi-v3-validation-wrapper.js index 82350ca..8ca8bda 100644 --- a/test/strategies/openapi-v3-validation-wrapper.js +++ b/test/strategies/openapi-v3-validation-wrapper.js @@ -17,7 +17,7 @@ module.exports = Object.freeze({ get: { parameters: [], responses: { - '404': { + 404: { description: 'not found', }, },