azure-pipelines-task-lib 5.276.0 → 5.278.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.
- package/package.json +3 -3
- package/task.js +8 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-pipelines-task-lib",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.278.0",
|
|
4
4
|
"description": "Azure Pipelines Task SDK",
|
|
5
5
|
"main": "./task.js",
|
|
6
6
|
"typings": "./task.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/Microsoft/azure-pipelines-task-lib",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"adm-zip": "^0.
|
|
30
|
+
"adm-zip": "^0.6.0",
|
|
31
31
|
"minimatch": "^3.1.5",
|
|
32
32
|
"nodejs-file-downloader": "^4.11.1",
|
|
33
33
|
"q": "^1.5.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/q": "^1.5.4",
|
|
42
42
|
"@types/semver": "^7.3.4",
|
|
43
43
|
"@types/shelljs": "^0.8.17",
|
|
44
|
-
"mocha": "
|
|
44
|
+
"mocha": "11.7.5",
|
|
45
45
|
"typescript": "^4.9.5"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/task.js
CHANGED
|
@@ -1066,15 +1066,16 @@ function cp(sourceOrOptions, destinationOrSource, optionsOrDestination, continue
|
|
|
1066
1066
|
var isPattern = /[*?{\[]/.test(source) || /[@+!]\(/.test(source);
|
|
1067
1067
|
if (isPattern) {
|
|
1068
1068
|
var defaultRoot = (0, exports.getVariable)('system.defaultWorkingDirectory') || process.cwd();
|
|
1069
|
-
var
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1069
|
+
var matches = findMatch(defaultRoot, [source], undefined, { nonegate: true, nocomment: true });
|
|
1070
|
+
var resolvedMatches = matches.filter(function (src) { return path.resolve(src) !== path.resolve(source); });
|
|
1071
|
+
for (var _i = 0, resolvedMatches_1 = resolvedMatches; _i < resolvedMatches_1.length; _i++) {
|
|
1072
|
+
var src = resolvedMatches_1[_i];
|
|
1073
|
+
cp(src, destination, options, continueOnError, retryCount);
|
|
1074
|
+
}
|
|
1075
|
+
if (matches.length > 0 && resolvedMatches.length === matches.length) {
|
|
1075
1076
|
return;
|
|
1076
1077
|
}
|
|
1077
|
-
|
|
1078
|
+
if (matches.length === 0) {
|
|
1078
1079
|
(0, exports.debug)("No matches found for the pattern: ".concat(source, ". Fallback to check for the literal path."));
|
|
1079
1080
|
}
|
|
1080
1081
|
}
|