Skip to content

Commit 938ba10

Browse files
committed
fix(deps): update dependencies
1 parent 04d528e commit 938ba10

File tree

5 files changed

+39
-43
lines changed

5 files changed

+39
-43
lines changed

.mocharc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": [
3+
"ts-node-test-register"
4+
]
5+
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
"trailingComma": "none"
4747
},
4848
"devDependencies": {
49-
"@types/escape-string-regexp": "^2.0.1",
5049
"@types/lodash.sortby": "^4.7.3",
5150
"@types/lodash.uniq": "^4.5.3",
5251
"@types/lodash.uniqwith": "^4.5.3",
5352
"@types/mocha": "^9.1.1",
5453
"@types/node": "^17.0.34",
54+
"@types/to-regex": "^3.0.0",
5555
"cross-env": "^7.0.3",
5656
"lint-staged": "^12.4.1",
5757
"mocha": "^10.0.0",
@@ -69,8 +69,8 @@
6969
]
7070
},
7171
"dependencies": {
72-
"escape-string-regexp": "^1.0.5",
73-
"execall": "^1.0.0",
72+
"escape-string-regexp": "^2.0.0",
73+
"execall": "^2.0.0",
7474
"lodash.sortby": "^4.7.0",
7575
"lodash.uniq": "^4.5.0",
7676
"lodash.uniqwith": "^4.5.0",

src/regexp-string-matcher.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import uniq = require("lodash.uniq");
2-
import uniqWith = require("lodash.uniqwith");
3-
import sortBy = require("lodash.sortby");
4-
import escapeStringRegexp = require("escape-string-regexp");
1+
import uniq from "lodash.uniq";
2+
import uniqWith from "lodash.uniqwith";
3+
import sortBy from "lodash.sortby";
4+
import escapeStringRegexp from "escape-string-regexp";
55
import { isRegExpString, parseRegExpString } from "./regexp-parse";
66

7-
const execall = require("execall");
8-
const toRegex = require("to-regex");
7+
import execall from "execall";
8+
import toRegex from "to-regex";
99

1010
const DEFAULT_FLAGS = "g";
1111

@@ -56,7 +56,7 @@ export const matchPatterns = (text: string, regExpLikeStrings: string[]): matchP
5656
})
5757
.forEach((regExp) => {
5858
const execallResults = execall(regExp, text);
59-
execallResults.forEach((result: { match: string; index: number; sub: string[] }) => {
59+
execallResults.forEach((result) => {
6060
const match = result.match;
6161
const index = result.index;
6262
matchPatternResults.push({

test/mocha.opts

-1
This file was deleted.

yarn.lock

+24-32
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@
5555
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e"
5656
integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==
5757

58-
"@types/escape-string-regexp@^2.0.1":
59-
version "2.0.1"
60-
resolved "https://registry.yarnpkg.com/@types/escape-string-regexp/-/escape-string-regexp-2.0.1.tgz#05d249ffde63aba70d1dfdea1e0cad16dcec9629"
61-
integrity sha512-QbTY9C4ZdLxqnJ+2vo8IBxMXcC3t//eVTNpnQVkTlVYtuQyZkUTNbFAwtXZ0qJ+YFpib2+raDMtYWh8hBfhlgQ==
62-
dependencies:
63-
escape-string-regexp "*"
64-
6558
"@types/lodash.sortby@^4.7.3":
6659
version "4.7.7"
6760
resolved "https://registry.yarnpkg.com/@types/lodash.sortby/-/lodash.sortby-4.7.7.tgz#10bf6eecd4d69aacb87e093e65bd4eb5a13b0237"
@@ -103,6 +96,11 @@
10396
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
10497
integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==
10598

99+
"@types/to-regex@^3.0.0":
100+
version "3.0.0"
101+
resolved "https://registry.yarnpkg.com/@types/to-regex/-/to-regex-3.0.0.tgz#aecefb9b8b727d5b16bf8a6d49d3b9cbd5162060"
102+
integrity sha512-KDCHAcvtjnF7g86XW8wmQ7eqelLKxkCAYce2dg0aE2gprssxx5dRKqrHRmxBtfveoj57zBdwXg0fTFQhvECtzw==
103+
106104
"@ungap/promise-all-settled@1.1.2":
107105
version "1.1.2"
108106
resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44"
@@ -306,13 +304,12 @@ cliui@^7.0.2:
306304
strip-ansi "^6.0.0"
307305
wrap-ansi "^7.0.0"
308306

309-
clone-regexp@^1.0.0:
310-
version "1.0.1"
311-
resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-1.0.1.tgz#051805cd33173375d82118fc0918606da39fd60f"
312-
integrity sha512-Fcij9IwRW27XedRIJnSOEupS7RVcXtObJXbcUOX93UCLqqOdRpkvzKywOOSizmEK/Is3S/RHX9dLdfo6R1Q1mw==
307+
clone-regexp@^2.1.0:
308+
version "2.2.0"
309+
resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-2.2.0.tgz#7d65e00885cd8796405c35a737e7a86b7429e36f"
310+
integrity sha512-beMpP7BOtTipFuW8hrJvREQ2DrRu3BE7by0ZpibtfBA+qfHYvMGTc2Yb1JMYPKg/JUw0CHYvpg796aNTSW9z7Q==
313311
dependencies:
314-
is-regexp "^1.0.0"
315-
is-supported-regexp-flag "^1.0.0"
312+
is-regexp "^2.0.0"
316313

317314
color-convert@^1.9.0:
318315
version "1.9.3"
@@ -431,11 +428,6 @@ escalade@^3.1.1:
431428
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
432429
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
433430

434-
escape-string-regexp@*:
435-
version "5.0.0"
436-
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
437-
integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
438-
439431
escape-string-regexp@4.0.0:
440432
version "4.0.0"
441433
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
@@ -446,6 +438,11 @@ escape-string-regexp@^1.0.5:
446438
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
447439
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
448440

441+
escape-string-regexp@^2.0.0:
442+
version "2.0.0"
443+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
444+
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
445+
449446
execa@^5.1.1:
450447
version "5.1.1"
451448
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
@@ -461,12 +458,12 @@ execa@^5.1.1:
461458
signal-exit "^3.0.3"
462459
strip-final-newline "^2.0.0"
463460

464-
execall@^1.0.0:
465-
version "1.0.0"
466-
resolved "https://registry.yarnpkg.com/execall/-/execall-1.0.0.tgz#73d0904e395b3cab0658b08d09ec25307f29bb73"
467-
integrity sha1-c9CQTjlbPKsGWLCNCewlMH8pu3M=
461+
execall@^2.0.0:
462+
version "2.0.0"
463+
resolved "https://registry.yarnpkg.com/execall/-/execall-2.0.0.tgz#16a06b5fe5099df7d00be5d9c06eecded1663b45"
464+
integrity sha512-0FU2hZ5Hh6iQnarpRtQurM/aAvp3RIbfvgLHrcqJYzhXyV2KFruhuChf9NC6waAhiUR7FFtlugkI4p7f2Fqlow==
468465
dependencies:
469-
clone-regexp "^1.0.0"
466+
clone-regexp "^2.1.0"
470467

471468
extend-shallow@^3.0.2:
472469
version "3.0.2"
@@ -678,21 +675,16 @@ is-plain-object@^2.0.4:
678675
dependencies:
679676
isobject "^3.0.1"
680677

681-
is-regexp@^1.0.0:
682-
version "1.0.0"
683-
resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069"
684-
integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk=
678+
is-regexp@^2.0.0:
679+
version "2.1.0"
680+
resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-2.1.0.tgz#cd734a56864e23b956bf4e7c66c396a4c0b22c2d"
681+
integrity sha512-OZ4IlER3zmRIoB9AqNhEggVxqIH4ofDns5nRrPS6yQxXE1TPCUpFznBfRQmQa8uC+pXqjMnukiJBxCisIxiLGA==
685682

686683
is-stream@^2.0.0:
687684
version "2.0.1"
688685
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"
689686
integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==
690687

691-
is-supported-regexp-flag@^1.0.0:
692-
version "1.0.1"
693-
resolved "https://registry.yarnpkg.com/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.1.tgz#21ee16518d2c1dd3edd3e9a0d57e50207ac364ca"
694-
integrity sha512-3vcJecUUrpgCqc/ca0aWeNu64UGgxcvO60K/Fkr1N6RSvfGCTU60UKN68JDmKokgba0rFFJs12EnzOQa14ubKQ==
695-
696688
is-unicode-supported@^0.1.0:
697689
version "0.1.0"
698690
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7"

0 commit comments

Comments
 (0)