azure-devops-task-utils 4.0.0 → 5.0.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/README.md +3 -3
- package/lib/utils.d.ts +1 -1
- package/lib/utils.js +3 -3
- package/package.json +16 -12
package/README.md
CHANGED
|
@@ -24,12 +24,12 @@ async function sample() {
|
|
|
24
24
|
common.heading('Title');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
const webApi: nodeApi.WebApi =
|
|
27
|
+
const webApi: nodeApi.WebApi = common.getWebApi();
|
|
28
28
|
const gitApi: GitApi.IGitApi = await webApi.getGitApi();
|
|
29
29
|
const project: string = common.getProject();
|
|
30
30
|
|
|
31
31
|
///
|
|
32
|
-
gitApi.
|
|
32
|
+
await gitApi.
|
|
33
33
|
.
|
|
34
34
|
.
|
|
35
35
|
.
|
|
@@ -48,4 +48,4 @@ export SYSTEM_TEAMFOUNDATIONCOLLECTIONURI=https://dev.azure.com/xxxxxxxx/
|
|
|
48
48
|
|
|
49
49
|
Nota: In Azure DevOps you must activate the option to use auth script in the agents
|
|
50
50
|
|
|
51
|
-
"Allow scripts to access the OAuth token"
|
|
51
|
+
"Allow scripts to access the OAuth token"
|
package/lib/utils.d.ts
CHANGED
package/lib/utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.heading = exports.banner = exports.retryPromise = exports.retryFunction = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "retryFunction", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "retryPromise", { enumerable: true, get: function () { return
|
|
4
|
+
var polallel_1 = require("polallel");
|
|
5
|
+
Object.defineProperty(exports, "retryFunction", { enumerable: true, get: function () { return polallel_1.retryFunction; } });
|
|
6
|
+
Object.defineProperty(exports, "retryPromise", { enumerable: true, get: function () { return polallel_1.retryPromise; } });
|
|
7
7
|
function banner(title) {
|
|
8
8
|
console.log();
|
|
9
9
|
console.log('=======================================');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-devops-task-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Utility library for Azure DevOps tasks",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"lib/**/*"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
+
"test": "jest --coverage",
|
|
11
12
|
"build": "tsc",
|
|
12
13
|
"prebuild": "rimraf ./lib",
|
|
13
14
|
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
|
|
@@ -30,19 +31,22 @@
|
|
|
30
31
|
},
|
|
31
32
|
"homepage": "https://github.com/davidpolaniaac/azure-devops-task-utils.git#readme",
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"azure-devops-node-api": "^
|
|
34
|
-
"azure-pipelines-task-lib": "^
|
|
35
|
-
"polallel": "^1.0
|
|
34
|
+
"azure-devops-node-api": "^12.0.0",
|
|
35
|
+
"azure-pipelines-task-lib": "^4.3.1",
|
|
36
|
+
"polallel": "^1.1.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@types/
|
|
39
|
-
"@
|
|
40
|
-
"@typescript-eslint/
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"eslint
|
|
39
|
+
"@types/jest": "^29.5.2",
|
|
40
|
+
"@types/node": "^16.11.7",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
42
|
+
"@typescript-eslint/parser": "^5.59.11",
|
|
43
|
+
"eslint": "^8.42.0",
|
|
44
|
+
"eslint-config-prettier": "^8.8.0",
|
|
43
45
|
"eslint-plugin-prettier": "^4.2.1",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
46
|
+
"jest": "^29.5.0",
|
|
47
|
+
"prettier": "^2.8.8",
|
|
48
|
+
"rimraf": "^5.0.1",
|
|
49
|
+
"ts-jest": "^29.1.0",
|
|
50
|
+
"typescript": "^5.1.3"
|
|
47
51
|
}
|
|
48
52
|
}
|