diff options
Diffstat (limited to 'node_modules/parse-filepath')
-rw-r--r-- | node_modules/parse-filepath/LICENSE | 2 | ||||
-rw-r--r-- | node_modules/parse-filepath/index.js | 7 | ||||
-rw-r--r-- | node_modules/parse-filepath/package.json | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/node_modules/parse-filepath/LICENSE b/node_modules/parse-filepath/LICENSE index 39245ac1c..fa30c4cb3 100644 --- a/node_modules/parse-filepath/LICENSE +++ b/node_modules/parse-filepath/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2016, Jon Schlinkert. +Copyright (c) 2014-2015, Jon Schlinkert. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/parse-filepath/index.js b/node_modules/parse-filepath/index.js index fce6f2c3a..0df01700c 100644 --- a/node_modules/parse-filepath/index.js +++ b/node_modules/parse-filepath/index.js @@ -53,7 +53,12 @@ module.exports = function(filepath) { }); define(obj, 'dir', function() { - return path.dirname(filepath); + var dir = path.dirname(filepath); + if (dir === '.') { + return (filepath[0] === '.') ? dir : ''; + } else { + return dir; + } }); define(obj, 'dirname', function() { diff --git a/node_modules/parse-filepath/package.json b/node_modules/parse-filepath/package.json index 5f5acc58b..1f0ab4749 100644 --- a/node_modules/parse-filepath/package.json +++ b/node_modules/parse-filepath/package.json @@ -1,7 +1,7 @@ { "name": "parse-filepath", "description": "Pollyfill for node.js `path.parse`, parses a filepath into an object.", - "version": "1.0.1", + "version": "1.0.2", "homepage": "https://github.com/jonschlinkert/parse-filepath", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "repository": "jonschlinkert/parse-filepath", @@ -20,7 +20,7 @@ "test": "mocha" }, "dependencies": { - "is-absolute": "^0.2.3", + "is-absolute": "^1.0.0", "map-cache": "^0.2.0", "path-root": "^0.1.1" }, |