New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.9.8 to 1.9.9

2

package.json
{
"name": "extensionless",
"version": "1.9.8",
"version": "1.9.9",
"type": "module",

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

@@ -22,6 +22,6 @@ import {readFile} from 'fs/promises'

export async function getConfig({argv1} = {}) {
export async function getConfig({argv1 = ''} = {}) {
let defaults = {
lookFor: ['js']
}, dirPath = isAbsolute(argv1 ?? '') ? argv1 : cwd(), {
}, dirPath = isAbsolute(argv1) ? argv1 : cwd(), {
lookFor

@@ -28,0 +28,0 @@ } = {...defaults, ...(await getPkgJson(dirPath))?.body.extensionless}

@@ -30,4 +30,4 @@ import {extname} from 'path'

let {type} = context.importAttributes ?? context.importAssertions
let trySpec = error ? specifier : new URL(prefix + specifier, context.parentURL).href
let {type} = context.importAttributes ?? context.importAssertions
let postfixes = (await initPromise, trySpec.endsWith('/') ? indexFiles : knownExts.includes(extname(trySpec)) ? empty : candidates)

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