Skip to content

Commit

Permalink
Merge pull request #4 from seriousme/no-bun
Browse files Browse the repository at this point in the history
No bun
  • Loading branch information
seriousme authored Mar 15, 2024
2 parents 90bfbe8 + b5c125d commit 4daca8a
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 199 deletions.
6 changes: 2 additions & 4 deletions bin/conformanceServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import { AuthenticationResult, Context, Topic } from "../server/mod.ts";
import { logger, LogLevel } from "../utils/mod.ts";
import { getArgs, getPlatform, parseArgs } from "../utils/mod.ts";

const platform = getPlatform()?.toLowerCase();
const { TcpServer } = await import(`../${platform}/server.ts`);
import { getArgs, parseArgs } from "../utils/mod.ts";
import { TcpServer } from "../deno/server.ts";

const utf8Decoder = new TextDecoder();
const userTable = new Map();
Expand Down
6 changes: 2 additions & 4 deletions bin/demoServer.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { AuthenticationResult, Context, Topic } from "../server/mod.ts";
import { logger, LogLevel } from "../utils/mod.ts";
import { getArgs, getPlatform, parseArgs } from "../utils/mod.ts";

const platform = getPlatform()?.toLowerCase();
const { TcpServer } = await import(`../${platform}/server.ts`);
import { getArgs, parseArgs } from "../utils/mod.ts";
import { TcpServer } from "../deno/server.ts";

const utf8Decoder = new TextDecoder();
const userTable = new Map();
Expand Down
6 changes: 2 additions & 4 deletions bin/mqtt.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { DEFAULT_URL } from "../client/mod.ts";
import { logger, LogLevel } from "../utils/mod.ts";
import { getArgs, getPlatform, parseArgs } from "../utils/mod.ts";

const platform = getPlatform()?.toLowerCase();
const { TcpClient, getCaCerts } = await import(`../${platform}/client.ts`);
import { getArgs, parseArgs } from "../utils/mod.ts";
import { TcpClient } from "../deno/client.ts";

const client = new TcpClient();
const encoder = new TextEncoder();
Expand Down
74 changes: 0 additions & 74 deletions bun/client.ts

This file was deleted.

33 changes: 0 additions & 33 deletions bun/conn.ts

This file was deleted.

13 changes: 0 additions & 13 deletions bun/server.test.ts

This file was deleted.

40 changes: 0 additions & 40 deletions bun/server.ts

This file was deleted.

3 changes: 0 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@
},
"imports": {
"@std/assert": "jsr:@std/assert@0.215.0"
},
"test": {
"exclude": ["./utils", "./bun"]
}
}
1 change: 0 additions & 1 deletion utils/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export { Logger, logger, LogLevel } from "./logger.ts";
export { AsyncQueue } from "./asyncQueue.ts";
export { nextTick } from "./nextTick.ts";
export { parseArgs } from "./args.ts";
export { getArgs, getPlatform } from "./platform.ts";
23 changes: 0 additions & 23 deletions utils/platform.ts

This file was deleted.

0 comments on commit 4daca8a

Please sign in to comment.