Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 54 additions & 16 deletions .github/actions/deploy-docs-site/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5873,24 +5873,55 @@ var require_client_h1 = __commonJS({
currentBufferRef = null;
}
const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr;
if (ret === constants3.ERROR.PAUSED_UPGRADE) {
this.onUpgrade(data.slice(offset));
} else if (ret === constants3.ERROR.PAUSED) {
this.paused = true;
socket.unshift(data.slice(offset));
} else if (ret !== constants3.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() + ")";
if (ret !== constants3.ERROR.OK) {
const body = data.subarray(offset);
if (ret === constants3.ERROR.PAUSED_UPGRADE) {
this.onUpgrade(body);
} else if (ret === constants3.ERROR.PAUSED) {
this.paused = true;
socket.unshift(body);
} else {
throw this.createError(ret, body);
}
throw new HTTPParserError(message, constants3.ERROR[ret], data.slice(offset));
}
} catch (err) {
util.destroy(socket, err);
}
}
finish() {
assert2(currentParser === null);
assert2(this.ptr != null);
assert2(!this.paused);
const { llhttp } = this;
let ret;
try {
currentParser = this;
ret = llhttp.llhttp_finish(this.ptr);
} finally {
currentParser = null;
}
if (ret === constants3.ERROR.OK) {
return null;
}
if (ret === constants3.ERROR.PAUSED || ret === constants3.ERROR.PAUSED_UPGRADE) {
this.paused = true;
return null;
}
return this.createError(ret, EMPTY_BUF);
}
createError(ret, data) {
const { llhttp, contentLength, bytesRead } = this;
if (contentLength && bytesRead !== parseInt(contentLength, 10)) {
return new ResponseContentLengthMismatchError();
}
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() + ")";
}
return new HTTPParserError(message, constants3.ERROR[ret], data);
}
destroy() {
assert2(this.ptr != null);
assert2(currentParser == null);
Expand Down Expand Up @@ -6162,7 +6193,11 @@ var require_client_h1 = __commonJS({
assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
const parser2 = this[kParser];
if (err.code === "ECONNRESET" && parser2.statusCode && !parser2.shouldKeepAlive) {
parser2.onMessageComplete();
const parserErr = parser2.finish();
if (parserErr) {
this[kError] = parserErr;
this[kClient][kOnError](parserErr);
}
return;
}
this[kError] = err;
Expand All @@ -6177,7 +6212,10 @@ var require_client_h1 = __commonJS({
addListener(socket, "end", function() {
const parser2 = this[kParser];
if (parser2.statusCode && !parser2.shouldKeepAlive) {
parser2.onMessageComplete();
const parserErr = parser2.finish();
if (parserErr) {
util.destroy(this, parserErr);
}
return;
}
util.destroy(this, new SocketError("other side closed", util.getSocketInfo(this)));
Expand All @@ -6187,7 +6225,7 @@ var require_client_h1 = __commonJS({
const parser2 = this[kParser];
if (parser2) {
if (!this[kError] && parser2.statusCode && !parser2.shouldKeepAlive) {
parser2.onMessageComplete();
this[kError] = parser2.finish() || this[kError];
}
this[kParser].destroy();
this[kParser] = null;
Expand Down Expand Up @@ -28643,7 +28681,7 @@ var RequestError = class extends Error {
};

//
var VERSION2 = "10.0.9";
var VERSION2 = "10.0.10";
var defaults_default = {
headers: {
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
Expand Down
330 changes: 165 additions & 165 deletions integration/animations/pnpm-lock.yaml

Large diffs are not rendered by default.

Loading
Loading