This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from drashland/pre-release-changes-deno-drash…
…-middleware chore: Make necessary pre-release changes
- Loading branch information
Showing
10 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Simply add it to your Drash server's `middleware` config and you are all set! | |
|
||
```ts | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { Cors } from "https://deno.land/x/[email protected].5/cors/mod.ts"; | ||
import { Cors } from "https://deno.land/x/[email protected].6/cors/mod.ts"; | ||
|
||
const server = new Drash.Http.Server({ | ||
middleware: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ can be simply placed as a middleware for your resources and you are all set! | |
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
// Import the Dexter middleware function | ||
import { CSRF } from "https://deno.land/x/[email protected].5/csrf/mod.ts"; | ||
import { CSRF } from "https://deno.land/x/[email protected].6/csrf/mod.ts"; | ||
|
||
// Instantiate csrf and generate the token. | ||
const csrf = CSRF(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ can be used throughout the request-resource-response lifecycle. | |
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
// Import the Dexter middleware function | ||
import { Dexter } from "https://deno.land/x/[email protected].5/dexter/mod.ts"; | ||
import { Dexter } from "https://deno.land/x/[email protected].6/dexter/mod.ts"; | ||
|
||
// Instantiate dexter | ||
const dexter = Dexter(); | ||
|
@@ -141,7 +141,7 @@ you want to use Dexter in one of your resources, then do the following: | |
// File: app.ts | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { Dexter } from "https://deno.land/x/[email protected].5/dexter.ts"; | ||
import { Dexter } from "https://deno.land/x/[email protected].6/dexter.ts"; | ||
|
||
const dexter = Dexter({ | ||
enabled: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ This does not make your application bulletproof, but adds extra security layers. | |
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
// Import the Paladin middleware function | ||
import { Paladin } from "https://deno.land/x/[email protected].5/paladin/mod.ts"; | ||
import { Paladin } from "https://deno.land/x/[email protected].6/paladin/mod.ts"; | ||
|
||
// Instantiate paladin | ||
const paladin = Paladin(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Deno's `--unstable` flag (e.g., `deno run --unstable app.ts`)._ | |
|
||
```typescript | ||
// Import the ServeTypeScript middleware function | ||
import { ServeTypeScript } from "https://deno.land/x/[email protected].5/serve_typescript/mod.ts"; | ||
import { ServeTypeScript } from "https://deno.land/x/[email protected].6/serve_typescript/mod.ts"; | ||
|
||
// Instantiate ServeTypeScript and pass in the files you want compiled during | ||
// compile time. The compiled output of these files will be used during runtime. | ||
|
@@ -83,7 +83,7 @@ into JavaScript during server creation. | |
// File: app.ts | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { ServeTypeScript } from "https://deno.land/x/[email protected].5/serve_typescript/mod.ts"; | ||
import { ServeTypeScript } from "https://deno.land/x/[email protected].6/serve_typescript/mod.ts"; | ||
|
||
const serveTs = ServeTypeScript({ | ||
files: [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ and are looking for the migration guide, click | |
|
||
```typescript | ||
// Import the Tengine middleware function | ||
import { Tengine } from "https://deno.land/x/[email protected].5/tengine/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].6/tengine/mod.ts"; | ||
|
||
// Use the default template engine that comes with Tengine, known as Jae. | ||
// Returning false in the render method tells Tengine to use Jae. Specifying | ||
|
@@ -99,7 +99,7 @@ This tutorial teaches you how to use Jae (Tengine's default template engine). | |
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].5/tengine/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].6/tengine/mod.ts"; | ||
|
||
const tengine = Tengine({ | ||
render: (...args: unknown[]): boolean => { | ||
|
@@ -262,7 +262,7 @@ This tutorial teaches you how to use Eta. | |
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].5/tengine/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].6/tengine/mod.ts"; | ||
import { | ||
configure, | ||
renderFile, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ look similar to the following: | |
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].5/tengine/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].6/tengine/mod.ts"; | ||
import { UserResource } from "./user_resource.ts"; | ||
|
||
// Configure Tengine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ look similar to the following: | |
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].5/tengine/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].6/tengine/mod.ts"; | ||
import { UserResource } from "./user_resource.ts"; | ||
|
||
// Configure Tengine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ look similar to the following: | |
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].5/tengine/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected].6/tengine/mod.ts"; | ||
import { UserResource } from "./user_resource.ts"; | ||
|
||
// Configure Tengine | ||
|