Skip to content

Commit

Permalink
Merge pull request #6 from JamesBroadberry/Issue-5
Browse files Browse the repository at this point in the history
Dependencies reference specific versions of std modules
  • Loading branch information
JamesBroadberry authored Jul 10, 2020
2 parents 951b2f3 + e11aaba commit 7dd3461
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ Running in async functionality requires --allow-net and --unstable

## Import

If you don't want to specify a specific version and are happy to work with breaking changes, you can import this module like so:

```ts
import * as bcrypt from "https://deno.land/x/bcrypt/mod.ts";
```

To ensure that you've got a specific version, it's recommend to import this module specifying a [specific release](https://github.com/JamesBroadberry/deno-bcrypt/releases) like so:

```ts
import * as bcrypt from "https://deno.land/x/[email protected]/mod.ts";
```

## Usage

### Async
Expand Down
2 changes: 1 addition & 1 deletion bcrypt/bcrypt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { encode } from "https://deno.land/std/encoding/utf8.ts";
import { encode } from "../deps.ts";
import * as base64 from "./base64.ts";

let crypto: Crypto = globalThis.crypto;
Expand Down
1 change: 1 addition & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { encode } from "https://deno.land/[email protected]/encoding/utf8.ts";

0 comments on commit 7dd3461

Please sign in to comment.