@vizamodo/pkg-runtime-primitives 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/github/github-app-token.js +6 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
async function createGithubAppJwt(appId, privateKeyPem) {
|
|
2
2
|
// Convert PEM → ArrayBuffer
|
|
3
3
|
const pem = privateKeyPem
|
|
4
|
-
.replace(
|
|
5
|
-
.replace(
|
|
6
|
-
.replace(/\
|
|
4
|
+
.replace(/-----BEGIN [A-Z ]+-----/g, "")
|
|
5
|
+
.replace(/-----END [A-Z ]+-----/g, "")
|
|
6
|
+
.replace(/\r/g, "")
|
|
7
|
+
.replace(/\n/g, "")
|
|
8
|
+
.replace(/\s+/g, "")
|
|
9
|
+
.trim();
|
|
7
10
|
const binary = atob(pem);
|
|
8
11
|
const bytes = new Uint8Array(binary.length);
|
|
9
12
|
for (let i = 0; i < binary.length; i++)
|
package/dist/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export * from "./github/list-workflow-runs";
|
|
|
11
11
|
export * from "./github/put-secret";
|
|
12
12
|
export * from "./github/put-var";
|
|
13
13
|
export * from "./github/github-headers";
|
|
14
|
+
export * from "./github/github-env";
|
|
14
15
|
export * from "./runtime/retry-once";
|
|
15
16
|
export * from "./types/github";
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from "./github/list-workflow-runs";
|
|
|
14
14
|
export * from "./github/put-secret";
|
|
15
15
|
export * from "./github/put-var";
|
|
16
16
|
export * from "./github/github-headers";
|
|
17
|
+
export * from "./github/github-env";
|
|
17
18
|
// Runtime
|
|
18
19
|
export * from "./runtime/retry-once";
|
|
19
20
|
// Types
|
package/package.json
CHANGED