Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehesp committed Jul 16, 2024
1 parent 866d704 commit ca5a8fb
Show file tree
Hide file tree
Showing 15 changed files with 843 additions and 917 deletions.
112 changes: 56 additions & 56 deletions api/package.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
{
"type": "module",
"private": true,
"name": "docs-page-api",
"version": "1.0.0",
"main": "src/app.ts",
"author": "Invertase <[email protected]>",
"license": "MIT",
"dependencies": {
"@code-hike/mdx": "0.7.2",
"@mdx-js/mdx": "2.2.1",
"@octokit/graphql": "5.0.0",
"@octokit/webhooks": "^13.2.7",
"@types/express": "^4.17.13",
"@types/morgan": "^1.9.3",
"@types/node": "^18.0.0",
"a2a": "^0.2.0",
"camelcase": "7.0.0",
"dotenv": "16.0.1",
"esbuild": "0.14.47",
"express": "4.18.1",
"express-basic-auth": "^1.2.1",
"gray-matter": "4.0.3",
"hast-util-heading-rank": "2.1.1",
"hast-util-parse-selector": "3.1.0",
"is-badge": "^2.1.0",
"js-yaml": "4.1.0",
"lodash.get": "^4.4.2",
"mdx-bundler": "9.0.1",
"morgan": "1.10.0",
"node-fetch": "3.2.6",
"octokit": "^4.0.2",
"rehype-accessible-emojis": "0.3.2",
"rehype-katex": "6.0.2",
"rehype-slug": "5.0.1",
"remark-comment": "1.0.0",
"remark-gfm": "3.0.1",
"remark-math": "5.1.1",
"remark-parse": "10.0.1",
"shiki": "1.1.7",
"unist-util-visit": "4.1.0",
"zod": "3.22.4",
"zod-to-json-schema": "^3.23.1",
"zod-validation-error": "0.2.2"
},
"scripts": {
"dev": "bun run src/app.ts --hot",
"start": "bun run src/app.ts"
},
"devDependencies": {
"@octokit/webhooks-types": "^6.2.4",
"@types/js-yaml": "^4.0.5",
"@types/lodash.get": "^4.4.9",
"rollup": "3.9.1",
"ts-node": "^10.8.1",
"typescript": "5.5.2"
}
"type": "module",
"private": true,
"name": "docs-page-api",
"version": "1.0.0",
"main": "src/app.ts",
"author": "Invertase <[email protected]>",
"license": "MIT",
"dependencies": {
"@code-hike/mdx": "0.7.2",
"@mdx-js/mdx": "2.2.1",
"@octokit/graphql": "5.0.0",
"@octokit/webhooks": "^13.2.7",
"@types/express": "^4.17.13",
"@types/morgan": "^1.9.3",
"@types/node": "^18.0.0",
"a2a": "^0.2.0",
"camelcase": "7.0.0",
"dotenv": "16.0.1",
"esbuild": "0.14.47",
"express": "4.18.1",
"express-basic-auth": "^1.2.1",
"gray-matter": "4.0.3",
"hast-util-heading-rank": "2.1.1",
"hast-util-parse-selector": "3.1.0",
"is-badge": "^2.1.0",
"js-yaml": "4.1.0",
"lodash.get": "^4.4.2",
"mdx-bundler": "9.0.1",
"morgan": "1.10.0",
"node-fetch": "3.2.6",
"octokit": "^4.0.2",
"rehype-accessible-emojis": "0.3.2",
"rehype-katex": "6.0.2",
"rehype-slug": "5.0.1",
"remark-comment": "1.0.0",
"remark-gfm": "3.0.1",
"remark-math": "5.1.1",
"remark-parse": "10.0.1",
"shiki": "1.1.7",
"unist-util-visit": "4.1.0",
"zod": "3.22.4",
"zod-to-json-schema": "^3.23.1",
"zod-validation-error": "0.2.2"
},
"scripts": {
"dev": "bun run src/app.ts --hot",
"start": "bun run src/app.ts"
},
"devDependencies": {
"@octokit/webhooks-types": "^6.2.4",
"@types/js-yaml": "^4.0.5",
"@types/lodash.get": "^4.4.9",
"rollup": "3.9.1",
"ts-node": "^10.8.1",
"typescript": "5.5.2"
}
}
2 changes: 0 additions & 2 deletions api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { config } from "dotenv";
import express, { Router, text } from "express";
import morgan from "morgan";

import probot from "./probot";
import { notFound } from "./res";
import bundle from "./routes/bundle";
import preview from "./routes/preview";
Expand All @@ -21,7 +20,6 @@ app.use(
extended: true,
}),
);
app.use(probot);

const router = Router();
router.get("/status", (_, res) => res.status(200).send("OK"));
Expand Down
40 changes: 20 additions & 20 deletions api/src/bundler/error.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
export class BundlerError extends Error {
code: number;
name: string;
source?: string;
code: number;
name: string;
source?: string;

constructor({
code,
name,
message,
source,
}: {
code: number;
name: string;
message: string;
source?: string;
}) {
super(message);
this.code = code;
this.name = name;
this.message = message;
this.source = source;
}
constructor({
code,
name,
message,
source,
}: {
code: number;
name: string;
message: string;
source?: string;
}) {
super(message);
this.code = code;
this.name = name;
this.message = message;
this.source = source;
}
}
Loading

0 comments on commit ca5a8fb

Please sign in to comment.