@contrast/agent 3.11.25 → 3.11.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,56 @@
1
+ /**
2
+ Copyright: 2022 Contrast Security, Inc
3
+ Contact: support@contrastsecurity.com
4
+ License: Commercial
5
+
6
+ NOTICE: This Software and the patented inventions embodied within may only be
7
+ used as part of Contrast Security’s commercial offerings. Even though it is
8
+ made available through public repositories, use of this Software is subject to
9
+ the applicable End User Licensing Agreement found at
10
+ https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
11
+ between Contrast Security and the End User. The Software may not be reverse
12
+ engineered, modified, repackaged, sold, redistributed or otherwise used in a
13
+ way not consistent with the End User License Agreement.
14
+ */
15
+ 'use strict';
16
+
17
+ module.exports = {
18
+ jira: {
19
+ baseUrl: `https://${process.env.JIRA_HOST}`,
20
+ ticketIDPattern: /(NODE+-?[0-9]{4})/i,
21
+ excludeIssueTypes: ['Sub-task', 'Release'],
22
+ api: {
23
+ host: process.env.JIRA_HOST,
24
+ email: process.env.JIRA_EMAIL,
25
+ token: process.env.JIRA_TOKEN
26
+ }
27
+ },
28
+ hideEmptyBlocks: true,
29
+ template: `## v<%= process.env.VERSION -%>
30
+
31
+ <% blockTickets = tickets.all.filter((t) => !t.reverted); -%>
32
+ <% if (blockTickets.length > 0 || !options.hideEmptyBlocks) { -%>
33
+ ### Jira Tickets
34
+ ---------------------
35
+ <% blockTickets.forEach(ticket => { -%>
36
+ * <<%= ticket.fields.issuetype.name %>> - <%- ticket.fields.summary %>
37
+ [<%= ticket.key %>](<%= jira.baseUrl + '/browse/' + ticket.key %>)
38
+ <% }); -%>
39
+ <% if (!blockTickets.length) {%> ~ None ~ <% } %>
40
+ <% } -%>
41
+ <% blockNoTickets = commits.noTickets; -%>
42
+ <% if (blockNoTickets.length > 0 || !options.hideEmptyBlocks) { -%>
43
+
44
+ ### Other Commits
45
+ ---------------------
46
+ <% blockNoTickets.forEach(commit => { -%>
47
+ * <%= commit.slackUser ? '@'+commit.slackUser.name : commit.authorName %> - <<%= commit.revision.substr(0, 7) %>> - <%= commit.summary %>
48
+ <% }); -%>
49
+ <% if (!blockNoTickets.length) {%> ~ None ~ <% } %>
50
+ <% } -%>
51
+ <% blockPendingByOwner = tickets.pendingByOwner; -%>
52
+ <% if (blockPendingByOwner.length > 0 || !options.hideEmptyBlocks) { -%>
53
+ <% } -%>
54
+ --------------------
55
+ `
56
+ };
package/lib.asar CHANGED
Binary file
@@ -309,7 +309,7 @@ endif
309
309
 
310
310
  quiet_cmd_regen_makefile = ACTION Regenerating $@
311
311
  cmd_regen_makefile = cd $(srcdir); /opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/runner/.cache/node-gyp/12.22.12" "-Dnode_gyp_dir=/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/runner/.cache/node-gyp/12.22.12/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram/build/config.gypi -I/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/runner/.cache/node-gyp/12.22.12/include/node/common.gypi "--toplevel-dir=." binding.gyp
312
- Makefile: $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../../.cache/node-gyp/12.22.12/include/node/common.gypi $(srcdir)/../../../../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
312
+ Makefile: $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../../../../../.cache/node-gyp/12.22.12/include/node/common.gypi
313
313
  $(call do_cmd,regen_makefile)
314
314
 
315
315
  # "all" is a concatenation of the "all" targets from all the included
@@ -126,7 +126,7 @@
126
126
  "progress": "",
127
127
  "https_proxy": "",
128
128
  "save_prod": "",
129
- "npm_session": "e09b8c731f2c793a",
129
+ "npm_session": "f8d366e04e84ebce",
130
130
  "audit": "true",
131
131
  "cidr": "",
132
132
  "onload_script": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "3.11.25",
3
+ "version": "3.11.26",
4
4
  "publishConfig": {
5
5
  "tag": "latest-3"
6
6
  },
@@ -152,6 +152,7 @@
152
152
  "handlebars": "^4.7.7",
153
153
  "husky": "^6.0.0",
154
154
  "inquirer": "^8.2.2",
155
+ "jira-client": "^8.1.0",
155
156
  "joi": "^17.4.0",
156
157
  "jsdoc": "^3.6.10",
157
158
  "libxmljs": "file:test/mock/libxmljs",