@vizamodo/pkg-runtime-primitives 1.0.99 → 1.1.2
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.
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizamodo/pkg-runtime-primitives",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Edge-compatible runtime primitives for AWS, GitHub, crypto, and caching used across Viza services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"release:full": "rm -rf dist && npx npm-check-updates -u && npm install && git add package.json package-lock.json && git commit -m 'chore(deps): auto update dependencies before release' || echo 'No changes' && node versioning.js && npm login && npm publish --tag latest --access public && git push"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@vizamodo/aws-sts-core": "^0.4.
|
|
26
|
+
"@vizamodo/aws-sts-core": "^0.4.37",
|
|
27
27
|
"@vizamodo/edge-cache-core": "^0.3.41",
|
|
28
28
|
"age-encryption": "^0.3.0",
|
|
29
29
|
"tweetnacl-sealedbox-js": "^1.2.0"
|