Lines Matching refs:index
137 }.\nDefault "index" lookups for the main are deprecated for ES modules.`,
168 * 3. TRY(M/index.js, M/index.json, M/index.node)
169 * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)
188 } else if (fileExists(guess = new URL(`./${packageConfig.main}/index.js`, packageJSONUrl))) {
190 } else if (fileExists(guess = new URL(`./${packageConfig.main}/index.json`, packageJSONUrl))) {
192 } else if (fileExists(guess = new URL(`./${packageConfig.main}/index.node`, packageJSONUrl))) {
204 if (fileExists(guess = new URL('./index.js', packageJSONUrl))) {
206 } else if (fileExists(guess = new URL('./index.json', packageJSONUrl))) {
208 } else if (fileExists(guess = new URL('./index.node', packageJSONUrl))) {
263 return resolveExtensions(new URL('index', search));
510 * Checks if the given key is a valid array index.
512 * @returns {boolean} - Returns `true` if the key is a valid array index, else `false`.
1011 const index = StringPrototypeIndexOf(found, pkg);
1012 if (index !== -1) {
1013 found = StringPrototypeSlice(found, index);