Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 67e27a7eb7 | |||
| 8e85a3cf14 |
Vendored
+398
-323
File diff suppressed because it is too large
Load Diff
Vendored
+391
-310
@@ -20779,20 +20779,24 @@ var require_util8 = __commonJS({
|
||||
async start() {
|
||||
iterator = iterable[Symbol.asyncIterator]();
|
||||
},
|
||||
async pull(controller) {
|
||||
const { done, value } = await iterator.next();
|
||||
if (done) {
|
||||
queueMicrotask(() => {
|
||||
controller.close();
|
||||
controller.byobRequest?.respond(0);
|
||||
});
|
||||
} else {
|
||||
const buf = Buffer.isBuffer(value) ? value : Buffer.from(value);
|
||||
if (buf.byteLength) {
|
||||
controller.enqueue(new Uint8Array(buf));
|
||||
pull(controller) {
|
||||
async function pull() {
|
||||
const { done, value } = await iterator.next();
|
||||
if (done) {
|
||||
queueMicrotask(() => {
|
||||
controller.close();
|
||||
controller.byobRequest?.respond(0);
|
||||
});
|
||||
} else {
|
||||
const buf = Buffer.isBuffer(value) ? value : Buffer.from(value);
|
||||
if (buf.byteLength) {
|
||||
controller.enqueue(new Uint8Array(buf));
|
||||
} else {
|
||||
return await pull();
|
||||
}
|
||||
}
|
||||
}
|
||||
return controller.desiredSize > 0;
|
||||
return pull();
|
||||
},
|
||||
async cancel() {
|
||||
await iterator.return();
|
||||
@@ -25308,6 +25312,13 @@ var require_body2 = __commonJS({
|
||||
var { isArrayBuffer } = require("node:util/types");
|
||||
var { serializeAMimeType } = require_data_url();
|
||||
var { multipartFormDataParser } = require_formdata_parser();
|
||||
var random;
|
||||
try {
|
||||
const crypto = require("node:crypto");
|
||||
random = (max) => crypto.randomInt(0, max);
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max));
|
||||
}
|
||||
var textEncoder = new TextEncoder();
|
||||
function noop() {
|
||||
}
|
||||
@@ -25357,7 +25368,7 @@ var require_body2 = __commonJS({
|
||||
} else if (ArrayBuffer.isView(object)) {
|
||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
|
||||
} else if (webidl.is.FormData(object)) {
|
||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, "0")}`;
|
||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
|
||||
const prefix = `--${boundary}\r
|
||||
Content-Disposition: form-data`;
|
||||
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
|
||||
@@ -28807,7 +28818,7 @@ var require_retry_handler = __commonJS({
|
||||
retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(retryAfterHeader) : retryAfterHeader * 1e3;
|
||||
}
|
||||
const retryTimeout = retryAfterHeader > 0 ? Math.min(retryAfterHeader, maxTimeout) : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout);
|
||||
setTimeout(() => cb(null), retryTimeout).unref();
|
||||
setTimeout(() => cb(null), retryTimeout);
|
||||
}
|
||||
onResponseStart(controller, statusCode, headers, statusMessage) {
|
||||
this.retryCount += 1;
|
||||
@@ -28914,7 +28925,7 @@ var require_retry_handler = __commonJS({
|
||||
return this.handler.onResponseEnd?.(controller, trailers);
|
||||
}
|
||||
onResponseError(controller, err) {
|
||||
if (!controller || controller.aborted || isDisturbed(this.opts.body)) {
|
||||
if (controller?.aborted || isDisturbed(this.opts.body)) {
|
||||
this.handler.onResponseError?.(controller, err);
|
||||
return;
|
||||
}
|
||||
@@ -31471,7 +31482,7 @@ var require_dns = __commonJS({
|
||||
runLookup(origin, opts, cb) {
|
||||
const ips = this.#records.get(origin.hostname);
|
||||
if (ips == null && this.full) {
|
||||
cb(null, origin.origin);
|
||||
cb(null, origin);
|
||||
return;
|
||||
}
|
||||
const newOpts = {
|
||||
@@ -31506,7 +31517,7 @@ var require_dns = __commonJS({
|
||||
}
|
||||
cb(
|
||||
null,
|
||||
`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`
|
||||
new URL(`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`)
|
||||
);
|
||||
});
|
||||
} else {
|
||||
@@ -31530,7 +31541,7 @@ var require_dns = __commonJS({
|
||||
}
|
||||
cb(
|
||||
null,
|
||||
`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`
|
||||
new URL(`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -31595,6 +31606,30 @@ var require_dns = __commonJS({
|
||||
}
|
||||
return ip;
|
||||
}
|
||||
pickFamily(origin, ipFamily) {
|
||||
const records = this.#records.get(origin.hostname)?.records;
|
||||
if (!records) {
|
||||
return null;
|
||||
}
|
||||
const family = records[ipFamily];
|
||||
if (!family) {
|
||||
return null;
|
||||
}
|
||||
if (family.offset == null || family.offset === maxInt) {
|
||||
family.offset = 0;
|
||||
} else {
|
||||
family.offset++;
|
||||
}
|
||||
const position = family.offset % family.ips.length;
|
||||
const ip = family.ips[position] ?? null;
|
||||
if (ip == null) {
|
||||
return ip;
|
||||
}
|
||||
if (Date.now() - ip.timestamp > ip.ttl) {
|
||||
family.ips.splice(position, 1);
|
||||
}
|
||||
return ip;
|
||||
}
|
||||
setRecords(origin, addresses) {
|
||||
const timestamp = Date.now();
|
||||
const records = { records: { 4: null, 6: null } };
|
||||
@@ -31624,9 +31659,12 @@ var require_dns = __commonJS({
|
||||
#dispatch = null;
|
||||
#origin = null;
|
||||
#controller = null;
|
||||
constructor(state, { origin, handler, dispatch }, opts) {
|
||||
#newOrigin = null;
|
||||
#firstTry = true;
|
||||
constructor(state, { origin, handler, dispatch, newOrigin }, opts) {
|
||||
super(handler);
|
||||
this.#origin = origin;
|
||||
this.#newOrigin = newOrigin;
|
||||
this.#opts = { ...opts };
|
||||
this.#state = state;
|
||||
this.#dispatch = dispatch;
|
||||
@@ -31636,17 +31674,30 @@ var require_dns = __commonJS({
|
||||
case "ETIMEDOUT":
|
||||
case "ECONNREFUSED": {
|
||||
if (this.#state.dualStack) {
|
||||
this.#state.runLookup(this.#origin, this.#opts, (err2, newOrigin) => {
|
||||
if (err2) {
|
||||
super.onResponseError(controller, err2);
|
||||
return;
|
||||
}
|
||||
const dispatchOpts = {
|
||||
...this.#opts,
|
||||
origin: newOrigin
|
||||
};
|
||||
this.#dispatch(dispatchOpts, this);
|
||||
});
|
||||
if (!this.#firstTry) {
|
||||
super.onResponseError(controller, err);
|
||||
return;
|
||||
}
|
||||
this.#firstTry = false;
|
||||
const otherFamily = this.#newOrigin.hostname[0] === "[" ? 4 : 6;
|
||||
const ip = this.#state.pickFamily(this.#origin, otherFamily);
|
||||
if (ip == null) {
|
||||
super.onResponseError(controller, err);
|
||||
return;
|
||||
}
|
||||
let port;
|
||||
if (typeof ip.port === "number") {
|
||||
port = `:${ip.port}`;
|
||||
} else if (this.#origin.port !== "") {
|
||||
port = `:${this.#origin.port}`;
|
||||
} else {
|
||||
port = "";
|
||||
}
|
||||
const dispatchOpts = {
|
||||
...this.#opts,
|
||||
origin: `${this.#origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`
|
||||
};
|
||||
this.#dispatch(dispatchOpts, this);
|
||||
return;
|
||||
}
|
||||
super.onResponseError(controller, err);
|
||||
@@ -31654,7 +31705,8 @@ var require_dns = __commonJS({
|
||||
}
|
||||
case "ENOTFOUND":
|
||||
this.#state.deleteRecords(this.#origin);
|
||||
// eslint-disable-next-line no-fallthrough
|
||||
super.onResponseError(controller, err);
|
||||
break;
|
||||
default:
|
||||
super.onResponseError(controller, err);
|
||||
break;
|
||||
@@ -31707,14 +31759,13 @@ var require_dns = __commonJS({
|
||||
}
|
||||
instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {
|
||||
if (err) {
|
||||
return handler.onError(err);
|
||||
return handler.onResponseError(null, err);
|
||||
}
|
||||
let dispatchOpts = null;
|
||||
dispatchOpts = {
|
||||
const dispatchOpts = {
|
||||
...origDispatchOpts,
|
||||
servername: origin.hostname,
|
||||
// For SNI on TLS
|
||||
origin: newOrigin,
|
||||
origin: newOrigin.origin,
|
||||
headers: {
|
||||
host: origin.host,
|
||||
...origDispatchOpts.headers
|
||||
@@ -31722,7 +31773,10 @@ var require_dns = __commonJS({
|
||||
};
|
||||
dispatch(
|
||||
dispatchOpts,
|
||||
instance.getHandler({ origin, dispatch, handler }, origDispatchOpts)
|
||||
instance.getHandler(
|
||||
{ origin, dispatch, handler, newOrigin },
|
||||
origDispatchOpts
|
||||
)
|
||||
);
|
||||
});
|
||||
return true;
|
||||
@@ -32956,7 +33010,7 @@ var require_sqlite_cache_store = __commonJS({
|
||||
*/
|
||||
#countEntriesQuery;
|
||||
/**
|
||||
* @type {import('node:sqlite').StatementSync}
|
||||
* @type {import('node:sqlite').StatementSync | null}
|
||||
*/
|
||||
#deleteOldValuesQuery;
|
||||
/**
|
||||
@@ -33041,8 +33095,7 @@ var require_sqlite_cache_store = __commonJS({
|
||||
etag = ?,
|
||||
cacheControlDirectives = ?,
|
||||
cachedAt = ?,
|
||||
staleAt = ?,
|
||||
deleteAt = ?
|
||||
staleAt = ?
|
||||
WHERE
|
||||
id = ?
|
||||
`);
|
||||
@@ -33059,9 +33112,8 @@ var require_sqlite_cache_store = __commonJS({
|
||||
cacheControlDirectives,
|
||||
vary,
|
||||
cachedAt,
|
||||
staleAt,
|
||||
deleteAt
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
staleAt
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
`);
|
||||
this.#deleteByUrlQuery = this.#db.prepare(
|
||||
`DELETE FROM cacheInterceptorV${VERSION3} WHERE url = ?`
|
||||
@@ -33088,27 +33140,67 @@ var require_sqlite_cache_store = __commonJS({
|
||||
}
|
||||
/**
|
||||
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
|
||||
* @returns {import('../../types/cache-interceptor.d.ts').default.GetResult | undefined}
|
||||
* @returns {(import('../../types/cache-interceptor.d.ts').default.GetResult & { body?: Buffer }) | undefined}
|
||||
*/
|
||||
get(key) {
|
||||
assertCacheKey(key);
|
||||
const value = this.#findValue(key);
|
||||
if (!value) {
|
||||
return void 0;
|
||||
}
|
||||
const result = {
|
||||
body: Buffer.from(value.body),
|
||||
return value ? {
|
||||
body: value.body ? Buffer.from(value.body.buffer) : void 0,
|
||||
statusCode: value.statusCode,
|
||||
statusMessage: value.statusMessage,
|
||||
headers: value.headers ? JSON.parse(value.headers) : void 0,
|
||||
etag: value.etag ? value.etag : void 0,
|
||||
vary: value.vary ?? void 0,
|
||||
vary: value.vary ? JSON.parse(value.vary) : void 0,
|
||||
cacheControlDirectives: value.cacheControlDirectives ? JSON.parse(value.cacheControlDirectives) : void 0,
|
||||
cachedAt: value.cachedAt,
|
||||
staleAt: value.staleAt,
|
||||
deleteAt: value.deleteAt
|
||||
};
|
||||
return result;
|
||||
} : void 0;
|
||||
}
|
||||
/**
|
||||
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
|
||||
* @param {import('../../types/cache-interceptor.d.ts').default.CacheValue & { body: null | Buffer | Array<Buffer>}} value
|
||||
*/
|
||||
set(key, value) {
|
||||
assertCacheKey(key);
|
||||
const url = this.#makeValueUrl(key);
|
||||
const body = Array.isArray(value.body) ? Buffer.concat(value.body) : value.body;
|
||||
const size = body?.byteLength;
|
||||
if (size && size > this.#maxEntrySize) {
|
||||
return;
|
||||
}
|
||||
const existingValue = this.#findValue(key, true);
|
||||
if (existingValue) {
|
||||
this.#updateValueQuery.run(
|
||||
body,
|
||||
value.deleteAt,
|
||||
value.statusCode,
|
||||
value.statusMessage,
|
||||
value.headers ? JSON.stringify(value.headers) : null,
|
||||
value.etag ? value.etag : null,
|
||||
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
|
||||
value.cachedAt,
|
||||
value.staleAt,
|
||||
existingValue.id
|
||||
);
|
||||
} else {
|
||||
this.#prune();
|
||||
this.#insertValueQuery.run(
|
||||
url,
|
||||
key.method,
|
||||
body,
|
||||
value.deleteAt,
|
||||
value.statusCode,
|
||||
value.statusMessage,
|
||||
value.headers ? JSON.stringify(value.headers) : null,
|
||||
value.etag ? value.etag : null,
|
||||
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
|
||||
value.vary ? JSON.stringify(value.vary) : null,
|
||||
value.cachedAt,
|
||||
value.staleAt
|
||||
);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
|
||||
@@ -33118,15 +33210,12 @@ var require_sqlite_cache_store = __commonJS({
|
||||
createWriteStream(key, value) {
|
||||
assertCacheKey(key);
|
||||
assertCacheValue(value);
|
||||
const url = this.#makeValueUrl(key);
|
||||
let size = 0;
|
||||
const body = [];
|
||||
const store = this;
|
||||
return new Writable({
|
||||
decodeStrings: true,
|
||||
write(chunk, encoding, callback) {
|
||||
if (typeof chunk === "string") {
|
||||
chunk = Buffer.from(chunk, encoding);
|
||||
}
|
||||
size += chunk.byteLength;
|
||||
if (size < store.#maxEntrySize) {
|
||||
body.push(chunk);
|
||||
@@ -33136,39 +33225,7 @@ var require_sqlite_cache_store = __commonJS({
|
||||
callback();
|
||||
},
|
||||
final(callback) {
|
||||
const existingValue = store.#findValue(key, true);
|
||||
if (existingValue) {
|
||||
store.#updateValueQuery.run(
|
||||
Buffer.concat(body),
|
||||
value.deleteAt,
|
||||
value.statusCode,
|
||||
value.statusMessage,
|
||||
value.headers ? JSON.stringify(value.headers) : null,
|
||||
value.etag ? value.etag : null,
|
||||
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
|
||||
value.cachedAt,
|
||||
value.staleAt,
|
||||
value.deleteAt,
|
||||
existingValue.id
|
||||
);
|
||||
} else {
|
||||
store.#prune();
|
||||
store.#insertValueQuery.run(
|
||||
url,
|
||||
key.method,
|
||||
Buffer.concat(body),
|
||||
value.deleteAt,
|
||||
value.statusCode,
|
||||
value.statusMessage,
|
||||
value.headers ? JSON.stringify(value.headers) : null,
|
||||
value.etag ? value.etag : null,
|
||||
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
|
||||
value.vary ? JSON.stringify(value.vary) : null,
|
||||
value.cachedAt,
|
||||
value.staleAt,
|
||||
value.deleteAt
|
||||
);
|
||||
}
|
||||
store.set(key, { ...value, body });
|
||||
callback();
|
||||
}
|
||||
});
|
||||
@@ -33188,13 +33245,13 @@ var require_sqlite_cache_store = __commonJS({
|
||||
}
|
||||
{
|
||||
const removed = this.#deleteExpiredValuesQuery.run(Date.now()).changes;
|
||||
if (removed > 0) {
|
||||
if (removed) {
|
||||
return removed;
|
||||
}
|
||||
}
|
||||
{
|
||||
const removed = this.#deleteOldValuesQuery.run(Math.max(Math.floor(this.#maxCount * 0.1), 1)).changes;
|
||||
if (removed > 0) {
|
||||
const removed = this.#deleteOldValuesQuery?.run(Math.max(Math.floor(this.#maxCount * 0.1), 1)).changes;
|
||||
if (removed) {
|
||||
return removed;
|
||||
}
|
||||
}
|
||||
@@ -33218,7 +33275,7 @@ var require_sqlite_cache_store = __commonJS({
|
||||
/**
|
||||
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
|
||||
* @param {boolean} [canBeExpired=false]
|
||||
* @returns {(SqliteStoreValue & { vary?: Record<string, string[]> }) | undefined}
|
||||
* @returns {SqliteStoreValue | undefined}
|
||||
*/
|
||||
#findValue(key, canBeExpired = false) {
|
||||
const url = this.#makeValueUrl(key);
|
||||
@@ -33237,9 +33294,9 @@ var require_sqlite_cache_store = __commonJS({
|
||||
if (!headers) {
|
||||
return void 0;
|
||||
}
|
||||
value.vary = JSON.parse(value.vary);
|
||||
for (const header in value.vary) {
|
||||
if (!headerValueEquals(headers[header], value.vary[header])) {
|
||||
const vary = JSON.parse(value.vary);
|
||||
for (const header in vary) {
|
||||
if (!headerValueEquals(headers[header], vary[header])) {
|
||||
matches = false;
|
||||
break;
|
||||
}
|
||||
@@ -37469,6 +37526,178 @@ var require_constants10 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/web/websocket/util.js
|
||||
var require_util12 = __commonJS({
|
||||
"node_modules/undici/lib/web/websocket/util.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { states, opcodes } = require_constants10();
|
||||
var { isUtf8 } = require("node:buffer");
|
||||
var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
|
||||
function isConnecting(readyState) {
|
||||
return readyState === states.CONNECTING;
|
||||
}
|
||||
function isEstablished(readyState) {
|
||||
return readyState === states.OPEN;
|
||||
}
|
||||
function isClosing(readyState) {
|
||||
return readyState === states.CLOSING;
|
||||
}
|
||||
function isClosed(readyState) {
|
||||
return readyState === states.CLOSED;
|
||||
}
|
||||
function fireEvent(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {}) {
|
||||
const event = eventFactory(e, eventInitDict);
|
||||
target.dispatchEvent(event);
|
||||
}
|
||||
function websocketMessageReceived(handler, type, data) {
|
||||
handler.onMessage(type, data);
|
||||
}
|
||||
function toArrayBuffer(buffer) {
|
||||
if (buffer.byteLength === buffer.buffer.byteLength) {
|
||||
return buffer.buffer;
|
||||
}
|
||||
return new Uint8Array(buffer).buffer;
|
||||
}
|
||||
function isValidSubprotocol(protocol) {
|
||||
if (protocol.length === 0) {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < protocol.length; ++i) {
|
||||
const code = protocol.charCodeAt(i);
|
||||
if (code < 33 || // CTL, contains SP (0x20) and HT (0x09)
|
||||
code > 126 || code === 34 || // "
|
||||
code === 40 || // (
|
||||
code === 41 || // )
|
||||
code === 44 || // ,
|
||||
code === 47 || // /
|
||||
code === 58 || // :
|
||||
code === 59 || // ;
|
||||
code === 60 || // <
|
||||
code === 61 || // =
|
||||
code === 62 || // >
|
||||
code === 63 || // ?
|
||||
code === 64 || // @
|
||||
code === 91 || // [
|
||||
code === 92 || // \
|
||||
code === 93 || // ]
|
||||
code === 123 || // {
|
||||
code === 125) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function isValidStatusCode(code) {
|
||||
if (code >= 1e3 && code < 1015) {
|
||||
return code !== 1004 && // reserved
|
||||
code !== 1005 && // "MUST NOT be set as a status code"
|
||||
code !== 1006;
|
||||
}
|
||||
return code >= 3e3 && code <= 4999;
|
||||
}
|
||||
function isControlFrame(opcode) {
|
||||
return opcode === opcodes.CLOSE || opcode === opcodes.PING || opcode === opcodes.PONG;
|
||||
}
|
||||
function isContinuationFrame(opcode) {
|
||||
return opcode === opcodes.CONTINUATION;
|
||||
}
|
||||
function isTextBinaryFrame(opcode) {
|
||||
return opcode === opcodes.TEXT || opcode === opcodes.BINARY;
|
||||
}
|
||||
function isValidOpcode(opcode) {
|
||||
return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode);
|
||||
}
|
||||
function parseExtensions(extensions) {
|
||||
const position = { position: 0 };
|
||||
const extensionList = /* @__PURE__ */ new Map();
|
||||
while (position.position < extensions.length) {
|
||||
const pair = collectASequenceOfCodePointsFast(";", extensions, position);
|
||||
const [name, value = ""] = pair.split("=");
|
||||
extensionList.set(
|
||||
removeHTTPWhitespace(name, true, false),
|
||||
removeHTTPWhitespace(value, false, true)
|
||||
);
|
||||
position.position++;
|
||||
}
|
||||
return extensionList;
|
||||
}
|
||||
function isValidClientWindowBits(value) {
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const byte = value.charCodeAt(i);
|
||||
if (byte < 48 || byte > 57) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function getURLRecord(url, baseURL) {
|
||||
let urlRecord;
|
||||
try {
|
||||
urlRecord = new URL(url, baseURL);
|
||||
} catch (e) {
|
||||
throw new DOMException(e, "SyntaxError");
|
||||
}
|
||||
if (urlRecord.protocol === "http:") {
|
||||
urlRecord.protocol = "ws:";
|
||||
} else if (urlRecord.protocol === "https:") {
|
||||
urlRecord.protocol = "wss:";
|
||||
}
|
||||
if (urlRecord.protocol !== "ws:" && urlRecord.protocol !== "wss:") {
|
||||
throw new DOMException("expected a ws: or wss: url", "SyntaxError");
|
||||
}
|
||||
if (urlRecord.hash.length || urlRecord.href.endsWith("#")) {
|
||||
throw new DOMException("hash", "SyntaxError");
|
||||
}
|
||||
return urlRecord;
|
||||
}
|
||||
function validateCloseCodeAndReason(code, reason) {
|
||||
if (code !== null) {
|
||||
if (code !== 1e3 && (code < 3e3 || code > 4999)) {
|
||||
throw new DOMException("invalid code", "InvalidAccessError");
|
||||
}
|
||||
}
|
||||
if (reason !== null) {
|
||||
const reasonBytesLength = Buffer.byteLength(reason);
|
||||
if (reasonBytesLength > 123) {
|
||||
throw new DOMException(`Reason must be less than 123 bytes; received ${reasonBytesLength}`, "SyntaxError");
|
||||
}
|
||||
}
|
||||
}
|
||||
var utf8Decode = (() => {
|
||||
if (typeof process.versions.icu === "string") {
|
||||
const fatalDecoder = new TextDecoder("utf-8", { fatal: true });
|
||||
return fatalDecoder.decode.bind(fatalDecoder);
|
||||
}
|
||||
return function(buffer) {
|
||||
if (isUtf8(buffer)) {
|
||||
return buffer.toString("utf-8");
|
||||
}
|
||||
throw new TypeError("Invalid utf-8 received.");
|
||||
};
|
||||
})();
|
||||
module2.exports = {
|
||||
isConnecting,
|
||||
isEstablished,
|
||||
isClosing,
|
||||
isClosed,
|
||||
fireEvent,
|
||||
isValidSubprotocol,
|
||||
isValidStatusCode,
|
||||
websocketMessageReceived,
|
||||
utf8Decode,
|
||||
isControlFrame,
|
||||
isContinuationFrame,
|
||||
isTextBinaryFrame,
|
||||
isValidOpcode,
|
||||
parseExtensions,
|
||||
isValidClientWindowBits,
|
||||
toArrayBuffer,
|
||||
getURLRecord,
|
||||
validateCloseCodeAndReason
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/web/websocket/frame.js
|
||||
var require_frame2 = __commonJS({
|
||||
"node_modules/undici/lib/web/websocket/frame.js"(exports2, module2) {
|
||||
@@ -37584,7 +37813,7 @@ var require_connection2 = __commonJS({
|
||||
"node_modules/undici/lib/web/websocket/connection.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = require_constants10();
|
||||
var { failWebsocketConnection, parseExtensions, isClosed, isClosing, isEstablished, validateCloseCodeAndReason } = require_util12();
|
||||
var { parseExtensions, isClosed, isClosing, isEstablished, validateCloseCodeAndReason } = require_util12();
|
||||
var { channels } = require_diagnostics();
|
||||
var { makeRequest } = require_request4();
|
||||
var { fetching } = require_fetch2();
|
||||
@@ -37718,85 +37947,8 @@ var require_connection2 = __commonJS({
|
||||
object.readyState = states.CLOSING;
|
||||
}
|
||||
}
|
||||
module2.exports = {
|
||||
establishWebSocketConnection,
|
||||
closeWebSocketConnection
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/web/websocket/util.js
|
||||
var require_util12 = __commonJS({
|
||||
"node_modules/undici/lib/web/websocket/util.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { states, opcodes } = require_constants10();
|
||||
var { isUtf8 } = require("node:buffer");
|
||||
var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
|
||||
function isConnecting(readyState) {
|
||||
return readyState === states.CONNECTING;
|
||||
}
|
||||
function isEstablished(readyState) {
|
||||
return readyState === states.OPEN;
|
||||
}
|
||||
function isClosing(readyState) {
|
||||
return readyState === states.CLOSING;
|
||||
}
|
||||
function isClosed(readyState) {
|
||||
return readyState === states.CLOSED;
|
||||
}
|
||||
function fireEvent(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {}) {
|
||||
const event = eventFactory(e, eventInitDict);
|
||||
target.dispatchEvent(event);
|
||||
}
|
||||
function websocketMessageReceived(handler, type, data) {
|
||||
handler.onMessage(type, data);
|
||||
}
|
||||
function toArrayBuffer(buffer) {
|
||||
if (buffer.byteLength === buffer.buffer.byteLength) {
|
||||
return buffer.buffer;
|
||||
}
|
||||
return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
|
||||
}
|
||||
function isValidSubprotocol(protocol) {
|
||||
if (protocol.length === 0) {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < protocol.length; ++i) {
|
||||
const code = protocol.charCodeAt(i);
|
||||
if (code < 33 || // CTL, contains SP (0x20) and HT (0x09)
|
||||
code > 126 || code === 34 || // "
|
||||
code === 40 || // (
|
||||
code === 41 || // )
|
||||
code === 44 || // ,
|
||||
code === 47 || // /
|
||||
code === 58 || // :
|
||||
code === 59 || // ;
|
||||
code === 60 || // <
|
||||
code === 61 || // =
|
||||
code === 62 || // >
|
||||
code === 63 || // ?
|
||||
code === 64 || // @
|
||||
code === 91 || // [
|
||||
code === 92 || // \
|
||||
code === 93 || // ]
|
||||
code === 123 || // {
|
||||
code === 125) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function isValidStatusCode(code) {
|
||||
if (code >= 1e3 && code < 1015) {
|
||||
return code !== 1004 && // reserved
|
||||
code !== 1005 && // "MUST NOT be set as a status code"
|
||||
code !== 1006;
|
||||
}
|
||||
return code >= 3e3 && code <= 4999;
|
||||
}
|
||||
function failWebsocketConnection(handler, code, reason) {
|
||||
if (isEstablished(handler.readyState)) {
|
||||
const { closeWebSocketConnection } = require_connection2();
|
||||
closeWebSocketConnection(handler, code, reason, false);
|
||||
}
|
||||
handler.controller.abort();
|
||||
@@ -37805,106 +37957,10 @@ var require_util12 = __commonJS({
|
||||
}
|
||||
handler.onFail(code, reason);
|
||||
}
|
||||
function isControlFrame(opcode) {
|
||||
return opcode === opcodes.CLOSE || opcode === opcodes.PING || opcode === opcodes.PONG;
|
||||
}
|
||||
function isContinuationFrame(opcode) {
|
||||
return opcode === opcodes.CONTINUATION;
|
||||
}
|
||||
function isTextBinaryFrame(opcode) {
|
||||
return opcode === opcodes.TEXT || opcode === opcodes.BINARY;
|
||||
}
|
||||
function isValidOpcode(opcode) {
|
||||
return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode);
|
||||
}
|
||||
function parseExtensions(extensions) {
|
||||
const position = { position: 0 };
|
||||
const extensionList = /* @__PURE__ */ new Map();
|
||||
while (position.position < extensions.length) {
|
||||
const pair = collectASequenceOfCodePointsFast(";", extensions, position);
|
||||
const [name, value = ""] = pair.split("=");
|
||||
extensionList.set(
|
||||
removeHTTPWhitespace(name, true, false),
|
||||
removeHTTPWhitespace(value, false, true)
|
||||
);
|
||||
position.position++;
|
||||
}
|
||||
return extensionList;
|
||||
}
|
||||
function isValidClientWindowBits(value) {
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const byte = value.charCodeAt(i);
|
||||
if (byte < 48 || byte > 57) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function getURLRecord(url, baseURL) {
|
||||
let urlRecord;
|
||||
try {
|
||||
urlRecord = new URL(url, baseURL);
|
||||
} catch (e) {
|
||||
throw new DOMException(e, "SyntaxError");
|
||||
}
|
||||
if (urlRecord.protocol === "http:") {
|
||||
urlRecord.protocol = "ws:";
|
||||
} else if (urlRecord.protocol === "https:") {
|
||||
urlRecord.protocol = "wss:";
|
||||
}
|
||||
if (urlRecord.protocol !== "ws:" && urlRecord.protocol !== "wss:") {
|
||||
throw new DOMException("expected a ws: or wss: url", "SyntaxError");
|
||||
}
|
||||
if (urlRecord.hash.length || urlRecord.href.endsWith("#")) {
|
||||
throw new DOMException("hash", "SyntaxError");
|
||||
}
|
||||
return urlRecord;
|
||||
}
|
||||
function validateCloseCodeAndReason(code, reason) {
|
||||
if (code !== null) {
|
||||
if (code !== 1e3 && (code < 3e3 || code > 4999)) {
|
||||
throw new DOMException("invalid code", "InvalidAccessError");
|
||||
}
|
||||
}
|
||||
if (reason !== null) {
|
||||
const reasonBytesLength = Buffer.byteLength(reason);
|
||||
if (reasonBytesLength > 123) {
|
||||
throw new DOMException(`Reason must be less than 123 bytes; received ${reasonBytesLength}`, "SyntaxError");
|
||||
}
|
||||
}
|
||||
}
|
||||
var utf8Decode = (() => {
|
||||
if (typeof process.versions.icu === "string") {
|
||||
const fatalDecoder = new TextDecoder("utf-8", { fatal: true });
|
||||
return fatalDecoder.decode.bind(fatalDecoder);
|
||||
}
|
||||
return function(buffer) {
|
||||
if (isUtf8(buffer)) {
|
||||
return buffer.toString("utf-8");
|
||||
}
|
||||
throw new TypeError("Invalid utf-8 received.");
|
||||
};
|
||||
})();
|
||||
module2.exports = {
|
||||
isConnecting,
|
||||
isEstablished,
|
||||
isClosing,
|
||||
isClosed,
|
||||
fireEvent,
|
||||
isValidSubprotocol,
|
||||
isValidStatusCode,
|
||||
establishWebSocketConnection,
|
||||
failWebsocketConnection,
|
||||
websocketMessageReceived,
|
||||
utf8Decode,
|
||||
isControlFrame,
|
||||
isContinuationFrame,
|
||||
isTextBinaryFrame,
|
||||
isValidOpcode,
|
||||
parseExtensions,
|
||||
isValidClientWindowBits,
|
||||
toArrayBuffer,
|
||||
getURLRecord,
|
||||
validateCloseCodeAndReason
|
||||
closeWebSocketConnection
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -37975,17 +38031,18 @@ var require_receiver2 = __commonJS({
|
||||
var {
|
||||
isValidStatusCode,
|
||||
isValidOpcode,
|
||||
failWebsocketConnection,
|
||||
websocketMessageReceived,
|
||||
utf8Decode,
|
||||
isControlFrame,
|
||||
isTextBinaryFrame,
|
||||
isContinuationFrame
|
||||
} = require_util12();
|
||||
var { failWebsocketConnection } = require_connection2();
|
||||
var { WebsocketFrameSend } = require_frame2();
|
||||
var { PerMessageDeflate } = require_permessage_deflate();
|
||||
var ByteParser = class extends Writable {
|
||||
#buffers = [];
|
||||
#fragmentsBytes = 0;
|
||||
#byteOffset = 0;
|
||||
#loop = false;
|
||||
#state = parserStates.INFO;
|
||||
@@ -38115,11 +38172,9 @@ var require_receiver2 = __commonJS({
|
||||
this.#state = parserStates.INFO;
|
||||
} else {
|
||||
if (!this.#info.compressed) {
|
||||
this.#fragments.push(body);
|
||||
this.writeFragments(body);
|
||||
if (!this.#info.fragmented && this.#info.fin) {
|
||||
const fullMessage = Buffer.concat(this.#fragments);
|
||||
websocketMessageReceived(this.#handler, this.#info.binaryType, fullMessage);
|
||||
this.#fragments.length = 0;
|
||||
websocketMessageReceived(this.#handler, this.#info.binaryType, this.consumeFragments());
|
||||
}
|
||||
this.#state = parserStates.INFO;
|
||||
} else {
|
||||
@@ -38128,17 +38183,16 @@ var require_receiver2 = __commonJS({
|
||||
failWebsocketConnection(this.#handler, 1007, error.message);
|
||||
return;
|
||||
}
|
||||
this.#fragments.push(data);
|
||||
this.writeFragments(data);
|
||||
if (!this.#info.fin) {
|
||||
this.#state = parserStates.INFO;
|
||||
this.#loop = true;
|
||||
this.run(callback);
|
||||
return;
|
||||
}
|
||||
websocketMessageReceived(this.#handler, this.#info.binaryType, Buffer.concat(this.#fragments));
|
||||
websocketMessageReceived(this.#handler, this.#info.binaryType, this.consumeFragments());
|
||||
this.#loop = true;
|
||||
this.#state = parserStates.INFO;
|
||||
this.#fragments.length = 0;
|
||||
this.run(callback);
|
||||
});
|
||||
this.#loop = false;
|
||||
@@ -38159,29 +38213,54 @@ var require_receiver2 = __commonJS({
|
||||
} else if (n === 0) {
|
||||
return emptyBuffer;
|
||||
}
|
||||
if (this.#buffers[0].length === n) {
|
||||
this.#byteOffset -= this.#buffers[0].length;
|
||||
return this.#buffers.shift();
|
||||
}
|
||||
const buffer = Buffer.allocUnsafe(n);
|
||||
let offset = 0;
|
||||
while (offset !== n) {
|
||||
const next = this.#buffers[0];
|
||||
const { length } = next;
|
||||
if (length + offset === n) {
|
||||
buffer.set(this.#buffers.shift(), offset);
|
||||
break;
|
||||
} else if (length + offset > n) {
|
||||
buffer.set(next.subarray(0, n - offset), offset);
|
||||
this.#buffers[0] = next.subarray(n - offset);
|
||||
break;
|
||||
} else {
|
||||
buffer.set(this.#buffers.shift(), offset);
|
||||
offset += next.length;
|
||||
}
|
||||
}
|
||||
this.#byteOffset -= n;
|
||||
return buffer;
|
||||
const first = this.#buffers[0];
|
||||
if (first.length > n) {
|
||||
this.#buffers[0] = first.subarray(n, first.length);
|
||||
return first.subarray(0, n);
|
||||
} else if (first.length === n) {
|
||||
return this.#buffers.shift();
|
||||
} else {
|
||||
let offset = 0;
|
||||
const buffer = Buffer.allocUnsafeSlow(n);
|
||||
while (offset !== n) {
|
||||
const next = this.#buffers[0];
|
||||
const length = next.length;
|
||||
if (length + offset === n) {
|
||||
buffer.set(this.#buffers.shift(), offset);
|
||||
break;
|
||||
} else if (length + offset > n) {
|
||||
buffer.set(next.subarray(0, n - offset), offset);
|
||||
this.#buffers[0] = next.subarray(n - offset);
|
||||
break;
|
||||
} else {
|
||||
buffer.set(this.#buffers.shift(), offset);
|
||||
offset += length;
|
||||
}
|
||||
}
|
||||
return buffer;
|
||||
}
|
||||
}
|
||||
writeFragments(fragment) {
|
||||
this.#fragmentsBytes += fragment.length;
|
||||
this.#fragments.push(fragment);
|
||||
}
|
||||
consumeFragments() {
|
||||
const fragments = this.#fragments;
|
||||
if (fragments.length === 1) {
|
||||
this.#fragmentsBytes = 0;
|
||||
return fragments.shift();
|
||||
}
|
||||
let offset = 0;
|
||||
const output = Buffer.allocUnsafeSlow(this.#fragmentsBytes);
|
||||
for (let i = 0; i < fragments.length; ++i) {
|
||||
const buffer = fragments[i];
|
||||
output.set(buffer, offset);
|
||||
offset += buffer.length;
|
||||
}
|
||||
this.#fragments = [];
|
||||
this.#fragmentsBytes = 0;
|
||||
return output;
|
||||
}
|
||||
parseCloseBody(data) {
|
||||
assert(data.length !== 1);
|
||||
@@ -38363,12 +38442,11 @@ var require_websocket2 = __commonJS({
|
||||
isClosing,
|
||||
isValidSubprotocol,
|
||||
fireEvent,
|
||||
failWebsocketConnection,
|
||||
utf8Decode,
|
||||
toArrayBuffer,
|
||||
getURLRecord
|
||||
} = require_util12();
|
||||
var { establishWebSocketConnection, closeWebSocketConnection } = require_connection2();
|
||||
var { establishWebSocketConnection, closeWebSocketConnection, failWebsocketConnection } = require_connection2();
|
||||
var { ByteParser } = require_receiver2();
|
||||
var { kEnumerableProperty } = require_util8();
|
||||
var { getGlobalDispatcher } = require_global4();
|
||||
@@ -38851,8 +38929,8 @@ var require_websocketstream = __commonJS({
|
||||
var { createDeferredPromise, environmentSettingsObject } = require_util9();
|
||||
var { states, opcodes, sentCloseFrameState } = require_constants10();
|
||||
var { webidl } = require_webidl2();
|
||||
var { getURLRecord, isValidSubprotocol, isEstablished, failWebsocketConnection, utf8Decode } = require_util12();
|
||||
var { establishWebSocketConnection, closeWebSocketConnection } = require_connection2();
|
||||
var { getURLRecord, isValidSubprotocol, isEstablished, utf8Decode } = require_util12();
|
||||
var { establishWebSocketConnection, failWebsocketConnection, closeWebSocketConnection } = require_connection2();
|
||||
var { types } = require("node:util");
|
||||
var { channels } = require_diagnostics();
|
||||
var { WebsocketFrameSend } = require_frame2();
|
||||
@@ -40247,11 +40325,11 @@ var RequestError = class extends Error {
|
||||
response;
|
||||
constructor(message, statusCode, options) {
|
||||
super(message);
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
this.name = "HttpError";
|
||||
this.status = statusCode;
|
||||
this.status = Number.parseInt(statusCode);
|
||||
if (Number.isNaN(this.status)) {
|
||||
this.status = 0;
|
||||
}
|
||||
if ("response" in options) {
|
||||
this.response = options.response;
|
||||
}
|
||||
@@ -40388,7 +40466,7 @@ async function getResponseData(response) {
|
||||
return response.text().catch(() => "");
|
||||
}
|
||||
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
|
||||
if (mimetype.type === "application/json") {
|
||||
if (isJSONResponse(mimetype)) {
|
||||
let text = "";
|
||||
try {
|
||||
text = await response.text();
|
||||
@@ -40402,6 +40480,9 @@ async function getResponseData(response) {
|
||||
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
|
||||
}
|
||||
}
|
||||
function isJSONResponse(mimetype) {
|
||||
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
|
||||
}
|
||||
function toErrorMessage(data) {
|
||||
if (typeof data === "string") {
|
||||
return data;
|
||||
|
||||
Generated
+58
-49
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"name": "create-github-app-token",
|
||||
"version": "1.11.1",
|
||||
"version": "1.11.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "create-github-app-token",
|
||||
"version": "1.11.1",
|
||||
"version": "1.11.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@octokit/auth-app": "^7.1.3",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/auth-app": "^7.1.4",
|
||||
"@octokit/request": "^9.2.0",
|
||||
"p-retry": "^6.2.1",
|
||||
"undici": "^7.2.0"
|
||||
"undici": "^7.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sinonjs/fake-timers": "^14.0.0",
|
||||
@@ -645,15 +645,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-app": {
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.3.tgz",
|
||||
"integrity": "sha512-GZdkOp2kZTIy5dG9oXqvzUAZiPvDx4C/lMlN6yQjtG9d/+hYa7W8WXTJoOrXE8UdfL9A/sZMl206dmtkl9lwVQ==",
|
||||
"version": "7.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.4.tgz",
|
||||
"integrity": "sha512-5F+3l/maq9JfWQ4bV28jT2G/K8eu9OJ317yzXPTGe4Kw+lKDhFaS4dQ3Ltmb6xImKxfCQdqDqMXODhc9YLipLw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-app": "^8.1.0",
|
||||
"@octokit/auth-oauth-user": "^5.1.0",
|
||||
"@octokit/request": "^9.1.1",
|
||||
"@octokit/request-error": "^6.1.1",
|
||||
"@octokit/types": "^13.4.1",
|
||||
"@octokit/auth-oauth-app": "^8.1.2",
|
||||
"@octokit/auth-oauth-user": "^5.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/request-error": "^6.1.6",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"toad-cache": "^3.7.0",
|
||||
"universal-github-app-jwt": "^2.2.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
@@ -663,14 +664,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-oauth-app": {
|
||||
"version": "8.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.1.tgz",
|
||||
"integrity": "sha512-5UtmxXAvU2wfcHIPPDWzVSAWXVJzG3NWsxb7zCFplCWEmMCArSZV0UQu5jw5goLQXbFyOr5onzEH37UJB3zQQg==",
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.2.tgz",
|
||||
"integrity": "sha512-3woNZgq5/S6RS+9ZTq+JdymxVr7E0s4EYxF20ugQvgX3pomdPUL5r/XdTY9wALoBM2eHVy4ettr5fKpatyTyHw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-device": "^7.0.0",
|
||||
"@octokit/auth-oauth-user": "^5.0.1",
|
||||
"@octokit/request": "^9.0.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/auth-oauth-device": "^7.1.2",
|
||||
"@octokit/auth-oauth-user": "^5.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
@@ -678,13 +680,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-oauth-device": {
|
||||
"version": "7.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.1.tgz",
|
||||
"integrity": "sha512-HWl8lYueHonuyjrKKIup/1tiy0xcmQCdq5ikvMO1YwkNNkxb6DXfrPjrMYItNLyCP/o2H87WuijuE+SlBTT8eg==",
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.2.tgz",
|
||||
"integrity": "sha512-gTOIzDeV36OhVfxCl69FmvJix7tJIiU6dlxuzLVAzle7fYfO8UDyddr9B+o4CFQVaMBLMGZ9ak2CWMYcGeZnPw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/oauth-methods": "^5.0.0",
|
||||
"@octokit/request": "^9.0.0",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/oauth-methods": "^5.1.3",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
@@ -692,14 +695,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-oauth-user": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.1.tgz",
|
||||
"integrity": "sha512-rRkMz0ErOppdvEfnemHJXgZ9vTPhBuC6yASeFaB7I2yLMd7QpjfrL1mnvRPlyKo+M6eeLxrKanXJ9Qte29SRsw==",
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.2.tgz",
|
||||
"integrity": "sha512-PgVDDPJgZYb3qSEXK4moksA23tfn68zwSAsQKZ1uH6IV9IaNEYx35OXXI80STQaLYnmEE86AgU0tC1YkM4WjsA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-device": "^7.0.1",
|
||||
"@octokit/oauth-methods": "^5.0.0",
|
||||
"@octokit/request": "^9.0.1",
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/auth-oauth-device": "^7.1.2",
|
||||
"@octokit/oauth-methods": "^5.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
@@ -722,19 +726,21 @@
|
||||
"version": "7.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.1.1.tgz",
|
||||
"integrity": "sha512-ooXV8GBSabSWyhLUowlMIVd9l1s2nsOGQdlP2SQ4LnkEsGXzeCvbSbCPdZThXhEFzleGPwbapT0Sb+YhXRyjCA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/oauth-methods": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.2.tgz",
|
||||
"integrity": "sha512-C5lglRD+sBlbrhCUTxgJAFjWgJlmTx5bQ7Ch0+2uqRjYv7Cfb5xpX4WuSC9UgQna3sqRGBL9EImX9PvTpMaQ7g==",
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.3.tgz",
|
||||
"integrity": "sha512-M+bDBi5H8FnH0xhCTg0m9hvcnppdDnxUqbZyOkxlLblKpLAR+eT2nbDPvJDp0eLrvJWA1I8OX0KHf/sBMQARRA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/oauth-authorization-url": "^7.0.0",
|
||||
"@octokit/request": "^9.1.0",
|
||||
"@octokit/request-error": "^6.1.0",
|
||||
"@octokit/types": "^13.0.0"
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/request-error": "^6.1.6",
|
||||
"@octokit/types": "^13.6.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
@@ -746,9 +752,10 @@
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
},
|
||||
"node_modules/@octokit/request": {
|
||||
"version": "9.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.4.tgz",
|
||||
"integrity": "sha512-tMbOwGm6wDII6vygP3wUVqFTw3Aoo0FnVQyhihh8vVq12uO3P+vQZeo2CKMpWtPSogpACD0yyZAlVlQnjW71DA==",
|
||||
"version": "9.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
|
||||
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/endpoint": "^10.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
@@ -761,11 +768,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/request-error": {
|
||||
"version": "6.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.1.tgz",
|
||||
"integrity": "sha512-1mw1gqT3fR/WFvnoVpY/zUM2o/XkMs/2AszUUG9I69xn0JFLv6PGkPhNk5lbfvROs79wiS0bqiJNxfCZcRJJdg==",
|
||||
"version": "6.1.6",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
|
||||
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.0.0"
|
||||
"@octokit/types": "^13.6.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
@@ -3602,9 +3610,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.2.0.tgz",
|
||||
"integrity": "sha512-klt+0S55GBViA9nsq48/NSCo4YX5mjydjypxD7UmHh/brMu8h/Mhd/F7qAeoH2NOO8SDTk6kjnTFc4WpzmfYpQ==",
|
||||
"version": "7.3.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.3.0.tgz",
|
||||
"integrity": "sha512-Qy96NND4Dou5jKoSJ2gm8ax8AJM/Ey9o9mz7KN1bb9GP+G0l20Zw8afxTnY2f4b7hmhn/z8aC2kfArVQlAhFBw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
|
||||
+4
-4
@@ -2,7 +2,7 @@
|
||||
"name": "create-github-app-token",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.11.2",
|
||||
"version": "1.11.3",
|
||||
"description": "GitHub Action for creating a GitHub App Installation Access Token",
|
||||
"scripts": {
|
||||
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",
|
||||
@@ -13,10 +13,10 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@octokit/auth-app": "^7.1.3",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/auth-app": "^7.1.4",
|
||||
"@octokit/request": "^9.2.0",
|
||||
"p-retry": "^6.2.1",
|
||||
"undici": "^7.2.0"
|
||||
"undici": "^7.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sinonjs/fake-timers": "^14.0.0",
|
||||
|
||||
Reference in New Issue
Block a user