azure-pipelines-tasks-webdeployment-common 4.243.1 → 4.247.0

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.
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.runCopyDirectoryTests = void 0;
13
13
  const assert = require("assert");
14
- const mockery = require("mockery");
14
+ const mockery = require("azure-pipelines-task-lib/lib-mocker");
15
15
  const path = require("path");
16
16
  function runCopyDirectoryTests() {
17
17
  const fileList = [];
@@ -1,5 +1,5 @@
1
1
  import * as assert from "assert";
2
- import * as mockery from "mockery";
2
+ import * as mockery from "azure-pipelines-task-lib/lib-mocker";
3
3
  import * as path from "path";
4
4
 
5
5
  export function runCopyDirectoryTests(): void {
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.runGenerateWebCongigTests = void 0;
13
13
  const assert = require("assert");
14
- const mockery = require("mockery");
14
+ const mockery = require("azure-pipelines-task-lib/lib-mocker");
15
15
  function runGenerateWebCongigTests() {
16
16
  let webConfigContents;
17
17
  before(() => {
@@ -1,5 +1,5 @@
1
1
  import * as assert from "assert";
2
- import * as mockery from "mockery";
2
+ import * as mockery from "azure-pipelines-task-lib/lib-mocker";
3
3
 
4
4
 
5
5
  export function runGenerateWebCongigTests() {
@@ -137,7 +137,7 @@ function enhancedFileTransformations(isFolderBasedDeployment, xmlTransformation,
137
137
  console.log(tl.loc("XDTTransformationsappliedsuccessfully"));
138
138
  }
139
139
  else {
140
- tl.error(tl.loc('FailedToApplySpecialTransformationReason1'));
140
+ tl.warning(tl.loc('FailedToApplySpecialTransformationReason1'));
141
141
  }
142
142
  }
143
143
  }
@@ -160,7 +160,7 @@ function enhancedFileTransformations(isFolderBasedDeployment, xmlTransformation,
160
160
  console.log(tl.loc('JSONvariablesubstitutionappliedsuccessfully'));
161
161
  }
162
162
  else {
163
- tl.error(tl.loc('FailedToApplyJSONvariablesubstitutionReason1'));
163
+ throw Error(tl.loc('FailedToApplyJSONvariablesubstitutionReason1'));
164
164
  }
165
165
  }
166
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-pipelines-tasks-webdeployment-common",
3
- "version": "4.243.1",
3
+ "version": "4.247.0",
4
4
  "description": "Common Lib for MSDeploy Utility",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,7 +33,6 @@
33
33
  "devDependencies": {
34
34
  "@types/semver": "^7.5.4",
35
35
  "@types/winreg": "^1.2.34",
36
- "mocha": "^6.2.3",
37
36
  "nyc": "^15.1.0",
38
37
  "typescript": "4.0.2"
39
38
  }