azure-pipelines-tasks-webdeployment-common 4.242.0 → 4.243.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/msdeployutility.js +10 -5
- package/package.json +1 -1
- package/ziputility.js +4 -1
package/msdeployutility.js
CHANGED
|
@@ -263,14 +263,19 @@ function getInstalledMSDeployVersion() {
|
|
|
263
263
|
exports.getInstalledMSDeployVersion = getInstalledMSDeployVersion;
|
|
264
264
|
function installedMSDeployVersionSupportsTokenAuth() {
|
|
265
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
const msDeployVersion = yield getInstalledMSDeployVersion();
|
|
269
|
-
if (!msDeployVersion) {
|
|
266
|
+
const msDeployVersionString = yield getInstalledMSDeployVersion();
|
|
267
|
+
if (!msDeployVersionString) {
|
|
270
268
|
tl.debug('Could not determine MSDeploy version. Assuming it is not installed.');
|
|
271
269
|
return undefined;
|
|
272
270
|
}
|
|
273
|
-
|
|
271
|
+
const msDeployVersion = semver.coerce(msDeployVersionString);
|
|
272
|
+
// MSDeploy 9.0.7225 is the first product version to support token auth
|
|
273
|
+
if (semver.gte(msDeployVersion, semver.coerce("9.0.7225"))) {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
// MDeploy shipped with Web Deploy has different versioning scheme
|
|
277
|
+
// Versions between 9.0.2000 and 9.0.2999 are considered to be similar to 9.0.7225
|
|
278
|
+
return semver.gte(msDeployVersion, semver.coerce("9.0.2000")) && semver.lte(msDeployVersion, semver.coerce("9.0.2999"));
|
|
274
279
|
});
|
|
275
280
|
}
|
|
276
281
|
exports.installedMSDeployVersionSupportsTokenAuth = installedMSDeployVersionSupportsTokenAuth;
|
package/package.json
CHANGED
package/ziputility.js
CHANGED
|
@@ -140,7 +140,10 @@ exports.archiveFolder = archiveFolder;
|
|
|
140
140
|
function getArchivedEntries(archivedPackage) {
|
|
141
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
142
|
var deferred = Q.defer();
|
|
143
|
-
const zip = new StreamZip.async({
|
|
143
|
+
const zip = new StreamZip.async({
|
|
144
|
+
file: archivedPackage,
|
|
145
|
+
skipEntryNameValidation: true
|
|
146
|
+
});
|
|
144
147
|
zip.entries().then(entries => {
|
|
145
148
|
var packageConmponent = {
|
|
146
149
|
'entries': Object.keys(entries)
|