diff --git a/deps/fedikit/nodeinfo.ts b/deps/fedikit/nodeinfo.ts new file mode 100644 index 0000000..e71b57b --- /dev/null +++ b/deps/fedikit/nodeinfo.ts @@ -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' diff --git a/deps/fedikit/webfinger.ts b/deps/fedikit/webfinger.ts new file mode 100644 index 0000000..1bdc2ff --- /dev/null +++ b/deps/fedikit/webfinger.ts @@ -0,0 +1 @@ +export type { Webfinger } from 'https://deno.land/x/fedikit@v0.0.1-alpha.6/src/webfinger/lib/types.ts' diff --git a/import_map.json b/import_map.json index 3b1f040..d045d51 100644 --- a/import_map.json +++ b/import_map.json @@ -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/" } diff --git a/lume/plugins/nodeinfo.ts b/lume/plugins/nodeinfo.ts index 808bae9..1a1c3d3 100644 --- a/lume/plugins/nodeinfo.ts +++ b/lume/plugins/nodeinfo.ts @@ -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/*`. diff --git a/lume/plugins/webfinger.ts b/lume/plugins/webfinger.ts index 4c3d836..094b0b1 100644 --- a/lume/plugins/webfinger.ts +++ b/lume/plugins/webfinger.ts @@ -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/*`.