Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #116 from drashland/pre-release-changes-deno-drash…
Browse files Browse the repository at this point in the history
…-middleware

chore: Make necessary pre-release changes
  • Loading branch information
crookse authored Apr 5, 2021
2 parents 7571186 + b5520a1 commit e03c7b6
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion csrf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions dexter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion egg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "drash-middleware",
"description": "A middleware library for Drash.",
"version": "0.7.5",
"version": "0.7.6",
"stable": true,
"repository": "https://github.com/drashland/deno-drash-middleware",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion paladin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions serve_typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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: [
Expand Down
6 changes: 3 additions & 3 deletions tengine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 => {
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tengine/jae/adding_template_partials.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tengine/jae/creating_a_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tengine/jae/extending_a_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e03c7b6

Please sign in to comment.