1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -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,
HTTP_WHITESPACE_PREFIX_RE, HTTP_WHITESPACE_PREFIX_RE,
HTTP_WHITESPACE_SUFFIX_RE, HTTP_WHITESPACE_SUFFIX_RE,
} from "ext:deno_web/00_infra.js"; } from "./00_infra.js";
/** /**
* @typedef MimeType * @typedef MimeType

View file

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

View file

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

View file

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

View file

@ -14,7 +14,7 @@ const {
} = primordials; } = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.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";
/** /**
* @param {string} data * @param {string} data

View file

@ -91,17 +91,17 @@ const {
} = primordials; } = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js"; 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 { import {
AbortSignalPrototype, AbortSignalPrototype,
add, add,
newSignal, newSignal,
remove, remove,
signalAbort, signalAbort,
} from "ext:deno_web/03_abort_signal.js"; } from "./03_abort_signal.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.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 */ /** @template T */
class Deferred { class Deferred {

View file

@ -57,7 +57,7 @@ const {
} = primordials; } = primordials;
import * as webidl from "ext:deno_webidl/00_webidl.js"; 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 { URL } from "ext:deno_url/00_url.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.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 * as webidl from "ext:deno_webidl/00_webidl.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js"; import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
import { forgivingBase64Encode } from "ext:deno_web/00_infra.js"; import { forgivingBase64Encode } from "./00_infra.js";
import { EventTarget, ProgressEvent } from "ext:deno_web/02_event.js"; import { EventTarget, ProgressEvent } from "./02_event.js";
import { decode, TextDecoder } from "ext:deno_web/08_text_encoding.js"; import { decode, TextDecoder } from "./08_text_encoding.js";
import { parseMimeType } from "ext:deno_web/01_mimesniff.js"; import { parseMimeType } from "./01_mimesniff.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js"; import { DOMException } from "./01_dom_exception.js";
const state = Symbol("[[state]]"); const state = Symbol("[[state]]");
const result = Symbol("[[result]]"); const result = Symbol("[[result]]");

View file

@ -16,7 +16,7 @@ const {
} = primordials; } = primordials;
import { URL } from "ext:deno_url/00_url.js"; 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"); const locationConstructorKey = Symbol("locationConstructorKey");

View file

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

View file

@ -19,7 +19,7 @@ const {
import * as webidl from "ext:deno_webidl/00_webidl.js"; import * as webidl from "ext:deno_webidl/00_webidl.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.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( webidl.converters.CompressionFormat = webidl.createEnumConverter(
"CompressionFormat", "CompressionFormat",

View file

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

View file

@ -2,7 +2,7 @@
import { primordials } from "ext:core/mod.js"; import { primordials } from "ext:core/mod.js";
import * as webidl from "ext:deno_webidl/00_webidl.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"; import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
const { const {
ObjectPrototypeIsPrototypeOf, ObjectPrototypeIsPrototypeOf,