aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/glob-parent/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/glob-parent/index.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/glob-parent/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/glob-parent/index.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/glob-parent/index.js
new file mode 100644
index 00000000..61615f1a
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/glob-parent/index.js
@@ -0,0 +1,10 @@
+'use strict';
+
+var path = require('path');
+var isglob = require('is-glob');
+
+module.exports = function globParent(str) {
+ str += 'a'; // preserves full path in case of trailing path separator
+ do {str = path.dirname(str)} while (isglob(str));
+ return str;
+};