Files
setup-helm/node_modules/@actions/core/lib/utils.js
Deepak Sattiraju d55017e2a0 Action core (#19)
* Merge pull request #17 from Azure/dependabot/npm_and_yarn/actions/core-1.2.6

Bump @actions/core from 1.0.0 to 1.2.6

* updating actions core node module
2020-10-06 13:30:39 +05:30

19 lines
620 B
JavaScript

"use strict";
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
*/
function toCommandValue(input) {
if (input === null || input === undefined) {
return '';
}
else if (typeof input === 'string' || input instanceof String) {
return input;
}
return JSON.stringify(input);
}
exports.toCommandValue = toCommandValue;
//# sourceMappingURL=utils.js.map