Skip to content

Commit

Permalink
Use JSR registry for Deno
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Oct 24, 2024
1 parent bbb6243 commit 762ef75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ totp = OTPAuth.URI.parse(uri);
### Deno

```javascript
import * as OTPAuth from "https://deno.land/x/otpauth@VERSION/dist/otpauth.esm.js";
import * as OTPAuth from "jsr:@hectorm/otpauth";

// Same as above.
```
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
"test:node:cjs:min": "node ./test/node.test.min.cjs",
"test:deno": "run-s test:deno:*",
"test:deno:esm": "run-s test:deno:esm:*",
"test:deno:esm:unmin": "deno test --no-npm --allow-read=./test/,./dist/ --allow-net=deno.land ./test/deno.test.mjs",
"test:deno:esm:min": "deno test --no-npm --allow-read=./test/,./dist/ --allow-net=deno.land ./test/deno.test.min.mjs",
"test:deno:esm:unmin": "deno test --no-npm --allow-read=./test/,./dist/ ./test/deno.test.mjs",
"test:deno:esm:min": "deno test --no-npm --allow-read=./test/,./dist/ ./test/deno.test.min.mjs",
"test:bun": "run-s test:bun:*",
"test:bun:esm": "run-s test:bun:esm:*",
"test:bun:esm:unmin": "bun test ./test/bun.test.mjs",
Expand Down
4 changes: 2 additions & 2 deletions test/deno.test.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-expect-error
import { describe, it } from "https://deno.land/std/testing/bdd.ts";
import { describe, it } from "jsr:@std/testing@1/bdd";
// @ts-expect-error
import { assert, assertEquals, assertMatch } from "https://deno.land/std/assert/mod.ts";
import { assert, assertEquals, assertMatch } from "jsr:@std/assert@1";

globalThis.describe = describe;
globalThis.it = it;
Expand Down

0 comments on commit 762ef75

Please sign in to comment.