openapi-mock-express-middleware
Advanced tools
Comparing version 4.2.0 to 4.3.1
@@ -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
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
102224
26
1395
11
+ Added@types/express@^4.17.13
+ Added@types/body-parser@1.19.5(transitive)
+ Added@types/connect@3.4.38(transitive)
+ Added@types/express@4.17.21(transitive)
+ Added@types/express-serve-static-core@4.19.6(transitive)
+ Added@types/http-errors@2.0.4(transitive)
+ Added@types/mime@1.3.5(transitive)
+ Added@types/node@22.10.2(transitive)
+ Added@types/qs@6.9.17(transitive)
+ Added@types/range-parser@1.2.7(transitive)
+ Added@types/send@0.17.4(transitive)
+ Added@types/serve-static@1.15.7(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bound@1.0.2(transitive)
+ Addedchokidar@4.0.1(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddunder-proto@1.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedpath-to-regexp@8.2.0(transitive)
+ Addedreaddirp@4.0.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedchokidar@3.6.0(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpath-to-regexp@7.2.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
Updatedajv@^8.17.1
Updatedchokidar@^4.0.1
Updatedexpress@^4.21.0
Updatedpath-to-regexp@^8.2.0