chore: Update dist
This commit is contained in:
parent
c39f282697
commit
c329d242ce
2 changed files with 418 additions and 351 deletions
38
dist/cleanup/index.js
generated
vendored
38
dist/cleanup/index.js
generated
vendored
|
|
@ -201,7 +201,7 @@ var require_file_command = __commonJS({
|
|||
exports2.issueFileCommand = issueFileCommand;
|
||||
exports2.prepareKeyValueMessage = prepareKeyValueMessage;
|
||||
var crypto = __importStar(require("crypto"));
|
||||
var fs = __importStar(require("fs"));
|
||||
var fs2 = __importStar(require("fs"));
|
||||
var os = __importStar(require("os"));
|
||||
var utils_1 = require_utils();
|
||||
function issueFileCommand(command, message) {
|
||||
|
|
@ -209,10 +209,10 @@ var require_file_command = __commonJS({
|
|||
if (!filePath) {
|
||||
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}`);
|
||||
}
|
||||
fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, {
|
||||
fs2.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, {
|
||||
encoding: "utf8"
|
||||
});
|
||||
}
|
||||
|
|
@ -5981,7 +5981,7 @@ var require_client_h1 = __commonJS({
|
|||
kResume,
|
||||
kHTTPContext
|
||||
} = require_symbols();
|
||||
var constants = require_constants2();
|
||||
var constants2 = require_constants2();
|
||||
var EMPTY_BUF = Buffer.alloc(0);
|
||||
var FastBuffer = Buffer[Symbol.species];
|
||||
var addListener = util.addListener;
|
||||
|
|
@ -6053,7 +6053,7 @@ var require_client_h1 = __commonJS({
|
|||
constructor(client, socket, { exports: exports3 }) {
|
||||
assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0);
|
||||
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.socket = socket;
|
||||
this.timeout = null;
|
||||
|
|
@ -6148,19 +6148,19 @@ var require_client_h1 = __commonJS({
|
|||
currentBufferRef = null;
|
||||
}
|
||||
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));
|
||||
} else if (ret === constants.ERROR.PAUSED) {
|
||||
} else if (ret === constants2.ERROR.PAUSED) {
|
||||
this.paused = true;
|
||||
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);
|
||||
let message = "";
|
||||
if (ptr) {
|
||||
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() + ")";
|
||||
}
|
||||
throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset));
|
||||
throw new HTTPParserError(message, constants2.ERROR[ret], data.slice(offset));
|
||||
}
|
||||
} catch (err) {
|
||||
util.destroy(socket, err);
|
||||
|
|
@ -6335,7 +6335,7 @@ var require_client_h1 = __commonJS({
|
|||
socket[kBlocking] = false;
|
||||
client[kResume]();
|
||||
}
|
||||
return pause ? constants.ERROR.PAUSED : 0;
|
||||
return pause ? constants2.ERROR.PAUSED : 0;
|
||||
}
|
||||
onBody(buf) {
|
||||
const { client, socket, statusCode, maxResponseSize } = this;
|
||||
|
|
@ -6357,7 +6357,7 @@ var require_client_h1 = __commonJS({
|
|||
}
|
||||
this.bytesRead += buf.length;
|
||||
if (request.onData(buf) === false) {
|
||||
return constants.ERROR.PAUSED;
|
||||
return constants2.ERROR.PAUSED;
|
||||
}
|
||||
}
|
||||
onMessageComplete() {
|
||||
|
|
@ -6392,13 +6392,13 @@ var require_client_h1 = __commonJS({
|
|||
if (socket[kWriting]) {
|
||||
assert(client[kRunning] === 0);
|
||||
util.destroy(socket, new InformationalError("reset"));
|
||||
return constants.ERROR.PAUSED;
|
||||
return constants2.ERROR.PAUSED;
|
||||
} else if (!shouldKeepAlive) {
|
||||
util.destroy(socket, new InformationalError("reset"));
|
||||
return constants.ERROR.PAUSED;
|
||||
return constants2.ERROR.PAUSED;
|
||||
} else if (socket[kReset] && client[kRunning] === 0) {
|
||||
util.destroy(socket, new InformationalError("reset"));
|
||||
return constants.ERROR.PAUSED;
|
||||
return constants2.ERROR.PAUSED;
|
||||
} else if (client[kPipelining] == null || client[kPipelining] === 1) {
|
||||
setImmediate(() => client[kResume]());
|
||||
} else {
|
||||
|
|
@ -20217,13 +20217,13 @@ var require_io_util = __commonJS({
|
|||
exports2.isRooted = isRooted;
|
||||
exports2.tryGetExecutablePath = tryGetExecutablePath;
|
||||
exports2.getCmdPath = getCmdPath;
|
||||
var fs = __importStar(require("fs"));
|
||||
var fs2 = __importStar(require("fs"));
|
||||
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";
|
||||
function readlink(fsPath) {
|
||||
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("\\")) {
|
||||
return `${result}\\`;
|
||||
}
|
||||
|
|
@ -20231,7 +20231,7 @@ var require_io_util = __commonJS({
|
|||
});
|
||||
}
|
||||
exports2.UV_FS_O_EXLOCK = 268435456;
|
||||
exports2.READONLY = fs.constants.O_RDONLY;
|
||||
exports2.READONLY = fs2.constants.O_RDONLY;
|
||||
function exists(fsPath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
|
|
@ -21593,6 +21593,7 @@ module.exports = __toCommonJS(index_exports);
|
|||
var core2 = __toESM(require_core());
|
||||
|
||||
// src/helpers.ts
|
||||
var fs = __toESM(require("node:fs"));
|
||||
var core = __toESM(require_core());
|
||||
function errorMessage(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\``
|
||||
);
|
||||
}
|
||||
var O_NOFOLLOW = fs.constants.O_NOFOLLOW ?? 0;
|
||||
|
||||
// src/cleanup/index.ts
|
||||
function cleanup() {
|
||||
|
|
|
|||
731
dist/index.js
generated
vendored
731
dist/index.js
generated
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue