Comparing version 2.5.6 to 2.5.7
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.invokeController = void 0; | ||
const promise_breaker_1 = __importDefault(require("promise-breaker")); | ||
@@ -8,0 +9,0 @@ const typeUtils_1 = require("../utils/typeUtils"); |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadControllersSync = void 0; | ||
const fs_1 = __importDefault(require("fs")); | ||
@@ -8,0 +9,0 @@ const glob_1 = __importDefault(require("glob")); |
@@ -108,3 +108,4 @@ "use strict"; | ||
if (this._operation.bodyParser) { | ||
body = yield promise_breaker_1.default.call((done) => this._operation.bodyParser.parseReq(this.req, this.origRes, done)); | ||
const bodyParser = this._operation.bodyParser; | ||
body = yield promise_breaker_1.default.call((done) => bodyParser.parseReq(this.req, this.origRes, done)); | ||
body = body || this.req.body; | ||
@@ -111,0 +112,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpPayloadTooLargeError = exports.HttpNotFoundError = exports.ValidationError = exports.HttpBadRequestError = exports.HttpError = exports.ExtendableError = void 0; | ||
class ExtendableError extends Error { | ||
@@ -4,0 +5,0 @@ constructor(message) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -11,5 +21,2 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -19,2 +26,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compileApi = exports.writeHttpResult = exports.compileRunner = exports.compileApiInterface = exports.ValidationError = exports.HttpError = void 0; | ||
const promise_breaker_1 = __importDefault(require("promise-breaker")); | ||
@@ -27,7 +35,7 @@ const pump_1 = __importDefault(require("pump")); | ||
var errors_1 = require("./errors"); | ||
exports.HttpError = errors_1.HttpError; | ||
exports.ValidationError = errors_1.ValidationError; | ||
Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return errors_1.HttpError; } }); | ||
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } }); | ||
const PluginsManager_1 = __importDefault(require("./core/PluginsManager")); | ||
// Export all our public types. | ||
__export(require("./types")); | ||
__exportStar(require("./types"), exports); | ||
/** | ||
@@ -79,3 +87,4 @@ * Reads a JSON or YAML file and bundles all $refs, resulting in a single | ||
if (httpResult.body) { | ||
yield promise_breaker_1.default.call((done2) => pump_1.default(httpResult.body, res, done2)); | ||
const body = httpResult.body; | ||
yield promise_breaker_1.default.call((done2) => pump_1.default(body, res, done2)); | ||
} | ||
@@ -82,0 +91,0 @@ else { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EXEGESIS_OPERATION_ID = exports.EXEGESIS_CONTROLLER = void 0; | ||
exports.EXEGESIS_CONTROLLER = 'x-exegesis-controller'; | ||
exports.EXEGESIS_OPERATION_ID = 'x-exegesis-operationId'; | ||
//# sourceMappingURL=extensions.js.map |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compile = exports.OpenApi = void 0; | ||
const OpenApi_1 = __importDefault(require("./OpenApi")); | ||
@@ -17,0 +18,0 @@ exports.OpenApi = OpenApi_1.default; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -8,0 +20,0 @@ }; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.contentToRequestMediaTypeRegistry = exports.isReferenceObject = exports.isSpecificationExtension = void 0; | ||
const mime_1 = require("../../utils/mime"); | ||
@@ -8,0 +9,0 @@ const RequestMediaType_1 = __importDefault(require("../RequestMediaType")); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -8,0 +20,0 @@ }; |
@@ -279,2 +279,8 @@ "use strict"; | ||
const failure = securityRequirementResult.failure; | ||
if (!failure) { | ||
throw new Error('Missing failure.'); | ||
} | ||
if (!securityRequirementResult.failedSchemeName) { | ||
throw new Error('Missing failed scheme name.'); | ||
} | ||
// No luck with this security requirement. | ||
@@ -281,0 +287,0 @@ if (failure.status === 401 && failure.challenge) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -8,0 +20,0 @@ }; |
export declare function arrayToObject(values: string | string[] | undefined): any; | ||
export declare function removeSimpleTypes(allowedTypes: string[]): ("string" | "array" | "object")[]; | ||
export declare function removeSimpleTypes(allowedTypes: string[]): ("string" | "object" | "array")[]; | ||
export declare function allowedTypesToMap(allowedTypes: string[]): any; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.allowedTypesToMap = exports.removeSimpleTypes = exports.arrayToObject = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -8,0 +9,0 @@ function arrayToObject(values) { |
"use strict"; | ||
// Implements 'spaceDelimited' and 'pipeDelimited' from OAS 3. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.spaceDelimitedParser = exports.pipeDelimitedParser = exports.generateDelimitedParser = void 0; | ||
function generateDelimitedParser(delimiter) { | ||
@@ -5,0 +6,0 @@ return function delimitedParser(location, rawParamValues) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -6,2 +16,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseQueryParameters = exports.parseParameterGroup = exports.generateParser = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -15,2 +26,3 @@ const querystring_1 = __importDefault(require("querystring")); | ||
const pathStyleParser_1 = require("./pathStyleParser"); | ||
__exportStar(require("./types"), exports); | ||
function isMediaTypeParameterDescriptor(descriptor) { | ||
@@ -17,0 +29,0 @@ return descriptor && descriptor.contentType && descriptor.parser; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generatePathStyleParser = void 0; | ||
const querystring_1 = __importDefault(require("querystring")); | ||
@@ -8,0 +9,0 @@ const structuredParser_1 = require("./structuredParser"); |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateGenericSimpleParser = exports.simpleStringArrayParser = exports.simpleArrayParser = exports.simpleStringParser = exports.getSimpleStringParser = void 0; | ||
const json_schema_infer_types_1 = __importDefault(require("../../utils/json-schema-infer-types")); | ||
@@ -8,0 +9,0 @@ const common_1 = require("./common"); |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.explodedStructuredArrayParser = exports.structuredArrayParser = exports.structuredStringParser = exports.generateStructuredParser = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -8,0 +9,0 @@ const common_1 = require("./common"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compileTemplatePath = exports.hasTemplates = void 0; | ||
const lodash_1 = require("lodash"); | ||
@@ -4,0 +5,0 @@ const TEMPLATE_RE = /^(.*?){(.*?)}(.*)$/; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -13,0 +25,0 @@ const lodash_1 = __importDefault(require("lodash")); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateResponseValidator = exports.generateRequestValidator = exports._filterRequiredProperties = exports._fixNullables = void 0; | ||
const ajv_1 = __importDefault(require("ajv")); | ||
@@ -14,0 +27,0 @@ const json_schema_traverse_1 = __importDefault(require("json-schema-traverse")); |
@@ -20,3 +20,2 @@ "use strict"; | ||
}); | ||
// tslint:disable-next-line: no-conditional-assignment | ||
} | ||
@@ -53,3 +52,2 @@ else if ((match = FULL_URL_RE.exec(serverUrl))) { | ||
}; | ||
// tslint:disable-next-line: no-conditional-assignment | ||
} | ||
@@ -56,0 +54,0 @@ else if ((match = ABSOLUTE_URL_RE.exec(serverUrl))) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -13,2 +25,3 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateBodyParser = exports.generateStringParser = void 0; | ||
const jsonPtr = __importStar(require("json-ptr")); | ||
@@ -15,0 +28,0 @@ const querystring_1 = __importDefault(require("querystring")); |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compileOptions = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -8,0 +9,0 @@ const mime_1 = require("./utils/mime"); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.oas3 = void 0; | ||
const oas3 = __importStar(require("openapi3-ts")); | ||
exports.oas3 = oas3; | ||
__exportStar(require("./bodyParser"), exports); | ||
__exportStar(require("./basicTypes"), exports); | ||
__exportStar(require("./core"), exports); | ||
__exportStar(require("./options"), exports); | ||
__exportStar(require("./validation"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.requestMayHaveBody = exports.httpHasBody = void 0; | ||
function httpHasBody(headers) { | ||
@@ -4,0 +5,0 @@ const contentLength = headers['content-length']; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveRef = void 0; | ||
const jsonPtr = __importStar(require("json-ptr")); | ||
@@ -11,0 +24,0 @@ function resolveRefPriv(document, ref) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.jsonPointerStripPrefix = exports.jsonPointerStartsWith = exports.toUriFragment = void 0; | ||
const jsonPtr = __importStar(require("json-ptr")); | ||
@@ -11,0 +24,0 @@ function normalize(path) { |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extractSchema = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -14,0 +27,0 @@ const json_schema_traverse_1 = __importDefault(require("json-schema-traverse")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MimeTypeRegistry = exports.parseMimeType = void 0; | ||
// A mime-type, per RFC 7231 section 3.1.1.1 | ||
@@ -4,0 +5,0 @@ const TCHAR = "[!#$%&'*+-.^_`|~A-Za-z0-9]"; |
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
export default function stringToStream(str: string, encoding?: string): Readable; | ||
export default function stringToStream(str: string, encoding?: BufferEncoding): Readable; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isReadable = void 0; | ||
function isReadable(obj) { | ||
@@ -4,0 +5,0 @@ return obj && obj.pipe && typeof obj.pipe === 'function'; |
{ | ||
"name": "exegesis", | ||
"version": "2.5.6", | ||
"version": "2.5.7", | ||
"description": "Parses OpenAPI documents", | ||
@@ -18,6 +18,6 @@ "main": "lib/index.js", | ||
"lint": "npm run lint:source && npm run lint:markdown && npm run lint:tests", | ||
"lint:source": "tslint -c tslint.json -t stylish 'src/**/*.ts'", | ||
"lint:tests": "tslint -c test/tslint.json -t stylish 'test/**/*.ts'", | ||
"lint:source": "eslint --ext .ts src", | ||
"lint:tests": "eslint --ext .ts test", | ||
"lint:markdown": "markdownlint **/*.md *.md", | ||
"prepare": "npm run build", | ||
"prepare": "husky install && npm run build", | ||
"prepublishOnly": "npm run build && npm test", | ||
@@ -27,7 +27,4 @@ "semantic-release": "semantic-release" | ||
"lint-staged": { | ||
"src/**/*.ts": [ | ||
"tslint -c tslint.json -t stylish" | ||
], | ||
"test/**/*.ts": [ | ||
"tslint -c test/tslint.json -t stylish" | ||
"(src/test)/**/*.(js|jsx|ts|tsx)": [ | ||
"eslint" | ||
] | ||
@@ -66,17 +63,19 @@ }, | ||
"@types/semver": "^7.1.0", | ||
"@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"coveralls": "^3.0.2", | ||
"husky": "^4.0.2", | ||
"lint-staged": "^10.1.0", | ||
"markdownlint-cli": "^0.18.0", | ||
"eslint": "^7.6.0", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^11.0.0", | ||
"markdownlint-cli": "^0.27.0", | ||
"mocha": "^8.0.1", | ||
"nyc": "^15.0.0", | ||
"prettier": "^2.0.5", | ||
"pretty-quick": "^2.0.1", | ||
"pretty-quick": "^3.0.0", | ||
"semantic-release": "^17.0.4", | ||
"supertest-fetch": "^1.2.2", | ||
"ts-node": "^8.0.2", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.3.3" | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.2" | ||
}, | ||
@@ -91,6 +90,6 @@ "dependencies": { | ||
"glob": "^7.1.3", | ||
"json-ptr": "^1.3.1", | ||
"json-schema-traverse": "^0.4.1", | ||
"json-ptr": "^2.2.0", | ||
"json-schema-traverse": "^1.0.0", | ||
"lodash": "^4.17.11", | ||
"openapi3-ts": "^1.2.0", | ||
"openapi3-ts": "^2.0.1", | ||
"promise-breaker": "^5.0.0", | ||
@@ -102,7 +101,2 @@ "pump": "^3.0.0", | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run test:pre-commit" | ||
} | ||
}, | ||
"engines": { | ||
@@ -109,0 +103,0 @@ "node": ">=6.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
319220
4971
32
+ Addedjson-ptr@2.2.0(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedopenapi3-ts@2.0.2(transitive)
+ Addedyaml@1.10.2(transitive)
- Removedjson-ptr@1.3.2(transitive)
- Removedopenapi3-ts@1.4.0(transitive)
Updatedjson-ptr@^2.2.0
Updatedjson-schema-traverse@^1.0.0
Updatedopenapi3-ts@^2.0.1