Skip to content

Commit cf4eb22

Browse files
committed
Sync server/dist/
1 parent b266c7d commit cf4eb22

File tree

2 files changed

+30
-75
lines changed

2 files changed

+30
-75
lines changed

server/dist/codeql-development-mcp-server.js

Lines changed: 26 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -32676,8 +32676,9 @@ var require_side_channel_list = __commonJS({
3267632676
}
3267732677
},
3267832678
"delete": function(key) {
32679+
var root = $o && $o.next;
3267932680
var deletedNode = listDelete($o, key);
32680-
if (deletedNode && $o && !$o.next) {
32681+
if (deletedNode && root && root === deletedNode) {
3268132682
$o = void 0;
3268232683
}
3268332684
return !!deletedNode;
@@ -34320,9 +34321,9 @@ var require_parse = __commonJS({
3432034321
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
3432134322
var parts = cleanStr.split(
3432234323
options.delimiter,
34323-
options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
34324+
options.throwOnLimitExceeded ? limit + 1 : limit
3432434325
);
34325-
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
34326+
if (options.throwOnLimitExceeded && parts.length > limit) {
3432634327
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
3432734328
}
3432834329
var skipIndex = -1;
@@ -38370,8 +38371,10 @@ var require_content_disposition = __commonJS({
3837038371
"use strict";
3837138372
module.exports = contentDisposition;
3837238373
module.exports.parse = parse4;
38373-
var utf8Decoder = new TextDecoder("utf-8");
38374+
var basename11 = __require("path").basename;
3837438375
var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
38376+
var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/;
38377+
var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g;
3837538378
var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g;
3837638379
var QESC_REGEXP = /\\([\u0000-\u007f])/g;
3837738380
var QUOTE_REGEXP = /([\\"])/g;
@@ -38407,7 +38410,7 @@ var require_content_disposition = __commonJS({
3840738410
var isQuotedString = TEXT_REGEXP.test(name);
3840838411
var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name) : basename11(fallback);
3840938412
var hasFallback = typeof fallbackName === "string" && fallbackName !== name;
38410-
if (hasFallback || !isQuotedString || hasHexEscape(name)) {
38413+
if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name)) {
3841138414
params["filename*"] = name;
3841238415
}
3841338416
if (isQuotedString || hasFallback) {
@@ -38434,32 +38437,26 @@ var require_content_disposition = __commonJS({
3843438437
return string3;
3843538438
}
3843638439
function decodefield(str2) {
38437-
const match = EXT_VALUE_REGEXP.exec(str2);
38440+
var match = EXT_VALUE_REGEXP.exec(str2);
3843838441
if (!match) {
3843938442
throw new TypeError("invalid extended field value");
3844038443
}
38441-
const charset = match[1].toLowerCase();
38442-
const encoded = match[2];
38444+
var charset = match[1].toLowerCase();
38445+
var encoded = match[2];
38446+
var value;
38447+
var binary2 = encoded.replace(HEX_ESCAPE_REPLACE_REGEXP, pdecode);
3844338448
switch (charset) {
38444-
case "iso-8859-1": {
38445-
const binary2 = decodeHexEscapes(encoded);
38446-
return getlatin1(binary2);
38447-
}
38449+
case "iso-8859-1":
38450+
value = getlatin1(binary2);
38451+
break;
3844838452
case "utf-8":
38449-
case "utf8": {
38450-
try {
38451-
return decodeURIComponent(encoded);
38452-
} catch {
38453-
const binary2 = decodeHexEscapes(encoded);
38454-
const bytes = new Uint8Array(binary2.length);
38455-
for (let idx = 0; idx < binary2.length; idx++) {
38456-
bytes[idx] = binary2.charCodeAt(idx);
38457-
}
38458-
return utf8Decoder.decode(bytes);
38459-
}
38460-
}
38453+
case "utf8":
38454+
value = Buffer.from(binary2, "binary").toString("utf8");
38455+
break;
38456+
default:
38457+
throw new TypeError("unsupported charset in extended field");
3846138458
}
38462-
throw new TypeError("unsupported charset in extended field");
38459+
return value;
3846338460
}
3846438461
function getlatin1(val) {
3846538462
return String(val).replace(NON_LATIN1_REGEXP, "?");
@@ -38509,6 +38506,9 @@ var require_content_disposition = __commonJS({
3850938506
}
3851038507
return new ContentDisposition(type2, params);
3851138508
}
38509+
function pdecode(str2, hex) {
38510+
return String.fromCharCode(parseInt(hex, 16));
38511+
}
3851238512
function pencode(char) {
3851338513
return "%" + String(char).charCodeAt(0).toString(16).toUpperCase();
3851438514
}
@@ -38525,51 +38525,6 @@ var require_content_disposition = __commonJS({
3852538525
this.type = type2;
3852638526
this.parameters = parameters;
3852738527
}
38528-
function basename11(path3) {
38529-
const normalized = path3.replaceAll("\\", "/");
38530-
let end = normalized.length;
38531-
while (end > 0 && normalized[end - 1] === "/") {
38532-
end--;
38533-
}
38534-
if (end === 0) {
38535-
return "";
38536-
}
38537-
let start = end - 1;
38538-
while (start >= 0 && normalized[start] !== "/") {
38539-
start--;
38540-
}
38541-
return normalized.slice(start + 1, end);
38542-
}
38543-
function isHexDigit(char) {
38544-
const code = char.charCodeAt(0);
38545-
return code >= 48 && code <= 57 || // 0-9
38546-
code >= 65 && code <= 70 || // A-F
38547-
code >= 97 && code <= 102;
38548-
}
38549-
function hasHexEscape(str2) {
38550-
const maxIndex = str2.length - 3;
38551-
let lastIndex = -1;
38552-
while ((lastIndex = str2.indexOf("%", lastIndex + 1)) !== -1 && lastIndex <= maxIndex) {
38553-
if (isHexDigit(str2[lastIndex + 1]) && isHexDigit(str2[lastIndex + 2])) {
38554-
return true;
38555-
}
38556-
}
38557-
return false;
38558-
}
38559-
function decodeHexEscapes(str2) {
38560-
const firstEscape = str2.indexOf("%");
38561-
if (firstEscape === -1) return str2;
38562-
let result = str2.slice(0, firstEscape);
38563-
for (let idx = firstEscape; idx < str2.length; idx++) {
38564-
if (str2[idx] === "%" && idx + 2 < str2.length && isHexDigit(str2[idx + 1]) && isHexDigit(str2[idx + 2])) {
38565-
result += String.fromCharCode(Number.parseInt(str2[idx + 1] + str2[idx + 2], 16));
38566-
idx += 2;
38567-
} else {
38568-
result += str2[idx];
38569-
}
38570-
}
38571-
return result;
38572-
}
3857338528
}
3857438529
});
3857538530

@@ -40437,7 +40392,7 @@ var require_main = __commonJS({
4043740392
lastError = e;
4043840393
}
4043940394
}
40440-
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`// tip: ${_getRandomTip()}`)}`);
40395+
_log(`injected env (${keysCount}) from ${shortPaths.join(",")} ${dim(`// tip: ${_getRandomTip()}`)}`);
4044140396
}
4044240397
if (lastError) {
4044340398
return { parsed: parsedAll, error: lastError };

0 commit comments

Comments
 (0)