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.4 to 0.6.5

distribution/ci_source/_tests/_semaphore.test.js

5

changelog.md

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

### 0.6.5
* Adds more node instances to travis - romanki + orta
* Adds support for Semaphore CI - orta
### 0.6.4

@@ -7,0 +12,0 @@

2

distribution/ci_source/_tests/_travis.test.js

@@ -64,3 +64,3 @@ "use strict";

describe(".pullReuestID", function () {
describe(".pullRequestID", function () {
it("pulls it out of the env", function () {

@@ -67,0 +67,0 @@ var travis = new _Travis2.default(correctEnv);

@@ -31,3 +31,3 @@ "use strict";

var hasKeys = keys.map(function (key) {
return env.hasOwnProperty(key) && !isNaN(parseInt(env.TRAVIS_PULL_REQUEST));
return env.hasOwnProperty(key) && !isNaN(parseInt(env[key]));
});

@@ -34,0 +34,0 @@ return !hasKeys.includes(false);

@@ -19,5 +19,5 @@ "use strict";

var _Fake = require("./Fake");
var _Semaphore = require("./Semaphore");
var _Fake2 = _interopRequireDefault(_Fake);
var _Semaphore2 = _interopRequireDefault(_Semaphore);

@@ -36,6 +36,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getCISourceForEnv(env) {
// Fake is what I'm using during dev for the minute
var travis = new _Travis2.default(env);
var circle = new _Circle2.default(env);
var fake = new _Fake2.default(env);
var semaphore = new _Semaphore2.default(env);

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

return circle;
} else {
return fake;
}if (semaphore.isCI) {
return semaphore;
}
}
//# sourceMappingURL=ci_source.js.map

@@ -51,7 +51,2 @@ "use strict";

}, {
key: "repoURL",
get: function get() {
return "maybe not needed?";
}
}, {
key: "supportedPlatforms",

@@ -58,0 +53,0 @@ get: function get() {

@@ -33,4 +33,4 @@ "use strict";

get: function get() {
var mustHave = ["HAS_JOSH_K_SEAL_OF_APPROVAL", "TRAVIS_PULL_REQUEST"];
var mustBeInts = ["TRAVIS_REPO_SLUG"];
var mustHave = ["HAS_JOSH_K_SEAL_OF_APPROVAL", "TRAVIS_PULL_REQUEST", "TRAVIS_REPO_SLUG"];
var mustBeInts = ["TRAVIS_PULL_REQUEST"];
return (0, _ci_source_helpers.ensureEnvKeysExist)(this.env, mustHave) && (0, _ci_source_helpers.ensureEnvKeysAreInt)(this.env, mustBeInts);

@@ -49,7 +49,2 @@ }

}, {
key: "repoURL",
get: function get() {
return "maybe not needed?";
}
}, {
key: "supportedPlatforms",

@@ -56,0 +51,0 @@ get: function get() {

{
"name": "danger",
"version": "0.6.4",
"version": "0.6.5",
"description": "Unit tests for Team Culture",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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