Skip to content

Commit d083bed

Browse files
committed
dev: Development changes
1 parent ba872c0 commit d083bed

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

  • .github/actions/node-build-artifacts/dist

.github/actions/node-build-artifacts/dist/index.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17580,12 +17580,12 @@ var require_lib = __commonJS({
1758017580
throw new Error("Client has already been disposed.");
1758117581
}
1758217582
const parsedUrl = new URL(requestUrl);
17583-
let info = this._prepareRequest(verb, parsedUrl, headers);
17583+
let info2 = this._prepareRequest(verb, parsedUrl, headers);
1758417584
const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;
1758517585
let numTries = 0;
1758617586
let response;
1758717587
do {
17588-
response = yield this.requestRaw(info, data);
17588+
response = yield this.requestRaw(info2, data);
1758917589
if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
1759017590
let authenticationHandler;
1759117591
for (const handler of this.handlers) {
@@ -17595,7 +17595,7 @@ var require_lib = __commonJS({
1759517595
}
1759617596
}
1759717597
if (authenticationHandler) {
17598-
return authenticationHandler.handleAuthentication(this, info, data);
17598+
return authenticationHandler.handleAuthentication(this, info2, data);
1759917599
} else {
1760017600
return response;
1760117601
}
@@ -17618,8 +17618,8 @@ var require_lib = __commonJS({
1761817618
}
1761917619
}
1762017620
}
17621-
info = this._prepareRequest(verb, parsedRedirectUrl, headers);
17622-
response = yield this.requestRaw(info, data);
17621+
info2 = this._prepareRequest(verb, parsedRedirectUrl, headers);
17622+
response = yield this.requestRaw(info2, data);
1762317623
redirectsRemaining--;
1762417624
}
1762517625
if (!response.message.statusCode || !HttpResponseRetryCodes.includes(response.message.statusCode)) {
@@ -17648,7 +17648,7 @@ var require_lib = __commonJS({
1764817648
* @param info
1764917649
* @param data
1765017650
*/
17651-
requestRaw(info, data) {
17651+
requestRaw(info2, data) {
1765217652
return __awaiter(this, void 0, void 0, function* () {
1765317653
return new Promise((resolve, reject) => {
1765417654
function callbackForResult(err, res) {
@@ -17660,7 +17660,7 @@ var require_lib = __commonJS({
1766017660
resolve(res);
1766117661
}
1766217662
}
17663-
this.requestRawWithCallback(info, data, callbackForResult);
17663+
this.requestRawWithCallback(info2, data, callbackForResult);
1766417664
});
1766517665
});
1766617666
}
@@ -17670,12 +17670,12 @@ var require_lib = __commonJS({
1767017670
* @param data
1767117671
* @param onResult
1767217672
*/
17673-
requestRawWithCallback(info, data, onResult) {
17673+
requestRawWithCallback(info2, data, onResult) {
1767417674
if (typeof data === "string") {
17675-
if (!info.options.headers) {
17676-
info.options.headers = {};
17675+
if (!info2.options.headers) {
17676+
info2.options.headers = {};
1767717677
}
17678-
info.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8");
17678+
info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8");
1767917679
}
1768017680
let callbackCalled = false;
1768117681
function handleResult(err, res) {
@@ -17684,7 +17684,7 @@ var require_lib = __commonJS({
1768417684
onResult(err, res);
1768517685
}
1768617686
}
17687-
const req = info.httpModule.request(info.options, (msg) => {
17687+
const req = info2.httpModule.request(info2.options, (msg) => {
1768817688
const res = new HttpClientResponse(msg);
1768917689
handleResult(void 0, res);
1769017690
});
@@ -17696,7 +17696,7 @@ var require_lib = __commonJS({
1769617696
if (socket) {
1769717697
socket.end();
1769817698
}
17699-
handleResult(new Error(`Request timeout: ${info.options.path}`));
17699+
handleResult(new Error(`Request timeout: ${info2.options.path}`));
1770017700
});
1770117701
req.on("error", function(err) {
1770217702
handleResult(err);
@@ -17732,27 +17732,27 @@ var require_lib = __commonJS({
1773217732
return this._getProxyAgentDispatcher(parsedUrl, proxyUrl);
1773317733
}
1773417734
_prepareRequest(method, requestUrl, headers) {
17735-
const info = {};
17736-
info.parsedUrl = requestUrl;
17737-
const usingSsl = info.parsedUrl.protocol === "https:";
17738-
info.httpModule = usingSsl ? https : http;
17735+
const info2 = {};
17736+
info2.parsedUrl = requestUrl;
17737+
const usingSsl = info2.parsedUrl.protocol === "https:";
17738+
info2.httpModule = usingSsl ? https : http;
1773917739
const defaultPort = usingSsl ? 443 : 80;
17740-
info.options = {};
17741-
info.options.host = info.parsedUrl.hostname;
17742-
info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
17743-
info.options.path = (info.parsedUrl.pathname || "") + (info.parsedUrl.search || "");
17744-
info.options.method = method;
17745-
info.options.headers = this._mergeHeaders(headers);
17740+
info2.options = {};
17741+
info2.options.host = info2.parsedUrl.hostname;
17742+
info2.options.port = info2.parsedUrl.port ? parseInt(info2.parsedUrl.port) : defaultPort;
17743+
info2.options.path = (info2.parsedUrl.pathname || "") + (info2.parsedUrl.search || "");
17744+
info2.options.method = method;
17745+
info2.options.headers = this._mergeHeaders(headers);
1774617746
if (this.userAgent != null) {
17747-
info.options.headers["user-agent"] = this.userAgent;
17747+
info2.options.headers["user-agent"] = this.userAgent;
1774817748
}
17749-
info.options.agent = this._getAgent(info.parsedUrl);
17749+
info2.options.agent = this._getAgent(info2.parsedUrl);
1775017750
if (this.handlers) {
1775117751
for (const handler of this.handlers) {
17752-
handler.prepareRequest(info.options);
17752+
handler.prepareRequest(info2.options);
1775317753
}
1775417754
}
17755-
return info;
17755+
return info2;
1775617756
}
1775717757
_mergeHeaders(headers) {
1775817758
if (this.requestOptions && this.requestOptions.headers) {
@@ -19742,10 +19742,10 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
1974219742
(0, command_1.issueCommand)("notice", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
1974319743
}
1974419744
exports2.notice = notice;
19745-
function info(message) {
19745+
function info2(message) {
1974619746
process.stdout.write(message + os.EOL);
1974719747
}
19748-
exports2.info = info;
19748+
exports2.info = info2;
1974919749
function startGroup2(name) {
1975019750
(0, command_1.issue)("group", name);
1975119751
}
@@ -20052,7 +20052,7 @@ async function run() {
2005220052
import_node_fs.default.mkdirSync(artifactsDir, { recursive: true });
2005320053
const infoFile = [];
2005420054
for (const pkg of packages) {
20055-
core.debug("Preparing", import_ansi_colors.default.magenta(`${pkg.name}`));
20055+
core.info("Preparing", import_ansi_colors.default.magenta(`${pkg.name}`));
2005620056
const packageDir = import_node_path.default.join(rootDir, pkg.directory);
2005720057
const buildDir = import_node_path.default.join(packageDir, pkg.buildDir || "./");
2005820058
if (!import_node_fs.default.existsSync(buildDir)) {
@@ -20065,15 +20065,15 @@ async function run() {
2006520065
directory: pkgDir,
2006620066
buildDir: void 0
2006720067
});
20068-
core.debug("Copying build files to artifacts dir");
20068+
core.info(`Copying build files from ${pkgDir}`);
2006920069
import_node_fs.default.cpSync(buildDir, import_node_path.default.join(artifactsDir, pkgDir), { recursive: true });
2007020070
}
20071-
core.debug("Writing packages info to json file");
20071+
core.info("Writing projects.json file");
2007220072
import_node_fs.default.writeFileSync(
2007320073
import_node_path.default.join(artifactsDir, "projects.json"),
2007420074
JSON.stringify(infoFile, null, 2)
2007520075
);
20076-
core.debug("Copying COMMIT_CHANGELOG.md to artifacts dir");
20076+
core.debug("Copying COMMIT_CHANGELOG.md");
2007720077
import_node_fs.default.cpSync(
2007820078
import_node_path.default.join(rootDir, "COMMIT_CHANGELOG.md"),
2007920079
import_node_path.default.join(artifactsDir, "COMMIT_CHANGELOG.md")

0 commit comments

Comments
 (0)