@molecule/api-git-provider-smolforge 1.0.2 → 1.0.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/provider.js +4 -1
- package/package.json +2 -2
package/dist/provider.js
CHANGED
|
@@ -85,7 +85,10 @@ export const provider = {
|
|
|
85
85
|
const { get } = await import('@molecule/api-http');
|
|
86
86
|
const base = this.apiBaseForHost(input.host);
|
|
87
87
|
try {
|
|
88
|
-
const response = await get(`${base}/repos/${input.path}`, {
|
|
88
|
+
const response = await get(`${base}/repos/${input.path}`, {
|
|
89
|
+
headers: this.apiHeaders(input.token),
|
|
90
|
+
timeout: 15_000,
|
|
91
|
+
});
|
|
89
92
|
// Single lookups are wrapped too; fall back to the bare object so a shape
|
|
90
93
|
// change in either direction still resolves rather than returning null.
|
|
91
94
|
const repo = response.data?.repository ?? response.data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-git-provider-smolforge",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Git hosting provider for SmolForge (forge.smol.ai) — OAuth endpoints, token auth shape, repository listing and lookup.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"directory": "packages/api/bonds/git-provider/smolforge"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@molecule/api-git-provider": "1.0.
|
|
36
|
+
"@molecule/api-git-provider": "1.0.3",
|
|
37
37
|
"@molecule/api-http": "1.0.1",
|
|
38
38
|
"@types/node": "26.1.2",
|
|
39
39
|
"typescript": "6.0.3",
|