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.2.0 to 1.2.1

4

package.json
{
"name": "extensionless",
"version": "1.2.0",
"version": "1.2.1",
"type": "module",

@@ -20,4 +20,4 @@ "main": "src/index.js",

"scripts": {
"test": "true"
"test": "node --experimental-loader=./src/index.js test"
}
}

@@ -22,7 +22,7 @@ import {access, existsSync, readFileSync} from 'fs'

let extToSkip = ['.wasm', '.cjs', '.mjs', '.js', '.json'], emptyPostfixes = [[], []]
let extToSkip = ['.wasm', '.cjs', '.mjs', '.js', '.json'], none = [[], []]
let indexFiles = [lookFor.map(e => `index.${e}`), ['index.json']]
let extensions = [lookFor.map(e => `.${e}`).concat(lookFor.map(e => `${sep}index.${e}`)), ['.json', `${sep}index.json`]]
let candidates = [lookFor.map(e => `.${e}`).concat(lookFor.map(e => `${sep}index.${e}`)), ['.json', `${sep}index.json`]]
let findPostfix = async (specifier, {importAssertions, parentURL}, isAbsPath) => {
let postfixes = specifier.endsWith(sep) ? indexFiles : extToSkip.includes(extname(specifier)) ? emptyPostfixes : extensions
let postfixes = specifier.endsWith(sep) ? indexFiles : extToSkip.includes(extname(specifier)) ? none : candidates

@@ -29,0 +29,0 @@ for (let postfix of postfixes[+(importAssertions?.type === 'json')]) {

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