@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @doccov/api
2
2
 
3
+ ## 0.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @openpkg-ts/spec@0.8.0
9
+
3
10
  ## 0.3.3
4
11
 
5
12
  ### Patch Changes
@@ -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",
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.7.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",