• Home
  • Raw
  • Download

Lines Matching refs:URL

42 const { URL, pathToFileURL, fileURLToPath } = require('internal/url');
81 const pkgPath = fileURLToPath(new URL('.', packageJSONUrl));
174 let packageJSONUrl = new URL('./package.json', resolved);
184 packageJSONUrl = new URL('../package.json', packageJSONUrl);
222 if (fileExists(guess = new URL(`./${packageConfig.main}`,
225 } else if (fileExists(guess = new URL(`./${packageConfig.main}.js`,
227 else if (fileExists(guess = new URL(`./${packageConfig.main}.json`,
229 else if (fileExists(guess = new URL(`./${packageConfig.main}.node`,
231 else if (fileExists(guess = new URL(`./${packageConfig.main}/index.js`,
233 else if (fileExists(guess = new URL(`./${packageConfig.main}/index.json`,
235 else if (fileExists(guess = new URL(`./${packageConfig.main}/index.node`,
245 if (fileExists(guess = new URL('./index.js', packageJSONUrl)));
247 else if (fileExists(guess = new URL('./index.json', packageJSONUrl)));
248 else if (fileExists(guess = new URL('./index.node', packageJSONUrl)));
256 fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base));
268 const guess = new URL(`${search.pathname}${extension}`, search);
287 return resolveExtensions(new URL('index', search));
302 file = resolveDirectoryEntry(new URL(`${resolved}/`));
327 specifier, packageJSONUrl && fileURLToPath(new URL('.', packageJSONUrl)),
333 fileURLToPath(new URL('.', packageJSONUrl)), subpath,
352 fileURLToPath(new URL('.', packageJSONUrl)), subpath, target,
369 new URL(target);
385 const resolved = new URL(target, packageJSONUrl);
387 const packagePath = new URL('.', packageJSONUrl).pathname;
398 return new URL(StringPrototypeReplace(resolved.href, patternRegEx,
400 return new URL(subpath, resolved);
703 new URL('./node_modules/' + packageName + '/package.json', base);
711 packageJSONUrl = new URL((isScoped ?
726 return new URL(packageSubpath, packageJSONUrl);
766 resolved = new URL(specifier, base);
771 resolved = new URL(specifier);
849 parsed = new URL(specifier);
867 new URL(specifier, parentURL);