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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ List of available LLVM versions:
- `22.1.2`
- `22.1.3`
- `22.1.4`
- `22.1.5`

List of available LLVM commit hashes:

Expand Down
316 changes: 158 additions & 158 deletions dist/update-known-versions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30663,180 +30663,180 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util");

/***/ }),

/***/ 1120:
/***/ ((module) => {
/***/ 4649:
/***/ ((__unused_webpack_module, exports) => {

var __webpack_unused_export__;


const NullObject = function NullObject () { }
NullObject.prototype = Object.create(null)

/**
* RegExp to match *( ";" parameter ) in RFC 7231 sec 3.1.1.1
*
* parameter = token "=" ( token / quoted-string )
* token = 1*tchar
* tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
* / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
* / DIGIT / ALPHA
* ; any VCHAR, except delimiters
* quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
* qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text
* obs-text = %x80-FF
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
/*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
const paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu

__webpack_unused_export__ = ({ value: true });
__webpack_unused_export__ = format;
exports.qg = parse;
const TEXT_REGEXP = /^[\u0009\u0020-\u007e\u0080-\u00ff]*$/;
const TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
/**
* RegExp to match quoted-pair in RFC 7230 sec 3.2.6
*
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
* obs-text = %x80-FF
* RegExp to match chars that must be quoted-pair in RFC 9110 sec 5.6.4
*/
const quotedPairRE = /\\([\v\u0020-\u00ff])/gu

const QUOTE_REGEXP = /[\\"]/g;
/**
* RegExp to match type in RFC 7231 sec 3.1.1.1
* RegExp to match type in RFC 9110 sec 8.3.1
*
* media-type = type "/" subtype
* type = token
* subtype = token
*/
const mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u

// default ContentType to prevent repeated object creation
const defaultContentType = { type: '', parameters: new NullObject() }
Object.freeze(defaultContentType.parameters)
Object.freeze(defaultContentType)

const TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
/**
* Parse media type to object.
*
* @param {string|object} header
* @return {Object}
* @public
* Null object perf optimization. Faster than `Object.create(null)` and `{ __proto__: null }`.
*/

function parse (header) {
if (typeof header !== 'string') {
throw new TypeError('argument header is required and must be a string')
}

let index = header.indexOf(';')
const type = index !== -1
? header.slice(0, index).trim()
: header.trim()

if (mediaTypeRE.test(type) === false) {
throw new TypeError('invalid media type')
}

const result = {
type: type.toLowerCase(),
parameters: new NullObject()
}

// parse parameters
if (index === -1) {
return result
}

let key
let match
let value

paramRE.lastIndex = index

while ((match = paramRE.exec(header))) {
if (match.index !== index) {
throw new TypeError('invalid parameter format')
const NullObject = /* @__PURE__ */ (() => {
const C = function () { };
C.prototype = Object.create(null);
return C;
})();
/**
* Format an object into a `Content-Type` header.
*/
function format(obj) {
const { type, parameters } = obj;
if (!type || !TYPE_REGEXP.test(type)) {
throw new TypeError(`Invalid type: ${type}`);
}
let result = type;
if (parameters) {
for (const param of Object.keys(parameters)) {
if (!TOKEN_REGEXP.test(param)) {
throw new TypeError(`Invalid parameter name: ${param}`);
}
result += `; ${param}=${qstring(parameters[param])}`;
}
}

index += match[0].length
key = match[1].toLowerCase()
value = match[2]

if (value[0] === '"') {
// remove quotes and escapes
value = value
.slice(1, value.length - 1)

quotedPairRE.test(value) && (value = value.replace(quotedPairRE, '$1'))
return result;
}
/**
* Parse a `Content-Type` header.
*/
function parse(header, options) {
const len = header.length;
let index = skipOWS(header, 0, len);
const valueStart = index;
index = skipValue(header, index, len);
const valueEnd = trailingOWS(header, valueStart, index);
const type = header.slice(valueStart, valueEnd).toLowerCase();
const parameters = options?.parameters === false
? new NullObject()
: parseParameters(header, index, len);
return { type, parameters };
}
const SP = 32; // " "
const HTAB = 9; // "\t"
const SEMI = 59; // ";"
const EQ = 61; // "="
const DQUOTE = 34; // '"'
const BSLASH = 92; // "\\"
/**
* Parses the parameters of a `Content-Type` header starting at the given index.
*/
function parseParameters(header, index, len) {
const parameters = new NullObject();
parameter: while (index < len) {
index = skipOWS(header, index + 1 /* Skip over ; */, len);
const keyStart = index;
while (index < len) {
const code = header.charCodeAt(index);
if (code === SEMI)
continue parameter;
if (code === EQ) {
const keyEnd = trailingOWS(header, keyStart, index);
const key = header.slice(keyStart, keyEnd).toLowerCase();
index = skipOWS(header, index + 1, len);
if (index < len && header.charCodeAt(index) === DQUOTE) {
index++;
let value = "";
while (index < len) {
const code = header.charCodeAt(index++);
if (code === DQUOTE) {
index = skipValue(header, index, len);
if (parameters[key] === undefined)
parameters[key] = value;
break;
}
if (code === BSLASH && index < len) {
value += header[index++];
continue;
}
value += String.fromCharCode(code);
}
continue parameter;
}
const valueStart = index;
index = skipValue(header, index, len);
if (parameters[key] === undefined) {
const valueEnd = trailingOWS(header, valueStart, index);
parameters[key] = header.slice(valueStart, valueEnd);
}
continue parameter;
}
index++;
}
}

result.parameters[key] = value
}

if (index !== header.length) {
throw new TypeError('invalid parameter format')
}

return result
return parameters;
}

function safeParse (header) {
if (typeof header !== 'string') {
return defaultContentType
}

let index = header.indexOf(';')
const type = index !== -1
? header.slice(0, index).trim()
: header.trim()

if (mediaTypeRE.test(type) === false) {
return defaultContentType
}

const result = {
type: type.toLowerCase(),
parameters: new NullObject()
}

// parse parameters
if (index === -1) {
return result
}

let key
let match
let value

paramRE.lastIndex = index

while ((match = paramRE.exec(header))) {
if (match.index !== index) {
return defaultContentType
/**
* Skip over characters until a semicolon.
*/
function skipValue(str, index, len) {
while (index < len) {
const char = str.charCodeAt(index);
if (char === SEMI)
break;
index++;
}

index += match[0].length
key = match[1].toLowerCase()
value = match[2]

if (value[0] === '"') {
// remove quotes and escapes
value = value
.slice(1, value.length - 1)

quotedPairRE.test(value) && (value = value.replace(quotedPairRE, '$1'))
return index;
}
/**
* Skip optional whitespace (OWS) in an HTTP header value.
*
* OWS is defined in RFC 9110 sec 5.6.3 as SP (" ") or HTAB ("\t").
*/
function skipOWS(header, index, len) {
while (index < len) {
const char = header.charCodeAt(index);
if (char !== SP && char !== HTAB)
break;
index++;
}

result.parameters[key] = value
}

if (index !== header.length) {
return defaultContentType
}

return result
return index;
}

__webpack_unused_export__ = { parse, safeParse }
__webpack_unused_export__ = parse
module.exports.xL = safeParse
__webpack_unused_export__ = defaultContentType

/**
* Trim optional whitespace (OWS) from the end of a substring.
*
* OWS is defined in RFC 9110 sec 5.6.3 as SP (" ") or HTAB ("\t").
*/
function trailingOWS(header, start, end) {
while (end > start) {
const char = header.charCodeAt(end - 1);
if (char !== SP && char !== HTAB)
break;
end--;
}
return end;
}
/**
* Serialize a parameter value.
*/
function qstring(str) {
if (TOKEN_REGEXP.test(str))
return str;
if (TEXT_REGEXP.test(str))
return `"${str.replace(QUOTE_REGEXP, "\\$&")}"`;
throw new TypeError(`Invalid parameter value: ${str}`);
}
//# sourceMappingURL=index.js.map

/***/ })

Expand Down Expand Up @@ -34333,8 +34333,8 @@ function withDefaults(oldDefaults, newDefaults) {
var endpoint = withDefaults(null, DEFAULTS);


// EXTERNAL MODULE: ./node_modules/fast-content-type-parse/index.js
var fast_content_type_parse = __nccwpck_require__(1120);
// EXTERNAL MODULE: ./node_modules/content-type/dist/index.js
var dist = __nccwpck_require__(4649);
;// CONCATENATED MODULE: ./node_modules/json-with-bigint/json-with-bigint.js
const intRegex = /^-?\d+$/;
const noiseValue = /^-?\d+n+$/; // Noise - strings that match the custom format before being converted to it
Expand Down Expand Up @@ -34601,7 +34601,7 @@ class RequestError extends Error {


// pkg/dist-src/version.js
var dist_bundle_VERSION = "10.0.8";
var dist_bundle_VERSION = "10.0.9";

// pkg/dist-src/defaults.js
var defaults_default = {
Expand Down Expand Up @@ -34730,7 +34730,7 @@ async function getResponseData(response) {
if (!contentType) {
return response.text().catch(noop);
}
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
const mimetype = (0,dist/* parse */.qg)(contentType);
if (isJSONResponse(mimetype)) {
let text = "";
try {
Expand Down
2 changes: 1 addition & 1 deletion dist/update-known-versions/index.js.map

Large diffs are not rendered by default.

Loading
Loading