Socket
Socket
Sign inDemoInstall

azure-pipelines-task-lib

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-pipelines-task-lib - npm Package Compare versions

Comparing version 2.9.3 to 2.9.5

azure-pipelines-task-lib-2.9.5.tgz

0

internal.d.ts

@@ -0,0 +0,0 @@ import vm = require('./vault');

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ import * as task from './task';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import ma = require('./mock-answer');

9

mock-run.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var mockery = require("mockery");
var im = require("./internal");
var TaskMockRunner = /** @class */ (function () {

@@ -11,10 +12,12 @@ function TaskMockRunner(taskPath) {

TaskMockRunner.prototype.setInput = function (name, val) {
process.env['INPUT_' + name.replace(' ', '_').toUpperCase()] = val;
var key = im._getVariableKey(name);
process.env['INPUT_' + key] = val;
};
TaskMockRunner.prototype.setVariableName = function (name, val, isSecret) {
var key = im._getVariableKey(name);
if (isSecret) {
process.env['SECRET_' + name.replace(' ', '_').toUpperCase()] = val;
process.env['SECRET_' + key] = val;
}
else {
process.env['VSTS_TASKVARIABLE_' + name.replace(' ', '_').toUpperCase()] = val;
process.env['VSTS_TASKVARIABLE_' + key] = val;
}

@@ -21,0 +24,0 @@ };

@@ -0,0 +0,0 @@ import Q = require('q');

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class MockTestRunner {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Q = require('q');

@@ -203,7 +203,11 @@ "use strict";

var code = res.code;
ops.outStream.write('rc:' + res.code + os.EOL);
if (!ops.silent) {
ops.outStream.write('rc:' + res.code + os.EOL);
}
if (code != 0 && !ops.ignoreReturnCode) {
success = false;
}
ops.outStream.write('success:' + success + os.EOL);
if (!ops.silent) {
ops.outStream.write('success:' + success + os.EOL);
}
if (success) {

@@ -210,0 +214,0 @@ defer.resolve(code);

{
"name": "azure-pipelines-task-lib",
"version": "2.9.3",
"version": "2.9.5",
"description": "Azure Pipelines Task SDK",

@@ -35,9 +35,9 @@ "main": "./task.js",

"shelljs": "^0.3.0",
"uuid": "^3.0.1"
"uuid": "^3.0.1",
"sync-request": "3.0.1"
},
"devDependencies": {
"mocha": "5.2.0",
"sync-request": "3.0.1",
"typescript": "^3.0.0"
}
}

@@ -0,0 +0,0 @@

@@ -384,6 +384,5 @@ import Q = require('q');

* Remove a path recursively with force
* Returns whether it succeeds
*
* @param path path to remove
* @returns void
* @param inputPath path to remove
* @throws when the file or directory exists but could not be deleted.
*/

@@ -390,0 +389,0 @@ export declare function rmRF(inputPath: string): void;

@@ -0,0 +0,0 @@ export declare class TaskCommand {

@@ -0,0 +0,0 @@ "use strict";

@@ -21,10 +21,14 @@ import Q = require('q');

env?: {
[key: string]: string;
[key: string]: string | undefined;
};
/** optional. defaults to false */
silent?: boolean;
outStream: stream.Writable;
errStream: stream.Writable;
/** optional. foo.whether to skip quoting/escaping arguments if needed. defaults to false. */
/** Optional. Default is process.stdout. */
outStream?: stream.Writable;
/** Optional. Default is process.stderr. */
errStream?: stream.Writable;
/** optional. Whether to skip quoting/escaping arguments if needed. defaults to false. */
windowsVerbatimArguments?: boolean;
/** optional. Run command inside of the shell. Defaults to false. */
shell?: boolean;
}

@@ -31,0 +35,0 @@ /**

@@ -398,3 +398,4 @@ "use strict";

ignoreReturnCode: options.ignoreReturnCode || false,
windowsVerbatimArguments: options.windowsVerbatimArguments || false
windowsVerbatimArguments: options.windowsVerbatimArguments || false,
shell: options.shell || false
};

@@ -410,2 +411,3 @@ result.outStream = options.outStream || process.stdout;

result.env = options.env;
result.shell = options.shell;
result['windowsVerbatimArguments'] = options.windowsVerbatimArguments || this._isCmdFile();

@@ -418,2 +420,3 @@ return result;

result.env = options.env;
result.shell = options.shell;
result['windowsVerbatimArguments'] = options.windowsVerbatimArguments || this._isCmdFile();

@@ -420,0 +423,0 @@ return result;

@@ -0,0 +0,0 @@ {

@@ -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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc