nav tabs on admin dashboard
This commit is contained in:
8
node_modules/find-cache-dir/index.js
generated
vendored
8
node_modules/find-cache-dir/index.js
generated
vendored
@@ -4,8 +4,8 @@ const commonDir = require('commondir');
|
||||
const pkgDir = require('pkg-dir');
|
||||
const makeDir = require('make-dir');
|
||||
|
||||
module.exports = options => {
|
||||
const name = options.name;
|
||||
module.exports = (options = {}) => {
|
||||
const {name} = options;
|
||||
let dir = options.cwd;
|
||||
|
||||
if (options.files) {
|
||||
@@ -24,9 +24,7 @@ module.exports = options => {
|
||||
}
|
||||
|
||||
if (options.thunk) {
|
||||
return function () {
|
||||
return path.join.apply(path, [dir].concat(Array.prototype.slice.call(arguments)));
|
||||
};
|
||||
return (...args) => path.join(dir, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user