@unleash/proxy
Advanced tools
Comparing version 1.4.6 to 1.4.7
"use strict"; | ||
/// <reference path="./types/openapi.d.ts" /> | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -4,0 +3,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.OpenApiService = void 0; | ||
const express_openapi_1 = __importDefault(require("@unleash/express-openapi")); | ||
const openapi_1 = __importDefault(require("@wesleytodd/openapi")); | ||
const _1 = require("."); | ||
@@ -14,3 +14,3 @@ const common_responses_1 = require("./common-responses"); | ||
this.config = config; | ||
this.api = (0, express_openapi_1.default)(this.docsPath(), (0, _1.createOpenApiSchema)(config.proxyBasePath, config.clientKeysHeaderName), { coerce: true }); | ||
this.api = (0, openapi_1.default)(this.docsPath(), (0, _1.createOpenApiSchema)(config.proxyBasePath, config.clientKeysHeaderName), { coerce: true }); | ||
} | ||
@@ -24,3 +24,3 @@ docsPath() { | ||
app.use(this.api); | ||
app.use(this.docsPath(), this.api.swaggerui); | ||
app.use(this.docsPath(), this.api.swaggerui()); | ||
} | ||
@@ -27,0 +27,0 @@ // Create request validation middleware |
{ | ||
"name": "@unleash/proxy", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "The Unleash Proxy (Open-Source)", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@unleash/express-openapi": "^0.3.0", | ||
"@wesleytodd/openapi": "^1.1.0", | ||
"compression": "^1.7.4", | ||
@@ -45,0 +45,0 @@ "cors": "^2.8.5", |
@@ -1,3 +0,1 @@ | ||
/// <reference path="./types/openapi.d.ts" /> | ||
import { createApp } from './app'; | ||
@@ -4,0 +2,0 @@ import Client from './client'; |
@@ -1,2 +0,2 @@ | ||
import openapi, { type IExpressOpenApi } from '@unleash/express-openapi'; | ||
import openapi, { type IExpressOpenApi } from '@wesleytodd/openapi'; | ||
import type { Application, RequestHandler } from 'express'; | ||
@@ -33,3 +33,3 @@ import type { OpenAPIV3 } from 'openapi-types'; | ||
app.use(this.api); | ||
app.use(this.docsPath(), this.api.swaggerui); | ||
app.use(this.docsPath(), this.api.swaggerui()); | ||
} | ||
@@ -36,0 +36,0 @@ |
// Partial types for "@unleash/express-openapi". | ||
declare module '@unleash/express-openapi' { | ||
declare module '@wesleytodd/openapi' { | ||
import type { RequestHandler } from 'express'; | ||
@@ -8,3 +8,3 @@ | ||
schema: (name: string, schema: OpenAPIV3.SchemaObject) => void; | ||
swaggerui: RequestHandler; | ||
swaggerui: () => RequestHandler; | ||
} | ||
@@ -11,0 +11,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3458120
20105
+ Added@wesleytodd/openapi@^1.1.0
+ Added@wesleytodd/openapi@1.1.0(transitive)
+ Addedajv@8.17.1(transitive)
+ Addedajv-formats@2.1.1(transitive)
+ Addedajv-keywords@5.1.0(transitive)
+ Addedfast-uri@3.0.5(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedpath-to-regexp@6.3.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedswagger-ui-dist@5.18.2(transitive)
+ Addedyaml@2.7.0(transitive)
- Removed@unleash/express-openapi@^0.3.0
- Removed@unleash/express-openapi@0.3.0(transitive)
- Removedajv@6.12.6(transitive)
- Removeddepd@1.1.2(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedhttp-errors@1.8.1(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedpath-to-regexp@2.4.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedstatuses@1.5.0(transitive)
- Removedswagger-ui-dist@4.19.1(transitive)
- Removeduri-js@4.4.1(transitive)