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

danger

Package Overview
Dependencies
Maintainers
3
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 11.0.7 to 11.1.1

6

distribution/ci_source/providers/CodeBuild.js

@@ -137,7 +137,7 @@ "use strict";

sourceParts = (this.env.CODEBUILD_SOURCE_VERSION || "").split("/");
triggerParts = (this.env.CODEBUILD_WEBHOOK_TRIGGER || "").split("/");
branchName = triggerParts[0] === "branch" ? triggerParts[1] : null;
triggerParts = this.env.CODEBUILD_WEBHOOK_TRIGGER || "";
branchName = triggerParts.startsWith("branch/") ? triggerParts.replace("branch/", "") : null;
prId = sourceParts[0] === "pr" ? sourceParts[1] : null;
if (!prId) {
prId = triggerParts[0] === "pr" ? triggerParts[1] : null;
prId = triggerParts.startsWith("pr/") ? triggerParts.replace("pr/", "") : null;
}

@@ -144,0 +144,0 @@ if (!(!prId && branchName)) return [3 /*break*/, 2];

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

this.getPullRequestInlineComments = function (dangerID) { return __awaiter(_this, void 0, void 0, function () {
var userID, repo, prID;
var userID, repo, prID, dangerIDMessage;
return __generator(this, function (_a) {

@@ -422,2 +422,3 @@ switch (_a.label) {

prID = this.repoMetadata.pullRequestID;
dangerIDMessage = (0, githubIssueTemplate_1.dangerIDToString)(dangerID);
return [4 /*yield*/, this.getAllOfResource("repos/".concat(repo, "/pulls/").concat(prID, "/comments")).then(function (v) {

@@ -427,3 +428,3 @@ return v

.map(function (i) {
return __assign(__assign({}, i), { ownedByDanger: i.user.id == userID && i.body.includes(dangerID) });
return __assign(__assign({}, i), { ownedByDanger: i.user.id == userID && i.body.includes(dangerIDMessage) });
})

@@ -430,0 +431,0 @@ .filter(function (i) { return i.ownedByDanger; });

{
"name": "danger",
"version": "11.0.7",
"version": "11.1.1",
"description": "Unit tests for Team Culture",

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

Sorry, the diff of this file is too big to display

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