azure-pipelines-tasks-azurermdeploycommon 3.268.0 → 3.268.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-pipelines-tasks-azurermdeploycommon",
3
- "version": "3.268.0",
3
+ "version": "3.268.1",
4
4
  "description": "Common Lib for Azure ARM REST apis",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
  }
@@ -94,15 +94,15 @@ export function addWebConfigFile(folderPath: any, webConfigParameters, rootDirec
94
94
  selectedAppTypeParams['DJANGO_SETTINGS_MODULE'] = getDjangoSettingsFile(folderPath);
95
95
  }
96
96
  } else if(appType == 'Go') {
97
- if (util.isNullOrUndefined(webConfigParameters['GoExeFileName'])
98
- || util.isNullOrUndefined(webConfigParameters['GoExeFileName'].value)
97
+ if (webConfigParameters['GoExeFileName'] === null || webConfigParameters['GoExeFileName'] === undefined
98
+ || webConfigParameters['GoExeFileName'].value === null || webConfigParameters['GoExeFileName'].value === undefined
99
99
  || webConfigParameters['GoExeFileName'].value.length <=0) {
100
100
  throw Error(tl.loc('GoExeNameNotPresent'));
101
101
  }
102
102
  selectedAppTypeParams['GoExeFilePath'] = rootDirectoryPath + "\\" + webConfigParameters['GoExeFileName'].value;
103
103
  } else if(appType == 'java_springboot') {
104
- if (util.isNullOrUndefined(webConfigParameters['JAR_PATH'])
105
- || util.isNullOrUndefined(webConfigParameters['JAR_PATH'].value)
104
+ if (webConfigParameters['JAR_PATH'] === null || webConfigParameters['JAR_PATH'] === undefined
105
+ || webConfigParameters['JAR_PATH'].value === null || webConfigParameters['JAR_PATH'].value === undefined
106
106
  || webConfigParameters['JAR_PATH'].value.length <= 0) {
107
107
  throw Error(tl.loc('JarPathNotPresent'));
108
108
  }