Comparing version 0.3.0 to 0.3.1
const cacheManager = require('cache-manager'); | ||
const createWebhook = require('github-webhook-handler'); | ||
const createIntegration = require('github-integration'); | ||
const Raven = require('raven'); | ||
const createRobot = require('./lib/robot'); | ||
@@ -22,2 +23,8 @@ const createServer = require('./lib/server'); | ||
if (process.env.SENTRY_URL) { | ||
Raven.config(process.env.SENTRY_URL, { | ||
captureUnhandledRejections: true | ||
}).install({}); | ||
} | ||
// Show trace for any unhandled rejections | ||
@@ -24,0 +31,0 @@ process.on('unhandledRejection', reason => { |
/* eslint-disable no-await-in-loop */ | ||
module.exports = async function (responsePromise, callback) { | ||
// Default callback should just return the response passed to it. | ||
const defaultCallback = response => response; | ||
module.exports = async function (responsePromise, callback = defaultCallback) { | ||
let collection = []; | ||
@@ -5,0 +8,0 @@ let response = await responsePromise; |
{ | ||
"name": "probot", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "a trainable robot that responds to activity on GitHub", | ||
@@ -27,2 +27,3 @@ "repository": "https://github.com/probot/probot", | ||
"pkg-conf": "^2.0.0", | ||
"raven": "^1.2.0", | ||
"resolve": "^1.3.2" | ||
@@ -29,0 +30,0 @@ }, |
- [ ] move robot.auth to context | ||
- [ ] context.isBot() | ||
- [ ] robot.config(plugin) - loads plugin config from package.json | ||
@@ -10,4 +9,2 @@ - [ ] context.config - loads config from repository | ||
Schedule | ||
- [ ] persist configs for each installation | ||
@@ -14,0 +11,0 @@ Use Cases: |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
47888
12
611
7
+ Addedraven@^1.2.0
+ Addedcookie@0.3.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedlsmod@1.0.0(transitive)
+ Addedraven@1.2.1(transitive)
+ Addedstack-trace@0.0.9(transitive)
+ Addeduuid@3.0.0(transitive)