connect-rest
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -75,3 +75,3 @@ /* | ||
var Logger = require('./logger'); | ||
var VERSION = exports.VERSION = '1.8.0'; | ||
var VERSION = exports.VERSION = '1.8.1'; | ||
var logger; | ||
@@ -110,2 +110,8 @@ | ||
options = options || {}; | ||
if( options.options ) | ||
exports.options( path, function( request, content, cb ){ | ||
cb( null, 'OK', { headers: { Allow: key } } ); | ||
} ); | ||
mapping[ key ].push( new Route( bus, CONTEXT, path, prototypeObject, options, | ||
@@ -331,5 +337,3 @@ function(request, content, callback){ | ||
exports.publish = function (services){ | ||
var keys = _.keys(services); | ||
_.each( _.values( services ), function(element, index, list){ | ||
var name = keys[index]; | ||
_.each( services, function(element, name, list){ | ||
if( _.isFunction( element ) && SERVICE_METHOD_PATTERN.test( name ) ){ | ||
@@ -336,0 +340,0 @@ if( element.length === 1 ) |
{ | ||
"name": "connect-rest", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Exceptionally featureful RESTful web services middleware for Connect.", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
}, | ||
"_id": "connect-rest@1.8.0" | ||
"_id": "connect-rest@1.8.1" | ||
} |
CONNECT-REST - Exceptionally featureful Restful web services middleware for connect node.js | ||
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/imrefazekas/connect-rest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
[![Join the chat at https://gitter.im/imrefazekas/connect-rest](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/imrefazekas/connect-rest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
@@ -14,2 +14,4 @@ [![NPM](https://nodei.co/npm/connect-rest.png)](https://nodei.co/npm/connect-rest/) | ||
======== | ||
[connect-rest](https://github.com/imrefazekas/connect-rest) is a featureful very easy-to-use middleware for [connect](http://www.senchalabs.org/connect/) for building REST APIs. The library has a stunning feature list beyond basic rest functionality. | ||
@@ -16,0 +18,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
1564
945
956479
25