diff --git a/build/src/app.js b/build/src/app.js index 1c0544e8..43d86839 100644 --- a/build/src/app.js +++ b/build/src/app.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.runProxy = exports.buildApp = void 0; const debug = require('debug')('openapi-cop:proxy'); debug.log = console.log.bind(console); // output to stdout const chalk = require("chalk"); @@ -24,7 +25,9 @@ async function buildApp(options) { ...options, }; const app = express(); - const apiDocRaw = validUrl.isWebUri(apiDocFile) ? await util_1.fetchAndReadFile(apiDocFile) : util_1.readFileSync(apiDocFile); + const apiDocRaw = validUrl.isWebUri(apiDocFile) + ? await util_1.fetchAndReadFile(apiDocFile) + : util_1.readFileSync(apiDocFile); console.log(chalk.blue('Validating against ' + chalk.bold(`${path.basename(apiDocFile)} ("${apiDocRaw.info.title}", version: ${apiDocRaw.info.version})`))); if (defaultForbidAdditionalProperties) { diff --git a/build/src/app.js.map b/build/src/app.js.map index 6a105fba..fa6ee335 100644 --- a/build/src/app.js.map +++ b/build/src/app.js.map @@ -1 +1 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":";;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACpD,KAAK,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB;AAC1D,+BAAgC;AAChC,mCAAmC;AAInC,6BAA6B;AAC7B,sCAAsC;AACtC,6CAA6C;AAE7C,iCAUgB;AAChB,6CAA0E;AAS1E,MAAM,QAAQ,GAAiB;IAC7B,SAAS,EAAE,uBAAuB;IAClC,UAAU,EAAE,EAAE;IACd,iCAAiC,EAAE,KAAK;IACxC,MAAM,EAAE,KAAK;CACd,CAAC;AAWF;;GAEG;AACI,KAAK,UAAU,QAAQ,CAC5B,OAAqB;IAErB,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,iCAAiC,EAA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AAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE;gBACnC,CAAC,EAAE,CAAC;YACN,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YACX,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;KACJ;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QACtD,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;KACzB;AACH,CAAC;AA3BD,4BA2BC"} \ No newline at end of file diff --git a/build/src/cli.js b/build/src/cli.js index d7fda124..d3aea3ab 100755 --- a/build/src/cli.js +++ b/build/src/cli.js @@ -37,7 +37,7 @@ if (!program.target) { program.outputHelp(); process.exit(); } -const targetPortMatch = program.target.match(/\w+:\/\/\w+:(\d{4})(\/|$)/); +const targetPortMatch = program.target.match(/\w+:\/\/[\w\.\-]+:(\d{1,4})(\/|$)/); const targetPort = targetPortMatch !== null ? targetPortMatch[1] : ''; if (!targetPort || isNaN(Number(targetPort))) { console.log('Did not provide a port number within the target URL.\n'); diff --git a/build/src/cli.js.map b/build/src/cli.js.map index 413a2f3e..4d10a1c8 100644 --- a/build/src/cli.js.map +++ b/build/src/cli.js.map @@ -1 +1 @@ -{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAClC,MAAM,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAC5C,KAAK,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB;AAC1D,+BAAgC;AAChC,qCAAqC;AACrC,qCAAqC;AAErC,6BAA6B;AAE7B,+BAAiC;AAEjC,+DAA+D;AAC/D,OAAO,CAAC,IAAI,CA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B,IAAI,wBAAwB,CACxD,CACF,CAAC;QACF,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,IAAI,CAAC,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;CACJ;AAED,2BAA2B;AAC3B,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE;IACzB,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACvD,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;QAChB,OAAO,CAAC,IAAI,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,UAAU,CAAC,GAAG,EAAE;QACd,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/src/util.js b/build/src/util.js index 375f7067..c7a44f7c 100644 --- a/build/src/util.js +++ b/build/src/util.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.mapWalkObject = exports.closeServer = exports.setSourceRequestHeader = exports.setValidationHeader = exports.copyHeaders = exports.parseResponseBody = exports.toOasRequest = exports.parseRequest = exports.convertToOpenApiV3 = exports.fetchAndReadFile = exports.readFileSync = exports.readJsonOrYamlSync = exports.parseJsonOrYaml = exports.getAPIDocFormat = void 0; const api_spec_converter_1 = require("api-spec-converter"); const ct = require("content-type"); const fs = require("fs"); @@ -25,6 +26,8 @@ function getAPIDocFormat(apiDoc) { 'openapi-3.0': isOpenAPIv3, }; for (const format in validators) { + if (!Object.prototype.hasOwnProperty.call(validators, format)) + continue; const validator = validators[format]; if (validator(apiDoc)) return format; @@ -156,6 +159,9 @@ exports.parseResponseBody = parseResponseBody; */ function copyHeaders(sourceResponse, targetResponse) { for (const key in sourceResponse.headers) { + if (!Object.prototype.hasOwnProperty.call(sourceResponse.headers, key)) { + continue; + } targetResponse.setHeader(key, sourceResponse.headers[key]); } } diff --git a/build/src/util.js.map b/build/src/util.js.map index 1eaa1611..1e5a8c96 100644 --- a/build/src/util.js.map +++ b/build/src/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":";;AAAA,2DAAiE;AACjE,mCAAmC;AAGnC,yBAAyB;AAEzB,gCAAgC;AAEhC,6BAA6B;AAC7B,yBAAyB;AACzB,kCAAkC;AAClC,4CAAuD;AAEvD,6CAA6C;AAE7C,SAAS,WAAW,CAAC,MAAW;IAC9B,OAAO,MAAM,CAAC,OAAO,KAAK,KAAK,CAAC;AAClC,CAAC;AAED,SAAS,WAAW,CAAC,MAAW;IAC9B,OAAO,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC/E,CAAC;AAED;;;GAGG;AACH,SAAgB,eAAe,CAC7B,MAAW;IAEX,MAAM,UAAU,GAAgD;QAC9D,aAAa,EAAE,WAAW;QAC1B,aAAa,EAAE,WAAW;KAC3B,CAAC;IAEF,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE;QAC/B,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,SAAS,CAAC,MAAM,CAAC;YAAE,OAAO,MAAuC,CAAC;KACvE;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAdD,0CAcC;AAED,SAAgB,eAAe,CAAC,QAAgB,EAAE,IAAY;IAC5D,QAAQ,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC9B,KAAK,OAAO;YACV,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1B,KAAK,OAAO,CAAC;QACb,KAAK,MAAM;YACT,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,GAAG;YACN,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACjE;YACE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ACtB,OAAO,OAAO,CAAC;AACjB,CAAC;AAnBD,sCAmBC"} \ No newline at end of file diff --git a/build/src/validation.js b/build/src/validation.js index c3958488..1f254614 100644 --- a/build/src/validation.js +++ b/build/src/validation.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.hasErrors = exports.Validator = exports.dereference = exports.resolve = exports.validateDocument = void 0; const debug = require('debug')('openapi-cop:proxy'); const swaggerClient = require('swagger-client'); const swaggerParser = require('swagger-parser'); diff --git a/build/src/validation.js.map b/build/src/validation.js.map index 5e7fee0a..11739011 100644 --- a/build/src/validation.js.map +++ b/build/src/validation.js.map @@ -1 +1 @@ -{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/validation.ts"],"names":[],"mappings":";;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACpD,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAChD,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEhD,oDAAoD;AACpD,qDAMyB;AAEzB,4CAA4D;AAG5D;;;;GAIG;AACI,KAAK,UAAU,gBAAgB,CAAC,IAAS;IAC9C,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC/C,KAAK,CACH,qCAAqC,GAAG,CAAC,IAAI,CAAC,KAAK,cAAc,GAAG,CAAC,IAAI,CAAC,OAAO,GAAG,CACrF,CAAC;KACH;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,IAAI,kCAAyB,CAAC,GAAG,CAAC,CAAC;KAC1C;AACH,CAAC;AATD,4CASC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,OAAO,CAAC,IAAS,EAAE,OAAe;IACtD,MAAM,gBAAgB,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC;QACnD,iBAAiB,EAAE,EAAE;QACrB,IAAI;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,UAAU,EAAE,EAAE;wBACd,MAAM,EAAE,EAAE;wBACV,OAAO,EAAE,sBAAsB,UAAU,CAAC,IAAI,GAAG;qBAClD;iBACF;aACF,CAAC;SACH;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;IAED,gBAAgB,CACd,YAAoB,EACpB,SAAoB,EACpB,UAAkB;QAElB,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CACvC,YAAY,EACZ,SAAS,EACT,UAAU,CACX,CAAC;IACJ,CAAC;IAED,uBAAuB,CACrB,OAA4B,EAC5B,SAAoB,EACpB,UAAkB;QAElB,OAAO,IAAI,CAAC,YAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,SAAS,EAAE;YACnE,UAAU;YACV,YAAY,EAAE,8BAAY,CAAC,QAAQ;SACpC,CAAC,CAAC;IACL,CAAC;CACF;AA7DD,8BA6DC;AAED,SAAgB,SAAS,CAAC,iBAAoC;IAC5D,MAAM,cAAc,GAClB,CAAC,iBAAiB,CAAC,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC;IAChE,MAAM,eAAe,GACnB,CAAC,iBAAiB,CAAC,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC;IAClE,MAAM,uBAAuB,GAC3B,CAAC,iBAAiB,CAAC,eAAe;QAClC,iBAAiB,CAAC,eAAe,CAAC,KAAK,CAAC;IAC1C,OAAO,CAAC,cAAc,IAAI,CAAC,eAAe,IAAI,CAAC,uBAAuB,CAAC;AACzE,CAAC;AATD,8BASC"} \ No newline at end of file +{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/validation.ts"],"names":[],"mappings":";;;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACpD,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAChD,MAAM,aA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AC5D,MAAM,cAAc,GAClB,CAAC,iBAAiB,CAAC,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC;IAChE,MAAM,eAAe,GACnB,CAAC,iBAAiB,CAAC,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC;IAClE,MAAM,uBAAuB,GAC3B,CAAC,iBAAiB,CAAC,eAAe;QAClC,iBAAiB,CAAC,eAAe,CAAC,KAAK,CAAC;IAC1C,OAAO,CAAC,cAAc,IAAI,CAAC,eAAe,IAAI,CAAC,uBAAuB,CAAC;AACzE,CAAC;AATD,8BASC"} \ No newline at end of file diff --git a/build/test/config.js b/build/test/config.js index ab4fb8ae..df315e45 100644 --- a/build/test/config.js +++ b/build/test/config.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_OPENAPI_FILE = exports.TARGET_SERVER_PORT = exports.PROXY_PORT = exports.SCHEMAS_DIR = exports.MOCK_SERVER_DIR = void 0; const path = require("path"); exports.MOCK_SERVER_DIR = path.resolve(__dirname, '../../mock/'); exports.SCHEMAS_DIR = path.resolve(__dirname, '../../schemas/'); diff --git a/build/test/config.js.map b/build/test/config.js.map index 866b99d9..6677defb 100644 --- a/build/test/config.js.map +++ b/build/test/config.js.map @@ -1 +1 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../test/config.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAEhB,QAAA,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACzD,QAAA,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;AAExD,QAAA,UAAU,GAAG,IAAI,CAAC;AAClB,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAE1B,QAAA,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAC3C,mBAAW,EACX,oBAAoB,CACrB,CAAC"} \ No newline at end of file +{"version":3,"file":"config.js","sourceRoot":"","sources":["../../test/config.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAEhB,QAAA,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACzD,QAAA,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;AAExD,QAAA,UAAU,GAAG,IAAI,CAAC;AAClB,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAE1B,QAAA,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAC3C,mBAAW,EACX,oBAAoB,CACrB,CAAC"} \ No newline at end of file diff --git a/build/test/test_data/test-requests.js b/build/test/test_data/test-requests.js index 6a7f30db..d1f31808 100644 --- a/build/test/test_data/test-requests.js +++ b/build/test/test_data/test-requests.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.STRICTLY_INVALID_TEST_REQUESTS = exports.INVALID_TEST_REQUESTS = exports.STRICTLY_VALID_TEST_REQUESTS = exports.VALID_TEST_REQUESTS = void 0; /** * Maps a OpenAPI file by its name to an array of sample requests. The * requests are expected NOT to trigger a 404 response. diff --git a/build/test/test_data/test-requests.js.map b/build/test/test_data/test-requests.js.map index 9acd127d..7ea07c13 100644 --- a/build/test/test_data/test-requests.js.map +++ b/build/test/test_data/test-requests.js.map @@ -1 +1 @@ -{"version":3,"file":"test-requests.js","sourceRoot":"","sources":["../../../test/test_data/test-requests.ts"],"names":[],"mappings":";;AAaA;;;GAGG;AACU,QAAA,mBAAmB,GAAoC;IAClE,EAAE,EAAE;QACF,aAAa,EAAE;YACb;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,OAAO;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;aACzC;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,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,OAAO;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;gBAC3C,aAAa,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;aACvC;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,0BAA0B;gBAC/B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;gBAC5C,aAAa,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;aACnC;YACD;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,WAAW;gBAChB,IAAI,EAAE,IAAI;gBACV,aAAa,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;aACvC;SACF;QACD,iBAAiB,EAAE;YACjB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;SACxE;KACF;CACF,CAAC;AAEW,QAAA,8BAA8B,GAAoC;IAC7E,EAAE,EAAE;QACF,aAAa,EAAE;YACb;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,OAAO;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;gBACxD,aAAa,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aACnD;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,8BAA8B;gBACnC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;gBACzD,aAAa,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aACnD;SACF;KACF;CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"test-requests.js","sourceRoot":"","sources":["../../../test/test_data/test-requests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D;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,8BAA8B;gBACnC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;gBACzD,aAAa,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aACnD;SACF;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/build/test/test_data/test-target-servers.js b/build/test/test_data/test-target-servers.js index 0cba3950..b4c1ab1c 100644 --- a/build/test/test_data/test-target-servers.js +++ b/build/test/test_data/test-target-servers.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.STRICTLY_NON_COMPLIANT_SERVERS = exports.NON_COMPLIANT_SERVERS = void 0; const express = require("express"); const config_1 = require("../config"); function responderTo(method, path, routeHandler) { diff --git a/build/test/test_data/test-target-servers.js.map b/build/test/test_data/test-target-servers.js.map index d92cb0ca..343d9aac 100644 --- a/build/test/test_data/test-target-servers.js.map +++ b/build/test/test_data/test-target-servers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-target-servers.js","sourceRoot":"","sources":["../../../test/test_data/test-target-servers.ts"],"names":[],"mappings":";;AAAA,mCAAmC;AAInC,sCAA+C;AAa/C,SAAS,WAAW,CAClB,MAAc,EACd,IAAY,EACZ,YAAoC;IAEpC,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,GAAG,GAAwB,OAAO,EAAE,CAAC;QACzC,GAAW,CAAC,MAAM,CAAiC,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAC1E,OAAO,GAAG,CAAC,MAAM,CAAC,2BAAkB,CAAC,CAAC;IACxC,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACU,QAAA,qBAAqB,GAE9B;IACF,EAAE,EAAE;QACF,aAAa,EAAE;YACb;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,OAAO;oBACZ,IA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CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"test-target-servers.js","sourceRoot":"","sources":["../../../test/test_data/test-target-servers.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAInC,sCAA+C;AAa/C,SAAS,WAAW,CAClB,MAAc,EACd,IAAY,EACZ,YAAoC;IAEpC,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,GAAG,GAAwB,OAAO,EAAE,CAAC;QACzC,GAAW,CAAC,MAAM,CAAiC,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAC1E,OAAO,GAAG,CAAC,MAAM,CAAC,2BAAkB,CAAC,CAAC;IACxC,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACU,QAAA,qBAAqB,GAE9B;IACF,EAAE,EAAE;QACF,aAAa,EAAE;YACb;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,OAAO;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;iBACzC;gBACD,SAAS,EAAE,WAAW,CACpB,MAAM,EACN,OAAO,EACP,CAAC,IAAa,EAAE,GAAa,EAAE,EAAE;oBAC/B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;gBAC7C,CAAC,CACF;gBACD,aAAa,EAAE;oBACb,OAAO,EAAE,UAAU;oBACnB,MAAM,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE;iBACtC;aACF;SACF;QACD,mBAAmB,EAAE;QACnB,kBAAkB;SACnB;QACD,aAAa,EAAE;YACb;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,OAAO;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;iBACzC;gBACD,SAAS,EAAE,WAAW,CACpB,MAAM,EACN,OAA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iBAAiB,EAAE;QACjB,kBAAkB;SACnB;KACF;CACF,CAAC;AAEW,QAAA,8BAA8B,GAEvC;IACF,EAAE,EAAE;QACF,aAAa,EAAE;YACb;gBACE,OAAO,EAAE;oBACP,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,OAAO;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;iBACzC;gBACD,SAAS,EAAE,WAAW,CACpB,MAAM,EACN,OAAO,EACP,CAAC,IAAa,EAAE,GAAa,EAAE,EAAE;oBAC/B,GAAG;yBACA,MAAM,CAAC,GAAG,CAAC;yBACX,IAAI,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;gBAC5D,CAAC,CACF;gBACD,aAAa,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aACnD;SACF;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/build/test/util/io.js b/build/test/util/io.js index b04881ff..3ee49113 100644 --- a/build/test/util/io.js +++ b/build/test/util/io.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.walkSync = exports.readDirFilesSync = void 0; const fs = require("fs"); const path = require("path"); /** diff --git a/build/test/util/io.js.map b/build/test/util/io.js.map index 67f47e2e..8d73274c 100644 --- a/build/test/util/io.js.map +++ b/build/test/util/io.js.map @@ -1 +1 @@ -{"version":3,"file":"io.js","sourceRoot":"","sources":["../../../test/util/io.ts"],"names":[],"mappings":";;AAAA,yBAAyB;AACzB,6BAA6B;AAE7B;;GAEG;AACH,QAAe,CAAC,CAAC,gBAAgB,CAAC,GAAW;IAC3C,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,C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C,GAAW;IACnC,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxC,MAAM,WAAW,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1D,IAAI,WAAW,EAAE;YACf,KAAK,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SAC7B;aAAM;YACL,MAAM,UAAU,CAAC;SAClB;KACF;AACH,CAAC;AAZD,4BAYC"} \ No newline at end of file diff --git a/build/test/util/process.js b/build/test/util/process.js index bb368bea..696b9974 100644 --- a/build/test/util/process.js +++ b/build/test/util/process.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.killProcess = exports.killProcesses = exports.killOnPort = void 0; const child_process_1 = require("child_process"); const util = require("util"); const exec = util.promisify(child_process_1.exec); diff --git a/build/test/util/process.js.map b/build/test/util/process.js.map index f382337c..1c28f9e5 100644 --- a/build/test/util/process.js.map +++ b/build/test/util/process.js.map @@ -1 +1 @@ -{"version":3,"file":"process.js","sourceRoot":"","sources":["../../../test/util/process.ts"],"names":[],"mappings":";;AAAA,iDAA8C;AAC9C,6BAA6B;AAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,oBAAK,CAAC,CAAC;AAEnC,8DAA8D;AACvD,KAAK,UAAU,UAAU,CAAC,IAAqB;IACpD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC,CAAC;KACxE;IAED,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QAChC,OAAO,IAAI,CACT,wBAAwB,IAAI,4EAA4E,CACzG,CAAC;KACH;SAAM;QACL,OAAO,IAAI,CACT,eAAe,IAAI,8DAA8D,CAClF,CAAC;KACH;AACH,CAAC;AAdD,gCAcC;AAED,0CAA0C;AAC1C,SAAgB,aAAa,CAAC,IAAc;IAC1C,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACxD,CAAC;AAFD,sCAEC;AAED,qCAAqC;AAC9B,KAAK,UAAU,WAAW,CAAC,GAAW;IAC3C,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IACnC,IAAI;QACF,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC;SAC9B;aAAM;YACL,MAAM,IAAI,CAAC,gBAAgB,GAAG,GAAG,GAAG,QAAQ,CAAC,CAAC;SAC/C;KACF;IAAC,OAAO,EAAE,EAAE;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YAChC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;SAClD;KACF;AACH,CAAC;AAdD,kCAcC"} \ No newline at end of file +{"version":3,"file":"process.js","sourceRoot":"","sources":["../../../test/util/process.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,6BAA6B;AAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,oBAAK,CAAC,CAAC;AAEnC,8DAA8D;AACvD,KAAK,UAAU,UAAU,CAAC,IAAqB;IACpD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC,CAAC;KACxE;IAED,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QAChC,OAAO,IAAI,CACT,wBAAwB,IAAI,4EAA4E,CACzG,CAAC;KACH;SAAM;QACL,OAAO,IAAI,CACT,eAAe,IAAI,8DAA8D,CAClF,CAAC;KACH;AACH,CAAC;AAdD,gCAcC;AAED,0CAA0C;AAC1C,SAAgB,aAAa,CAAC,IAAc;IAC1C,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACxD,CAAC;AAFD,sCAEC;AAED,qCAAqC;AAC9B,KAAK,UAAU,WAAW,CAAC,GAAW;IAC3C,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IACnC,IAAI;QACF,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC;SAC9B;aAAM;YACL,MAAM,IAAI,CAAC,gBAAgB,GAAG,GAAG,GAAG,QAAQ,CAAC,CAAC;SAC/C;KACF;IAAC,OAAO,EAAE,EAAE;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YAChC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;SAClD;KACF;AACH,CAAC;AAdD,kCAcC"} \ No newline at end of file diff --git a/build/test/util/testing.js b/build/test/util/testing.js index eb187a45..88f1823c 100644 --- a/build/test/util/testing.js +++ b/build/test/util/testing.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.testRequestForEachFileWithServers = exports.spawnProxyWithMockServer = exports.spawnMockServer = exports.spawnProxyServer = exports.testRequestForEachFile = exports.withServers = exports.assertThrowsAsync = exports.formatRequest = void 0; const debug = require('debug'); const chalk = require("chalk"); const assert = require("assert"); diff --git a/build/test/util/testing.js.map b/build/test/util/testing.js.map index e52dccf8..1ba6b9d3 100644 --- a/build/test/util/testing.js.map +++ b/build/test/util/testing.js.map @@ -1 +1 @@ -{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../test/util/testing.ts"],"names":[],"mappings":";;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,+BAAgC;AAChC,iCAAiC;AAEjC,iDAAoD;AACpD,6BAA6B;AAC7B,kCAAkC;AAElC,sCAA4E;AAE5E,uCAAwD;AACxD,qEAA+D;AAC/D,yCAA6C;AAC7C,6BAAwC;AAGxC;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,GAAuB;IACnD,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;IACrC,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,EAAE;QACnC,MAAM,IAAI,GACR,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;KACvB;SAAM;QACL,OAAO,CAAC,CAAC;KACV;AACH,CAAC;AATD,sCASC;AAEM,KAAK,UAAU,iBAAiB,CAAC,EAAc,EAAE,MAAc;IACpE,IAAI,CAAC,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IACjB,IAAI;QACF,MAAM,EAAE,EAAE,CAAC;KACZ;IAAC,OAAO,CAAC,EAAE;QACV,CAAC,GAAG,GAAG,EAAE;YACP,MAAM,CAAC,CAAC;QACV,CAAC,CAAC;KACH;YAAS;QACR,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;KAC1B;AACH,CAAC;AAXD,8CAWC;AAED;;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AAC,CAAC;gBAC5C,MAAM,kBAAW,CAAC,UAAU,CAAC,CAAC;aAC/B;YAED,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;YAC7C,MAAM,kBAAW,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC;AAvED,8EAuEC"} \ No newline at end of file +{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../test/util/testing.ts"],"names":[],"mappings":";;;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,+BAAgC;AAChC,iCAAiC;AAEjC,iDAAoD;AACpD,6BAA6B;AAC7B,kCAAkC;AAElC,sCAA4E;AAE5E,uCAAwD;AACxD,qEAA+D;AAC/D,yCAA6C;AAC7C,6BAAwC;AAGxC;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,GAAuB;IACnD,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;IACrC,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,EAAE;QACnC,MAAM,IAAI,GACR,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;KACvB;SAAM;QACL,OAAO,CAAC,CAAC;KACV;AACH,CAAC;AATD,sCASC;AAEM,KAAK,UAAU,iBAAiB,CAAC,EAAc,EAAE,MAAc;IACpE,IAAI,CAAC,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IACjB,IAAI;QACF,MAAM,EAAE,EAAE,CAAC;KACZ;IAAC,OAAO,CAAC,EAAE;QACV,CAAC,GAAG,GAAG,EAAE;YACP,MAAM,CAAC,CAAC;QACV,CAAC,CAAC;KACH;YAAS;QACR,MAAM,CA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AS,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC;gBAEvD,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;gBAC5C,MAAM,kBAAW,CAAC,UAAU,CAAC,CAAC;aAC/B;YAED,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;YAC7C,MAAM,kBAAW,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC;AAvED,8EAuEC"} \ No newline at end of file diff --git a/build/types/errors.js b/build/types/errors.js index 4d2d6834..f60d5c96 100644 --- a/build/types/errors.js +++ b/build/types/errors.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.SchemaDereferencingException = exports.SchemaValidationException = exports.ResponseParsingError = void 0; class ResponseParsingError extends Error { constructor(message) { super(message); diff --git a/build/types/errors.js.map b/build/types/errors.js.map index 60dac64d..42785f02 100644 --- a/build/types/errors.js.map +++ b/build/types/errors.js.map @@ -1 +1 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../types/errors.ts"],"names":[],"mappings":";;AAAA,MAAa,oBAAqB,SAAQ,KAAK;IAC7C,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;IAElC,CAAC;CACF;AAJD,oDAIC;AAED,MAAa,yBAA0B,SAAQ,KAAK;IAClD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;IAElC,CAAC;CACF;AAJD,8DAIC;AAED,MAAa,4BAA6B,SAAQ,KAAK;IACrD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;IAElC,CAAC;CACF;AAJD,oEAIC"} \ No newline at end of file +{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../types/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAqB,SAAQ,KAAK;IAC7C,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;IAElC,CAAC;CACF;AAJD,oDAIC;AAED,MAAa,yBAA0B,SAAQ,KAAK;IAClD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;IAElC,CAAC;CACF;AAJD,8DAIC;AAED,MAAa,4BAA6B,SAAQ,KAAK;IACrD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;IAElC,CAAC;CACF;AAJD,oEAIC"} \ No newline at end of file diff --git a/src/cli.ts b/src/cli.ts index 8e02521e..64cd48ed 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -57,7 +57,7 @@ if (!program.target) { } const targetPortMatch = (program.target as string).match( - /\w+:\/\/\w+:(\d{4})(\/|$)/, + /\w+:\/\/[\w\.\-]+:(\d{1,4})(\/|$)/, ); const targetPort: string = targetPortMatch !== null ? targetPortMatch[1] : '';