@outtacontrol/socks-router
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@outtacontrol/socks-router", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "routes requests on the socks v5 server.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import { SocksRoute } from './interfaces/SocksRoute'; | ||
import { SocksConnectionCallback } from "./interfaces/SocksConnectionCallback"; | ||
import { SocksAcceptCallback } from "./interfaces/SocksAcceptCallback"; | ||
import { SocksDenyCallback } from "./interfaces/SocksDenyCallback"; | ||
import { SocksProxyInfo } from "./interfaces/SocksProxyInfo"; | ||
import { SocksRoute } from "./interfaces/SocksRoute"; | ||
import { SocksRouteInitialize } from "./interfaces/SocksRouteInitialize"; | ||
import { SocksRouteInterceptor } from "./interfaces/SocksRouteInterceptor"; | ||
import { SocksRouteValidator } from "./interfaces/SocksRouteValidator"; | ||
import { isUriValid } from "./util/isUriValid"; | ||
export { | ||
SocksConnectionCallback, | ||
SocksAcceptCallback, | ||
SocksDenyCallback, | ||
SocksProxyInfo, | ||
SocksRoute, | ||
SocksRouteInitialize, | ||
SocksRouteInterceptor, | ||
SocksRouteValidator, | ||
isUriValid | ||
} | ||
export class Router { | ||
@@ -33,3 +51,3 @@ | ||
} | ||
const validated = route.validate ? await route.validate(info) : undefined; | ||
@@ -41,3 +59,3 @@ if (validated === false) { | ||
} | ||
else if (validated === true) { | ||
@@ -44,0 +62,0 @@ if (route.intercept) { |
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
44272
770