Skip to content

Commit

Permalink
upgrade deno version
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Aug 5, 2019
1 parent 12d0960 commit f9813be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
[![Build Status](https://www.travis-ci.org/manyuanrong/deno-smtp.svg?branch=master)](https://www.travis-ci.org/manyuanrong/deno-smtp)
![GitHub](https://img.shields.io/github/license/manyuanrong/deno-smtp.svg)
![GitHub release](https://img.shields.io/github/release/manyuanrong/deno-smtp.svg)
![(Deno)](https://img.shields.io/badge/deno-0.10.0-green.svg)
![(Deno)](https://img.shields.io/badge/deno-0.12.0-green.svg)

### Example

```ts
import { SmtpClient } from "https://deno.land/x/smtp@v0.2.0/mod.ts";
import { SmtpClient } from "https://deno.land/x/smtp@v0.3.0/mod.ts";

const client = new SmtpClient();
await client.connect({
host: "smtp.163.com",
port: 25,
port: 25,Ø

This comment has been minimized.

Copy link
@stephdin

stephdin Jan 17, 2020

Is this symbol accidental?

username: "username",
password: "password"
});
Expand Down
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { BufReader, BufWriter } from "https://deno.land/std/io/bufio.ts";
export {
format,
setColorEnabled
} from "https://deno.land/x/bytes_formater/mod.ts";
export { BufReader, BufWriter, EOF } from "https://deno.land/std/io/bufio.ts";
4 changes: 2 additions & 2 deletions smtp.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandCode } from "./code.ts";
import { ConnectConfig, SendConfig } from "./config.ts";
import { BufReader, EOF, BufWriter } from "./deps.ts";
import { BufReader, BufWriter } from "./deps.ts";

const decoder = new TextDecoder();
const encoder = new TextEncoder();
Expand Down Expand Up @@ -71,7 +71,7 @@ export class SmtpClient {

private async readCmd(): Promise<Command> {
const result = await this._reader.readLine();
if (result === EOF) return null;
if (result === Deno.EOF) return null;
const line = decoder.decode(result.line);
const cmdCode = line.slice(0, 3).trim();
const cmdArgs = line.slice(3).trim();
Expand Down

0 comments on commit f9813be

Please sign in to comment.