Skip to content

Commit

Permalink
Merge pull request #15 from adamjosefus/development
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
adamjosefus committed Jun 18, 2022
2 parents 315d20b + 7b8eaab commit 1d9858d
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion demo/controllers/HomepageController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller } from "../../libs/Controller.ts";
import { Controller } from "../../mod.ts";


export class HomepageController extends Controller {
Expand Down
12 changes: 8 additions & 4 deletions demo/demo.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
*/


import { join } from "https://deno.land/std@0.128.0/path/mod.ts";
import { Server } from "https://deno.land/x/allo_server@v1.0.1/mod.ts";
import { ControllerManager } from "../libs/ControllerManager.ts";
import { RouterList } from "../libs/RouterList.ts";
import { join } from "../libs/path.ts";
import { Server } from "../libs/allo_server.ts";
import { ControllerManager } from "../model/ControllerManager.ts";
import { RouterList } from "../model/RouterList.ts";


class DummyDependency {
Expand All @@ -24,6 +24,10 @@ manager.addDependency("dummyDependency", dummyDependency);


const router = new RouterList(manager);
router.setError((_req, params) => {
return new Response(JSON.stringify(params));
});

router.add("", () => new Response("Hello World!"));
router.addController("homepage/<action>", "Homepage:default");

Expand Down
1 change: 1 addition & 0 deletions libs/allo_caching.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "https://deno.land/x/allo_caching@v1.2.0/mod.ts";
1 change: 1 addition & 0 deletions libs/allo_responses.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "https://deno.land/x/allo_responses@v1.0.2/mod.ts";
1 change: 1 addition & 0 deletions libs/allo_routing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "https://deno.land/x/allo_routing@v2.0.1/mod.ts";
1 change: 1 addition & 0 deletions libs/allo_server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "https://deno.land/x/allo_server@v1.0.1/mod.ts";
1 change: 1 addition & 0 deletions libs/path.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "https://deno.land/std@0.144.0/path/mod.ts";
6 changes: 3 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./libs/RouterList.ts";
export * from "./libs/Controller.ts";
export * from "./libs/ControllerManager.ts";
export * from "./model/RouterList.ts";
export * from "./model/Controller.ts";
export * from "./model/ControllerManager.ts";
4 changes: 2 additions & 2 deletions libs/Controller.ts → model/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/


import { FileResponse, JsonResponse, TextResponse } from "../libs/allo_responses.ts";
import { Status } from "../libs/allo_routing.ts";
import { ControllerLifeCycleExit } from "./ControllerLifeCycleExit.ts";
import { Status } from "https://deno.land/x/allo_routing@v1.1.3/mod.ts";
import { FileResponse, JsonResponse, TextResponse } from "https://deno.land/x/allo_responses@v1.0.1/mod.ts";
import { ControllerEvent } from "./ControllerEvent.ts";


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions libs/ControllerLoader.ts → model/ControllerLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/


import { join } from "https://deno.land/std@0.128.0/path/mod.ts";
import { Cache } from "https://deno.land/x/allo_caching@v1.2.0/mod.ts";
import { join } from "../libs/path.ts";
import { Cache } from "../libs/allo_caching.ts";
import { Controller as AbstractController } from "./Controller.ts";


Expand Down
2 changes: 1 addition & 1 deletion libs/ControllerManager.ts → model/ControllerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/


import { Cache } from "https://deno.land/x/allo_caching@v1.2.0/mod.ts";
import { Cache } from "../libs/allo_caching.ts";
import { ControllerLifeCycle } from "./ControllerLifeCycle.ts";
import { ControllerLoader } from "./ControllerLoader.ts";
import { DIContainer } from "./DIContainer.ts";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libs/RouterList.ts → model/RouterList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/


import { RouterList as SuperRouterList, Status, type RouterOptions, type ServeResponseType } from "https://deno.land/x/allo_routing@v1.1.3/mod.ts";
import { RouterList as SuperRouterList, Status, type RouterOptions, type ServeResponseType } from "../libs/allo_routing.ts";
import { ControllerManager } from "./ControllerManager.ts";


Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1d9858d

Please sign in to comment.