azure-pipelines-tasks-webdeployment-common 4.265.0 → 4.268.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/webconfigutil.js +4 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-pipelines-tasks-webdeployment-common",
3
- "version": "4.265.0",
3
+ "version": "4.268.0",
4
4
  "description": "Common Lib for MSDeploy Utility",
5
5
  "repository": {
6
6
  "type": "git",
package/webconfigutil.js CHANGED
@@ -4,7 +4,6 @@ exports.addWebConfigFile = exports.generateWebConfigFile = void 0;
4
4
  const tl = require("azure-pipelines-task-lib/task");
5
5
  const fs = require("fs");
6
6
  const path = require("path");
7
- const util = require("util");
8
7
  function generateWebConfigFile(webConfigTargetPath, appType, substitutionParameters) {
9
8
  // Get the template path for the given appType
10
9
  var webConfigTemplatePath = path.join(__dirname, 'WebConfigTemplates', appType.toLowerCase());
@@ -93,16 +92,16 @@ function addWebConfigFile(folderPath, webConfigParameters, rootDirectoryPath) {
93
92
  }
94
93
  }
95
94
  else if (appType == 'Go') {
96
- if (util.isNullOrUndefined(webConfigParameters['GoExeFileName'])
97
- || util.isNullOrUndefined(webConfigParameters['GoExeFileName'].value)
95
+ if ((webConfigParameters['GoExeFileName'] === null || webConfigParameters['GoExeFileName'] === undefined)
96
+ || (webConfigParameters['GoExeFileName'].value === null || webConfigParameters['GoExeFileName'].value === undefined)
98
97
  || webConfigParameters['GoExeFileName'].value.length <= 0) {
99
98
  throw Error(tl.loc('GoExeNameNotPresent'));
100
99
  }
101
100
  selectedAppTypeParams['GoExeFilePath'] = rootDirectoryPath + "\\" + webConfigParameters['GoExeFileName'].value;
102
101
  }
103
102
  else if (appType == 'java_springboot') {
104
- if (util.isNullOrUndefined(webConfigParameters['JAR_PATH'])
105
- || util.isNullOrUndefined(webConfigParameters['JAR_PATH'].value)
103
+ if ((webConfigParameters['JAR_PATH'] === null || webConfigParameters['JAR_PATH'] === undefined)
104
+ || (webConfigParameters['JAR_PATH'].value === null || webConfigParameters['JAR_PATH'].value === undefined)
106
105
  || webConfigParameters['JAR_PATH'].value.length <= 0) {
107
106
  throw Error(tl.loc('JarPathNotPresent'));
108
107
  }