updated npm modules
This commit is contained in:
14
node_modules/is-path-inside/index.js
generated
vendored
14
node_modules/is-path-inside/index.js
generated
vendored
@@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
var path = require('path');
|
||||
var pathIsInside = require('path-is-inside');
|
||||
const path = require('path');
|
||||
const pathIsInside = require('path-is-inside');
|
||||
|
||||
module.exports = function (a, b) {
|
||||
a = path.resolve(a);
|
||||
b = path.resolve(b);
|
||||
module.exports = (childPath, parentPath) => {
|
||||
childPath = path.resolve(childPath);
|
||||
parentPath = path.resolve(parentPath);
|
||||
|
||||
if (a === b) {
|
||||
if (childPath === parentPath) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return pathIsInside(a, b);
|
||||
return pathIsInside(childPath, parentPath);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user