Update checked-in dependencies
This commit is contained in:
parent
fa428daf9c
commit
b3bf514df4
216 changed files with 4342 additions and 1611 deletions
5
node_modules/enhanced-resolve/lib/RestrictionsPlugin.js
generated
vendored
5
node_modules/enhanced-resolve/lib/RestrictionsPlugin.js
generated
vendored
|
|
@ -11,6 +11,11 @@
|
|||
const slashCode = "/".charCodeAt(0);
|
||||
const backslashCode = "\\".charCodeAt(0);
|
||||
|
||||
/**
|
||||
* @param {string} path path
|
||||
* @param {string} parent parent path
|
||||
* @returns {boolean} true, if path is inside of parent
|
||||
*/
|
||||
const isInside = (path, parent) => {
|
||||
if (!path.startsWith(parent)) return false;
|
||||
if (path.length === parent.length) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue