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

hubot

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

src/scripts/httpd.coffee

11

CHANGELOG.md

@@ -0,1 +1,12 @@

v2.1.3
======
* Hubot now has a web interface and supports connect middleware, examples in httpd.coffee - atmos / tombell
module.exports = (robot) ->
robot.router.get "/hubot/version", (req, res) ->
res.end robot.version
* Add a catchAll callback that handles responses that match nothing else - titanous / ejfinnerman
module.exports = (robot) ->
robot.catchAll (msg) ->
router.get "/hubot/version", (req, res) ->
v2.1.2

@@ -2,0 +13,0 @@ ======

5

package.json
{
"name": "hubot",
"version": "2.1.2",
"version": "2.1.3",
"author": "hubot",

@@ -21,3 +21,4 @@ "keywords": "github hubot campfire bot",

"scoped-http-client": "0.9.6",
"log": "1.2.0"
"log": "1.2.0",
"connect": "1.8.5"
},

@@ -24,0 +25,0 @@

@@ -52,2 +52,19 @@ # Hubot

## HTTP Listener
Hubot has a HTTP listener which listens on the port specified by the `PORT`
environment variable.
You can specify routes to listen on in your scripts by using the `router`
property on `robot`.
```coffeescript
module.exports = (robot) ->
robot.router.get "/hubot/version", (req, res) ->
res.end robot.version
```
There are functions for GET, POST, PUT and DELETE, which all take a route and
callback function that accepts a request and a response.
## Testing hubot locally

@@ -54,0 +71,0 @@

2

src/templates/package.json

@@ -18,3 +18,3 @@ {

"dependencies": {
"hubot": "2.1.2",
"hubot": "2.1.3",
"hubot-scripts": ">=2.0.4",

@@ -21,0 +21,0 @@ "optparse": "1.0.3"

@@ -16,2 +16,19 @@ # Hubot

## HTTP Listener
Hubot has a HTTP listener which listens on the port specified by the `PORT`
environment variable.
You can specify routes to listen on in your scripts by using the `router`
property on `robot`.
```coffeescript
module.exports = (robot) ->
robot.router.get "/hubot/version", (req, res) ->
res.end robot.version
```
There are functions for GET, POST, PUT and DELETE, which all take a route and
callback function that accepts a request and a response.
### Redis

@@ -18,0 +35,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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