@theholocron/holocron-plugin-github 5.0.0-alpha.268 → 5.0.0-alpha.269
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/index.mjs +3 -2
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -933,10 +933,11 @@ async function verifyToken(token, opts = {}) {
|
|
|
933
933
|
fetch: opts.fetch
|
|
934
934
|
});
|
|
935
935
|
try {
|
|
936
|
-
const me = await client.user.
|
|
936
|
+
const { user: me, expiresAt } = await client.user.getCurrentUserWithExpiry();
|
|
937
937
|
return {
|
|
938
938
|
ok: true,
|
|
939
|
-
subject: `user @ ${me.login ?? me.email ?? "unknown"}
|
|
939
|
+
subject: `user @ ${me.login ?? me.email ?? "unknown"}`,
|
|
940
|
+
...expiresAt ? { expiresAt } : {}
|
|
940
941
|
};
|
|
941
942
|
} catch (err) {
|
|
942
943
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-github",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.269",
|
|
4
4
|
"description": "Holocron plugin for GitHub. Implements source, ci, secrets, environments, and issues capabilities against the GitHub REST API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"tsx": "4.23.15",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
46
|
"vitest": "^5.0.5",
|
|
47
|
-
"@theholocron/cli": "5.0.0-alpha.268",
|
|
48
|
-
"@theholocron/fs-utils": "^1.16.1-alpha.1",
|
|
49
47
|
"@theholocron/eslint-config": "^8.9.0-alpha.3",
|
|
50
|
-
"@theholocron/
|
|
51
|
-
"@theholocron/
|
|
48
|
+
"@theholocron/cli": "5.0.0-alpha.269",
|
|
49
|
+
"@theholocron/github-client": "^1.58.0-alpha.2",
|
|
50
|
+
"@theholocron/http-client": "^1.58.0-alpha.2",
|
|
52
51
|
"@theholocron/misc-utils": "^1.16.1-alpha.1",
|
|
53
|
-
"@theholocron/
|
|
52
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.3",
|
|
54
53
|
"@theholocron/vitest-config": "^8.9.0-alpha.3",
|
|
55
|
-
"@theholocron/
|
|
54
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
55
|
+
"@theholocron/fs-utils": "^1.16.1-alpha.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@theholocron/fs-utils": "^1.16.0",
|
|
59
|
-
"@theholocron/github-client": "^1.
|
|
59
|
+
"@theholocron/github-client": "^1.58.0",
|
|
60
60
|
"@theholocron/misc-utils": "^1.16.0",
|
|
61
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
61
|
+
"@theholocron/cli": "5.0.0-alpha.269"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22"
|