extensionless
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"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) || '' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4007