Socket
Socket
Sign inDemoInstall

probot

Package Overview
Dependencies
Maintainers
2
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.7.4 to 0.7.5

8

CHANGELOG.md
# Changelog
## 0.7.5 (2017-07-13)
Fixes:
- Line breaks in the `PRIVATE_KEY` environment variable are now replaced.
[View full changelog](https://github.com/probot/probot/compare/v0.7.4...v0.7.5)
## 0.7.4 (2017-06-30)

@@ -4,0 +12,0 @@

2

docs/plugins.md

@@ -95,3 +95,3 @@ # Plugins

Plugins can be published in NPM modules, which can either be deployed as stand-alone bots, or combined with other plugins.
Plugins can be published in npm modules, which can either be deployed as stand-alone bots, or combined with other plugins.

@@ -98,0 +98,0 @@ Use the [plugin-template](https://github.com/probot/plugin-template) repository to get started building your plugin as a node module.

@@ -19,3 +19,3 @@ const fs = require('fs');

if (process.env.PRIVATE_KEY) {
return process.env.PRIVATE_KEY;
return process.env.PRIVATE_KEY.replace(/\\n/g, '\n');
}

@@ -22,0 +22,0 @@ if (process.env.PRIVATE_KEY_PATH) {

{
"name": "probot",
"version": "0.7.4",
"version": "0.7.5",
"description": "a trainable robot that responds to activity on GitHub",

@@ -5,0 +5,0 @@ "repository": "https://github.com/probot/probot",

@@ -51,2 +51,17 @@ const fs = require('fs');

describe('when a PRIVATE_KEY has line breaks', function () {
beforeEach(function () {
process.env.PRIVATE_KEY = 'line 1\\nline 2';
});
afterEach(function () {
delete process.env.PRIVATE_KEY;
});
it('should return the key', function () {
expect(findPrivateKey())
.toEqual('line 1\nline 2');
});
});
describe('when a PRIVATE_KEY_PATH env var is provided', function () {

@@ -53,0 +68,0 @@ beforeEach(function () {

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