openapi-diff
Advanced tools
Comparing version 0.23.5 to 0.23.6
@@ -0,1 +1,5 @@ | ||
## [0.23.6](https://bitbucket.org/atlassian/openapi-diff/compare/0.23.5...0.23.6) (2022-08-04) | ||
## [0.23.5](https://bitbucket.org/atlassian/openapi-diff/compare/0.23.4...0.23.5) (2021-10-11) | ||
@@ -2,0 +6,0 @@ |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpClient = void 0; | ||
const request = require("request"); | ||
const axios_1 = require("axios"); | ||
const VError = require("verror"); | ||
class HttpClient { | ||
get(location) { | ||
return new Promise((resolve, reject) => { | ||
request.get(location, (error, response, body) => { | ||
if (error) { | ||
reject(new VError(error, `ERROR: unable to open "${location}"`)); | ||
} | ||
else if (response.statusCode !== 200) { | ||
reject(new VError(error, `ERROR: unable to fetch "${location}". Response code: ${response.statusCode}`)); | ||
} | ||
else { | ||
resolve(body); | ||
} | ||
}); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
const response = yield axios_1.default.get(location, { | ||
transformResponse: (data) => data, | ||
validateStatus: (status) => status === 200 | ||
}); | ||
return response.data; | ||
} | ||
catch (error) { | ||
throw new VError(error, `ERROR: unable to fetch "${location}"`); | ||
} | ||
}); | ||
@@ -21,0 +29,0 @@ } |
{ | ||
"name": "openapi-diff", | ||
"version": "0.23.5", | ||
"version": "0.23.6", | ||
"description": "A CLI tool to identify differences between Swagger/OpenAPI specs.", | ||
@@ -66,2 +66,3 @@ "bin": { | ||
"dependencies": { | ||
"axios": "^0.24.0", | ||
"commander": "^8.2.0", | ||
@@ -73,3 +74,2 @@ "js-yaml": "^4.0.0", | ||
"openapi3-ts": "^2.0.0", | ||
"request": "^2.88.2", | ||
"swagger-parser": "^10.0.2", | ||
@@ -76,0 +76,0 @@ "verror": "^1.10.0" |
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
115804
69
1856
+ Addedaxios@^0.24.0
+ Addedaxios@0.24.0(transitive)
+ Addedextsprintf@1.4.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedrequest@^2.88.2
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.13.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)