• Home
  • Raw
  • Download

Lines Matching full:url

4 import { pathToFileURL } from 'url';
56 export let url = import.meta.url;
61 const host = new URL(base);
69 const url = new URL(_req.url, host);
70 const redirect = url.searchParams.get('redirect');
71 if (url.pathname === '/not-found') {
85 'content-type': url.searchParams.get('mime') || 'text/javascript'
87 res.end(url.searchParams.get('body') || body);
95 const url = new URL(host); constant
96 url.port = server?.address()?.port;
98 const ns = await import(url.href);
99 assert.strict.deepStrictEqual(Object.keys(ns), ['default', 'url']);
102 assert.strict.equal(ns.url, url.href);
104 // Redirects have same import.meta.url but different cache
106 const redirect = new URL(url.href);
109 location: url.href
114 ['default', 'url']
117 assert.strict.equal(redirectedNS.url, url.href);
119 // Redirects have the same import.meta.url but different cache
121 const relativeAfterRedirect = new URL(url.href + 'foo/index.js');
122 const redirected = new URL(url.href + 'bar/index.js');
123 … redirected.searchParams.set('body', 'export let relativeDepURL = (await import("./baz.js")).url');
131 url.href + 'bar/baz.js'
134 const crossProtocolRedirect = new URL(url.href);
144 const deps = new URL(url.href);
147 import * as http from ${JSON.stringify(url.href)};
155 const relativeDeps = new URL(url.href);
163 const fileDep = new URL(url.href);
173 const builtinDep = new URL(url.href);
183 const unprefixedBuiltinDep = new URL(url.href);
193 const unsupportedMIME = new URL(url.href);
200 const notFound = new URL(url.href);