module-lens
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -7,3 +7,4 @@ "use strict"; | ||
const _utils_1 = require("./@utils"); | ||
const BUILT_IN_MODULE_NAME_SET = new Set(module_1.default.builtinModules || Object.keys(process.binding('natives'))); | ||
const BUILT_IN_MODULE_NAME_SET = new Set(module_1.default.builtinModules || | ||
/* istanbul ignore next */ Object.keys(process.binding('natives'))); | ||
function resolveWithCategory(specifier, { sourceFileName, baseUrlDirName, extensions = ['.js', '.jsx', '.ts', '.tsx'], }) { | ||
@@ -16,3 +17,3 @@ if (isNodeBuiltIn(specifier)) { | ||
} | ||
if (/^\//.test(specifier)) { | ||
if (Path.isAbsolute(specifier)) { | ||
return { | ||
@@ -19,0 +20,0 @@ category: 'absolute', |
{ | ||
"name": "module-lens", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Simple module specifier utilities.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
10500
172