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

protein

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protein - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

5

index.js

@@ -10,4 +10,2 @@ var http = require('http');

Object.keys(from).forEach(function(key) {
if (key in to) return;
var getter = from.__lookupGetter__(key);

@@ -55,7 +53,6 @@ var setter = from.__lookupSetter__(key);

req.url = url;
if (!next) return (callback || onerror)(err, req, res);
if (route) {
if (req.url.substr(0, route.length) !== route) return loop(err);
req.url = req.url.substr(route.length-1);
req.url = req.url.substr(route.length-1);
}

@@ -62,0 +59,0 @@ try {

2

package.json
{
"name":"protein",
"version":"0.3.1",
"version":"0.3.2",
"repository": "git://github.com/mafintosh/protein",

@@ -5,0 +5,0 @@ "description":"Protein is connect compatible middleware with support for prototype methods, getters, and setters",

@@ -14,3 +14,5 @@ var protein = require('../index');

fn({}, {});
fn({}, {}, function(err) {
throw err;
});
assert.ok(complete);
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