Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/types/src/misc.ts>WorkerLocation

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
interface WorkerLocation
import { type WorkerLocation } from "https://deno.land/x/sentry_deno@v0.2.2/packages/types/src/misc.ts";

Location object on a service worker's self object.

See https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation.

Properties

readonly
protocol: string

The protocol scheme of the URL of the script executed in the Worker, including the final ':'.

readonly
host: string

The host, that is the hostname, a ':', and the port of the URL of the script executed in the Worker.

readonly
hostname: string

The domain of the URL of the script executed in the Worker.

readonly
origin: string

The canonical form of the origin of the specific location.

readonly
port: string

The port number of the URL of the script executed in the Worker.

readonly
pathname: string

The path of the URL of the script executed in the Worker, beginning with a '/'.

readonly
hash: string

The fragment identifier of the URL of the script executed in the Worker, beginning with a '#'.

readonly
href: string

Stringifier that returns the whole URL of the script executed in the Worker.

Methods

toString(): string

Synonym for href attribute