Upgrade octokit to v4.1.2
This commit is contained in:
parent
dbbcbe019d
commit
c1745a9831
1214 changed files with 160765 additions and 0 deletions
15
node_modules/universal-github-app-jwt/lib/crypto-node.js
generated
vendored
Normal file
15
node_modules/universal-github-app-jwt/lib/crypto-node.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// this can be removed once we only support Node 20+
|
||||
export * from "node:crypto";
|
||||
import { createPrivateKey } from "node:crypto";
|
||||
|
||||
import { isPkcs1 } from "./utils.js";
|
||||
|
||||
// no-op, unfortunately there is no way to transform from PKCS8 or OpenSSH to PKCS1 with WebCrypto
|
||||
export function convertPrivateKey(privateKey) {
|
||||
if (!isPkcs1(privateKey)) return privateKey;
|
||||
|
||||
return createPrivateKey(privateKey).export({
|
||||
type: "pkcs8",
|
||||
format: "pem",
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue