Skip to content

Commit

Permalink
Add deps.ts and cleanup old code
Browse files Browse the repository at this point in the history
  • Loading branch information
FinlayDaG33k committed Nov 6, 2021
1 parent 6276711 commit 86d117f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion common/env.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { config as env } from "https://deno.land/x/dotenv/mod.ts";
import { env } from "../deps.ts";
3 changes: 1 addition & 2 deletions common/time.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { time as timets } from "https://denopkg.com/burhanahmeed/time.ts@v2.0.1/mod.ts";
import { format as formatter } from "https://cdn.deno.land/std/versions/0.77.0/raw/datetime/mod.ts";
import { timets, formatter } from "../deps.ts";

export class Time {
private time;
Expand Down
4 changes: 0 additions & 4 deletions communication.ts

This file was deleted.

8 changes: 8 additions & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { DigestAlgorithm } from "https://cdn.deno.land/std/versions/0.113.0/raw/_wasm_crypto/mod.ts";
export { crypto } from "https://deno.land/std@0.113.0/crypto/mod.ts";
export { config as env } from "https://deno.land/x/dotenv/mod.ts";
export { time as timets } from "https://denopkg.com/burhanahmeed/time.ts@v2.0.1/mod.ts";
export { format as formatter } from "https://cdn.deno.land/std/versions/0.77.0/raw/datetime/mod.ts";
export { WebSocketServer, WebSocketAcceptedClient } from "https://deno.land/x/websocket@v0.1.1/mod.ts";
export { engineFactory } from "https://deno.land/x/view_engine@v1.4.5/mod.ts";
export { readerFromStreamReader } from "https://deno.land/std/io/mod.ts";
3 changes: 1 addition & 2 deletions security/password.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { crypto } from "https://deno.land/std@0.113.0/crypto/mod.ts";
import { DigestAlgorithm } from "https://cdn.deno.land/std/versions/0.113.0/raw/_wasm_crypto/mod.ts";
import { DigestAlgorithm, crypto } from "../deps.ts";
import { Random } from "./random.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion webserver/controller/controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { engineFactory } from "https://deno.land/x/view_engine@v1.4.5/mod.ts";
import { engineFactory } from "../../deps.ts";

export class Controller {
protected name: string = ''
Expand Down
2 changes: 1 addition & 1 deletion webserver/routing/router.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readerFromStreamReader } from "../../deps.ts";
import { pathToRegexp, match } from "../pathToRegexp.ts";
import { readerFromStreamReader } from "https://deno.land/std/io/mod.ts";

interface Route {
path: string;
Expand Down
2 changes: 1 addition & 1 deletion websocket/websocket.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WebSocketServer, WebSocketAcceptedClient } from "https://deno.land/x/websocket@v0.1.1/mod.ts";
import { WebSocketServer, WebSocketAcceptedClient } from "../deps.ts";
import { Logger } from "../logging/logger.ts";
import { Events } from "./events.ts";

Expand Down

0 comments on commit 86d117f

Please sign in to comment.