Skip to content

Commit

Permalink
Merge pull request #19 from deadlinecode/patch-console-log
Browse files Browse the repository at this point in the history
Remove console log
  • Loading branch information
kravetsone authored Aug 17, 2024
2 parents cce8f5e + b7f4422 commit bd7747e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elysia-autoload",
"version": "1.2.0",
"version": "1.2.1",
"author": "kravetsone",
"type": "module",
"types": "./dist/index.d.ts",
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ export async function autoload(options: AutoloadOptions = {}) {

const importedValue = file[importName];
// TODO: fix later
console.log(
importedValue.toString(),
importedValue.length,
typeof importedValue === "function" && !importedValue.length,
importedValue instanceof Elysia,
);
// console.log(
// importedValue.toString(),
// importedValue.length,
// typeof importedValue === "function" && !importedValue.length,
// importedValue instanceof Elysia,
// );
if (typeof importedValue === "function" && importedValue.length)
// @ts-expect-error
plugin.group(url, groupOptions, importedValue);
Expand Down

0 comments on commit bd7747e

Please sign in to comment.