@doccov/api 0.3.3 → 0.3.4
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/CHANGELOG.md +7 -0
- package/api/scan/detect.ts +2 -5
- package/api/scan.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/api/scan/detect.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
-
detectMonorepo as sdkDetectMonorepo,
|
|
8
7
|
detectPackageManager,
|
|
9
8
|
SandboxFileSystem,
|
|
9
|
+
detectMonorepo as sdkDetectMonorepo,
|
|
10
10
|
} from '@doccov/sdk';
|
|
11
11
|
import type { VercelRequest, VercelResponse } from '@vercel/node';
|
|
12
12
|
import { Sandbox } from '@vercel/sandbox';
|
|
@@ -87,10 +87,7 @@ async function detectRepoStructure(url: string): Promise<DetectResponse> {
|
|
|
87
87
|
const fs = new SandboxFileSystem(sandbox);
|
|
88
88
|
|
|
89
89
|
// Use SDK detection functions
|
|
90
|
-
const [monoInfo, pmInfo] = await Promise.all([
|
|
91
|
-
sdkDetectMonorepo(fs),
|
|
92
|
-
detectPackageManager(fs),
|
|
93
|
-
]);
|
|
90
|
+
const [monoInfo, pmInfo] = await Promise.all([sdkDetectMonorepo(fs), detectPackageManager(fs)]);
|
|
94
91
|
|
|
95
92
|
if (!monoInfo.isMonorepo) {
|
|
96
93
|
return {
|
package/api/scan.ts
CHANGED
|
@@ -33,7 +33,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Parse GitHub URL using SDK
|
|
36
|
-
let parsed
|
|
36
|
+
let parsed: ReturnType<typeof parseGitHubUrl>;
|
|
37
37
|
try {
|
|
38
38
|
parsed = parseGitHubUrl(body.url, body.ref ?? 'main');
|
|
39
39
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doccov/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "DocCov API - Badge endpoint and coverage services",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doccov",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"format": "biome format --write src/"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@openpkg-ts/spec": "^0.
|
|
30
|
+
"@openpkg-ts/spec": "^0.8.0",
|
|
31
31
|
"@vercel/sandbox": "^1.0.3",
|
|
32
32
|
"hono": "^4.0.0",
|
|
33
33
|
"ms": "^2.1.3",
|