Skip to content

Commit

Permalink
Fixed imports again
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Sep 26, 2019
1 parent 7ab84a8 commit 1b6ef27
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 44 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ import { serve } from "https://deno.land/std/http/server.ts"
import { encode, decode } from "https://deno.land/std/strings/mod.ts"
import makeJwt, {
setExpiration,
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts"
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts"

const key = "abc"
const claims = {
Expand Down
35 changes: 0 additions & 35 deletions examples/example.js

This file was deleted.

4 changes: 2 additions & 2 deletions examples/example.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import makeJwt, {
setExpiration,
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts"
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts"

const claims = {
iss: "joe",
Expand Down
4 changes: 2 additions & 2 deletions examples/mini_example.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { serve } from "https://deno.land/std/http/server.ts"
import { encode, decode } from "https://deno.land/std/strings/mod.ts"
import makeJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts"
import makeJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts"
;(async () => {
for await (const req of serve("0.0.0.0:8000")) {
if (req.method === "GET")
Expand Down
4 changes: 2 additions & 2 deletions examples/readme_example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { serve } from "https://deno.land/std/http/server.ts"
import { encode, decode } from "https://deno.land/std/strings/mod.ts"
import makeJwt, {
setExpiration,
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts"
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts"
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts"

const key = "abc"
const claims = {
Expand Down
2 changes: 1 addition & 1 deletion validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { addPaddingToBase64url } from "https://denopkg.com/timonson/base64url/ba
import makeJwt, {
Claims,
Jose,
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts"
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts"

interface CritHandlers {
[key: string]: (header?: any) => any
Expand Down

0 comments on commit 1b6ef27

Please sign in to comment.