feat: support tokens scoped to multiple repositories within organization (#46)
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com> Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
6271
dist/main.cjs
vendored
6271
dist/main.cjs
vendored
File diff suppressed because it is too large
Load Diff
22
dist/post.cjs
vendored
22
dist/post.cjs
vendored
@@ -569,7 +569,12 @@ var require_proxy = __commonJS({
|
||||
}
|
||||
})();
|
||||
if (proxyVar) {
|
||||
return new URL(proxyVar);
|
||||
try {
|
||||
return new URL(proxyVar);
|
||||
} catch (_a) {
|
||||
if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://"))
|
||||
return new URL(`http://${proxyVar}`);
|
||||
}
|
||||
} else {
|
||||
return void 0;
|
||||
}
|
||||
@@ -1001,6 +1006,19 @@ var require_lib = __commonJS({
|
||||
}));
|
||||
});
|
||||
}
|
||||
readBodyBuffer() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
||||
const chunks = [];
|
||||
this.message.on("data", (chunk) => {
|
||||
chunks.push(chunk);
|
||||
});
|
||||
this.message.on("end", () => {
|
||||
resolve(Buffer.concat(chunks));
|
||||
});
|
||||
}));
|
||||
});
|
||||
}
|
||||
};
|
||||
exports.HttpClientResponse = HttpClientResponse;
|
||||
function isHttps(requestUrl) {
|
||||
@@ -2278,7 +2296,7 @@ var require_dist_node2 = __commonJS({
|
||||
});
|
||||
module2.exports = __toCommonJS2(dist_src_exports);
|
||||
var import_universal_user_agent = require_dist_node();
|
||||
var VERSION = "9.0.0";
|
||||
var VERSION = "9.0.1";
|
||||
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
||||
var DEFAULTS = {
|
||||
method: "GET",
|
||||
|
||||
Reference in New Issue
Block a user