mirror of
https://github.com/github/codeql-action.git
synced 2026-06-01 03:14:50 +00:00
Add repo property to override codeql-cli version
This commit is contained in:
Generated
+128
-126
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context2) {
|
||||
function expand(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context2) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _2, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context2 = {};
|
||||
for (var p in contextIn) context2[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context2.access[p] = contextIn.access[p];
|
||||
context2.addInitializer = function(f) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context2);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context2 = createLoggerContext({
|
||||
var context3 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context2.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context2.setLogLevel(logLevel);
|
||||
context3.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context2 = (0, logger_1.createLoggerContext)({
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context2.logger;
|
||||
exports2.AzureLogger = context3.logger;
|
||||
function setLogLevel(level) {
|
||||
context2.setLogLevel(level);
|
||||
context3.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context2 = new TracingContextImpl(options.parentContext);
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context2;
|
||||
return context3;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context2, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context2, callback, ...callbackArgs);
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -106882,8 +106882,8 @@ var require_graceful_fs = __commonJS({
|
||||
}
|
||||
function noop3() {
|
||||
}
|
||||
function publishQueue(context2, queue2) {
|
||||
Object.defineProperty(context2, gracefulQueue, {
|
||||
function publishQueue(context3, queue2) {
|
||||
Object.defineProperty(context3, gracefulQueue, {
|
||||
get: function() {
|
||||
return queue2;
|
||||
}
|
||||
@@ -119049,7 +119049,7 @@ var require_commonjs21 = __commonJS({
|
||||
free: c.#free,
|
||||
// methods
|
||||
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
||||
backgroundFetch: (k, index, options, context2) => c.#backgroundFetch(k, index, options, context2),
|
||||
backgroundFetch: (k, index, options, context3) => c.#backgroundFetch(k, index, options, context3),
|
||||
moveToTail: (index) => c.#moveToTail(index),
|
||||
indexes: (options) => c.#indexes(options),
|
||||
rindexes: (options) => c.#rindexes(options),
|
||||
@@ -119852,7 +119852,7 @@ var require_commonjs21 = __commonJS({
|
||||
const v = this.#valList[index];
|
||||
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
||||
}
|
||||
#backgroundFetch(k, index, options, context2) {
|
||||
#backgroundFetch(k, index, options, context3) {
|
||||
const v = index === void 0 ? void 0 : this.#valList[index];
|
||||
if (this.#isBackgroundFetch(v)) {
|
||||
return v;
|
||||
@@ -119865,7 +119865,7 @@ var require_commonjs21 = __commonJS({
|
||||
const fetchOpts = {
|
||||
signal: ac.signal,
|
||||
options,
|
||||
context: context2
|
||||
context: context3
|
||||
};
|
||||
const cb = (v2, updateCache = false) => {
|
||||
const { aborted } = ac.signal;
|
||||
@@ -119982,7 +119982,7 @@ var require_commonjs21 = __commonJS({
|
||||
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
||||
ignoreFetchAbort = this.ignoreFetchAbort,
|
||||
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
||||
context: context2,
|
||||
context: context3,
|
||||
forceRefresh = false,
|
||||
status,
|
||||
signal
|
||||
@@ -120017,7 +120017,7 @@ var require_commonjs21 = __commonJS({
|
||||
if (index === void 0) {
|
||||
if (status)
|
||||
status.fetch = "miss";
|
||||
const p = this.#backgroundFetch(k, index, options, context2);
|
||||
const p = this.#backgroundFetch(k, index, options, context3);
|
||||
return p.__returned = p;
|
||||
} else {
|
||||
const v = this.#valList[index];
|
||||
@@ -120042,7 +120042,7 @@ var require_commonjs21 = __commonJS({
|
||||
this.#statusTTL(status, index);
|
||||
return v;
|
||||
}
|
||||
const p = this.#backgroundFetch(k, index, options, context2);
|
||||
const p = this.#backgroundFetch(k, index, options, context3);
|
||||
const hasStale = p.__staleWhileFetching !== void 0;
|
||||
const staleVal = hasStale && allowStale;
|
||||
if (status) {
|
||||
@@ -120064,13 +120064,13 @@ var require_commonjs21 = __commonJS({
|
||||
if (!memoMethod) {
|
||||
throw new Error("no memoMethod provided to constructor");
|
||||
}
|
||||
const { context: context2, forceRefresh, ...options } = memoOptions;
|
||||
const { context: context3, forceRefresh, ...options } = memoOptions;
|
||||
const v = this.get(k, options);
|
||||
if (!forceRefresh && v !== void 0)
|
||||
return v;
|
||||
const vv = memoMethod(k, v, {
|
||||
options,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
this.set(k, vv, options);
|
||||
return vv;
|
||||
@@ -132964,18 +132964,18 @@ var require_webidl3 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts = void 0) {
|
||||
@@ -138301,15 +138301,15 @@ var require_api_request3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -138336,7 +138336,7 @@ var require_api_request3 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -138456,15 +138456,15 @@ var require_api_stream3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -138492,7 +138492,7 @@ var require_api_stream3 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -138684,17 +138684,17 @@ var require_api_pipeline3 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
if (ret.destroyed) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -138712,7 +138712,7 @@ var require_api_pipeline3 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -138796,7 +138796,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
@@ -138807,7 +138807,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
throw new SocketError("bad upgrade", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
assert.strictEqual(statusCode, 101);
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
@@ -138816,7 +138816,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -138884,18 +138884,18 @@ var require_api_connect3 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -138907,7 +138907,7 @@ var require_api_connect3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -147026,8 +147026,8 @@ var require_dist_node2 = __commonJS({
|
||||
function isKeyOperator2(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues2(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues2(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined3(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -147091,7 +147091,7 @@ var require_dist_node2 = __commonJS({
|
||||
expand: expand2.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand2(template, context2) {
|
||||
function expand2(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -147105,7 +147105,7 @@ var require_dist_node2 = __commonJS({
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues2(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues2(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -152557,7 +152557,7 @@ var require_download_artifact = __commonJS({
|
||||
var promises_1 = __importDefault2(require("fs/promises"));
|
||||
var crypto2 = __importStar2(require("crypto"));
|
||||
var stream = __importStar2(require("stream"));
|
||||
var github2 = __importStar2(require_github2());
|
||||
var github3 = __importStar2(require_github2());
|
||||
var core15 = __importStar2(require_core());
|
||||
var httpClient = __importStar2(require_lib());
|
||||
var unzip_stream_1 = __importDefault2(require_unzip());
|
||||
@@ -152645,7 +152645,7 @@ var require_download_artifact = __commonJS({
|
||||
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
||||
return __awaiter2(this, void 0, void 0, function* () {
|
||||
const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);
|
||||
const api = github2.getOctokit(token);
|
||||
const api = github3.getOctokit(token);
|
||||
let digestMismatch = false;
|
||||
core15.info(`Downloading artifact '${artifactId}' from '${repositoryOwner}/${repositoryName}'`);
|
||||
const { headers, status } = yield api.rest.actions.downloadArtifact({
|
||||
@@ -152966,8 +152966,8 @@ var require_get_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -153090,9 +153090,9 @@ var require_delete_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);
|
||||
const deleteArtifactResp = yield github2.rest.actions.deleteArtifact({
|
||||
const deleteArtifactResp = yield github3.rest.actions.deleteArtifact({
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
artifact_id: getArtifactResp.artifact.id
|
||||
@@ -153199,9 +153199,9 @@ var require_list_artifacts = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
let currentPageNumber = 1;
|
||||
const { data: listArtifactResponse } = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse } = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -153226,7 +153226,7 @@ var require_list_artifacts = __commonJS({
|
||||
currentPageNumber++;
|
||||
for (currentPageNumber; currentPageNumber <= numberOfPages; currentPageNumber++) {
|
||||
(0, core_1.debug)(`Fetching page ${currentPageNumber} of artifact list`);
|
||||
const { data: listArtifactResponse2 } = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse2 } = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -162072,10 +162072,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
|
||||
Generated
+80
-78
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
function getValues(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context3) {
|
||||
function expand(template, context4) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context3) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
var context4 = {};
|
||||
for (var p in contextIn) context4[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context4.access[p] = contextIn.access[p];
|
||||
context4.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context4);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context3 = createLoggerContext({
|
||||
var context4 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context4.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context3.setLogLevel(logLevel);
|
||||
context4.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
var context4 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context3.logger;
|
||||
exports2.AzureLogger = context4.logger;
|
||||
function setLogLevel(level) {
|
||||
context3.setLogLevel(level);
|
||||
context4.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
let context4 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context3;
|
||||
return context4;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
function withContext(context4, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context4, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -107553,10 +107553,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
@@ -112672,7 +112674,7 @@ async function addFingerprints(sarifLog, sourceRoot, logger) {
|
||||
// src/init.ts
|
||||
var core14 = __toESM(require_core());
|
||||
var toolrunner4 = __toESM(require_toolrunner());
|
||||
var github2 = __toESM(require_github());
|
||||
var github3 = __toESM(require_github());
|
||||
var io6 = __toESM(require_io());
|
||||
async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) {
|
||||
logger.startGroup("Setup CodeQL tools");
|
||||
|
||||
Generated
+79
-77
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context2) {
|
||||
function expand(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context2) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context2 = {};
|
||||
for (var p in contextIn) context2[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context2.access[p] = contextIn.access[p];
|
||||
context2.addInitializer = function(f) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context2);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context2 = createLoggerContext({
|
||||
var context3 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context2.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context2.setLogLevel(logLevel);
|
||||
context3.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context2 = (0, logger_1.createLoggerContext)({
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context2.logger;
|
||||
exports2.AzureLogger = context3.logger;
|
||||
function setLogLevel(level) {
|
||||
context2.setLogLevel(level);
|
||||
context3.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context2 = new TracingContextImpl(options.parentContext);
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context2;
|
||||
return context3;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context2, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context2, callback, ...callbackArgs);
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -104128,10 +104128,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
|
||||
Generated
+131
-129
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context5) {
|
||||
const plural = context5.types.length === 1 ? "" : " one of";
|
||||
const message = `${context5.argument} could not be converted to${plural}: ${context5.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
header: context5.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
webidl.errors.invalidArgument = function(context5) {
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
header: context5.prefix,
|
||||
message: `"${context5.value}" is an invalid ${context5.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context5, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
const { opaque, handler: handler2, context: context5 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context5) {
|
||||
const plural = context5.types.length === 1 ? "" : " one of";
|
||||
const message = `${context5.argument} could not be converted to${plural}: ${context5.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
header: context5.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
webidl.errors.invalidArgument = function(context5) {
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
header: context5.prefix,
|
||||
message: `"${context5.value}" is an invalid ${context5.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context5, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
const { opaque, handler: handler2, context: context5 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
function getValues(context5, operator, key, modifier) {
|
||||
var value = context5[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context4) {
|
||||
function expand(template, context5) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context4) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context5, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _2, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context4 = {};
|
||||
for (var p in contextIn) context4[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context4.access[p] = contextIn.access[p];
|
||||
context4.addInitializer = function(f) {
|
||||
var context5 = {};
|
||||
for (var p in contextIn) context5[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context5.access[p] = contextIn.access[p];
|
||||
context5.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context4);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context5);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context4 = createLoggerContext({
|
||||
var context5 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context4.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context5.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context4.setLogLevel(logLevel);
|
||||
context5.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context4.getLogLevel();
|
||||
return context5.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context4.createClientLogger(namespace);
|
||||
return context5.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context4 = (0, logger_1.createLoggerContext)({
|
||||
var context5 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context4.logger;
|
||||
exports2.AzureLogger = context5.logger;
|
||||
function setLogLevel(level) {
|
||||
context4.setLogLevel(level);
|
||||
context5.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context4.getLogLevel();
|
||||
return context5.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context4.createClientLogger(namespace);
|
||||
return context5.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context4 = new TracingContextImpl(options.parentContext);
|
||||
let context5 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context4 = context4.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context5 = context5.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context4 = context4.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context5 = context5.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context4;
|
||||
return context5;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context4, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context4, callback, ...callbackArgs);
|
||||
function withContext(context5, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context5, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -106882,8 +106882,8 @@ var require_graceful_fs = __commonJS({
|
||||
}
|
||||
function noop3() {
|
||||
}
|
||||
function publishQueue(context4, queue2) {
|
||||
Object.defineProperty(context4, gracefulQueue, {
|
||||
function publishQueue(context5, queue2) {
|
||||
Object.defineProperty(context5, gracefulQueue, {
|
||||
get: function() {
|
||||
return queue2;
|
||||
}
|
||||
@@ -119049,7 +119049,7 @@ var require_commonjs21 = __commonJS({
|
||||
free: c.#free,
|
||||
// methods
|
||||
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
||||
backgroundFetch: (k, index, options, context4) => c.#backgroundFetch(k, index, options, context4),
|
||||
backgroundFetch: (k, index, options, context5) => c.#backgroundFetch(k, index, options, context5),
|
||||
moveToTail: (index) => c.#moveToTail(index),
|
||||
indexes: (options) => c.#indexes(options),
|
||||
rindexes: (options) => c.#rindexes(options),
|
||||
@@ -119852,7 +119852,7 @@ var require_commonjs21 = __commonJS({
|
||||
const v = this.#valList[index];
|
||||
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
||||
}
|
||||
#backgroundFetch(k, index, options, context4) {
|
||||
#backgroundFetch(k, index, options, context5) {
|
||||
const v = index === void 0 ? void 0 : this.#valList[index];
|
||||
if (this.#isBackgroundFetch(v)) {
|
||||
return v;
|
||||
@@ -119865,7 +119865,7 @@ var require_commonjs21 = __commonJS({
|
||||
const fetchOpts = {
|
||||
signal: ac.signal,
|
||||
options,
|
||||
context: context4
|
||||
context: context5
|
||||
};
|
||||
const cb = (v2, updateCache = false) => {
|
||||
const { aborted } = ac.signal;
|
||||
@@ -119982,7 +119982,7 @@ var require_commonjs21 = __commonJS({
|
||||
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
||||
ignoreFetchAbort = this.ignoreFetchAbort,
|
||||
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
||||
context: context4,
|
||||
context: context5,
|
||||
forceRefresh = false,
|
||||
status,
|
||||
signal
|
||||
@@ -120017,7 +120017,7 @@ var require_commonjs21 = __commonJS({
|
||||
if (index === void 0) {
|
||||
if (status)
|
||||
status.fetch = "miss";
|
||||
const p = this.#backgroundFetch(k, index, options, context4);
|
||||
const p = this.#backgroundFetch(k, index, options, context5);
|
||||
return p.__returned = p;
|
||||
} else {
|
||||
const v = this.#valList[index];
|
||||
@@ -120042,7 +120042,7 @@ var require_commonjs21 = __commonJS({
|
||||
this.#statusTTL(status, index);
|
||||
return v;
|
||||
}
|
||||
const p = this.#backgroundFetch(k, index, options, context4);
|
||||
const p = this.#backgroundFetch(k, index, options, context5);
|
||||
const hasStale = p.__staleWhileFetching !== void 0;
|
||||
const staleVal = hasStale && allowStale;
|
||||
if (status) {
|
||||
@@ -120064,13 +120064,13 @@ var require_commonjs21 = __commonJS({
|
||||
if (!memoMethod) {
|
||||
throw new Error("no memoMethod provided to constructor");
|
||||
}
|
||||
const { context: context4, forceRefresh, ...options } = memoOptions;
|
||||
const { context: context5, forceRefresh, ...options } = memoOptions;
|
||||
const v = this.get(k, options);
|
||||
if (!forceRefresh && v !== void 0)
|
||||
return v;
|
||||
const vv = memoMethod(k, v, {
|
||||
options,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
this.set(k, vv, options);
|
||||
return vv;
|
||||
@@ -132964,18 +132964,18 @@ var require_webidl3 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context5) {
|
||||
const plural = context5.types.length === 1 ? "" : " one of";
|
||||
const message = `${context5.argument} could not be converted to${plural}: ${context5.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
header: context5.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
webidl.errors.invalidArgument = function(context5) {
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
header: context5.prefix,
|
||||
message: `"${context5.value}" is an invalid ${context5.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts = void 0) {
|
||||
@@ -138301,15 +138301,15 @@ var require_api_request3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -138336,7 +138336,7 @@ var require_api_request3 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -138456,15 +138456,15 @@ var require_api_stream3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context5, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -138492,7 +138492,7 @@ var require_api_stream3 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -138684,17 +138684,17 @@ var require_api_pipeline3 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
const { ret, res } = this;
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
if (ret.destroyed) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
const { opaque, handler: handler2, context: context5 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -138712,7 +138712,7 @@ var require_api_pipeline3 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -138796,7 +138796,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
@@ -138807,7 +138807,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
throw new SocketError("bad upgrade", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
assert.strictEqual(statusCode, 101);
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
@@ -138816,7 +138816,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -138884,18 +138884,18 @@ var require_api_connect3 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -138907,7 +138907,7 @@ var require_api_connect3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -147026,8 +147026,8 @@ var require_dist_node2 = __commonJS({
|
||||
function isKeyOperator2(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues2(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
function getValues2(context5, operator, key, modifier) {
|
||||
var value = context5[key], result = [];
|
||||
if (isDefined3(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -147091,7 +147091,7 @@ var require_dist_node2 = __commonJS({
|
||||
expand: expand2.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand2(template, context4) {
|
||||
function expand2(template, context5) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -147105,7 +147105,7 @@ var require_dist_node2 = __commonJS({
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues2(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues2(context5, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -152557,7 +152557,7 @@ var require_download_artifact = __commonJS({
|
||||
var promises_1 = __importDefault2(require("fs/promises"));
|
||||
var crypto2 = __importStar2(require("crypto"));
|
||||
var stream2 = __importStar2(require("stream"));
|
||||
var github4 = __importStar2(require_github2());
|
||||
var github5 = __importStar2(require_github2());
|
||||
var core19 = __importStar2(require_core());
|
||||
var httpClient = __importStar2(require_lib());
|
||||
var unzip_stream_1 = __importDefault2(require_unzip());
|
||||
@@ -152645,7 +152645,7 @@ var require_download_artifact = __commonJS({
|
||||
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
||||
return __awaiter2(this, void 0, void 0, function* () {
|
||||
const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);
|
||||
const api = github4.getOctokit(token);
|
||||
const api = github5.getOctokit(token);
|
||||
let digestMismatch = false;
|
||||
core19.info(`Downloading artifact '${artifactId}' from '${repositoryOwner}/${repositoryName}'`);
|
||||
const { headers, status } = yield api.rest.actions.downloadArtifact({
|
||||
@@ -152966,8 +152966,8 @@ var require_get_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github4 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github4.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
const github5 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github5.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -153090,9 +153090,9 @@ var require_delete_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github4 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github5 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);
|
||||
const deleteArtifactResp = yield github4.rest.actions.deleteArtifact({
|
||||
const deleteArtifactResp = yield github5.rest.actions.deleteArtifact({
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
artifact_id: getArtifactResp.artifact.id
|
||||
@@ -153199,9 +153199,9 @@ var require_list_artifacts = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github4 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github5 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
let currentPageNumber = 1;
|
||||
const { data: listArtifactResponse } = yield github4.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse } = yield github5.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -153226,7 +153226,7 @@ var require_list_artifacts = __commonJS({
|
||||
currentPageNumber++;
|
||||
for (currentPageNumber; currentPageNumber <= numberOfPages; currentPageNumber++) {
|
||||
(0, core_1.debug)(`Fetching page ${currentPageNumber} of artifact list`);
|
||||
const { data: listArtifactResponse2 } = yield github4.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse2 } = yield github5.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -165472,10 +165472,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
@@ -168760,7 +168762,7 @@ async function createDatabaseBundleCli(codeql, config, language) {
|
||||
// src/init-action-post-helper.ts
|
||||
var fs20 = __toESM(require("fs"));
|
||||
var import_path3 = __toESM(require("path"));
|
||||
var github3 = __toESM(require_github());
|
||||
var github4 = __toESM(require_github());
|
||||
|
||||
// src/upload-lib.ts
|
||||
var fs18 = __toESM(require("fs"));
|
||||
@@ -169895,7 +169897,7 @@ async function addFingerprints(sarifLog, sourceRoot, logger) {
|
||||
// src/init.ts
|
||||
var core14 = __toESM(require_core());
|
||||
var toolrunner4 = __toESM(require_toolrunner());
|
||||
var github2 = __toESM(require_github());
|
||||
var github3 = __toESM(require_github());
|
||||
var io6 = __toESM(require_io());
|
||||
async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) {
|
||||
logger.startGroup("Setup CodeQL tools");
|
||||
@@ -170832,7 +170834,7 @@ async function uploadFailureInfo(uploadAllAvailableDebugArtifacts, printDebugLog
|
||||
);
|
||||
}
|
||||
if (process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true") {
|
||||
if (!github3.context.payload.pull_request?.head.repo.fork) {
|
||||
if (!github4.context.payload.pull_request?.head.repo.fork) {
|
||||
await removeUploadedSarif(uploadFailedSarifResult, logger);
|
||||
} else {
|
||||
logger.info(
|
||||
|
||||
Generated
+2021
-1978
File diff suppressed because it is too large
Load Diff
Generated
+79
-77
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context2) {
|
||||
function expand(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context2) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context2 = {};
|
||||
for (var p in contextIn) context2[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context2.access[p] = contextIn.access[p];
|
||||
context2.addInitializer = function(f) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context2);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context2 = createLoggerContext({
|
||||
var context3 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context2.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context2.setLogLevel(logLevel);
|
||||
context3.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context2 = (0, logger_1.createLoggerContext)({
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context2.logger;
|
||||
exports2.AzureLogger = context3.logger;
|
||||
function setLogLevel(level) {
|
||||
context2.setLogLevel(level);
|
||||
context3.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context2 = new TracingContextImpl(options.parentContext);
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context2;
|
||||
return context3;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context2, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context2, callback, ...callbackArgs);
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -104127,10 +104127,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
|
||||
Generated
+278
-86
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
function getValues(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context3) {
|
||||
function expand(template, context4) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context3) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
var context4 = {};
|
||||
for (var p in contextIn) context4[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context4.access[p] = contextIn.access[p];
|
||||
context4.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context4);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context3 = createLoggerContext({
|
||||
var context4 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context4.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context3.setLogLevel(logLevel);
|
||||
context4.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
var context4 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context3.logger;
|
||||
exports2.AzureLogger = context4.logger;
|
||||
function setLogLevel(level) {
|
||||
context3.setLogLevel(level);
|
||||
context4.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
let context4 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context3;
|
||||
return context4;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
function withContext(context4, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context4, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -100250,7 +100250,7 @@ var require_follow_redirects = __commonJS({
|
||||
if (this._ending) {
|
||||
throw new WriteAfterEndError();
|
||||
}
|
||||
if (!isString2(data) && !isBuffer(data)) {
|
||||
if (!isString3(data) && !isBuffer(data)) {
|
||||
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
||||
}
|
||||
if (isFunction(encoding)) {
|
||||
@@ -100508,7 +100508,7 @@ var require_follow_redirects = __commonJS({
|
||||
function request2(input, options, callback) {
|
||||
if (isURL(input)) {
|
||||
input = spreadUrlObject(input);
|
||||
} else if (isString2(input)) {
|
||||
} else if (isString3(input)) {
|
||||
input = spreadUrlObject(parseUrl2(input));
|
||||
} else {
|
||||
callback = options;
|
||||
@@ -100524,7 +100524,7 @@ var require_follow_redirects = __commonJS({
|
||||
maxBodyLength: exports3.maxBodyLength
|
||||
}, input, options);
|
||||
options.nativeProtocols = nativeProtocols;
|
||||
if (!isString2(options.host) && !isString2(options.hostname)) {
|
||||
if (!isString3(options.host) && !isString3(options.hostname)) {
|
||||
options.hostname = "::1";
|
||||
}
|
||||
assert.equal(options.protocol, protocol, "protocol mismatch");
|
||||
@@ -100551,7 +100551,7 @@ var require_follow_redirects = __commonJS({
|
||||
parsed = new URL2(input);
|
||||
} else {
|
||||
parsed = validateUrl(url.parse(input));
|
||||
if (!isString2(parsed.protocol)) {
|
||||
if (!isString3(parsed.protocol)) {
|
||||
throw new InvalidUrlError({ input });
|
||||
}
|
||||
}
|
||||
@@ -100623,14 +100623,14 @@ var require_follow_redirects = __commonJS({
|
||||
request2.destroy(error3);
|
||||
}
|
||||
function isSubdomain(subdomain, domain) {
|
||||
assert(isString2(subdomain) && isString2(domain));
|
||||
assert(isString3(subdomain) && isString3(domain));
|
||||
var dot = subdomain.length - domain.length - 1;
|
||||
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
||||
}
|
||||
function isArray(value) {
|
||||
return value instanceof Array;
|
||||
}
|
||||
function isString2(value) {
|
||||
function isString3(value) {
|
||||
return typeof value === "string" || value instanceof String;
|
||||
}
|
||||
function isFunction(value) {
|
||||
@@ -103631,6 +103631,36 @@ async function asyncSome(array, predicate) {
|
||||
const results = await Promise.all(array.map(predicate));
|
||||
return results.some((result) => result);
|
||||
}
|
||||
var Success = class {
|
||||
constructor(value) {
|
||||
this.value = value;
|
||||
}
|
||||
value;
|
||||
isSuccess() {
|
||||
return true;
|
||||
}
|
||||
isFailure() {
|
||||
return false;
|
||||
}
|
||||
orElse(_defaultValue) {
|
||||
return this.value;
|
||||
}
|
||||
};
|
||||
var Failure = class {
|
||||
constructor(value) {
|
||||
this.value = value;
|
||||
}
|
||||
value;
|
||||
isSuccess() {
|
||||
return false;
|
||||
}
|
||||
isFailure() {
|
||||
return true;
|
||||
}
|
||||
orElse(defaultValue) {
|
||||
return defaultValue;
|
||||
}
|
||||
};
|
||||
|
||||
// src/actions-util.ts
|
||||
var getRequiredInput = function(name) {
|
||||
@@ -103973,6 +104003,12 @@ async function getAnalysisKey() {
|
||||
core5.exportVariable("CODEQL_ACTION_ANALYSIS_KEY" /* ANALYSIS_KEY */, analysisKey);
|
||||
return analysisKey;
|
||||
}
|
||||
async function getRepositoryProperties(repositoryNwo) {
|
||||
return getApiClient().request("GET /repos/:owner/:repo/properties/values", {
|
||||
owner: repositoryNwo.owner,
|
||||
repo: repositoryNwo.repo
|
||||
});
|
||||
}
|
||||
function isEnablementError(msg) {
|
||||
return [
|
||||
/Code Security must be enabled/i,
|
||||
@@ -104869,7 +104905,7 @@ function initFeatures(gitHubVersion, repositoryNwo, tempDir, logger) {
|
||||
// src/init.ts
|
||||
var core12 = __toESM(require_core());
|
||||
var toolrunner4 = __toESM(require_toolrunner());
|
||||
var github2 = __toESM(require_github());
|
||||
var github3 = __toESM(require_github());
|
||||
var io5 = __toESM(require_io());
|
||||
|
||||
// src/codeql.ts
|
||||
@@ -105146,15 +105182,131 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver5 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var GITHUB_CODEQL_PROPERTY_PREFIX = "github-codeql-";
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
function isString2(value) {
|
||||
return typeof value === "string";
|
||||
}
|
||||
var stringProperty = {
|
||||
validate: isString2,
|
||||
parse: parseStringRepositoryProperty
|
||||
};
|
||||
var booleanProperty = {
|
||||
// The value from the API should come as a string, which we then parse into a boolean.
|
||||
validate: isString2,
|
||||
parse: parseBooleanRepositoryProperty
|
||||
};
|
||||
var repositoryPropertyParsers = {
|
||||
["github-codeql-disable-overlay" /* DISABLE_OVERLAY */]: booleanProperty,
|
||||
["github-codeql-extra-queries" /* EXTRA_QUERIES */]: stringProperty,
|
||||
["github-codeql-file-coverage-on-prs" /* FILE_COVERAGE_ON_PRS */]: booleanProperty,
|
||||
["github-codeql-tools" /* TOOLS */]: stringProperty
|
||||
};
|
||||
async function loadPropertiesFromApi(logger, repositoryNwo) {
|
||||
try {
|
||||
const response = await getRepositoryProperties(repositoryNwo);
|
||||
const remoteProperties = response.data;
|
||||
if (!Array.isArray(remoteProperties)) {
|
||||
throw new Error(
|
||||
`Expected repository properties API to return an array, but got: ${JSON.stringify(response.data)}`
|
||||
);
|
||||
}
|
||||
logger.debug(
|
||||
`Retrieved ${remoteProperties.length} repository properties: ${remoteProperties.map((p) => p.property_name).join(", ")}`
|
||||
);
|
||||
const properties = {};
|
||||
const unrecognisedProperties = [];
|
||||
for (const property of remoteProperties) {
|
||||
if (property.property_name === void 0) {
|
||||
throw new Error(
|
||||
`Expected repository property object to have a 'property_name', but got: ${JSON.stringify(property)}`
|
||||
);
|
||||
}
|
||||
if (isKnownPropertyName(property.property_name)) {
|
||||
setProperty2(properties, property.property_name, property.value, logger);
|
||||
} else if (property.property_name.startsWith(GITHUB_CODEQL_PROPERTY_PREFIX) && !isDynamicWorkflow()) {
|
||||
unrecognisedProperties.push(property.property_name);
|
||||
}
|
||||
}
|
||||
if (Object.keys(properties).length === 0) {
|
||||
logger.debug("No known repository properties were found.");
|
||||
} else {
|
||||
logger.debug(
|
||||
"Loaded the following values for the repository properties:"
|
||||
);
|
||||
for (const [property, value] of Object.entries(properties).sort(
|
||||
([nameA], [nameB]) => nameA.localeCompare(nameB)
|
||||
)) {
|
||||
logger.debug(` ${property}: ${value}`);
|
||||
}
|
||||
}
|
||||
if (unrecognisedProperties.length > 0) {
|
||||
const unrecognisedPropertyList = unrecognisedProperties.map((name) => `'${name}'`).join(", ");
|
||||
logger.warning(
|
||||
`Found repository properties (${unrecognisedPropertyList}), which look like CodeQL Action repository properties, but which are not understood by this version of the CodeQL Action. Do you need to update to a newer version?`
|
||||
);
|
||||
}
|
||||
return properties;
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`Encountered an error while trying to determine repository properties: ${e}`
|
||||
);
|
||||
}
|
||||
}
|
||||
async function loadRepositoryProperties(repositoryNwo, logger) {
|
||||
const repositoryOwnerType = github2.context.payload.repository?.owner.type;
|
||||
logger.debug(
|
||||
`Repository owner type is '${repositoryOwnerType ?? "unknown"}'.`
|
||||
);
|
||||
if (repositoryOwnerType === "User") {
|
||||
logger.debug(
|
||||
"Skipping loading repository properties because the repository is owned by a user and therefore cannot have repository properties."
|
||||
);
|
||||
return new Success({});
|
||||
}
|
||||
try {
|
||||
return new Success(await loadPropertiesFromApi(logger, repositoryNwo));
|
||||
} catch (error3) {
|
||||
logger.warning(
|
||||
`Failed to load repository properties: ${getErrorMessage(error3)}`
|
||||
);
|
||||
return new Failure(error3);
|
||||
}
|
||||
}
|
||||
function setProperty2(properties, name, value, logger) {
|
||||
const propertyOptions = repositoryPropertyParsers[name];
|
||||
if (propertyOptions.validate(value)) {
|
||||
properties[name] = propertyOptions.parse(name, value, logger);
|
||||
} else {
|
||||
throw new Error(
|
||||
`Unexpected value for repository property '${name}' (${typeof value}), got: ${JSON.stringify(value)}`
|
||||
);
|
||||
}
|
||||
}
|
||||
function parseBooleanRepositoryProperty(name, value, logger) {
|
||||
if (value !== "true" && value !== "false") {
|
||||
logger.warning(
|
||||
`Repository property '${name}' has unexpected value '${value}'. Expected 'true' or 'false'. Defaulting to false.`
|
||||
);
|
||||
}
|
||||
return value === "true";
|
||||
}
|
||||
function parseStringRepositoryProperty(_name, value) {
|
||||
return value;
|
||||
}
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
Object.values(RepositoryPropertyName)
|
||||
);
|
||||
function isKnownPropertyName(name) {
|
||||
return KNOWN_REPOSITORY_PROPERTY_NAMES.has(name);
|
||||
}
|
||||
|
||||
// src/config/db-config.ts
|
||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||
@@ -106870,6 +107022,42 @@ async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVe
|
||||
};
|
||||
}
|
||||
|
||||
// src/resolve-tools-input.ts
|
||||
async function resolveToolsInput(repositoryNwo, logger) {
|
||||
const repositoryPropertiesResult = await loadRepositoryProperties(
|
||||
repositoryNwo,
|
||||
logger
|
||||
);
|
||||
const toolsWorkflowInput = getOptionalInput("tools");
|
||||
let toolsPropertyValue;
|
||||
if (repositoryPropertiesResult) {
|
||||
if (repositoryPropertiesResult.isSuccess()) {
|
||||
logger.debug(
|
||||
`Loaded repository properties: ${Object.keys(repositoryPropertiesResult.value).join(", ")}`
|
||||
);
|
||||
toolsPropertyValue = "github-codeql-tools" /* TOOLS */ in repositoryPropertiesResult.value ? repositoryPropertiesResult.value["github-codeql-tools" /* TOOLS */] : void 0;
|
||||
} else {
|
||||
logger.warning(
|
||||
`Failed to load repository properties: ${repositoryPropertiesResult.value}`
|
||||
);
|
||||
toolsPropertyValue = void 0;
|
||||
}
|
||||
}
|
||||
const effectiveToolsInput = toolsWorkflowInput || toolsPropertyValue;
|
||||
if (effectiveToolsInput) {
|
||||
if (toolsWorkflowInput) {
|
||||
logger.info(
|
||||
`Setting tools: ${effectiveToolsInput} based on workflow input.`
|
||||
);
|
||||
} else {
|
||||
logger.info(
|
||||
`Setting tools: ${effectiveToolsInput} based on the '${"github-codeql-tools" /* TOOLS */}' repository property.`
|
||||
);
|
||||
}
|
||||
}
|
||||
return effectiveToolsInput;
|
||||
}
|
||||
|
||||
// src/status-report.ts
|
||||
var os2 = __toESM(require("os"));
|
||||
var core13 = __toESM(require_core());
|
||||
@@ -107078,7 +107266,7 @@ async function sendUnhandledErrorStatusReport(actionName, actionStartedAt, error
|
||||
}
|
||||
|
||||
// src/setup-codeql-action.ts
|
||||
async function sendCompletedStatusReport(startedAt, toolsDownloadStatusReport, toolsFeatureFlagsValid, toolsSource, toolsVersion, logger, error3) {
|
||||
async function sendCompletedStatusReport(startedAt, toolsDownloadStatusReport, toolsFeatureFlagsValid, toolsSource, toolsVersion, effectiveToolsInput, logger, error3) {
|
||||
const statusReportBase = await createStatusReportBase(
|
||||
"setup-codeql" /* SetupCodeQL */,
|
||||
getActionsStatus(error3),
|
||||
@@ -107095,6 +107283,7 @@ async function sendCompletedStatusReport(startedAt, toolsDownloadStatusReport, t
|
||||
const initStatusReport = {
|
||||
...statusReportBase,
|
||||
tools_input: getOptionalInput("tools") || "",
|
||||
computed_tools_input: effectiveToolsInput || "",
|
||||
tools_resolved_version: toolsVersion,
|
||||
tools_source: toolsSource || "UNKNOWN" /* Unknown */,
|
||||
workflow_languages: ""
|
||||
@@ -107115,6 +107304,7 @@ async function run(startedAt) {
|
||||
let toolsFeatureFlagsValid;
|
||||
let toolsSource;
|
||||
let toolsVersion;
|
||||
let effectiveToolsInput;
|
||||
try {
|
||||
initializeEnvironment(getActionVersion());
|
||||
const apiDetails = {
|
||||
@@ -107151,8 +107341,9 @@ async function run(startedAt) {
|
||||
gitHubVersion.type
|
||||
);
|
||||
toolsFeatureFlagsValid = codeQLDefaultVersionInfo.toolsFeatureFlagsValid;
|
||||
effectiveToolsInput = await resolveToolsInput(repositoryNwo, logger);
|
||||
const initCodeQLResult = await initCodeQL(
|
||||
getOptionalInput("tools"),
|
||||
effectiveToolsInput,
|
||||
apiDetails,
|
||||
getTemporaryDirectory(),
|
||||
gitHubVersion.type,
|
||||
@@ -107191,6 +107382,7 @@ async function run(startedAt) {
|
||||
toolsFeatureFlagsValid,
|
||||
toolsSource,
|
||||
toolsVersion,
|
||||
effectiveToolsInput,
|
||||
logger
|
||||
);
|
||||
}
|
||||
|
||||
Generated
+128
-126
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context2) {
|
||||
function expand(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context2) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _2, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context2 = {};
|
||||
for (var p in contextIn) context2[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context2.access[p] = contextIn.access[p];
|
||||
context2.addInitializer = function(f) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context2);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context2 = createLoggerContext({
|
||||
var context3 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context2.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context2.setLogLevel(logLevel);
|
||||
context3.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context2 = (0, logger_1.createLoggerContext)({
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context2.logger;
|
||||
exports2.AzureLogger = context3.logger;
|
||||
function setLogLevel(level) {
|
||||
context2.setLogLevel(level);
|
||||
context3.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context2 = new TracingContextImpl(options.parentContext);
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context2;
|
||||
return context3;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context2, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context2, callback, ...callbackArgs);
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -105494,8 +105494,8 @@ var require_graceful_fs = __commonJS({
|
||||
}
|
||||
function noop3() {
|
||||
}
|
||||
function publishQueue(context2, queue2) {
|
||||
Object.defineProperty(context2, gracefulQueue, {
|
||||
function publishQueue(context3, queue2) {
|
||||
Object.defineProperty(context3, gracefulQueue, {
|
||||
get: function() {
|
||||
return queue2;
|
||||
}
|
||||
@@ -117661,7 +117661,7 @@ var require_commonjs21 = __commonJS({
|
||||
free: c.#free,
|
||||
// methods
|
||||
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
||||
backgroundFetch: (k, index, options, context2) => c.#backgroundFetch(k, index, options, context2),
|
||||
backgroundFetch: (k, index, options, context3) => c.#backgroundFetch(k, index, options, context3),
|
||||
moveToTail: (index) => c.#moveToTail(index),
|
||||
indexes: (options) => c.#indexes(options),
|
||||
rindexes: (options) => c.#rindexes(options),
|
||||
@@ -118464,7 +118464,7 @@ var require_commonjs21 = __commonJS({
|
||||
const v = this.#valList[index];
|
||||
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
||||
}
|
||||
#backgroundFetch(k, index, options, context2) {
|
||||
#backgroundFetch(k, index, options, context3) {
|
||||
const v = index === void 0 ? void 0 : this.#valList[index];
|
||||
if (this.#isBackgroundFetch(v)) {
|
||||
return v;
|
||||
@@ -118477,7 +118477,7 @@ var require_commonjs21 = __commonJS({
|
||||
const fetchOpts = {
|
||||
signal: ac.signal,
|
||||
options,
|
||||
context: context2
|
||||
context: context3
|
||||
};
|
||||
const cb = (v2, updateCache = false) => {
|
||||
const { aborted } = ac.signal;
|
||||
@@ -118594,7 +118594,7 @@ var require_commonjs21 = __commonJS({
|
||||
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
||||
ignoreFetchAbort = this.ignoreFetchAbort,
|
||||
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
||||
context: context2,
|
||||
context: context3,
|
||||
forceRefresh = false,
|
||||
status,
|
||||
signal
|
||||
@@ -118629,7 +118629,7 @@ var require_commonjs21 = __commonJS({
|
||||
if (index === void 0) {
|
||||
if (status)
|
||||
status.fetch = "miss";
|
||||
const p = this.#backgroundFetch(k, index, options, context2);
|
||||
const p = this.#backgroundFetch(k, index, options, context3);
|
||||
return p.__returned = p;
|
||||
} else {
|
||||
const v = this.#valList[index];
|
||||
@@ -118654,7 +118654,7 @@ var require_commonjs21 = __commonJS({
|
||||
this.#statusTTL(status, index);
|
||||
return v;
|
||||
}
|
||||
const p = this.#backgroundFetch(k, index, options, context2);
|
||||
const p = this.#backgroundFetch(k, index, options, context3);
|
||||
const hasStale = p.__staleWhileFetching !== void 0;
|
||||
const staleVal = hasStale && allowStale;
|
||||
if (status) {
|
||||
@@ -118676,13 +118676,13 @@ var require_commonjs21 = __commonJS({
|
||||
if (!memoMethod) {
|
||||
throw new Error("no memoMethod provided to constructor");
|
||||
}
|
||||
const { context: context2, forceRefresh, ...options } = memoOptions;
|
||||
const { context: context3, forceRefresh, ...options } = memoOptions;
|
||||
const v = this.get(k, options);
|
||||
if (!forceRefresh && v !== void 0)
|
||||
return v;
|
||||
const vv = memoMethod(k, v, {
|
||||
options,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
this.set(k, vv, options);
|
||||
return vv;
|
||||
@@ -131576,18 +131576,18 @@ var require_webidl3 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts = void 0) {
|
||||
@@ -136913,15 +136913,15 @@ var require_api_request3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -136948,7 +136948,7 @@ var require_api_request3 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -137068,15 +137068,15 @@ var require_api_stream3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -137104,7 +137104,7 @@ var require_api_stream3 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -137296,17 +137296,17 @@ var require_api_pipeline3 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
if (ret.destroyed) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -137324,7 +137324,7 @@ var require_api_pipeline3 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -137408,7 +137408,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
@@ -137419,7 +137419,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
throw new SocketError("bad upgrade", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
assert.strictEqual(statusCode, 101);
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
@@ -137428,7 +137428,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -137496,18 +137496,18 @@ var require_api_connect3 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -137519,7 +137519,7 @@ var require_api_connect3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -145638,8 +145638,8 @@ var require_dist_node2 = __commonJS({
|
||||
function isKeyOperator2(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues2(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues2(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined3(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -145703,7 +145703,7 @@ var require_dist_node2 = __commonJS({
|
||||
expand: expand2.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand2(template, context2) {
|
||||
function expand2(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -145717,7 +145717,7 @@ var require_dist_node2 = __commonJS({
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues2(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues2(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -151169,7 +151169,7 @@ var require_download_artifact = __commonJS({
|
||||
var promises_1 = __importDefault2(require("fs/promises"));
|
||||
var crypto2 = __importStar2(require("crypto"));
|
||||
var stream = __importStar2(require("stream"));
|
||||
var github2 = __importStar2(require_github2());
|
||||
var github3 = __importStar2(require_github2());
|
||||
var core15 = __importStar2(require_core());
|
||||
var httpClient = __importStar2(require_lib());
|
||||
var unzip_stream_1 = __importDefault2(require_unzip());
|
||||
@@ -151257,7 +151257,7 @@ var require_download_artifact = __commonJS({
|
||||
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
||||
return __awaiter2(this, void 0, void 0, function* () {
|
||||
const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);
|
||||
const api = github2.getOctokit(token);
|
||||
const api = github3.getOctokit(token);
|
||||
let digestMismatch = false;
|
||||
core15.info(`Downloading artifact '${artifactId}' from '${repositoryOwner}/${repositoryName}'`);
|
||||
const { headers, status } = yield api.rest.actions.downloadArtifact({
|
||||
@@ -151578,8 +151578,8 @@ var require_get_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -151702,9 +151702,9 @@ var require_delete_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);
|
||||
const deleteArtifactResp = yield github2.rest.actions.deleteArtifact({
|
||||
const deleteArtifactResp = yield github3.rest.actions.deleteArtifact({
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
artifact_id: getArtifactResp.artifact.id
|
||||
@@ -151811,9 +151811,9 @@ var require_list_artifacts = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
let currentPageNumber = 1;
|
||||
const { data: listArtifactResponse } = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse } = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -151838,7 +151838,7 @@ var require_list_artifacts = __commonJS({
|
||||
currentPageNumber++;
|
||||
for (currentPageNumber; currentPageNumber <= numberOfPages; currentPageNumber++) {
|
||||
(0, core_1.debug)(`Fetching page ${currentPageNumber} of artifact list`);
|
||||
const { data: listArtifactResponse2 } = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse2 } = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -161691,10 +161691,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
|
||||
Generated
+79
-77
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context2) {
|
||||
function expand(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context2) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52999,14 +52999,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context2 = {};
|
||||
for (var p in contextIn) context2[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context2.access[p] = contextIn.access[p];
|
||||
context2.addInitializer = function(f) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context2);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -53733,19 +53733,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context2 = createLoggerContext({
|
||||
var context3 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context2.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context2.setLogLevel(logLevel);
|
||||
context3.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57991,19 +57991,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context2 = (0, logger_1.createLoggerContext)({
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context2.logger;
|
||||
exports2.AzureLogger = context3.logger;
|
||||
function setLogLevel(level) {
|
||||
context2.setLogLevel(level);
|
||||
context3.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58913,14 +58913,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context2 = new TracingContextImpl(options.parentContext);
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context2;
|
||||
return context3;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -59058,8 +59058,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context2, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context2, callback, ...callbackArgs);
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -121845,10 +121845,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver5 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
|
||||
Generated
+80
-78
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -26145,18 +26145,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -32152,17 +32152,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -32199,7 +32199,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -32368,17 +32368,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -32406,7 +32406,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -32598,7 +32598,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -32607,10 +32607,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -32628,7 +32628,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -32712,7 +32712,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -32726,7 +32726,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -32734,7 +32734,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -32803,20 +32803,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -32828,7 +32828,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -41483,8 +41483,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
function getValues(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -41548,7 +41548,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context3) {
|
||||
function expand(template, context4) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -41562,7 +41562,7 @@ function expand(template, context3) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
var context4 = {};
|
||||
for (var p in contextIn) context4[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context4.access[p] = contextIn.access[p];
|
||||
context4.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context4);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context3 = createLoggerContext({
|
||||
var context4 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context4.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context3.setLogLevel(logLevel);
|
||||
context4.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
var context4 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context3.logger;
|
||||
exports2.AzureLogger = context4.logger;
|
||||
function setLogLevel(level) {
|
||||
context3.setLogLevel(level);
|
||||
context4.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
let context4 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context3;
|
||||
return context4;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
function withContext(context4, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context4, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -107171,10 +107171,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
@@ -110657,7 +110659,7 @@ async function addFingerprints(sarifLog, sourceRoot, logger) {
|
||||
// src/init.ts
|
||||
var core12 = __toESM(require_core());
|
||||
var toolrunner4 = __toESM(require_toolrunner());
|
||||
var github2 = __toESM(require_github());
|
||||
var github3 = __toESM(require_github());
|
||||
var io5 = __toESM(require_io());
|
||||
async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) {
|
||||
logger.startGroup("Setup CodeQL tools");
|
||||
|
||||
Generated
+128
-126
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context2) {
|
||||
function expand(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context2) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -54382,14 +54382,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _2, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context2 = {};
|
||||
for (var p in contextIn) context2[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context2.access[p] = contextIn.access[p];
|
||||
context2.addInitializer = function(f) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context2);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -55116,19 +55116,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context2 = createLoggerContext({
|
||||
var context3 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context2.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context2.setLogLevel(logLevel);
|
||||
context3.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -59374,19 +59374,19 @@ var require_commonjs4 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context2 = (0, logger_1.createLoggerContext)({
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context2.logger;
|
||||
exports2.AzureLogger = context3.logger;
|
||||
function setLogLevel(level) {
|
||||
context2.setLogLevel(level);
|
||||
context3.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context2.getLogLevel();
|
||||
return context3.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context2.createClientLogger(namespace);
|
||||
return context3.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -60296,14 +60296,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context2 = new TracingContextImpl(options.parentContext);
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context2 = context2.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context2;
|
||||
return context3;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -60441,8 +60441,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context2, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context2, callback, ...callbackArgs);
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -97670,8 +97670,8 @@ var require_graceful_fs = __commonJS({
|
||||
}
|
||||
function noop3() {
|
||||
}
|
||||
function publishQueue(context2, queue2) {
|
||||
Object.defineProperty(context2, gracefulQueue, {
|
||||
function publishQueue(context3, queue2) {
|
||||
Object.defineProperty(context3, gracefulQueue, {
|
||||
get: function() {
|
||||
return queue2;
|
||||
}
|
||||
@@ -109837,7 +109837,7 @@ var require_commonjs21 = __commonJS({
|
||||
free: c.#free,
|
||||
// methods
|
||||
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
||||
backgroundFetch: (k, index, options, context2) => c.#backgroundFetch(k, index, options, context2),
|
||||
backgroundFetch: (k, index, options, context3) => c.#backgroundFetch(k, index, options, context3),
|
||||
moveToTail: (index) => c.#moveToTail(index),
|
||||
indexes: (options) => c.#indexes(options),
|
||||
rindexes: (options) => c.#rindexes(options),
|
||||
@@ -110640,7 +110640,7 @@ var require_commonjs21 = __commonJS({
|
||||
const v = this.#valList[index];
|
||||
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
||||
}
|
||||
#backgroundFetch(k, index, options, context2) {
|
||||
#backgroundFetch(k, index, options, context3) {
|
||||
const v = index === void 0 ? void 0 : this.#valList[index];
|
||||
if (this.#isBackgroundFetch(v)) {
|
||||
return v;
|
||||
@@ -110653,7 +110653,7 @@ var require_commonjs21 = __commonJS({
|
||||
const fetchOpts = {
|
||||
signal: ac.signal,
|
||||
options,
|
||||
context: context2
|
||||
context: context3
|
||||
};
|
||||
const cb = (v2, updateCache = false) => {
|
||||
const { aborted } = ac.signal;
|
||||
@@ -110770,7 +110770,7 @@ var require_commonjs21 = __commonJS({
|
||||
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
||||
ignoreFetchAbort = this.ignoreFetchAbort,
|
||||
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
||||
context: context2,
|
||||
context: context3,
|
||||
forceRefresh = false,
|
||||
status,
|
||||
signal
|
||||
@@ -110805,7 +110805,7 @@ var require_commonjs21 = __commonJS({
|
||||
if (index === void 0) {
|
||||
if (status)
|
||||
status.fetch = "miss";
|
||||
const p = this.#backgroundFetch(k, index, options, context2);
|
||||
const p = this.#backgroundFetch(k, index, options, context3);
|
||||
return p.__returned = p;
|
||||
} else {
|
||||
const v = this.#valList[index];
|
||||
@@ -110830,7 +110830,7 @@ var require_commonjs21 = __commonJS({
|
||||
this.#statusTTL(status, index);
|
||||
return v;
|
||||
}
|
||||
const p = this.#backgroundFetch(k, index, options, context2);
|
||||
const p = this.#backgroundFetch(k, index, options, context3);
|
||||
const hasStale = p.__staleWhileFetching !== void 0;
|
||||
const staleVal = hasStale && allowStale;
|
||||
if (status) {
|
||||
@@ -110852,13 +110852,13 @@ var require_commonjs21 = __commonJS({
|
||||
if (!memoMethod) {
|
||||
throw new Error("no memoMethod provided to constructor");
|
||||
}
|
||||
const { context: context2, forceRefresh, ...options } = memoOptions;
|
||||
const { context: context3, forceRefresh, ...options } = memoOptions;
|
||||
const v = this.get(k, options);
|
||||
if (!forceRefresh && v !== void 0)
|
||||
return v;
|
||||
const vv = memoMethod(k, v, {
|
||||
options,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
this.set(k, vv, options);
|
||||
return vv;
|
||||
@@ -123752,18 +123752,18 @@ var require_webidl3 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context2) {
|
||||
const plural = context2.types.length === 1 ? "" : " one of";
|
||||
const message = `${context2.argument} could not be converted to${plural}: ${context2.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
header: context3.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context2) {
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
return webidl.errors.exception({
|
||||
header: context2.prefix,
|
||||
message: `"${context2.value}" is an invalid ${context2.type}.`
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts = void 0) {
|
||||
@@ -129089,15 +129089,15 @@ var require_api_request3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context2, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -129124,7 +129124,7 @@ var require_api_request3 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -129244,15 +129244,15 @@ var require_api_stream3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context2, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -129280,7 +129280,7 @@ var require_api_stream3 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -129472,17 +129472,17 @@ var require_api_pipeline3 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
const { ret, res } = this;
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
if (ret.destroyed) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context2 } = this;
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -129500,7 +129500,7 @@ var require_api_pipeline3 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -129584,7 +129584,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
@@ -129595,7 +129595,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
throw new SocketError("bad upgrade", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
assert.strictEqual(statusCode, 101);
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
@@ -129604,7 +129604,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -129672,18 +129672,18 @@ var require_api_connect3 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context2) {
|
||||
onConnect(abort, context3) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context2;
|
||||
this.context = context3;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context2 } = this;
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -129695,7 +129695,7 @@ var require_api_connect3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context2
|
||||
context: context3
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -137814,8 +137814,8 @@ var require_dist_node2 = __commonJS({
|
||||
function isKeyOperator2(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues2(context2, operator, key, modifier) {
|
||||
var value = context2[key], result = [];
|
||||
function getValues2(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
if (isDefined3(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -137879,7 +137879,7 @@ var require_dist_node2 = __commonJS({
|
||||
expand: expand2.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand2(template, context2) {
|
||||
function expand2(template, context3) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -137893,7 +137893,7 @@ var require_dist_node2 = __commonJS({
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues2(context2, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues2(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -143345,7 +143345,7 @@ var require_download_artifact = __commonJS({
|
||||
var promises_1 = __importDefault2(require("fs/promises"));
|
||||
var crypto2 = __importStar2(require("crypto"));
|
||||
var stream = __importStar2(require("stream"));
|
||||
var github2 = __importStar2(require_github2());
|
||||
var github3 = __importStar2(require_github2());
|
||||
var core15 = __importStar2(require_core());
|
||||
var httpClient = __importStar2(require_lib());
|
||||
var unzip_stream_1 = __importDefault2(require_unzip());
|
||||
@@ -143433,7 +143433,7 @@ var require_download_artifact = __commonJS({
|
||||
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
||||
return __awaiter2(this, void 0, void 0, function* () {
|
||||
const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);
|
||||
const api = github2.getOctokit(token);
|
||||
const api = github3.getOctokit(token);
|
||||
let digestMismatch = false;
|
||||
core15.info(`Downloading artifact '${artifactId}' from '${repositoryOwner}/${repositoryName}'`);
|
||||
const { headers, status } = yield api.rest.actions.downloadArtifact({
|
||||
@@ -143754,8 +143754,8 @@ var require_get_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -143878,9 +143878,9 @@ var require_delete_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);
|
||||
const deleteArtifactResp = yield github2.rest.actions.deleteArtifact({
|
||||
const deleteArtifactResp = yield github3.rest.actions.deleteArtifact({
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
artifact_id: getArtifactResp.artifact.id
|
||||
@@ -143987,9 +143987,9 @@ var require_list_artifacts = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github2 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github3 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
let currentPageNumber = 1;
|
||||
const { data: listArtifactResponse } = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse } = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -144014,7 +144014,7 @@ var require_list_artifacts = __commonJS({
|
||||
currentPageNumber++;
|
||||
for (currentPageNumber; currentPageNumber <= numberOfPages; currentPageNumber++) {
|
||||
(0, core_1.debug)(`Fetching page ${currentPageNumber} of artifact list`);
|
||||
const { data: listArtifactResponse2 } = yield github2.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse2 } = yield github3.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -161849,10 +161849,12 @@ var jsonschema = __toESM(require_lib5());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
|
||||
Generated
+80
-78
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context3) {
|
||||
const plural = context3.types.length === 1 ? "" : " one of";
|
||||
const message = `${context3.argument} could not be converted to${plural}: ${context3.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
header: context4.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context3) {
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
return webidl.errors.exception({
|
||||
header: context3.prefix,
|
||||
message: `"${context3.value}" is an invalid ${context3.type}.`
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context3, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context3, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context3 } = this;
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context3) {
|
||||
onConnect(abort, context4) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context3;
|
||||
this.context = context4;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context3 } = this;
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context3
|
||||
context: context4
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context3, operator, key, modifier) {
|
||||
var value = context3[key], result = [];
|
||||
function getValues(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context3) {
|
||||
function expand(template, context4) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context3) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context3, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context3 = {};
|
||||
for (var p in contextIn) context3[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context3.access[p] = contextIn.access[p];
|
||||
context3.addInitializer = function(f) {
|
||||
var context4 = {};
|
||||
for (var p in contextIn) context4[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context4.access[p] = contextIn.access[p];
|
||||
context4.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context3);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context4);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context3 = createLoggerContext({
|
||||
var context4 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context3.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context4.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context3.setLogLevel(logLevel);
|
||||
context4.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context3 = (0, logger_1.createLoggerContext)({
|
||||
var context4 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context3.logger;
|
||||
exports2.AzureLogger = context4.logger;
|
||||
function setLogLevel(level) {
|
||||
context3.setLogLevel(level);
|
||||
context4.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context3.getLogLevel();
|
||||
return context4.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context3.createClientLogger(namespace);
|
||||
return context4.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context3 = new TracingContextImpl(options.parentContext);
|
||||
let context4 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context3 = context3.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context4 = context4.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context3;
|
||||
return context4;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context3, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context3, callback, ...callbackArgs);
|
||||
function withContext(context4, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context4, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -107954,10 +107954,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver5 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
@@ -111323,7 +111325,7 @@ async function addFingerprints(sarifLog, sourceRoot, logger) {
|
||||
// src/init.ts
|
||||
var core13 = __toESM(require_core());
|
||||
var toolrunner4 = __toESM(require_toolrunner());
|
||||
var github2 = __toESM(require_github());
|
||||
var github3 = __toESM(require_github());
|
||||
var io5 = __toESM(require_io());
|
||||
async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) {
|
||||
logger.startGroup("Setup CodeQL tools");
|
||||
|
||||
Reference in New Issue
Block a user