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

overalls

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overalls - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

LICENSE

18

lib/overalls.js

@@ -65,12 +65,14 @@ function splitPath (path) {

for (i = 0; i < il; i += 1) {
match = compareSegments(routeSegments[i], requestSegments[i]);
match = compareSegments(routeSegments[i], requestSegments[i]);
if (typeof match === "object") {
req.params = {};
req.params[match.key] = match.value;
} else if (!match) {
delete req.params
return;
}
if (typeof match === "object") {
req.params = {};
req.params[match.key] = match.value;
} else if (!match) {
delete req.params
return;
}
if (i === il-1 && match) {
req.match = routeSegments.join("/");
}
}

@@ -77,0 +79,0 @@ });

{
"name": "overalls",
"version": "1.0.0",
"version": "1.0.1",
"description": "Decorate HTTP requests with path parameters",

@@ -24,3 +24,3 @@ "main": "index.js",

"author": "William Fisher",
"license": "ISC",
"license": "MIT",
"bugs": {

@@ -27,0 +27,0 @@ "url": "https://github.com/FilWisher/overalls/issues"

@@ -9,3 +9,3 @@ # overalls

##### Use:
##### use:
```js

@@ -50,3 +50,3 @@ var http = require("http");

## API
## api

@@ -90,1 +90,5 @@ overalls exposes a single function:

```
## license
MIT

@@ -128,2 +128,3 @@ var test = require("tape");

t.ok(req.hasOwnProperty("params"), "req decorated with params property");
t.equals(req.params.issue, "first", "req.params has correct values");

@@ -130,0 +131,0 @@ t.end();

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