Skip to content

Commit 54a84d4

Browse files
authored
chore(dist): Update dist directory after few dependent bot PRs (#99)
This commit is to update dist directory after few dependent bot PRs Signed-off-by: Tam Mach <[email protected]>
1 parent ba0e91c commit 54a84d4

File tree

4 files changed

+197
-62
lines changed

4 files changed

+197
-62
lines changed

dist/post_run/index.js

Lines changed: 98 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
20362036
var __importStar = (this && this.__importStar) || function (mod) {
20372037
if (mod && mod.__esModule) return mod;
20382038
var result = {};
2039-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
2039+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
20402040
__setModuleDefault(result, mod);
20412041
return result;
20422042
};
@@ -2248,7 +2248,31 @@ if (typeof Symbol === undefined || !Symbol.asyncIterator) {
22482248
/* 79 */,
22492249
/* 80 */,
22502250
/* 81 */,
2251-
/* 82 */,
2251+
/* 82 */
2252+
/***/ (function(__unusedmodule, exports) {
2253+
2254+
"use strict";
2255+
2256+
// We use any as a valid input type
2257+
/* eslint-disable @typescript-eslint/no-explicit-any */
2258+
Object.defineProperty(exports, "__esModule", { value: true });
2259+
/**
2260+
* Sanitizes an input into a string so it can be passed into issueCommand safely
2261+
* @param input input to sanitize into a string
2262+
*/
2263+
function toCommandValue(input) {
2264+
if (input === null || input === undefined) {
2265+
return '';
2266+
}
2267+
else if (typeof input === 'string' || input instanceof String) {
2268+
return input;
2269+
}
2270+
return JSON.stringify(input);
2271+
}
2272+
exports.toCommandValue = toCommandValue;
2273+
//# sourceMappingURL=utils.js.map
2274+
2275+
/***/ }),
22522276
/* 83 */,
22532277
/* 84 */,
22542278
/* 85 */,
@@ -3457,7 +3481,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
34573481

34583482
/***/ }),
34593483
/* 101 */,
3460-
/* 102 */,
3484+
/* 102 */
3485+
/***/ (function(__unusedmodule, exports, __webpack_require__) {
3486+
3487+
"use strict";
3488+
3489+
// For internal use, subject to change.
3490+
var __importStar = (this && this.__importStar) || function (mod) {
3491+
if (mod && mod.__esModule) return mod;
3492+
var result = {};
3493+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
3494+
result["default"] = mod;
3495+
return result;
3496+
};
3497+
Object.defineProperty(exports, "__esModule", { value: true });
3498+
// We use any as a valid input type
3499+
/* eslint-disable @typescript-eslint/no-explicit-any */
3500+
const fs = __importStar(__webpack_require__(747));
3501+
const os = __importStar(__webpack_require__(87));
3502+
const utils_1 = __webpack_require__(82);
3503+
function issueCommand(command, message) {
3504+
const filePath = process.env[`GITHUB_${command}`];
3505+
if (!filePath) {
3506+
throw new Error(`Unable to find environment variable for file command ${command}`);
3507+
}
3508+
if (!fs.existsSync(filePath)) {
3509+
throw new Error(`Missing file at path: ${filePath}`);
3510+
}
3511+
fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
3512+
encoding: 'utf8'
3513+
});
3514+
}
3515+
exports.issueCommand = issueCommand;
3516+
//# sourceMappingURL=file-command.js.map
3517+
3518+
/***/ }),
34613519
/* 103 */,
34623520
/* 104 */
34633521
/***/ (function(__unusedmodule, exports, __webpack_require__) {
@@ -6609,7 +6667,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
66096667
var __importStar = (this && this.__importStar) || function (mod) {
66106668
if (mod && mod.__esModule) return mod;
66116669
var result = {};
6612-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6670+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
66136671
__setModuleDefault(result, mod);
66146672
return result;
66156673
};
@@ -34891,6 +34949,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
3489134949
};
3489234950
Object.defineProperty(exports, "__esModule", { value: true });
3489334951
const os = __importStar(__webpack_require__(87));
34952+
const utils_1 = __webpack_require__(82);
3489434953
/**
3489534954
* Commands
3489634955
*
@@ -34944,28 +35003,14 @@ class Command {
3494435003
return cmdStr;
3494535004
}
3494635005
}
34947-
/**
34948-
* Sanitizes an input into a string so it can be passed into issueCommand safely
34949-
* @param input input to sanitize into a string
34950-
*/
34951-
function toCommandValue(input) {
34952-
if (input === null || input === undefined) {
34953-
return '';
34954-
}
34955-
else if (typeof input === 'string' || input instanceof String) {
34956-
return input;
34957-
}
34958-
return JSON.stringify(input);
34959-
}
34960-
exports.toCommandValue = toCommandValue;
3496135006
function escapeData(s) {
34962-
return toCommandValue(s)
35007+
return utils_1.toCommandValue(s)
3496335008
.replace(/%/g, '%25')
3496435009
.replace(/\r/g, '%0D')
3496535010
.replace(/\n/g, '%0A');
3496635011
}
3496735012
function escapeProperty(s) {
34968-
return toCommandValue(s)
35013+
return utils_1.toCommandValue(s)
3496935014
.replace(/%/g, '%25')
3497035015
.replace(/\r/g, '%0D')
3497135016
.replace(/\n/g, '%0A')
@@ -35229,7 +35274,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
3522935274
var __importStar = (this && this.__importStar) || function (mod) {
3523035275
if (mod && mod.__esModule) return mod;
3523135276
var result = {};
35232-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35277+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
3523335278
__setModuleDefault(result, mod);
3523435279
return result;
3523535280
};
@@ -36055,6 +36100,12 @@ function convertBody(buffer, headers) {
3605536100
// html4
3605636101
if (!res && str) {
3605736102
res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
36103+
if (!res) {
36104+
res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
36105+
if (res) {
36106+
res.pop(); // drop last quote
36107+
}
36108+
}
3605836109

3605936110
if (res) {
3606036111
res = /charset=(.*)/i.exec(res.pop());
@@ -37062,7 +37113,7 @@ function fetch(url, opts) {
3706237113
// HTTP fetch step 5.5
3706337114
switch (request.redirect) {
3706437115
case 'error':
37065-
reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
37116+
reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
3706637117
finalize();
3706737118
return;
3706837119
case 'manual':
@@ -37101,7 +37152,8 @@ function fetch(url, opts) {
3710137152
method: request.method,
3710237153
body: request.body,
3710337154
signal: request.signal,
37104-
timeout: request.timeout
37155+
timeout: request.timeout,
37156+
size: request.size
3710537157
};
3710637158

3710737159
// HTTP-redirect fetch step 9
@@ -37612,6 +37664,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
3761237664
};
3761337665
Object.defineProperty(exports, "__esModule", { value: true });
3761437666
const command_1 = __webpack_require__(431);
37667+
const file_command_1 = __webpack_require__(102);
37668+
const utils_1 = __webpack_require__(82);
3761537669
const os = __importStar(__webpack_require__(87));
3761637670
const path = __importStar(__webpack_require__(622));
3761737671
/**
@@ -37638,9 +37692,17 @@ var ExitCode;
3763837692
*/
3763937693
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3764037694
function exportVariable(name, val) {
37641-
const convertedVal = command_1.toCommandValue(val);
37695+
const convertedVal = utils_1.toCommandValue(val);
3764237696
process.env[name] = convertedVal;
37643-
command_1.issueCommand('set-env', { name }, convertedVal);
37697+
const filePath = process.env['GITHUB_ENV'] || '';
37698+
if (filePath) {
37699+
const delimiter = '_GitHubActionsFileCommandDelimeter_';
37700+
const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`;
37701+
file_command_1.issueCommand('ENV', commandValue);
37702+
}
37703+
else {
37704+
command_1.issueCommand('set-env', { name }, convertedVal);
37705+
}
3764437706
}
3764537707
exports.exportVariable = exportVariable;
3764637708
/**
@@ -37656,7 +37718,13 @@ exports.setSecret = setSecret;
3765637718
* @param inputPath
3765737719
*/
3765837720
function addPath(inputPath) {
37659-
command_1.issueCommand('add-path', {}, inputPath);
37721+
const filePath = process.env['GITHUB_PATH'] || '';
37722+
if (filePath) {
37723+
file_command_1.issueCommand('PATH', inputPath);
37724+
}
37725+
else {
37726+
command_1.issueCommand('add-path', {}, inputPath);
37727+
}
3766037728
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
3766137729
}
3766237730
exports.addPath = addPath;
@@ -41594,7 +41662,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
4159441662
var __importStar = (this && this.__importStar) || function (mod) {
4159541663
if (mod && mod.__esModule) return mod;
4159641664
var result = {};
41597-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
41665+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4159841666
__setModuleDefault(result, mod);
4159941667
return result;
4160041668
};
@@ -43696,7 +43764,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
4369643764
var __importStar = (this && this.__importStar) || function (mod) {
4369743765
if (mod && mod.__esModule) return mod;
4369843766
var result = {};
43699-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
43767+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4370043768
__setModuleDefault(result, mod);
4370143769
return result;
4370243770
};
@@ -43826,7 +43894,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
4382643894
var __importStar = (this && this.__importStar) || function (mod) {
4382743895
if (mod && mod.__esModule) return mod;
4382843896
var result = {};
43829-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
43897+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4383043898
__setModuleDefault(result, mod);
4383143899
return result;
4383243900
};
@@ -45124,7 +45192,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
4512445192
var __importStar = (this && this.__importStar) || function (mod) {
4512545193
if (mod && mod.__esModule) return mod;
4512645194
var result = {};
45127-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
45195+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4512845196
__setModuleDefault(result, mod);
4512945197
return result;
4513045198
};

0 commit comments

Comments
 (0)