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

@makeflow/gateway

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@makeflow/gateway - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

5

bld/library/targets/proxy-target.js

@@ -5,2 +5,3 @@ "use strict";

const stream_1 = require("stream");
const url_1 = require("url");
const http_proxy_1 = require("http-proxy");

@@ -101,5 +102,5 @@ const target_1 = require("../target");

function parseURL(url) {
const [, path, query] = url.match(/^([^?]*)((?:\?.*)?)$/);
return [path, query];
const { pathname, search } = new url_1.URL(url, 'protocol://hostname');
return [pathname, search];
}
//# sourceMappingURL=proxy-target.js.map

2

package.json
{
"name": "@makeflow/gateway",
"version": "0.3.1",
"version": "0.3.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Chengdu Mufan Technology Co., Ltd.",

import type {IncomingMessage} from 'http';
import {PassThrough} from 'stream';
import {URL} from 'url';

@@ -159,5 +160,4 @@ import type {NextFunction, Request, Response} from 'express';

function parseURL(url: string): [path: string, query: string] {
const [, path, query] = url.match(/^([^?]*)((?:\?.*)?)$/)!;
return [path, query];
const {pathname, search} = new URL(url, 'protocol://hostname');
return [pathname, search];
}

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