azure-pipelines-task-lib
Advanced tools
Comparing version 4.0.0-preview to 4.0.1-preview
@@ -0,0 +0,0 @@ import vm = require('./vault'); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as task from './task'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import ma = require('./mock-answer'); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare class MockTestRunner { |
@@ -129,5 +129,2 @@ "use strict"; | ||
switch (version) { | ||
case 5: | ||
downloadVersion = 'v5.10.1'; | ||
break; | ||
case 6: | ||
@@ -139,7 +136,7 @@ downloadVersion = 'v6.17.1'; | ||
break; | ||
case 14: | ||
downloadVersion = 'v14.11.0'; | ||
case 16: | ||
downloadVersion = 'v16.13.0'; | ||
break; | ||
default: | ||
throw new Error('Invalid node version, must be 5, 6, 10, or 14 (received ' + version + ')'); | ||
throw new Error('Invalid node version, must be 6, 10, or 16 (received ' + version + ')'); | ||
} | ||
@@ -156,8 +153,8 @@ // Install node in home directory if it isn't already there. | ||
}; | ||
// Determines the correct version of node to use based on the contents of the task's task.json. Defaults to Node 14. | ||
// Determines the correct version of node to use based on the contents of the task's task.json. Defaults to Node 16. | ||
MockTestRunner.prototype.getNodeVersion = function () { | ||
var taskJsonPath = this.getTaskJsonPath(); | ||
if (!taskJsonPath) { | ||
console.warn('Unable to find task.json, defaulting to use Node 14'); | ||
return 10; | ||
console.warn('Unable to find task.json, defaulting to use Node 16'); | ||
return 16; | ||
} | ||
@@ -172,5 +169,5 @@ var taskJsonContents = fs.readFileSync(taskJsonPath, { encoding: 'utf-8' }); | ||
for (var i = 0; i < keys.length; i++) { | ||
if (keys[i].toLowerCase() == 'node14') { | ||
// Prefer node 14 and return immediately. | ||
return 14; | ||
if (keys[i].toLowerCase() == 'node16') { | ||
// Prefer node 16 and return immediately. | ||
return 16; | ||
} | ||
@@ -186,4 +183,4 @@ else if (keys[i].toLowerCase() == 'node10') { | ||
if (!nodeVersionFound) { | ||
console.warn('Unable to determine execution type from task.json, defaulting to use Node 10'); | ||
return 10; | ||
console.warn('Unable to determine execution type from task.json, defaulting to use Node 16'); | ||
return 16; | ||
} | ||
@@ -190,0 +187,0 @@ return 6; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "azure-pipelines-task-lib", | ||
"version": "4.0.0-preview", | ||
"version": "4.0.1-preview", | ||
"description": "Azure Pipelines Task SDK", | ||
@@ -40,4 +40,4 @@ "main": "./task.js", | ||
"@types/minimatch": "3.0.3", | ||
"@types/mockery": "^1.4.29", | ||
"@types/mocha": "^9.1.1", | ||
"@types/mockery": "^1.4.29", | ||
"@types/node": "^16.11.39", | ||
@@ -44,0 +44,0 @@ "@types/q": "^1.5.4", |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ export declare class TaskCommand { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -512,2 +512,3 @@ "use strict"; | ||
var result = {}; | ||
result.maxBuffer = 1024 * 1024 * 1024; | ||
result.cwd = options.cwd; | ||
@@ -514,0 +515,0 @@ result.env = options.env; |
@@ -0,0 +0,0 @@ export declare class Vault { |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
385246
4
6528