Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -5,11 +5,7 @@ Object.defineProperty(exports, '__esModule', {
});
exports.replacePathSepForRegex = exports.escapeStrForRegex = exports.escapePathForRegex = void 0;
var _path = _interopRequireDefault(require('path'));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
var _path = require('path');
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
@@ -19,7 +15,7 @@ function _interopRequireDefault(obj) {
*
*/
const escapePathForRegex = dir => {
if (_path.default.sep === '\\') {
if (_path.sep === '\\') {
// Replace "\" with "/" so it's not escaped by escapeStrForRegex.
// replacePathSepForRegex will convert it back.
dir = dir.replace(/\\/g, '/');
@@ -36,7 +32,7 @@ const escapeStrForRegex = string =>
exports.escapeStrForRegex = escapeStrForRegex;
const replacePathSepForRegex = string => {
if (_path.default.sep === '\\') {
if (_path.sep === '\\') {
return string.replace(
/(\/|(.)?\\(?![[\]{}()*+?.^$|\\]))/g,
(_match, _, p2) => (p2 && p2 !== '\\' ? p2 + '\\\\' : '\\\\')