@@ -8847,14 +8847,27 @@ module.exports = require("os");
88478847"use strict";
88488848
88498849// For internal use, subject to change.
8850+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8851+ if (k2 === undefined) k2 = k;
8852+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
8853+ }) : (function(o, m, k, k2) {
8854+ if (k2 === undefined) k2 = k;
8855+ o[k2] = m[k];
8856+ }));
8857+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
8858+ Object.defineProperty(o, "default", { enumerable: true, value: v });
8859+ }) : function(o, v) {
8860+ o["default"] = v;
8861+ });
88508862var __importStar = (this && this.__importStar) || function (mod) {
88518863 if (mod && mod.__esModule) return mod;
88528864 var result = {};
8853- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k] ;
8854- result["default"] = mod;
8865+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding( result, mod, k) ;
8866+ __setModuleDefault( result, mod) ;
88558867 return result;
88568868};
88578869Object.defineProperty(exports, "__esModule", { value: true });
8870+ exports.issueCommand = void 0;
88588871// We use any as a valid input type
88598872/* eslint-disable @typescript-eslint/no-explicit-any */
88608873const fs = __importStar(__webpack_require__(5747));
@@ -25234,14 +25247,27 @@ module.exports = {"pagination":{"ListEventTypes":{"input_token":"NextToken","lim
2523425247
2523525248"use strict";
2523625249
25250+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
25251+ if (k2 === undefined) k2 = k;
25252+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25253+ }) : (function(o, m, k, k2) {
25254+ if (k2 === undefined) k2 = k;
25255+ o[k2] = m[k];
25256+ }));
25257+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25258+ Object.defineProperty(o, "default", { enumerable: true, value: v });
25259+ }) : function(o, v) {
25260+ o["default"] = v;
25261+ });
2523725262var __importStar = (this && this.__importStar) || function (mod) {
2523825263 if (mod && mod.__esModule) return mod;
2523925264 var result = {};
25240- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k] ;
25241- result["default"] = mod;
25265+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding( result, mod, k) ;
25266+ __setModuleDefault( result, mod) ;
2524225267 return result;
2524325268};
2524425269Object.defineProperty(exports, "__esModule", { value: true });
25270+ exports.issue = exports.issueCommand = void 0;
2524525271const os = __importStar(__webpack_require__(2087));
2524625272const utils_1 = __webpack_require__(5082);
2524725273/**
@@ -28916,6 +28942,7 @@ module.exports = {"pagination":{"ListActionExecutions":{"input_token":"nextToken
2891628942// We use any as a valid input type
2891728943/* eslint-disable @typescript-eslint/no-explicit-any */
2891828944Object.defineProperty(exports, "__esModule", { value: true });
28945+ exports.toCommandValue = void 0;
2891928946/**
2892028947 * Sanitizes an input into a string so it can be passed into issueCommand safely
2892128948 * @param input input to sanitize into a string
@@ -32795,6 +32822,25 @@ module.exports = AWS.IoTFleetHub;
3279532822
3279632823"use strict";
3279732824
32825+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
32826+ if (k2 === undefined) k2 = k;
32827+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
32828+ }) : (function(o, m, k, k2) {
32829+ if (k2 === undefined) k2 = k;
32830+ o[k2] = m[k];
32831+ }));
32832+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32833+ Object.defineProperty(o, "default", { enumerable: true, value: v });
32834+ }) : function(o, v) {
32835+ o["default"] = v;
32836+ });
32837+ var __importStar = (this && this.__importStar) || function (mod) {
32838+ if (mod && mod.__esModule) return mod;
32839+ var result = {};
32840+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32841+ __setModuleDefault(result, mod);
32842+ return result;
32843+ };
3279832844var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3279932845 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3280032846 return new (P || (P = Promise))(function (resolve, reject) {
@@ -32804,14 +32850,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3280432850 step((generator = generator.apply(thisArg, _arguments || [])).next());
3280532851 });
3280632852};
32807- var __importStar = (this && this.__importStar) || function (mod) {
32808- if (mod && mod.__esModule) return mod;
32809- var result = {};
32810- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
32811- result["default"] = mod;
32812- return result;
32813- };
3281432853Object.defineProperty(exports, "__esModule", { value: true });
32854+ exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
3281532855const command_1 = __webpack_require__(4431);
3281632856const file_command_1 = __webpack_require__(2102);
3281732857const utils_1 = __webpack_require__(5082);
@@ -32878,7 +32918,9 @@ function addPath(inputPath) {
3287832918}
3287932919exports.addPath = addPath;
3288032920/**
32881- * Gets the value of an input. The value is also trimmed.
32921+ * Gets the value of an input.
32922+ * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
32923+ * Returns an empty string if the value is not defined.
3288232924 *
3288332925 * @param name name of the input to get
3288432926 * @param options optional. See InputOptions.
@@ -32889,9 +32931,34 @@ function getInput(name, options) {
3288932931 if (options && options.required && !val) {
3289032932 throw new Error(`Input required and not supplied: ${name}`);
3289132933 }
32934+ if (options && options.trimWhitespace === false) {
32935+ return val;
32936+ }
3289232937 return val.trim();
3289332938}
3289432939exports.getInput = getInput;
32940+ /**
32941+ * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
32942+ * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
32943+ * The return value is also in boolean type.
32944+ * ref: https://yaml.org/spec/1.2/spec.html#id2804923
32945+ *
32946+ * @param name name of the input to get
32947+ * @param options optional. See InputOptions.
32948+ * @returns boolean
32949+ */
32950+ function getBooleanInput(name, options) {
32951+ const trueValue = ['true', 'True', 'TRUE'];
32952+ const falseValue = ['false', 'False', 'FALSE'];
32953+ const val = getInput(name, options);
32954+ if (trueValue.includes(val))
32955+ return true;
32956+ if (falseValue.includes(val))
32957+ return false;
32958+ throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
32959+ `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
32960+ }
32961+ exports.getBooleanInput = getBooleanInput;
3289532962/**
3289632963 * Sets the value of an output.
3289732964 *
0 commit comments