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

danger

Package Overview
Dependencies
Maintainers
1
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danger - npm Package Compare versions

Comparing version 0.6.9 to 0.6.10

distribution/ci_source/_tests/_ci_course.test.js

4

changelog.md

@@ -5,2 +5,6 @@ ### master

### 0.6.10
* Brings back the ability to emulate a fake CI run locally via `danger` - orta
### 0.6.9

@@ -7,0 +11,0 @@

14

distribution/ci_source/ci_source.js

@@ -23,2 +23,6 @@ "use strict";

var _Fake = require("./Fake");
var _Fake2 = _interopRequireDefault(_Fake);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -32,5 +36,2 @@

*/
/** The shape of an object that represents an individual CI */
function getCISourceForEnv(env) {

@@ -40,2 +41,3 @@ var travis = new _Travis2.default(env);

var semaphore = new _Semaphore2.default(env);
var fake = new _Fake2.default(env);

@@ -46,6 +48,10 @@ if (travis.isCI) {

return circle;
}if (semaphore.isCI) {
} else if (semaphore.isCI) {
return semaphore;
} else if (fake.isCI) {
return fake;
}
}
/** The shape of an object that represents an individual CI */
//# sourceMappingURL=ci_source.js.map

@@ -11,2 +11,4 @@ "use strict";

var _ci_source_helpers = require("./ci_source_helpers");
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -34,3 +36,3 @@

get: function get() {
return true;
return (0, _ci_source_helpers.ensureEnvKeysExist)(this.env, ["DANGER_FAKE_CI"]);
}

@@ -37,0 +39,0 @@ }, {

{
"name": "danger",
"version": "0.6.9",
"version": "0.6.10",
"description": "Unit tests for Team Culture",

@@ -5,0 +5,0 @@ "main": "distribution/danger.js",

@@ -60,2 +60,3 @@ Danger on Node, wonder what's going on? see [VISION.md](VISION.md)

```bash
export DANGER_FAKE_CI="YEP"
export DANGER_GITHUB_API_TOKEN='xxxxxxxxxx' # a github api token

@@ -62,0 +63,0 @@ export DANGER_TEST_REPO='username/reponame'

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