chore: Update dist

This commit is contained in:
GitHub Actions
2026-05-26 16:45:21 +00:00
parent c39f282697
commit c329d242ce
2 changed files with 418 additions and 351 deletions
Generated Vendored
+20 -18
View File
@@ -201,7 +201,7 @@ var require_file_command = __commonJS({
exports2.issueFileCommand = issueFileCommand; exports2.issueFileCommand = issueFileCommand;
exports2.prepareKeyValueMessage = prepareKeyValueMessage; exports2.prepareKeyValueMessage = prepareKeyValueMessage;
var crypto = __importStar(require("crypto")); var crypto = __importStar(require("crypto"));
var fs = __importStar(require("fs")); var fs2 = __importStar(require("fs"));
var os = __importStar(require("os")); var os = __importStar(require("os"));
var utils_1 = require_utils(); var utils_1 = require_utils();
function issueFileCommand(command, message) { function issueFileCommand(command, message) {
@@ -209,10 +209,10 @@ var require_file_command = __commonJS({
if (!filePath) { if (!filePath) {
throw new Error(`Unable to find environment variable for file command ${command}`); throw new Error(`Unable to find environment variable for file command ${command}`);
} }
if (!fs.existsSync(filePath)) { if (!fs2.existsSync(filePath)) {
throw new Error(`Missing file at path: ${filePath}`); throw new Error(`Missing file at path: ${filePath}`);
} }
fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { fs2.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, {
encoding: "utf8" encoding: "utf8"
}); });
} }
@@ -5981,7 +5981,7 @@ var require_client_h1 = __commonJS({
kResume, kResume,
kHTTPContext kHTTPContext
} = require_symbols(); } = require_symbols();
var constants = require_constants2(); var constants2 = require_constants2();
var EMPTY_BUF = Buffer.alloc(0); var EMPTY_BUF = Buffer.alloc(0);
var FastBuffer = Buffer[Symbol.species]; var FastBuffer = Buffer[Symbol.species];
var addListener = util.addListener; var addListener = util.addListener;
@@ -6053,7 +6053,7 @@ var require_client_h1 = __commonJS({
constructor(client, socket, { exports: exports3 }) { constructor(client, socket, { exports: exports3 }) {
assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0); assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0);
this.llhttp = exports3; this.llhttp = exports3;
this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE); this.ptr = this.llhttp.llhttp_alloc(constants2.TYPE.RESPONSE);
this.client = client; this.client = client;
this.socket = socket; this.socket = socket;
this.timeout = null; this.timeout = null;
@@ -6148,19 +6148,19 @@ var require_client_h1 = __commonJS({
currentBufferRef = null; currentBufferRef = null;
} }
const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr; const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr;
if (ret === constants.ERROR.PAUSED_UPGRADE) { if (ret === constants2.ERROR.PAUSED_UPGRADE) {
this.onUpgrade(data.slice(offset)); this.onUpgrade(data.slice(offset));
} else if (ret === constants.ERROR.PAUSED) { } else if (ret === constants2.ERROR.PAUSED) {
this.paused = true; this.paused = true;
socket.unshift(data.slice(offset)); socket.unshift(data.slice(offset));
} else if (ret !== constants.ERROR.OK) { } else if (ret !== constants2.ERROR.OK) {
const ptr = llhttp.llhttp_get_error_reason(this.ptr); const ptr = llhttp.llhttp_get_error_reason(this.ptr);
let message = ""; let message = "";
if (ptr) { if (ptr) {
const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0); const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0);
message = "Response does not match the HTTP/1.1 protocol (" + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + ")"; message = "Response does not match the HTTP/1.1 protocol (" + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + ")";
} }
throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset)); throw new HTTPParserError(message, constants2.ERROR[ret], data.slice(offset));
} }
} catch (err) { } catch (err) {
util.destroy(socket, err); util.destroy(socket, err);
@@ -6335,7 +6335,7 @@ var require_client_h1 = __commonJS({
socket[kBlocking] = false; socket[kBlocking] = false;
client[kResume](); client[kResume]();
} }
return pause ? constants.ERROR.PAUSED : 0; return pause ? constants2.ERROR.PAUSED : 0;
} }
onBody(buf) { onBody(buf) {
const { client, socket, statusCode, maxResponseSize } = this; const { client, socket, statusCode, maxResponseSize } = this;
@@ -6357,7 +6357,7 @@ var require_client_h1 = __commonJS({
} }
this.bytesRead += buf.length; this.bytesRead += buf.length;
if (request.onData(buf) === false) { if (request.onData(buf) === false) {
return constants.ERROR.PAUSED; return constants2.ERROR.PAUSED;
} }
} }
onMessageComplete() { onMessageComplete() {
@@ -6392,13 +6392,13 @@ var require_client_h1 = __commonJS({
if (socket[kWriting]) { if (socket[kWriting]) {
assert(client[kRunning] === 0); assert(client[kRunning] === 0);
util.destroy(socket, new InformationalError("reset")); util.destroy(socket, new InformationalError("reset"));
return constants.ERROR.PAUSED; return constants2.ERROR.PAUSED;
} else if (!shouldKeepAlive) { } else if (!shouldKeepAlive) {
util.destroy(socket, new InformationalError("reset")); util.destroy(socket, new InformationalError("reset"));
return constants.ERROR.PAUSED; return constants2.ERROR.PAUSED;
} else if (socket[kReset] && client[kRunning] === 0) { } else if (socket[kReset] && client[kRunning] === 0) {
util.destroy(socket, new InformationalError("reset")); util.destroy(socket, new InformationalError("reset"));
return constants.ERROR.PAUSED; return constants2.ERROR.PAUSED;
} else if (client[kPipelining] == null || client[kPipelining] === 1) { } else if (client[kPipelining] == null || client[kPipelining] === 1) {
setImmediate(() => client[kResume]()); setImmediate(() => client[kResume]());
} else { } else {
@@ -20217,13 +20217,13 @@ var require_io_util = __commonJS({
exports2.isRooted = isRooted; exports2.isRooted = isRooted;
exports2.tryGetExecutablePath = tryGetExecutablePath; exports2.tryGetExecutablePath = tryGetExecutablePath;
exports2.getCmdPath = getCmdPath; exports2.getCmdPath = getCmdPath;
var fs = __importStar(require("fs")); var fs2 = __importStar(require("fs"));
var path = __importStar(require("path")); var path = __importStar(require("path"));
_a = fs.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink; _a = fs2.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink;
exports2.IS_WINDOWS = process.platform === "win32"; exports2.IS_WINDOWS = process.platform === "win32";
function readlink(fsPath) { function readlink(fsPath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const result = yield fs.promises.readlink(fsPath); const result = yield fs2.promises.readlink(fsPath);
if (exports2.IS_WINDOWS && !result.endsWith("\\")) { if (exports2.IS_WINDOWS && !result.endsWith("\\")) {
return `${result}\\`; return `${result}\\`;
} }
@@ -20231,7 +20231,7 @@ var require_io_util = __commonJS({
}); });
} }
exports2.UV_FS_O_EXLOCK = 268435456; exports2.UV_FS_O_EXLOCK = 268435456;
exports2.READONLY = fs.constants.O_RDONLY; exports2.READONLY = fs2.constants.O_RDONLY;
function exists(fsPath) { function exists(fsPath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
@@ -21593,6 +21593,7 @@ module.exports = __toCommonJS(index_exports);
var core2 = __toESM(require_core()); var core2 = __toESM(require_core());
// src/helpers.ts // src/helpers.ts
var fs = __toESM(require("node:fs"));
var core = __toESM(require_core()); var core = __toESM(require_core());
function errorMessage(error) { function errorMessage(error) {
return error instanceof Error ? error.message : String(error); return error instanceof Error ? error.message : String(error);
@@ -21611,6 +21612,7 @@ function getBooleanInput(name, options) {
Support boolean input list: \`true | True | TRUE | false | False | FALSE\`` Support boolean input list: \`true | True | TRUE | false | False | FALSE\``
); );
} }
var O_NOFOLLOW = fs.constants.O_NOFOLLOW ?? 0;
// src/cleanup/index.ts // src/cleanup/index.ts
function cleanup() { function cleanup() {
Generated Vendored
+398 -333
View File
File diff suppressed because it is too large Load Diff