Comparing version 1.0.3 to 2.0.0
@@ -8,8 +8,6 @@ /*! | ||
var dotfileRegex = require('dotfile-regex'); | ||
module.exports = function(str) { | ||
if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) { | ||
return true; | ||
} | ||
var slash = str.lastIndexOf('/'); | ||
return slash !== -1 ? str.charCodeAt(slash + 1) === 46 /* . */ : false; | ||
return dotfileRegex().test(str); | ||
}; |
{ | ||
"name": "is-dotfile", | ||
"description": "Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/jonschlinkert/is-dotfile", | ||
@@ -68,3 +68,6 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
} | ||
}, | ||
"dependencies": { | ||
"dotfile-regex": "^0.1.2" | ||
} | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
6527
1
10
1
+ Addeddotfile-regex@^0.1.2
+ Addeddotfile-regex@0.1.2(transitive)