Skip to main content
Home
This release is a pre-release — the latest non-prerelease version of @fedify/fedify is 1.9.1. Jump to this version

@fedify/fedify@2.0.0-pr.451.1735+e5916226

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
94%
Published
2 months ago (2.0.0-pr.451.1735+e5916226)
interface LookupObjectOptions

Options for the lookupObject function.

Properties

optional
documentLoader: DocumentLoader

The document loader for loading remote JSON-LD documents.

optional
contextLoader: DocumentLoader

The context loader for loading remote JSON-LD contexts.

optional
crossOrigin:
"ignore"
| "throw"
| "trust"

Whether to allow fetching an object with an @id having a different origin than the object's URL. This is not recommended, as it may lead to security issues. Only use this option if you know what you are doing.

How to handle the case when an object's @id has a different origin than the object's URL:

  • "ignore" (default): Do not return the object, and log a warning.
  • "throw": Throw an error.
  • "trust": Bypass the check and return the object anyway. This is not recommended, as it may lead to security issues. Only use this option if you know what you are doing.
optional
userAgent: GetUserAgentOptions | string

The options for making User-Agent header. If a string is given, it is used as the User-Agent header value. If an object is given, it is passed to getUserAgent to generate the User-Agent header value.

optional
tracerProvider: TracerProvider

The OpenTelemetry tracer provider. If omitted, the global tracer provider is used.

AbortSignal for cancelling the request.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { type LookupObjectOptions } from "@fedify/fedify";
or

Import directly with a jsr specifier

import { type LookupObjectOptions } from "jsr:@fedify/fedify";

Add Package

pnpm i jsr:@fedify/fedify
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fedify/fedify

Import symbol

import { type LookupObjectOptions } from "@fedify/fedify";

Add Package

yarn add jsr:@fedify/fedify
or (using Yarn 4.8 or older)
yarn dlx jsr add @fedify/fedify

Import symbol

import { type LookupObjectOptions } from "@fedify/fedify";

Add Package

vlt install jsr:@fedify/fedify

Import symbol

import { type LookupObjectOptions } from "@fedify/fedify";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type LookupObjectOptions } from "@fedify/fedify";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type LookupObjectOptions } from "@fedify/fedify";