Fix dependabot issues

This commit is contained in:
Andrew Eisenberg 2021-10-21 15:24:20 -07:00
parent c89d9bd8b0
commit 531c6ba7c8
705 changed files with 53406 additions and 20466 deletions

23
node_modules/is-path-inside/index.js generated vendored
View file

@ -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)
);
};

View file

@ -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",

View file

@ -1,4 +1,4 @@
# is-path-inside [![Build Status](https://travis-ci.org/sindresorhus/is-path-inside.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-inside)
# is-path-inside
> Check if a path is inside another path