Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extensionless

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extensionless - npm Package Compare versions

Comparing version 1.3.5 to 1.4.0

2

package.json
{
"name": "extensionless",
"version": "1.3.5",
"version": "1.4.0",
"type": "module",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -1,2 +0,2 @@

import {access, existsSync, readFileSync} from 'fs'
import {readFileSync, stat} from 'fs'
import {dirname, extname, isAbsolute, join} from 'path'

@@ -7,6 +7,6 @@ import {argv, cwd} from 'process'

do {
let path = join(curDir = upDir, 'package.json')
if (existsSync(path)) {
pkgJson = JSON.parse(readFileSync(path, 'utf8'))
try {
pkgJson = JSON.parse(readFileSync(join(curDir = upDir, 'package.json'), 'utf8'))
} catch (e) {
if (e.code !== 'ENOENT' && e.code !== 'EISDIR') throw e
}

@@ -43,3 +43,3 @@ } while (!pkgJson && curDir !== (upDir = dirname(curDir)))

if (await new Promise(r => access(new URL(testURL), e => r(!e)))) {
if ((await new Promise(r => stat(new URL(testURL), (_, s) => r(s))))?.isFile()) {
return await nextResolve(testURL)

@@ -46,0 +46,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc