aboutsummaryrefslogtreecommitdiff
path: root/node_modules/parse-filepath
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/parse-filepath
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/parse-filepath')
-rw-r--r--node_modules/parse-filepath/LICENSE2
-rw-r--r--node_modules/parse-filepath/index.js7
-rw-r--r--node_modules/parse-filepath/package.json4
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"
},