@makeflow/gateway
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -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 |
{ | ||
"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
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
47312
990