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

@@ -8,4 +8,3 @@
export declare const escapePathForRegex: (dir: string) => string;
export declare const escapeStrForRegex: (string: string) => string;
export declare const replacePathSepForRegex: (string: string) => string;
//# sourceMappingURL=index.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,kBAAkB,yBAO9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,4BACiB,CAAC;AAEhD,eAAO,MAAM,sBAAsB,4BAQlC,CAAC"}

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 + '\\\\' : '\\\\')