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

director

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

director - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

4

lib/director/http/index.js

@@ -85,2 +85,6 @@ var events = require('events'),

if (typeof path !== 'string' && !path.source) {
path = '';
}
director.Router.prototype.on.call(this, method, path, route);

@@ -87,0 +91,0 @@ };

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"version": "1.1.9",
"version": "1.1.10",
"maintainers": [

@@ -8,0 +8,0 @@ "hij1nx <paolo@nodejitsu.com>",

@@ -5,3 +5,2 @@ var http = require('http'),

director = require('../../../lib/director'),
pkg = require('../../../package.json'),
index;

@@ -29,6 +28,2 @@

if (folder === 'build' && path.basename(file, '.js') === 'director') {
file = 'director-'+pkg.version+'.js'
}
var filepath = path.resolve(root, folder, file);

@@ -35,0 +30,0 @@

@@ -24,2 +24,6 @@ /*

router.post(/foo\/bar/, { stream: true }, handlers.streamBody);
router.path('/a-path', function () {
this.post({ stream: true }, handlers.streamBody);
});
return router;

@@ -32,5 +36,9 @@ },

},
"a POST request to foo/bar": macros.assertPost(9092, 'foo/bar', {
"a POST request to /foo/bar": macros.assertPost(9092, 'foo/bar', {
foo: 'foo',
bar: 'bar'
}),
"a POST request to /a-path": macros.assertPost(9092, 'a-path', {
foo: 'foo',
bar: 'bar'
})

@@ -37,0 +45,0 @@ }

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