Skip to content

Commit

Permalink
chore: move fedikit to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jan 19, 2024
1 parent dcd149a commit 968a307
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions deps/fedikit/nodeinfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { convert } from 'https://deno.land/x/fedikit@v0.0.1-alpha.6/src/nodeinfo/lib/convert.ts'

export type {
NodeInfo,
WellKnownNodeInfo,
} from 'https://deno.land/x/fedikit@v0.0.1-alpha.6/src/nodeinfo/lib/types.ts'
1 change: 1 addition & 0 deletions deps/fedikit/webfinger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type { Webfinger } from 'https://deno.land/x/fedikit@v0.0.1-alpha.6/src/webfinger/lib/types.ts'
1 change: 0 additions & 1 deletion import_map.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"imports": {
"fedikit/": "https://deno.land/x/fedikit@v0.0.1-alpha.4/",
"hono/": "https://deno.land/x/hono@v3.10.0/",
"lume/": "https://deno.land/x/lume@v2.0.0/"
}
Expand Down
11 changes: 6 additions & 5 deletions lume/plugins/nodeinfo.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type {
NodeInfo,
WellKnownNodeInfo,
} from 'fedikit/src/nodeinfo/lib/types.ts'
import { convert } from 'fedikit/src/nodeinfo/lib/convert.ts'
import { merge } from 'lume/core/utils/object.ts'
import { Page } from 'lume/core/file.ts'

import {
convert,
type NodeInfo,
type WellKnownNodeInfo,
} from '../../deps/fedikit/nodeinfo.ts'

export interface Options {
/**
* If false, then output `/.well-known/*` files to `/well-known/*`.
Expand Down
3 changes: 2 additions & 1 deletion lume/plugins/webfinger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { Webfinger } from 'fedikit/src/webfinger/lib/types.ts'
import { Page } from 'lume/core/file.ts'
import { merge } from 'lume/core/utils/object.ts'

import type { Webfinger } from '../../deps/fedikit/webfinger.ts'

export interface Options {
/**
* If false, then output `/.well-known/*` files to `/well-known/*`.
Expand Down

0 comments on commit 968a307

Please sign in to comment.