UNPKG

unmock-core

Version:

[![npm](https://img.shields.io/npm/v/unmock-core.svg)][npmjs] [![CircleCI](https://circleci.com/gh/unmock/unmock-js.svg?style=svg)](https://circleci.com/gh/unmock/unmock-js) [![codecov](https://codecov.io/gh/unmock/unmock-js/branch/dev/graph/badge.svg)](h

19 lines 748 B
import { ISerializedRequest } from "../interfaces"; import { OpenAPIObject } from "./interfaces"; export declare class OASMatcher { static normalizeRequestPathToServerPath(reqPath: string, serverPathPrefix: string): string; private static buildRegexpForPaths; private readonly schema; private readonly endpointToRegexMapping; constructor({ schema }: { schema: OpenAPIObject; }); matchToOperationObject(sreq: ISerializedRequest): import("loas3/dist/generated/full").Operation | undefined; findEndpoint(reqPath: string): { schemaEndpoint: string; normalizedEndpoint: string; } | undefined; private findMatchingPathItem; private matchesServer; } //# sourceMappingURL=matcher.d.ts.map