@cspell/cspell-resolver
Advanced tools
Comparing version 8.7.0 to 8.8.0
@@ -1,3 +0,2 @@ | ||
export declare function resolveGlobal(modulesName: string): string | undefined; | ||
export declare function requireResolve(filename: string, paths?: string[]): string | undefined; | ||
//# sourceMappingURL=requireResolve.d.ts.map |
@@ -1,14 +0,14 @@ | ||
import globalDirectory from 'global-directory'; | ||
export function resolveGlobal(modulesName) { | ||
const paths = [globalDirectory.npm.packages, globalDirectory.yarn.packages]; | ||
return requireResolve(modulesName, paths); | ||
} | ||
export function requireResolve(filename, paths) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.requireResolve = void 0; | ||
function requireResolve(filename, paths) { | ||
try { | ||
// eslint-disable-next-line unicorn/prefer-module | ||
return require.resolve(filename, paths ? { paths } : undefined); | ||
} | ||
catch (e) { | ||
catch { | ||
return undefined; | ||
} | ||
} | ||
exports.requireResolve = requireResolve; | ||
//# sourceMappingURL=requireResolve.js.map |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "8.7.0", | ||
"version": "8.8.0", | ||
"description": "Library to help resolve module locations.", | ||
@@ -16,6 +16,8 @@ "keywords": [ | ||
"license": "MIT", | ||
"type": "module", | ||
"type": "commonjs", | ||
"sideEffects": false, | ||
"exports": { | ||
".": "./dist/index.js" | ||
".": { | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
@@ -57,3 +59,3 @@ "directories": { | ||
}, | ||
"gitHead": "5318079ed11fe77e981287ecf1c40d6f28dd91ed" | ||
"gitHead": "a42bce675c00cb2d51809b3ae3894119ea4f5ce7" | ||
} |
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
4254
9
22
No