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

@unleash/proxy

Package Overview
Dependencies
Maintainers
0
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unleash/proxy - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7

1

dist/index.js
"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 };

6

dist/openapi/openapi-service.js

@@ -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

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