azure-pipelines-task-lib 4.10.0 → 4.10.1

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.
Files changed (2) hide show
  1. package/internal.js +6 -6
  2. package/package.json +1 -1
package/internal.js CHANGED
@@ -20,7 +20,7 @@ var crypto = require("crypto");
20
20
  * 3) to know the real variable name and not just the formatted env var name.
21
21
  */
22
22
  exports._knownVariableMap = {};
23
- var _taskSdkToken;
23
+ var _commandCorrelationId;
24
24
  //-----------------------------------------------------
25
25
  // Enums
26
26
  //-----------------------------------------------------
@@ -270,12 +270,12 @@ function _command(command, properties, message) {
270
270
  exports._command = _command;
271
271
  function _warning(message, source) {
272
272
  if (source === void 0) { source = IssueSource.TaskInternal; }
273
- _command('task.issue', { 'type': 'warning', 'source': source, 'token': _taskSdkToken }, message);
273
+ _command('task.issue', { 'type': 'warning', 'source': source, 'correlationId': _commandCorrelationId }, message);
274
274
  }
275
275
  exports._warning = _warning;
276
276
  function _error(message, source) {
277
277
  if (source === void 0) { source = IssueSource.TaskInternal; }
278
- _command('task.issue', { 'type': 'error', 'source': source, 'token': _taskSdkToken }, message);
278
+ _command('task.issue', { 'type': 'error', 'source': source, 'correlationId': _commandCorrelationId }, message);
279
279
  }
280
280
  exports._error = _error;
281
281
  function _debug(message) {
@@ -664,9 +664,9 @@ function _loadData() {
664
664
  }
665
665
  }
666
666
  _debug('loaded ' + loaded);
667
- var token = process.env["TASK_SDK_COMMAND_TOKEN"];
668
- delete process.env["TASK_SDK_COMMAND_TOKEN"];
669
- _taskSdkToken = token ? String(token) : "";
667
+ var correlationId = process.env["COMMAND_CORRELATION_ID"];
668
+ delete process.env["COMMAND_CORRELATION_ID"];
669
+ _commandCorrelationId = correlationId ? String(correlationId) : "";
670
670
  // store public variable metadata
671
671
  var names;
672
672
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-pipelines-task-lib",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
4
4
  "description": "Azure Pipelines Task SDK",
5
5
  "main": "./task.js",
6
6
  "typings": "./task.d.ts",