Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc737049

Browse files
authored
Merge pull request#45 from alcheng005/restructure
Edited paths
2 parents20194cc +c64a9af commitc737049

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,20 @@ Below is an example using the Oak server framework. To get started, import Dashp
5454

5555
```typescript
5656
// 'server.ts' file
57-
import {DashportOak }from'https://deno.land/x/dashport/mod.ts';
57+
import {DashportOak }from'https://deno.land/x/dashport@v1.2.1/mod.ts';
5858
```
5959

6060
In the future, additional Dashports can be imported from the same mod.ts file. For example if Express was supported in Deno:
6161

6262
```typescript
63-
import {DashportExpress }from'https://deno.land/x/dashport/mod.ts';
63+
import {DashportExpress }from'https://deno.land/x/dashport@v1.2.1/mod.ts';
6464
```
6565

6666
After importing Dashport, import Application from Oak and instantiate it.
6767

6868
```typescript
6969
// 'server.ts' file
70-
importDashportOakfrom'https://deno.land/x/dashport/mod.ts';
70+
import{DashportOak}from'https://deno.land/x/dashport@v1.2.1/mod.ts';
7171
import {Application }from"https://deno.land/x/oak/mod.ts";
7272

7373
const app=newApplication();
@@ -77,7 +77,7 @@ Then instantiate Dashport and pass in the Application instance. This is needed i
7777

7878
```typescript
7979
// 'server.ts' file
80-
importDashportOakfrom'https://deno.land/x/dashport/mod.ts';
80+
import{DashportOak}from'https://deno.land/x/dashport@v1.2.1/mod.ts';
8181
import {Application }from"https://deno.land/x/oak/mod.ts";
8282

8383
const app=newApplication();
@@ -87,7 +87,7 @@ const dashport = new DashportOak(app);
8787
Routes can then be added as needed
8888

8989
```typescript
90-
importDashportOakfrom'https://deno.land/x/dashport/mod.ts';
90+
import{DashportOak}from'https://deno.land/x/dashport@v1.2.1/mod.ts';
9191
import {Application,Router }from'https://deno.land/x/oak/mod.ts';
9292

9393
const app=newApplication();
@@ -269,7 +269,7 @@ const deserializerA = async (serializedId: (string | number)) => {
269269

270270
```typescript
271271
// Oak example
272-
importDashportOakfrom'https://deno.land/x/dashport/mod.ts';
272+
import{DashportOak}from'https://deno.land/x/dashport@v1.2.1/mod.ts';
273273
import {Application,Router }from'https://deno.land/x/oak/mod.ts';
274274
import {ghStrat,serializerB,deserializerB }from'./dashportConfig.ts';
275275

‎__tests__/dashportOak.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import{Application,assertEquals,assertThrows,assertThrowsAsync}from"../deps.ts";
2-
importDashportOakfrom'../frameworks/dashportOak.ts';
2+
importDashportOakfrom'../dashports/dashportOak.ts';
33

44
// Mock class and functions
55
classTestStrat{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp