Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-mock-express-middleware

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-mock-express-middleware - npm Package Compare versions

Comparing version 4.2.0 to 4.3.1

3

dist/operations/operation.js

@@ -17,3 +17,4 @@ "use strict";

this.generator = generator;
this.pathRegexp = (0, path_to_regexp_1.pathToRegexp)(this.pathPattern);
const { regexp } = (0, path_to_regexp_1.pathToRegexp)(this.pathPattern);
this.pathRegexp = regexp;
}

@@ -20,0 +21,0 @@ getResponseStatus() {

@@ -5,2 +5,5 @@ import { OpenAPIV3 } from 'openapi-types';

import { Operation } from './operation';
type SecuritySchemes = {
[key: string]: OpenAPIV3.SecuritySchemeObject;
};
export declare class Operations {

@@ -18,5 +21,3 @@ operations: Operation[] | null;

compile(): Promise<void>;
compileFromPath(pathName: string, pathOperations: OpenAPIV3.PathItemObject, securitySchemes?: {
[key: string]: OpenAPIV3.SecuritySchemeObject;
}): Operation[];
compileFromPath(pathName: string, pathOperations: OpenAPIV3.PathItemObject, securitySchemes?: SecuritySchemes): Operation[];
match(req: Request): Promise<Operation | null>;

@@ -29,1 +30,2 @@ }

}) => Operations;
export {};
{
"name": "openapi-mock-express-middleware",
"version": "4.2.0",
"version": "4.3.1",
"description": "Generates express mock-servers from OpenAPI specs",

@@ -52,6 +52,7 @@ "main": "dist/index.js",

"@apidevtools/swagger-parser": "^10.0.3",
"ajv": "^8.16.0",
"chokidar": "^3.5.3",
"@types/express": "^4.17.13",
"ajv": "^8.17.1",
"chokidar": "^4.0.1",
"cookie-parser": "^1.4.6",
"express": "^4.17.2",
"express": "^4.21.0",
"json-schema-faker": "0.5.0-rcv.41",

@@ -61,16 +62,15 @@ "lodash": "^4.17.20",

"openapi-types": "^12.1.3",
"path-to-regexp": "^7.0.0"
"path-to-regexp": "^8.2.0"
},
"devDependencies": {
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.13",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.5",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.10",
"@types/method-override": "0.0.35",
"@types/node": "^20.14.8",
"@types/node": "^22.7.4",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"commitizen": "^4.2.4",
"concurrently": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"commitizen": "^4.3.1",
"concurrently": "^9.0.1",
"cz-conventional-changelog": "^3.3.0",

@@ -82,12 +82,12 @@ "eslint": "^8.8.0",

"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"husky": "^9.1.6",
"jest": "^29.7.0",
"json-schema-faker-types": "^0.1.6",
"nodemon": "^3.1.4",
"prettier": "^3.3.2",
"nodemon": "^3.1.7",
"prettier": "^3.3.3",
"standard-version": "^9.3.2",
"supertest": "^7.0.0",
"ts-jest": "^29.1.5",
"ts-jest": "^29.2.5",
"ts-node": "^10.4.0",
"typescript": "^5.5.2"
"typescript": "^5.6.2"
},

@@ -94,0 +94,0 @@ "config": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc