mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Rebuild
This commit is contained in:
56
lib/entry-points.js
generated
56
lib/entry-points.js
generated
@@ -142238,6 +142238,11 @@ var binaryTag = defineScalarTag("tag:yaml.org,2002:binary", {
|
||||
});
|
||||
var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
||||
var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
||||
function makeUtcDate(year, month, day, hour = 0, minute = 0, second = 0, fraction = 0) {
|
||||
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
||||
date.setUTCFullYear(year, month, day);
|
||||
return date;
|
||||
}
|
||||
function resolveYamlTimestamp(source) {
|
||||
let match2 = YAML_DATE_REGEXP.exec(source);
|
||||
if (match2 === null) match2 = YAML_TIMESTAMP_REGEXP.exec(source);
|
||||
@@ -142246,7 +142251,7 @@ function resolveYamlTimestamp(source) {
|
||||
const month = +match2[2] - 1;
|
||||
const day = +match2[3];
|
||||
if (!match2[4]) {
|
||||
const date2 = new Date(Date.UTC(year, month, day));
|
||||
const date2 = makeUtcDate(year, month, day);
|
||||
if (date2.getUTCFullYear() !== year || date2.getUTCMonth() !== month || date2.getUTCDate() !== day) return NOT_RESOLVED;
|
||||
return date2;
|
||||
}
|
||||
@@ -142260,7 +142265,7 @@ function resolveYamlTimestamp(source) {
|
||||
while (value.length < 3) value += "0";
|
||||
fraction = +value;
|
||||
}
|
||||
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
||||
const date = makeUtcDate(year, month, day, hour, minute, second, fraction);
|
||||
if (date.getUTCFullYear() !== year || date.getUTCMonth() !== month || date.getUTCDate() !== day) return NOT_RESOLVED;
|
||||
if (match2[9]) {
|
||||
const offsetHour = +match2[10];
|
||||
@@ -142358,7 +142363,11 @@ var mapTag = defineMappingTag("tag:yaml.org,2002:map", {
|
||||
return Object.prototype.hasOwnProperty.call(container, String(key));
|
||||
},
|
||||
keys: (container) => Object.keys(container),
|
||||
get: (container, key) => container[String(key)]
|
||||
get: (container, key) => {
|
||||
const normalizedKey = String(key);
|
||||
if (!Object.prototype.hasOwnProperty.call(container, normalizedKey)) return null;
|
||||
return container[normalizedKey];
|
||||
}
|
||||
});
|
||||
var setTag = defineMappingTag("tag:yaml.org,2002:set", {
|
||||
create: () => /* @__PURE__ */ new Set(),
|
||||
@@ -142379,9 +142388,9 @@ var setTag = defineMappingTag("tag:yaml.org,2002:set", {
|
||||
});
|
||||
function createTagDefinitionMap() {
|
||||
return {
|
||||
scalar: {},
|
||||
sequence: {},
|
||||
mapping: {}
|
||||
scalar: /* @__PURE__ */ Object.create(null),
|
||||
sequence: /* @__PURE__ */ Object.create(null),
|
||||
mapping: /* @__PURE__ */ Object.create(null)
|
||||
};
|
||||
}
|
||||
function createTagDefinitionListMap() {
|
||||
@@ -142551,7 +142560,11 @@ var legacyMapTag = defineMappingTag("tag:yaml.org,2002:map", {
|
||||
return normalizedKey !== null && Object.prototype.hasOwnProperty.call(container, normalizedKey);
|
||||
},
|
||||
keys: (container) => Object.keys(container),
|
||||
get: (container, key) => container[String(key)]
|
||||
get: (container, key) => {
|
||||
const normalizedKey = String(key);
|
||||
if (!Object.prototype.hasOwnProperty.call(container, normalizedKey)) return null;
|
||||
return container[normalizedKey];
|
||||
}
|
||||
});
|
||||
var DEFAULT_SNIPPET_OPTIONS = {
|
||||
maxLength: 79,
|
||||
@@ -142887,10 +142900,10 @@ function getScalarValue(input, scalar) {
|
||||
return getPlainValue(input, valueStart, valueEnd);
|
||||
}
|
||||
}
|
||||
var DEFAULT_TAG_HANDLERS = {
|
||||
var DEFAULT_TAG_HANDLERS = Object.assign(/* @__PURE__ */ Object.create(null), {
|
||||
"!": "!",
|
||||
"!!": "tag:yaml.org,2002:"
|
||||
};
|
||||
});
|
||||
function tagPercentEncode(source) {
|
||||
return encodeURI(source).replace(/!/g, "%21");
|
||||
}
|
||||
@@ -143143,6 +143156,10 @@ function constructFromEvents(events, options) {
|
||||
}
|
||||
case 6: {
|
||||
const frame = state.frames.pop();
|
||||
if (frame.kind === "mapping" && frame.hasKey) {
|
||||
state.position = frame.keyPosition;
|
||||
throwError$1(state, "incomplete mapping pair in event stream");
|
||||
}
|
||||
if (frame.kind === "document") state.documents.push(frame.value);
|
||||
else {
|
||||
const value = frame.tag.carrierIsResult ? frame.value : finalizeCollection(state, frame.position, frame.tag, frame.value);
|
||||
@@ -143813,10 +143830,6 @@ function parseNode(state, parentIndent, nodeContext, allowToSeek, allowCompact,
|
||||
else if (state.lineIndent === parentIndent) indentStatus = 0;
|
||||
else indentStatus = -1;
|
||||
}
|
||||
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
||||
state.depth--;
|
||||
return false;
|
||||
}
|
||||
if (indentStatus === 1) while (true) {
|
||||
const ch = state.input.charCodeAt(state.position);
|
||||
const propertyState = snapshotState(state);
|
||||
@@ -144365,14 +144378,14 @@ function chooseScalarStyle(state, string2, layout, singleLineOnly, forceQuote, i
|
||||
if (char === CHAR_LINE_FEED) {
|
||||
hasLineBreak = true;
|
||||
if (shouldTrackWidth) {
|
||||
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string2[previousLineBreak + 1] !== " ";
|
||||
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && !isMoreIndented(string2[previousLineBreak + 1]);
|
||||
previousLineBreak = i;
|
||||
}
|
||||
} else if (!isPrintable(char)) return STYLE_DOUBLE;
|
||||
plain = plain && isPlainSafe(char, prevChar, inblock);
|
||||
prevChar = char;
|
||||
}
|
||||
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string2[previousLineBreak + 1] !== " ";
|
||||
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && !isMoreIndented(string2[previousLineBreak + 1]);
|
||||
}
|
||||
if (!hasLineBreak && !hasFoldableLine) {
|
||||
if (plain && !forceQuote) return STYLE_PLAIN;
|
||||
@@ -144437,27 +144450,30 @@ function encodeFlowBreaks(string2, indent) {
|
||||
function dropEndingNewline(string2) {
|
||||
return string2[string2.length - 1] === "\n" ? string2.slice(0, -1) : string2;
|
||||
}
|
||||
function isMoreIndented(char) {
|
||||
return char === " " || char === " ";
|
||||
}
|
||||
function foldBlockScalar(string2, width) {
|
||||
const lineRe = /(\n+)([^\n]*)/g;
|
||||
let nextLF = string2.indexOf("\n");
|
||||
if (nextLF === -1) nextLF = string2.length;
|
||||
lineRe.lastIndex = nextLF;
|
||||
let result = foldLine(string2.slice(0, nextLF), width);
|
||||
let prevMoreIndented = string2[0] === "\n" || string2[0] === " ";
|
||||
let prevMoreIndented = string2[0] === "\n" || isMoreIndented(string2[0]);
|
||||
let moreIndented;
|
||||
let match2;
|
||||
while (match2 = lineRe.exec(string2)) {
|
||||
const prefix = match2[1];
|
||||
const line = match2[2];
|
||||
moreIndented = line[0] === " ";
|
||||
moreIndented = line !== "" && isMoreIndented(line[0]);
|
||||
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
||||
prevMoreIndented = moreIndented;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function foldLine(line, width) {
|
||||
if (line === "" || line[0] === " ") return line;
|
||||
const breakRe = / [^ ]/g;
|
||||
if (line === "" || isMoreIndented(line[0])) return line;
|
||||
const breakRe = / [^ \t]/g;
|
||||
let match2;
|
||||
let start = 0;
|
||||
let end;
|
||||
@@ -163375,7 +163391,7 @@ tmp/lib/tmp.js:
|
||||
*)
|
||||
|
||||
js-yaml/dist/js-yaml.mjs:
|
||||
(*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT *)
|
||||
(*! js-yaml 5.2.3 https://github.com/nodeca/js-yaml @license MIT *)
|
||||
|
||||
long/index.js:
|
||||
(**
|
||||
|
||||
Reference in New Issue
Block a user