1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

refactor(ext/web): use relative specifiers (#23024)

This commit is contained in:
Bartek Iwańczuk 2024-03-22 16:21:05 +00:00 committed by GitHub
parent 43be97923f
commit b688b61036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 26 additions and 26 deletions

View file

@ -33,7 +33,7 @@ import {
HTTP_WHITESPACE,
HTTP_WHITESPACE_PREFIX_RE,
HTTP_WHITESPACE_SUFFIX_RE,
} from "ext:deno_web/00_infra.js";
} from "./00_infra.js";
/**
* @typedef MimeType

View file

@ -40,7 +40,7 @@ const {
Float64Array,
} = primordials;
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import { DOMException } from "./01_dom_exception.js";
const objectCloneMemo = new SafeWeakMap();

View file

@ -24,7 +24,7 @@ const {
} = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { assert } from "ext:deno_web/00_infra.js";
import { assert } from "./00_infra.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
import {
defineEventHandler,
@ -32,8 +32,8 @@ import {
EventTarget,
listenerCount,
setIsTrusted,
} from "ext:deno_web/02_event.js";
import { refTimer, setTimeout, unrefTimer } from "ext:deno_web/02_timers.js";
} from "./02_event.js";
import { refTimer, setTimeout, unrefTimer } from "./02_timers.js";
// Since WeakSet is not a iterable, WeakRefSet class is provided to store and
// iterate objects.

View file

@ -3,13 +3,13 @@
// @ts-check
/// <reference path="../../core/internal.d.ts" />
import { EventTarget } from "ext:deno_web/02_event.js";
import { primordials } from "ext:core/mod.js";
const {
Symbol,
SymbolToStringTag,
TypeError,
} = primordials;
import { EventTarget } from "./02_event.js";
const illegalConstructorKey = Symbol("illegalConstructorKey");

View file

@ -14,7 +14,7 @@ const {
} = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import { DOMException } from "./01_dom_exception.js";
/**
* @param {string} data

View file

@ -91,17 +91,17 @@ const {
} = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { structuredClone } from "ext:deno_web/02_structured_clone.js";
import { structuredClone } from "./02_structured_clone.js";
import {
AbortSignalPrototype,
add,
newSignal,
remove,
signalAbort,
} from "ext:deno_web/03_abort_signal.js";
} from "./03_abort_signal.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
import { assert, AssertionError } from "ext:deno_web/00_infra.js";
import { assert, AssertionError } from "./00_infra.js";
/** @template T */
class Deferred {

View file

@ -57,7 +57,7 @@ const {
} = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { ReadableStream } from "ext:deno_web/06_streams.js";
import { ReadableStream } from "./06_streams.js";
import { URL } from "ext:deno_url/00_url.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";

View file

@ -35,11 +35,11 @@ const {
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
import { forgivingBase64Encode } from "ext:deno_web/00_infra.js";
import { EventTarget, ProgressEvent } from "ext:deno_web/02_event.js";
import { decode, TextDecoder } from "ext:deno_web/08_text_encoding.js";
import { parseMimeType } from "ext:deno_web/01_mimesniff.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import { forgivingBase64Encode } from "./00_infra.js";
import { EventTarget, ProgressEvent } from "./02_event.js";
import { decode, TextDecoder } from "./08_text_encoding.js";
import { parseMimeType } from "./01_mimesniff.js";
import { DOMException } from "./01_dom_exception.js";
const state = Symbol("[[state]]");
const result = Symbol("[[result]]");

View file

@ -16,7 +16,7 @@ const {
} = primordials;
import { URL } from "ext:deno_url/00_url.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import { DOMException } from "./01_dom_exception.js";
const locationConstructorKey = Symbol("locationConstructorKey");

View file

@ -35,9 +35,9 @@ import {
MessageEvent,
setEventTargetData,
setIsTrusted,
} from "ext:deno_web/02_event.js";
import { isDetachedBuffer } from "ext:deno_web/06_streams.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
} from "./02_event.js";
import { isDetachedBuffer } from "./06_streams.js";
import { DOMException } from "./01_dom_exception.js";
class MessageChannel {
/** @type {MessagePort} */

View file

@ -19,7 +19,7 @@ const {
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
import { TransformStream } from "ext:deno_web/06_streams.js";
import { TransformStream } from "./06_streams.js";
webidl.converters.CompressionFormat = webidl.createEnumConverter(
"CompressionFormat",

View file

@ -16,11 +16,11 @@ const {
} = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { structuredClone } from "ext:deno_web/02_structured_clone.js";
import { structuredClone } from "./02_structured_clone.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
import { EventTarget } from "ext:deno_web/02_event.js";
import { opNow } from "ext:deno_web/02_timers.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import { EventTarget } from "./02_event.js";
import { opNow } from "./02_timers.js";
import { DOMException } from "./01_dom_exception.js";
const illegalConstructorKey = Symbol("illegalConstructorKey");
let performanceEntries = [];

View file

@ -2,7 +2,7 @@
import { primordials } from "ext:core/mod.js";
import * as webidl from "ext:deno_webidl/00_webidl.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import { DOMException } from "./01_dom_exception.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
const {
ObjectPrototypeIsPrototypeOf,