Comparing version 1.1.9 to 1.1.10
@@ -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 @@ }; |
@@ -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 @@ } |
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
190149
4338