Socket
Socket
Sign inDemoInstall

@machinat/http

Package Overview
Dependencies
20
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0-beta.0

LICENSE

4

lib/connector.js

@@ -89,3 +89,3 @@ "use strict";

matchedPath: undefined,
trailingPath: undefined,
trailingPath: pathname.slice(1),
});

@@ -117,3 +117,3 @@ }

matchedPath: undefined,
trailingPath: undefined,
trailingPath: pathname.slice(1),
});

@@ -120,0 +120,0 @@ }

@@ -7,3 +7,3 @@ /// <reference types="node" />

matchedPath?: string;
trailingPath?: string;
trailingPath: string;
};

@@ -10,0 +10,0 @@ export declare type RequestHandler = (req: IncomingMessage, res: ServerResponse, routingInfo: RoutingInfo) => void;

@@ -7,3 +7,3 @@ "use strict";

const getTrailingPath = (parent, child) => {
const relativePath = (0, path_1.relative)(parent, child);
const relativePath = path_1.posix.relative(parent, child);
return relativePath === '' || relativePath.slice(0, 2) !== '..'

@@ -10,0 +10,0 @@ ? relativePath

{
"name": "@machinat/http",
"version": "0.5.0",
"version": "0.6.0-beta.0",
"author": "Patrick Liu <zeldalink0515@gmail.com> (https://github.com/lrills)",

@@ -36,5 +36,5 @@ "repository": {

"peerDependencies": {
"@machinat/core": "^0.5.0"
"@machinat/core": "^0.6.0-beta"
},
"gitHead": "b578b3b403f3972a409fa6981bd8d08907425b32"
"gitHead": "ac10eae0688f753fa65e466102d7f7170c702e8a"
}

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc