Socket
Socket
Sign inDemoInstall

probot

Package Overview
Dependencies
Maintainers
1
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

probot - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

docs/best-practices.md

7

index.js
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 => {

5

lib/paginate.js
/* 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;

3

package.json
{
"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:

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