bower-files
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -6,3 +6,7 @@ 'use strict'; | ||
module.exports = function isSymLink(filepath) { | ||
return fs.existsSync(filepath) && fs.lstatSync(filepath).isSymbolicLink(); | ||
// TODO remove this ternary thing when fs.existsSync is no longer in use. | ||
var exists = fs.accessSync ? | ||
!fs.accessSync(filepath, fs.F_OK) : | ||
fs.existsSync(filepath); | ||
return exists && fs.lstatSync(filepath).isSymbolicLink(); | ||
}; |
{ | ||
"name": "bower-files", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Pulls in dynamic list of filepaths to bower components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# bower-files | ||
[](https://iojs.org/) | ||
[](https://nodejs.org/) | ||
[](https://www.npmjs.org/package/bower-files) | ||
@@ -4,0 +7,0 @@ [](https://gemnasium.com/ksmithut/bower-files) |
22425
343
311