Skip to content

Commit

Permalink
Merge pull request #168 from hemedani/main
Browse files Browse the repository at this point in the history
🚨 change deno serve http with deprecated std version
  • Loading branch information
hemedani committed Jun 9, 2024
2 parents 86ff7a3 + fd4abb2 commit b046a38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/server/mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Services } from "../acts/mod.ts";
import { serve } from "../deps.ts";
import { TSchemas } from "../models/mod.ts";
import { generateSchemTypes } from "../types/mod.ts";
import { lesanFns } from "../utils/mod.ts";
Expand Down Expand Up @@ -95,8 +94,7 @@ ${
: ""
}\n`,
);
await serve(handler, { port });
// playground && runPlayground();
Deno.serve({ port }, handler);
};
return runServer;
};
2 changes: 1 addition & 1 deletion src/server/serveStatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ export const serveStatic = async (
) => {
const url = new URL(req.url);
return playground && url.pathname === "/playground"
? await runPlayground(url)
? runPlayground(url)
: await checkStaticPath(req, url, staticPath, schemasObj, actsObj);
};
2 changes: 1 addition & 1 deletion src/types/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const generateSchemTypes = async (
`;

str = str + `
type DeepPartial<T> = {
export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
};
Expand Down

0 comments on commit b046a38

Please sign in to comment.