Socket
Socket
Sign inDemoInstall

@enterprise-cmcs/macpro-security-hub-sync

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enterprise-cmcs/macpro-security-hub-sync - npm Package Compare versions

Comparing version 1.14.1 to 1.14.2

28

dist/libs/jira-lib.js

@@ -95,20 +95,24 @@ "use strict";

};
let params = {
username: undefined,
accountId: undefined,
};
if (process.env.JIRA_HOST?.includes("jiraent")) {
axiosHeader["Authorization"] = `Bearer ${process.env.JIRA_TOKEN}`;
params["username"] = currentUser.name;
await (0, axios_1.default)({
method: "DELETE",
url: `https://${process.env.JIRA_HOST}/rest/api/2/issue/${issueKey}/watchers`,
headers: axiosHeader,
params: {
username: currentUser.name,
},
});
}
else {
axiosHeader["Authorization"] = `Basic ${Buffer.from(`${process.env.JIRA_USERNAME}:${process.env.JIRA_TOKEN}`).toString("base64")}`;
params["accountId"] = currentUser.accountId;
await (0, axios_1.default)({
method: "DELETE",
url: `https://${process.env.JIRA_HOST}/rest/api/3/issue/${issueKey}/watchers`,
headers: axiosHeader,
params: {
accountId: currentUser.accountId,
},
});
}
await (0, axios_1.default)({
method: "DELETE",
url: `https://${process.env.JIRA_HOST}/rest/api/3/issue/${issueKey}/watchers`,
headers: axiosHeader,
params,
});
}

@@ -115,0 +119,0 @@ catch (err) {

@@ -7,3 +7,3 @@ {

},
"version": "1.14.1",
"version": "1.14.2",
"description": "NPM module to create Jira issues for all findings in Security Hub for the current AWS account..",

@@ -10,0 +10,0 @@ "main": "./dist/index.js",

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