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.5.2 to 1.5.3

2

package.json
{
"name": "extensionless",
"version": "1.5.2",
"version": "1.5.3",
"type": "module",

@@ -5,0 +5,0 @@ "exports": {

@@ -11,3 +11,2 @@ import {readFile} from 'fs/promises'

let curDir, upDir = isAbsolute(argv1 ?? '') ? argv1 : cwd()
do {

@@ -25,4 +24,2 @@ try {

let getConfig = async ({argv1} = {}) => {
let pkgJson = await getPkgJson(argv1)
let defaults = {

@@ -32,3 +29,3 @@ lookFor: ['js']

lookFor
} = {...defaults, ...pkgJson?.extensionless}
} = {...defaults, ...(await getPkgJson(argv1))?.extensionless}

@@ -35,0 +32,0 @@ Array.isArray(lookFor) && lookFor.length && lookFor.every(a => typeof a === 'string' && /^[a-z]+\w*$/i.test(a)) || (

@@ -23,3 +23,2 @@ import {extname, isAbsolute} from 'path'

let isAbs = isAbsolute(specifier)
if (!isAbs && !relSpecs.includes(specifier) && !prefixes.some(p => specifier.startsWith(p))) {

@@ -29,5 +28,5 @@ return await nextResolve(specifier)

await initPromise
let selfURL = new URL((isAbs ? 'file://' : '') + specifier, parentURL).href
await initPromise
let postfixes = selfURL.endsWith('/') ? indexFiles : extToSkip.includes(extname(selfURL)) ? empty : candidates

@@ -34,0 +33,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