hubot-nextbus 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hubot-nextbus",
3
3
  "description": "Shows when the next transit vehicle will arrive at a particular stop.",
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "author": "Stephen Yeargin <stephen@yearg.in>",
6
6
  "homepage": "https://github.com/transitnownash/hubot-nextbus",
7
7
  "license": "MIT",
@@ -24,14 +24,14 @@
24
24
  "hubot": "^3"
25
25
  },
26
26
  "devDependencies": {
27
- "chai": "^4.3.6",
27
+ "chai": "^4.3.7",
28
28
  "coffee-script": "^1.12.7",
29
29
  "hubot-test-helper": "^1.9.0",
30
- "husky": "^8.0.1",
31
- "mocha": "^10.0.0",
30
+ "husky": "^8.0.2",
31
+ "mocha": "^10.1.0",
32
32
  "nock": "^13.2.9",
33
- "release-it": "^15.4.2",
34
- "sinon": "^14.0.0",
33
+ "release-it": "^15.5.1",
34
+ "sinon": "^15.0.0",
35
35
  "sinon-chai": "^3.7.0"
36
36
  },
37
37
  "main": "index.coffee",
@@ -15,17 +15,17 @@
15
15
  # Author:
16
16
  # stephenyeargin
17
17
 
18
- moment = require('moment')
19
- AsciiTable = require('ascii-table')
20
- baseURL = process.env.HUBOT_NEXTBUS_BASE_URL || 'https://gtfs.transitnownash.org'
21
- latlon = process.env.HUBOT_NEXTBUS_LAT_LON
22
- defaultStopId = process.env.HUBOT_NEXTBUS_STOP_ID
23
-
24
18
  module.exports = (robot) ->
19
+ moment = require('moment')
20
+ AsciiTable = require('ascii-table')
21
+ baseURL = process.env.HUBOT_NEXTBUS_BASE_URL || 'https://gtfs.transitnownash.org'
22
+ latlon = process.env.HUBOT_NEXTBUS_LAT_LON
23
+ defaultStopId = process.env.HUBOT_NEXTBUS_STOP_ID
24
+
25
25
  # query the default stop ID or location's closest bus stop
26
26
  robot.respond /(?:bus|nextbus)(?: me)?$/i, (msg) ->
27
27
  if defaultStopId
28
- queryStopById stop_id, msg
28
+ queryStopById defaultStopId, msg
29
29
  return
30
30
 
31
31
  getAPIResponse "stops/near/#{latlon}/1000.json?per_page=5", msg, (stops) ->