viza 1.9.4 → 1.9.5

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.
@@ -27,15 +27,16 @@ function maybeRenderLog(result, policy, currentUser) {
27
27
  }
28
28
  if (result.logBuffer) {
29
29
  const conclusion = result.conclusion;
30
+ const log = result.log;
30
31
  const logOptions = {
31
32
  conclusion,
32
33
  ...(currentUser !== undefined ? { currentUser } : {}),
33
- ...(result.triggeredAt !== undefined ? { triggeredAt: result.triggeredAt } : {}),
34
- ...(result.startedAt !== undefined ? { startedAt: result.startedAt } : {}),
35
- ...(result.completedAt !== undefined ? { completedAt: result.completedAt } : {}),
36
- ...(result.queueDuration !== undefined ? { queueDuration: result.queueDuration } : {}),
37
- ...(result.runDuration !== undefined ? { runDuration: result.runDuration } : {}),
38
- ...(result.duration !== undefined ? { duration: result.duration } : {})
34
+ ...(log?.triggeredAt !== undefined ? { triggeredAt: log.triggeredAt } : {}),
35
+ ...(log?.startedAt !== undefined ? { startedAt: log.startedAt } : {}),
36
+ ...(log?.completedAt !== undefined ? { completedAt: log.completedAt } : {}),
37
+ ...(log?.queueDuration !== undefined ? { queueDuration: log.queueDuration } : {}),
38
+ ...(log?.runDuration !== undefined ? { runDuration: log.runDuration } : {}),
39
+ ...(log?.duration !== undefined ? { duration: log.duration } : {}),
39
40
  };
40
41
  renderLog(result.logBuffer, logOptions);
41
42
  return;
@@ -51,7 +51,6 @@ export function renderLog(zipBuffer, options) {
51
51
  catch {
52
52
  // ignore parsing errors
53
53
  }
54
- console.log(JSON.stringify(options, null, 2));
55
54
  // Render timeline summary (if available)
56
55
  if (options.startedAt || options.duration) {
57
56
  const started = options.startedAt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {
@@ -22,7 +22,7 @@
22
22
  "release:full": "rm -rf dist && npx npm-check-updates -u && npm install && git add package.json package-lock.json && git commit -m 'chore(deps): auto update dependencies before release' || echo 'No changes' && node versioning.js && npm login && npm publish --tag latest --access public && git push"
23
23
  },
24
24
  "dependencies": {
25
- "@vizamodo/viza-dispatcher": "^1.5.43",
25
+ "@vizamodo/viza-dispatcher": "^1.5.45",
26
26
  "adm-zip": "^0.5.16",
27
27
  "chalk": "^5.6.2",
28
28
  "clipboardy": "^5.3.1",