Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
23
node_modules/is-path-inside/index.js
generated
vendored
23
node_modules/is-path-inside/index.js
generated
vendored
|
|
@ -2,20 +2,11 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = (childPath, parentPath) => {
|
||||
childPath = path.resolve(childPath);
|
||||
parentPath = path.resolve(parentPath);
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
childPath = childPath.toLowerCase();
|
||||
parentPath = parentPath.toLowerCase();
|
||||
}
|
||||
|
||||
if (childPath === parentPath) {
|
||||
return false;
|
||||
}
|
||||
|
||||
childPath += path.sep;
|
||||
parentPath += path.sep;
|
||||
|
||||
return childPath.startsWith(parentPath);
|
||||
const relation = path.relative(parentPath, childPath);
|
||||
return Boolean(
|
||||
relation &&
|
||||
relation !== '..' &&
|
||||
!relation.startsWith(`..${path.sep}`) &&
|
||||
relation !== path.resolve(childPath)
|
||||
);
|
||||
};
|
||||
|
|
|
|||
2
node_modules/is-path-inside/package.json
generated
vendored
2
node_modules/is-path-inside/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "is-path-inside",
|
||||
"version": "3.0.2",
|
||||
"version": "3.0.3",
|
||||
"description": "Check if a path is inside another path",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/is-path-inside",
|
||||
|
|
|
|||
2
node_modules/is-path-inside/readme.md
generated
vendored
2
node_modules/is-path-inside/readme.md
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
# is-path-inside [](https://travis-ci.org/sindresorhus/is-path-inside)
|
||||
# is-path-inside
|
||||
|
||||
> Check if a path is inside another path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue