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

connect-rest

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-rest - npm Package Compare versions

Comparing version 0.0.40 to 0.0.41

4

lib/bus.js

@@ -42,2 +42,6 @@ function Bus(httphelper, _) {

if(this.options.listener){
this.options.listener( self.metrics );
}
if(this.options.console){

@@ -44,0 +48,0 @@ console.log( 'Metrics::', self.metrics );

2

lib/connect-rest.js

@@ -6,3 +6,3 @@ /*

*/
var VERSION = '0.0.40';
var VERSION = '0.0.41';

@@ -9,0 +9,0 @@ var connect = require('connect');

{
"name": "connect-rest",
"version": "0.0.40",
"version": "0.0.41",
"description": "RESTful web services middleware for Connect.",

@@ -49,4 +49,4 @@ "keywords": [

"readme": "README.md",
"_id": "connect-rest@0.0.40",
"_from": "connect-rest@>=0.0.40"
"_id": "connect-rest@0.0.41",
"_from": "connect-rest@>=0.0.41"
}

@@ -10,3 +10,3 @@ [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.

- "reflective" publishing: by providing a single object, its methods will be published as rest services automatically by simple logic
- customizable HTTP management: HTTP status code, mime-types can be set at service and execution level
- customizable HTTP-layer management: HTTP status code, mime-types, headers can be set at service and execution level
- async services: a rest service can call back asynchronously when the answer is made

@@ -426,3 +426,4 @@ - monitoring/measuring: every rest service execution can be enabled for measurement to be collected and populated internally or for external monitoring solutions

populateInterval: 6000,
console: true
console: true,
listener: function(data){ ... }
}

@@ -432,3 +433,5 @@ };

By adding a monitoring to the options of the library, the monitoring can be activated. The population interval is defined via the _populateInterval_ property measured in millisecs. The property _console_ - if present - will print the commulated execution times grouped/structured by paths and version to the console.
The property _listener_ - if present - allows you to pass a function which the populated data will be sent to. This way you can define own function to process the collected measurements.
Note: [newrelic](https://newrelic.com) support is under heavy development ...

@@ -499,2 +502,3 @@

- 0.0.41: listener for populated measurements can be set
- 0.0.40: monitoring services (bus) added

@@ -501,0 +505,0 @@ - 0.0.3X: minor fixes, refined documentation

@@ -54,3 +54,4 @@ var rest = require('../lib/connect-rest');

populateInterval: 6000,
console: true
console: true,
listener: function(data){ console.log(data); }
}

@@ -57,0 +58,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