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.6 to 1.1.7

12

package.json
{
"name": "extensionless",
"version": "1.1.6",
"version": "1.1.7",
"type": "module",
"main": "src/index.js",
"license": "MIT",
"description": "Node.js loader for import specifiers as file paths without extensions or as directory paths",
"license": "MIT",
"homepage": "https://github.com/barhun/extensionless",
"keywords": [
"node", "nodejs",
"module", "loader", "resolver", "resolution",
"esm", "es6", "esnext", "ecmascript",
"extension", "filename", "directory", "path"
],
"homepage": "https://github.com/barhun/extensionless#readme",
"repository": {

@@ -10,0 +16,0 @@ "type": "git",

@@ -7,3 +7,3 @@ Node.js loader for import specifiers as file paths without extensions or as directory paths

```
npm install extensionless
npm i extensionless
```

@@ -10,0 +10,0 @@

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

let filePath = join(curDir = upDir, 'package.json')
if (existsSync(filePath)) {

@@ -42,4 +43,4 @@ pkgJson = JSON.parse(readFileSync(filePath, 'utf8'))

let spec = specifier.startsWith('file://') ? fileURLToPath(specifier) : specifier
let isAbs = isAbsolute(spec)
let postfix = (isAbs || relPrefixes.some(p => spec.startsWith(p)))

@@ -46,0 +47,0 @@ && await findPostfix(normalize(spec), context, isAbs) || ''

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