Skip to content

Commit ca5a8fb

Browse files
committed
formatting
1 parent 866d704 commit ca5a8fb

File tree

15 files changed

+843
-917
lines changed

15 files changed

+843
-917
lines changed

api/package.json

+56-56
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
{
2-
"type": "module",
3-
"private": true,
4-
"name": "docs-page-api",
5-
"version": "1.0.0",
6-
"main": "src/app.ts",
7-
"author": "Invertase <[email protected]>",
8-
"license": "MIT",
9-
"dependencies": {
10-
"@code-hike/mdx": "0.7.2",
11-
"@mdx-js/mdx": "2.2.1",
12-
"@octokit/graphql": "5.0.0",
13-
"@octokit/webhooks": "^13.2.7",
14-
"@types/express": "^4.17.13",
15-
"@types/morgan": "^1.9.3",
16-
"@types/node": "^18.0.0",
17-
"a2a": "^0.2.0",
18-
"camelcase": "7.0.0",
19-
"dotenv": "16.0.1",
20-
"esbuild": "0.14.47",
21-
"express": "4.18.1",
22-
"express-basic-auth": "^1.2.1",
23-
"gray-matter": "4.0.3",
24-
"hast-util-heading-rank": "2.1.1",
25-
"hast-util-parse-selector": "3.1.0",
26-
"is-badge": "^2.1.0",
27-
"js-yaml": "4.1.0",
28-
"lodash.get": "^4.4.2",
29-
"mdx-bundler": "9.0.1",
30-
"morgan": "1.10.0",
31-
"node-fetch": "3.2.6",
32-
"octokit": "^4.0.2",
33-
"rehype-accessible-emojis": "0.3.2",
34-
"rehype-katex": "6.0.2",
35-
"rehype-slug": "5.0.1",
36-
"remark-comment": "1.0.0",
37-
"remark-gfm": "3.0.1",
38-
"remark-math": "5.1.1",
39-
"remark-parse": "10.0.1",
40-
"shiki": "1.1.7",
41-
"unist-util-visit": "4.1.0",
42-
"zod": "3.22.4",
43-
"zod-to-json-schema": "^3.23.1",
44-
"zod-validation-error": "0.2.2"
45-
},
46-
"scripts": {
47-
"dev": "bun run src/app.ts --hot",
48-
"start": "bun run src/app.ts"
49-
},
50-
"devDependencies": {
51-
"@octokit/webhooks-types": "^6.2.4",
52-
"@types/js-yaml": "^4.0.5",
53-
"@types/lodash.get": "^4.4.9",
54-
"rollup": "3.9.1",
55-
"ts-node": "^10.8.1",
56-
"typescript": "5.5.2"
57-
}
2+
"type": "module",
3+
"private": true,
4+
"name": "docs-page-api",
5+
"version": "1.0.0",
6+
"main": "src/app.ts",
7+
"author": "Invertase <[email protected]>",
8+
"license": "MIT",
9+
"dependencies": {
10+
"@code-hike/mdx": "0.7.2",
11+
"@mdx-js/mdx": "2.2.1",
12+
"@octokit/graphql": "5.0.0",
13+
"@octokit/webhooks": "^13.2.7",
14+
"@types/express": "^4.17.13",
15+
"@types/morgan": "^1.9.3",
16+
"@types/node": "^18.0.0",
17+
"a2a": "^0.2.0",
18+
"camelcase": "7.0.0",
19+
"dotenv": "16.0.1",
20+
"esbuild": "0.14.47",
21+
"express": "4.18.1",
22+
"express-basic-auth": "^1.2.1",
23+
"gray-matter": "4.0.3",
24+
"hast-util-heading-rank": "2.1.1",
25+
"hast-util-parse-selector": "3.1.0",
26+
"is-badge": "^2.1.0",
27+
"js-yaml": "4.1.0",
28+
"lodash.get": "^4.4.2",
29+
"mdx-bundler": "9.0.1",
30+
"morgan": "1.10.0",
31+
"node-fetch": "3.2.6",
32+
"octokit": "^4.0.2",
33+
"rehype-accessible-emojis": "0.3.2",
34+
"rehype-katex": "6.0.2",
35+
"rehype-slug": "5.0.1",
36+
"remark-comment": "1.0.0",
37+
"remark-gfm": "3.0.1",
38+
"remark-math": "5.1.1",
39+
"remark-parse": "10.0.1",
40+
"shiki": "1.1.7",
41+
"unist-util-visit": "4.1.0",
42+
"zod": "3.22.4",
43+
"zod-to-json-schema": "^3.23.1",
44+
"zod-validation-error": "0.2.2"
45+
},
46+
"scripts": {
47+
"dev": "bun run src/app.ts --hot",
48+
"start": "bun run src/app.ts"
49+
},
50+
"devDependencies": {
51+
"@octokit/webhooks-types": "^6.2.4",
52+
"@types/js-yaml": "^4.0.5",
53+
"@types/lodash.get": "^4.4.9",
54+
"rollup": "3.9.1",
55+
"ts-node": "^10.8.1",
56+
"typescript": "5.5.2"
57+
}
5858
}

api/src/app.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { config } from "dotenv";
22
import express, { Router, text } from "express";
33
import morgan from "morgan";
44

5-
import probot from "./probot";
65
import { notFound } from "./res";
76
import bundle from "./routes/bundle";
87
import preview from "./routes/preview";
@@ -21,7 +20,6 @@ app.use(
2120
extended: true,
2221
}),
2322
);
24-
app.use(probot);
2523

2624
const router = Router();
2725
router.get("/status", (_, res) => res.status(200).send("OK"));

api/src/bundler/error.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
export class BundlerError extends Error {
2-
code: number;
3-
name: string;
4-
source?: string;
2+
code: number;
3+
name: string;
4+
source?: string;
55

6-
constructor({
7-
code,
8-
name,
9-
message,
10-
source,
11-
}: {
12-
code: number;
13-
name: string;
14-
message: string;
15-
source?: string;
16-
}) {
17-
super(message);
18-
this.code = code;
19-
this.name = name;
20-
this.message = message;
21-
this.source = source;
22-
}
6+
constructor({
7+
code,
8+
name,
9+
message,
10+
source,
11+
}: {
12+
code: number;
13+
name: string;
14+
message: string;
15+
source?: string;
16+
}) {
17+
super(message);
18+
this.code = code;
19+
this.name = name;
20+
this.message = message;
21+
this.source = source;
22+
}
2323
}

0 commit comments

Comments
 (0)