From 417c146e82158ec54f5bc8a358258f2e0346be92 Mon Sep 17 00:00:00 2001 From: "Daigneau, Jeremy T" Date: Mon, 1 May 2023 09:41:02 -0400 Subject: [PATCH 1/2] Updated version numbers to 2.1.4 --- api-docs/openapi.json | 2 +- package.json | 188 +++++++++++++++++++++--------------------- src/swagger.js | 2 +- 3 files changed, 96 insertions(+), 96 deletions(-) diff --git a/api-docs/openapi.json b/api-docs/openapi.json index 90d25fb8d..6fb42789a 100644 --- a/api-docs/openapi.json +++ b/api-docs/openapi.json @@ -1,7 +1,7 @@ { "openapi": "3.0.2", "info": { - "version": "2.1.2", + "version": "2.1.4", "title": "CVE Services API", "description": "The CVE Services API supports automation tooling for the CVE Program. Credentials are required for most service endpoints. Representatives of CVE Numbering Authorities (CNAs) should use one of the methods below to obtain credentials:

CVE data is to be in the JSON 5.0 CVE Record format. Details of the JSON 5.0 schema are located here.

Contact the CVE Services team", "contact": { diff --git a/package.json b/package.json index cb1ddee21..26ecacf6d 100644 --- a/package.json +++ b/package.json @@ -1,96 +1,96 @@ { - "name": "cve-services", - "author": "Automation Working Group", - "version": "2.1.2", - "license": "(CC0)", - "devDependencies": { - "apidoc": "^0.53.1", - "chai": "^4.2.0", - "chai-arrays": "^2.0.0", - "chai-http": "^4.3.0", - "chai-like": "^1.1.1", - "chai-string": "^1.5.0", - "chai-things": "^0.2.0", - "chai-uuid": "^1.0.6", - "depcheck": "^0.9.2", - "eslint": "^8.20.0", - "eslint-config-standard": "^14.1.1", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-mocha": "^8.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.1", - "mocha": "^10.1.0", - "nyc": "^15.1.0", - "standard": "^16.0.3" - }, - "dependencies": { - "ajv": "^8.6.2", - "ajv-formats": "^2.1.1", - "argon2": "^0.27.2", - "config": "^3.3.6", - "cors": "^2.8.5", - "crypto-random-string": "^3.3.1", - "dotenv": "^5.0.1", - "express": "^4.18.2", - "express-jsonschema": "^1.1.6", - "express-rate-limit": "^6.5.2", - "express-validator": "^6.14.2", - "helmet": "^3.21.2", - "html-entities": "^2.3.3", - "jsonschema": "^1.4.0", - "JSONStream": "^1.3.5", - "kleur": "^4.1.4", - "mongoose": "^5.13.15", - "mongoose-aggregate-paginate-v2": "1.0.6", - "morgan": "^1.9.1", - "node-dev": "^7.4.3", - "prompt-sync": "^4.2.0", - "replace-json-property": "^1.8.0", - "replace-in-file": "6.3.5", - "swagger-autogen": "^2.19.0", - "swagger-ui-express": "^4.3.0", - "uuid": "^8.3.2", - "validate-date": "^2.0.0", - "validator": ">=13.7.0", - "winston": "^3.2.1", - "yamljs": "^0.3.0" - }, - "apidoc": { - "name": "CVE-Services", - "version": "0.0.0", - "description": "Some Future Description", - "title": "CVE API Services" - }, - "nyc": { - "exclude": "test-utils/" - }, - "scripts": { - "action:test": "node node_modules/mocha/bin/mocha --recursive --exit", - "action:coverage": "node node_modules/nyc/bin/nyc.js --check-coverage --lines=80 node_modules/mocha/bin/mocha.js --recursive --exit", - "action:lint-src": "node node_modules/eslint/bin/eslint.js src/", - "action:lint-test": "node node_modules/eslint/bin/eslint.js test/", - "action:lint-test-utils": "node node_modules/eslint/bin/eslint.js test-utils/", - "clean": "node node_modules/depcheck/bin/depcheck.js", - "lint:src": "node node_modules/eslint/bin/eslint.js src/ --fix", - "lint:test": "node node_modules/eslint/bin/eslint.js test/ --fix", - "lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix", - "populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js", - "populate:stage": "NODE_ENV=staging node src/scripts/populate.js", - "populate:int": "NODE_ENV=integration node src/scripts/populate.js", - "populate:prd": "NODE_ENV=production node src/scripts/populate.js", - "populate-cve:dev": "NODE_ENV=development node-dev src/scripts/populate-cve.js", - "populate-cve:stage": "NODE_ENV=staging node src/scripts/populate-cve.js", - "populate-cve:int": "NODE_ENV=integration node src/scripts/populate-cve.js", - "populate-cve:prd": "NODE_ENV=production node src/scripts/populate-cve.js", - "start:dev": "node src/swagger.js && TZ=utc NODE_ENV=development node src/scripts/updateOpenapiHost.js && TZ=utc NODE_ENV=development node-dev src/index.js", - "start:stage": "node src/swagger.js && NODE_ENV=staging node src/scripts/updateOpenapiHost.js && NODE_ENV=staging node src/index.js", - "start:int": "node src/swagger.js && NODE_ENV=integration node src/scripts/updateOpenapiHost.js && NODE_ENV=integration node src/index.js", - "start:prdstg": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", - "start:prd": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", - "swagger-autogen": "node src/swagger.js", - "test": "NODE_ENV=test mocha --recursive --exit || true", - "test:coverage": "NODE_ENV=test nyc --reporter=text mocha --recursive --exit || true", - "test:scripts": "NODE_ENV=development node-dev src/scripts/templateScript.js" - } + "name": "cve-services", + "author": "Automation Working Group", + "version": "2.1.4", + "license": "(CC0)", + "devDependencies": { + "apidoc": "^0.53.1", + "chai": "^4.2.0", + "chai-arrays": "^2.0.0", + "chai-http": "^4.3.0", + "chai-like": "^1.1.1", + "chai-string": "^1.5.0", + "chai-things": "^0.2.0", + "chai-uuid": "^1.0.6", + "depcheck": "^0.9.2", + "eslint": "^8.20.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.26.0", + "eslint-plugin-mocha": "^8.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-promise": "^4.2.1", + "eslint-plugin-standard": "^4.0.1", + "mocha": "^10.1.0", + "nyc": "^15.1.0", + "standard": "^16.0.3" + }, + "dependencies": { + "ajv": "^8.6.2", + "ajv-formats": "^2.1.1", + "argon2": "^0.27.2", + "config": "^3.3.6", + "cors": "^2.8.5", + "crypto-random-string": "^3.3.1", + "dotenv": "^5.0.1", + "express": "^4.18.2", + "express-jsonschema": "^1.1.6", + "express-rate-limit": "^6.5.2", + "express-validator": "^6.14.2", + "helmet": "^3.21.2", + "html-entities": "^2.3.3", + "jsonschema": "^1.4.0", + "JSONStream": "^1.3.5", + "kleur": "^4.1.4", + "mongoose": "^5.13.15", + "mongoose-aggregate-paginate-v2": "1.0.6", + "morgan": "^1.9.1", + "node-dev": "^7.4.3", + "prompt-sync": "^4.2.0", + "replace-json-property": "^1.8.0", + "replace-in-file": "6.3.5", + "swagger-autogen": "^2.19.0", + "swagger-ui-express": "^4.3.0", + "uuid": "^8.3.2", + "validate-date": "^2.0.0", + "validator": ">=13.7.0", + "winston": "^3.2.1", + "yamljs": "^0.3.0" + }, + "apidoc": { + "name": "CVE-Services", + "version": "0.0.0", + "description": "Some Future Description", + "title": "CVE API Services" + }, + "nyc": { + "exclude": "test-utils/" + }, + "scripts": { + "action:test": "node node_modules/mocha/bin/mocha --recursive --exit", + "action:coverage": "node node_modules/nyc/bin/nyc.js --check-coverage --lines=80 node_modules/mocha/bin/mocha.js --recursive --exit", + "action:lint-src": "node node_modules/eslint/bin/eslint.js src/", + "action:lint-test": "node node_modules/eslint/bin/eslint.js test/", + "action:lint-test-utils": "node node_modules/eslint/bin/eslint.js test-utils/", + "clean": "node node_modules/depcheck/bin/depcheck.js", + "lint:src": "node node_modules/eslint/bin/eslint.js src/ --fix", + "lint:test": "node node_modules/eslint/bin/eslint.js test/ --fix", + "lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix", + "populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js", + "populate:stage": "NODE_ENV=staging node src/scripts/populate.js", + "populate:int": "NODE_ENV=integration node src/scripts/populate.js", + "populate:prd": "NODE_ENV=production node src/scripts/populate.js", + "populate-cve:dev": "NODE_ENV=development node-dev src/scripts/populate-cve.js", + "populate-cve:stage": "NODE_ENV=staging node src/scripts/populate-cve.js", + "populate-cve:int": "NODE_ENV=integration node src/scripts/populate-cve.js", + "populate-cve:prd": "NODE_ENV=production node src/scripts/populate-cve.js", + "start:dev": "node src/swagger.js && TZ=utc NODE_ENV=development node src/scripts/updateOpenapiHost.js && TZ=utc NODE_ENV=development node-dev src/index.js", + "start:stage": "node src/swagger.js && NODE_ENV=staging node src/scripts/updateOpenapiHost.js && NODE_ENV=staging node src/index.js", + "start:int": "node src/swagger.js && NODE_ENV=integration node src/scripts/updateOpenapiHost.js && NODE_ENV=integration node src/index.js", + "start:prdstg": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", + "start:prd": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", + "swagger-autogen": "node src/swagger.js", + "test": "NODE_ENV=test mocha --recursive --exit || true", + "test:coverage": "NODE_ENV=test nyc --reporter=text mocha --recursive --exit || true", + "test:scripts": "NODE_ENV=development node-dev src/scripts/templateScript.js" + } } \ No newline at end of file diff --git a/src/swagger.js b/src/swagger.js index 42bbe9ada..4aec4c837 100644 --- a/src/swagger.js +++ b/src/swagger.js @@ -14,7 +14,7 @@ const rejectedCreateCVERecord = require('../schemas/cve/rejected-create-cve-exam /* eslint-disable no-multi-str */ const doc = { info: { - version: '2.1.2', + version: '2.1.4', title: 'CVE Services API', description: "The CVE Services API supports automation tooling for the CVE Program. Credentials are \ required for most service endpoints. Representatives of \ From 9c376d885c29f70f73b5257856752ead5a50d201 Mon Sep 17 00:00:00 2001 From: "Daigneau, Jeremy T" Date: Mon, 1 May 2023 09:46:43 -0400 Subject: [PATCH 2/2] Fixed spacing --- package.json | 188 +++++++++++++++++++++++++-------------------------- 1 file changed, 94 insertions(+), 94 deletions(-) diff --git a/package.json b/package.json index 26ecacf6d..e52b32d6a 100644 --- a/package.json +++ b/package.json @@ -1,96 +1,96 @@ { - "name": "cve-services", - "author": "Automation Working Group", - "version": "2.1.4", - "license": "(CC0)", - "devDependencies": { - "apidoc": "^0.53.1", - "chai": "^4.2.0", - "chai-arrays": "^2.0.0", - "chai-http": "^4.3.0", - "chai-like": "^1.1.1", - "chai-string": "^1.5.0", - "chai-things": "^0.2.0", - "chai-uuid": "^1.0.6", - "depcheck": "^0.9.2", - "eslint": "^8.20.0", - "eslint-config-standard": "^14.1.1", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-mocha": "^8.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.1", - "mocha": "^10.1.0", - "nyc": "^15.1.0", - "standard": "^16.0.3" - }, - "dependencies": { - "ajv": "^8.6.2", - "ajv-formats": "^2.1.1", - "argon2": "^0.27.2", - "config": "^3.3.6", - "cors": "^2.8.5", - "crypto-random-string": "^3.3.1", - "dotenv": "^5.0.1", - "express": "^4.18.2", - "express-jsonschema": "^1.1.6", - "express-rate-limit": "^6.5.2", - "express-validator": "^6.14.2", - "helmet": "^3.21.2", - "html-entities": "^2.3.3", - "jsonschema": "^1.4.0", - "JSONStream": "^1.3.5", - "kleur": "^4.1.4", - "mongoose": "^5.13.15", - "mongoose-aggregate-paginate-v2": "1.0.6", - "morgan": "^1.9.1", - "node-dev": "^7.4.3", - "prompt-sync": "^4.2.0", - "replace-json-property": "^1.8.0", - "replace-in-file": "6.3.5", - "swagger-autogen": "^2.19.0", - "swagger-ui-express": "^4.3.0", - "uuid": "^8.3.2", - "validate-date": "^2.0.0", - "validator": ">=13.7.0", - "winston": "^3.2.1", - "yamljs": "^0.3.0" - }, - "apidoc": { - "name": "CVE-Services", - "version": "0.0.0", - "description": "Some Future Description", - "title": "CVE API Services" - }, - "nyc": { - "exclude": "test-utils/" - }, - "scripts": { - "action:test": "node node_modules/mocha/bin/mocha --recursive --exit", - "action:coverage": "node node_modules/nyc/bin/nyc.js --check-coverage --lines=80 node_modules/mocha/bin/mocha.js --recursive --exit", - "action:lint-src": "node node_modules/eslint/bin/eslint.js src/", - "action:lint-test": "node node_modules/eslint/bin/eslint.js test/", - "action:lint-test-utils": "node node_modules/eslint/bin/eslint.js test-utils/", - "clean": "node node_modules/depcheck/bin/depcheck.js", - "lint:src": "node node_modules/eslint/bin/eslint.js src/ --fix", - "lint:test": "node node_modules/eslint/bin/eslint.js test/ --fix", - "lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix", - "populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js", - "populate:stage": "NODE_ENV=staging node src/scripts/populate.js", - "populate:int": "NODE_ENV=integration node src/scripts/populate.js", - "populate:prd": "NODE_ENV=production node src/scripts/populate.js", - "populate-cve:dev": "NODE_ENV=development node-dev src/scripts/populate-cve.js", - "populate-cve:stage": "NODE_ENV=staging node src/scripts/populate-cve.js", - "populate-cve:int": "NODE_ENV=integration node src/scripts/populate-cve.js", - "populate-cve:prd": "NODE_ENV=production node src/scripts/populate-cve.js", - "start:dev": "node src/swagger.js && TZ=utc NODE_ENV=development node src/scripts/updateOpenapiHost.js && TZ=utc NODE_ENV=development node-dev src/index.js", - "start:stage": "node src/swagger.js && NODE_ENV=staging node src/scripts/updateOpenapiHost.js && NODE_ENV=staging node src/index.js", - "start:int": "node src/swagger.js && NODE_ENV=integration node src/scripts/updateOpenapiHost.js && NODE_ENV=integration node src/index.js", - "start:prdstg": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", - "start:prd": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", - "swagger-autogen": "node src/swagger.js", - "test": "NODE_ENV=test mocha --recursive --exit || true", - "test:coverage": "NODE_ENV=test nyc --reporter=text mocha --recursive --exit || true", - "test:scripts": "NODE_ENV=development node-dev src/scripts/templateScript.js" - } + "name": "cve-services", + "author": "Automation Working Group", + "version": "2.1.4", + "license": "(CC0)", + "devDependencies": { + "apidoc": "^0.53.1", + "chai": "^4.2.0", + "chai-arrays": "^2.0.0", + "chai-http": "^4.3.0", + "chai-like": "^1.1.1", + "chai-string": "^1.5.0", + "chai-things": "^0.2.0", + "chai-uuid": "^1.0.6", + "depcheck": "^0.9.2", + "eslint": "^8.20.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.26.0", + "eslint-plugin-mocha": "^8.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-promise": "^4.2.1", + "eslint-plugin-standard": "^4.0.1", + "mocha": "^10.1.0", + "nyc": "^15.1.0", + "standard": "^16.0.3" + }, + "dependencies": { + "ajv": "^8.6.2", + "ajv-formats": "^2.1.1", + "argon2": "^0.27.2", + "config": "^3.3.6", + "cors": "^2.8.5", + "crypto-random-string": "^3.3.1", + "dotenv": "^5.0.1", + "express": "^4.18.2", + "express-jsonschema": "^1.1.6", + "express-rate-limit": "^6.5.2", + "express-validator": "^6.14.2", + "helmet": "^3.21.2", + "html-entities": "^2.3.3", + "jsonschema": "^1.4.0", + "JSONStream": "^1.3.5", + "kleur": "^4.1.4", + "mongoose": "^5.13.15", + "mongoose-aggregate-paginate-v2": "1.0.6", + "morgan": "^1.9.1", + "node-dev": "^7.4.3", + "prompt-sync": "^4.2.0", + "replace-json-property": "^1.8.0", + "replace-in-file": "6.3.5", + "swagger-autogen": "^2.19.0", + "swagger-ui-express": "^4.3.0", + "uuid": "^8.3.2", + "validate-date": "^2.0.0", + "validator": ">=13.7.0", + "winston": "^3.2.1", + "yamljs": "^0.3.0" + }, + "apidoc": { + "name": "CVE-Services", + "version": "0.0.0", + "description": "Some Future Description", + "title": "CVE API Services" + }, + "nyc": { + "exclude": "test-utils/" + }, + "scripts": { + "action:test": "node node_modules/mocha/bin/mocha --recursive --exit", + "action:coverage": "node node_modules/nyc/bin/nyc.js --check-coverage --lines=80 node_modules/mocha/bin/mocha.js --recursive --exit", + "action:lint-src": "node node_modules/eslint/bin/eslint.js src/", + "action:lint-test": "node node_modules/eslint/bin/eslint.js test/", + "action:lint-test-utils": "node node_modules/eslint/bin/eslint.js test-utils/", + "clean": "node node_modules/depcheck/bin/depcheck.js", + "lint:src": "node node_modules/eslint/bin/eslint.js src/ --fix", + "lint:test": "node node_modules/eslint/bin/eslint.js test/ --fix", + "lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix", + "populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js", + "populate:stage": "NODE_ENV=staging node src/scripts/populate.js", + "populate:int": "NODE_ENV=integration node src/scripts/populate.js", + "populate:prd": "NODE_ENV=production node src/scripts/populate.js", + "populate-cve:dev": "NODE_ENV=development node-dev src/scripts/populate-cve.js", + "populate-cve:stage": "NODE_ENV=staging node src/scripts/populate-cve.js", + "populate-cve:int": "NODE_ENV=integration node src/scripts/populate-cve.js", + "populate-cve:prd": "NODE_ENV=production node src/scripts/populate-cve.js", + "start:dev": "node src/swagger.js && TZ=utc NODE_ENV=development node src/scripts/updateOpenapiHost.js && TZ=utc NODE_ENV=development node-dev src/index.js", + "start:stage": "node src/swagger.js && NODE_ENV=staging node src/scripts/updateOpenapiHost.js && NODE_ENV=staging node src/index.js", + "start:int": "node src/swagger.js && NODE_ENV=integration node src/scripts/updateOpenapiHost.js && NODE_ENV=integration node src/index.js", + "start:prdstg": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", + "start:prd": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", + "swagger-autogen": "node src/swagger.js", + "test": "NODE_ENV=test mocha --recursive --exit || true", + "test:coverage": "NODE_ENV=test nyc --reporter=text mocha --recursive --exit || true", + "test:scripts": "NODE_ENV=development node-dev src/scripts/templateScript.js" + } } \ No newline at end of file