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.1.0 to 1.1.1

2

package.json
{
"name": "extensionless",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",

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

@@ -42,2 +42,3 @@ import {access, existsSync, readFileSync} from 'fs'

let extToSkip = ['.wasm', '.cjs', '.mjs', '.js', '.json']
let relPrefixes = [...new Set(['./', '../', `.${sep}`, `..${sep}`])]

@@ -48,5 +49,7 @@ export async function resolve(specifier, context, nextResolve) {

let postfix = (isAbsolute(spec) || relPrefixes.some(p => spec.startsWith(p)))
&& !extname(spec) && await findPostfix(normalize(spec), context)
&& (spec = normalize(spec))
&& (spec.endsWith(sep) || !extToSkip.includes(extname(spec)))
&& await findPostfix(spec, context)
return await nextResolve(specifier + (postfix || ''))
}
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