locate-path
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -13,3 +13,3 @@ import process from 'node:process'; | ||
function checkType(type) { | ||
if (type in typeMappings) { | ||
if (Object.hasOwnProperty.call(typeMappings, type)) { | ||
return; | ||
@@ -21,3 +21,3 @@ } | ||
const matchType = (type, stat) => type === undefined || stat[typeMappings[type]](); | ||
const matchType = (type, stat) => stat[typeMappings[type]](); | ||
@@ -24,0 +24,0 @@ const toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath; |
{ | ||
"name": "locate-path", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "Get the first path that exists on disk of multiple paths", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7176