Skip to content

Commit 014a9ed

Browse files
Update dependency is-ip to v5. (#31467)
* Update dependency is-ip to v5 * Fix import Signed-off-by: Michael Telatynski <[email protected]> * Make jest happier Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <[email protected]>
1 parent 67b0311 commit 014a9ed

File tree

4 files changed

+52
-13
lines changed

4 files changed

+52
-13
lines changed

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const config: Config = {
4343
"counterpart": "<rootDir>/node_modules/counterpart",
4444
},
4545
transformIgnorePatterns: [
46-
"/node_modules/(?!(mime|matrix-js-sdk|uuid|p-retry|is-network-error|react-merge-refs)).+$",
46+
"/node_modules/(?!(mime|matrix-js-sdk|uuid|p-retry|is-network-error|react-merge-refs|is-ip|ip-regex|super-regex|function-timeout|time-span|convert-hrtime|clone-regexp|is-regexp)).+$",
4747
],
4848
collectCoverageFrom: [
4949
"<rootDir>/src/**/*.{js,ts,tsx}",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"highlight.js": "^11.3.1",
118118
"html-entities": "^2.0.0",
119119
"html-react-parser": "^5.2.2",
120-
"is-ip": "^3.1.0",
120+
"is-ip": "^5.0.0",
121121
"js-xxhash": "^5.0.0",
122122
"jsrsasign": "^11.0.0",
123123
"jszip": "^3.7.0",

src/utils/permalinks/Permalinks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
66
Please see LICENSE files in the repository root for full details.
77
*/
88

9-
import isIp from "is-ip";
9+
import { isIP } from "is-ip";
1010
import * as utils from "matrix-js-sdk/src/utils";
1111
import { type Room, type MatrixClient, RoomStateEvent, EventType } from "matrix-js-sdk/src/matrix";
1212
import { KnownMembership } from "matrix-js-sdk/src/types";
@@ -492,7 +492,7 @@ function isHostnameIpAddress(hostname: string): boolean {
492492
hostname = hostname.substring(1, hostname.length - 1);
493493
}
494494

495-
return isIp(hostname);
495+
return isIP(hostname);
496496
}
497497

498498
export const calculateRoomVia = (room: Room): string[] => {

yarn.lock

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5476,6 +5476,13 @@ clone-deep@^4.0.1:
54765476
kind-of "^6.0.2"
54775477
shallow-clone "^3.0.0"
54785478

5479+
clone-regexp@^3.0.0:
5480+
version "3.0.0"
5481+
resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-3.0.0.tgz#c6dd5c6b85482306778f3dc4ac2bb967079069c2"
5482+
integrity sha512-ujdnoq2Kxb8s3ItNBtnYeXdm07FcU0u8ARAT1lQ2YdMwQC+cdiXX8KoqMVuglztILivceTtp4ivqGSmEmhBUJw==
5483+
dependencies:
5484+
is-regexp "^3.0.0"
5485+
54795486
co@^4.6.0:
54805487
version "4.6.0"
54815488
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
@@ -5619,6 +5626,11 @@ content-type@^1.0.4, content-type@^1.0.5, content-type@~1.0.4, content-type@~1.0
56195626
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
56205627
integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
56215628

5629+
convert-hrtime@^5.0.0:
5630+
version "5.0.0"
5631+
resolved "https://registry.yarnpkg.com/convert-hrtime/-/convert-hrtime-5.0.0.tgz#f2131236d4598b95de856926a67100a0a97e9fa3"
5632+
integrity sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==
5633+
56225634
convert-source-map@^2.0.0:
56235635
version "2.0.0"
56245636
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a"
@@ -7524,6 +7536,11 @@ function-bind@^1.1.2:
75247536
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
75257537
integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
75267538

7539+
function-timeout@^0.1.0:
7540+
version "0.1.1"
7541+
resolved "https://registry.yarnpkg.com/function-timeout/-/function-timeout-0.1.1.tgz#6bf71d3d24c894d43b2bec312cabb8c5add2e9da"
7542+
integrity sha512-0NVVC0TaP7dSTvn1yMiy6d6Q8gifzbvQafO46RtLG/kHJUBNd+pVRGOBoK44wNBvtSPUJRfdVvkFdD3p0xvyZg==
7543+
75277544
function.prototype.name@^1.1.6, function.prototype.name@^1.1.8:
75287545
version "1.1.8"
75297546
resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.8.tgz#e68e1df7b259a5c949eeef95cdbde53edffabb78"
@@ -8205,10 +8222,10 @@ interpret@^3.1.1:
82058222
resolved "https://registry.yarnpkg.com/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4"
82068223
integrity sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==
82078224

8208-
ip-regex@^4.0.0:
8209-
version "4.3.0"
8210-
resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5"
8211-
integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==
8225+
ip-regex@^5.0.0:
8226+
version "5.0.0"
8227+
resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-5.0.0.tgz#cd313b2ae9c80c07bd3851e12bf4fa4dc5480632"
8228+
integrity sha512-fOCG6lhoKKakwv+C6KdsOnGvgXnmgfmp0myi3bcNwj3qfwPAxRKWEuFhvEFF7ceYIz6+1jRZ+yguLFAmUNPEfw==
82128229

82138230
82148231
version "1.9.1"
@@ -8387,12 +8404,13 @@ is-inside-container@^1.0.0:
83878404
dependencies:
83888405
is-docker "^3.0.0"
83898406

8390-
is-ip@^3.1.0:
8391-
version "3.1.0"
8392-
resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-3.1.0.tgz#2ae5ddfafaf05cb8008a62093cf29734f657c5d8"
8393-
integrity sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==
8407+
is-ip@^5.0.0:
8408+
version "5.0.1"
8409+
resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-5.0.1.tgz#bec44442c823e591aa6f4d6fb9081d6a9be17e44"
8410+
integrity sha512-FCsGHdlrOnZQcp0+XT5a+pYowf33itBalCl+7ovNXC/7o5BhIpG14M3OrpPPdBSIQJCm+0M5+9mO7S9VVTTCFw==
83948411
dependencies:
8395-
ip-regex "^4.0.0"
8412+
ip-regex "^5.0.0"
8413+
super-regex "^0.2.0"
83968414

83978415
is-map@^2.0.3:
83988416
version "2.0.3"
@@ -8469,6 +8487,11 @@ is-regex@^1.2.1:
84698487
has-tostringtag "^1.0.2"
84708488
hasown "^2.0.2"
84718489

8490+
is-regexp@^3.0.0:
8491+
version "3.1.0"
8492+
resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-3.1.0.tgz#0235eab9cda5b83f96ac4a263d8c32c9d5ad7422"
8493+
integrity sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==
8494+
84728495
is-set@^2.0.3:
84738496
version "2.0.3"
84748497
resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.3.tgz#8ab209ea424608141372ded6e0cb200ef1d9d01d"
@@ -12848,6 +12871,15 @@ sugarss@^5.0.0:
1284812871
resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-5.0.0.tgz#a97ddc1b5a1598ba283a10b8d73da56a3848fe36"
1284912872
integrity sha512-3//knMoF9btXcxHTbMRckIYjkEzSZ6pZjiaZ3wM6OIpUtQ06Uwqc0XgAr6jf+U74cLLTV/BEgmHWoeXPC+NhdQ==
1285012873

12874+
super-regex@^0.2.0:
12875+
version "0.2.0"
12876+
resolved "https://registry.yarnpkg.com/super-regex/-/super-regex-0.2.0.tgz#dc1e071e55cdcf56930eb6271f73653a655b2642"
12877+
integrity sha512-WZzIx3rC1CvbMDloLsVw0lkZVKJWbrkJ0k1ghKFmcnPrW1+jWbgTkTEWVtD9lMdmI4jZEz40+naBxl1dCUhXXw==
12878+
dependencies:
12879+
clone-regexp "^3.0.0"
12880+
function-timeout "^0.1.0"
12881+
time-span "^5.1.0"
12882+
1285112883
supercluster@^8.0.1:
1285212884
version "8.0.1"
1285312885
resolved "https://registry.yarnpkg.com/supercluster/-/supercluster-8.0.1.tgz#9946ba123538e9e9ab15de472531f604e7372df5"
@@ -13089,6 +13121,13 @@ thunky@^1.0.2:
1308913121
resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
1309013122
integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==
1309113123

13124+
time-span@^5.1.0:
13125+
version "5.1.0"
13126+
resolved "https://registry.yarnpkg.com/time-span/-/time-span-5.1.0.tgz#80c76cf5a0ca28e0842d3f10a4e99034ce94b90d"
13127+
integrity sha512-75voc/9G4rDIJleOo4jPvN4/YC4GRZrY8yy1uU4lwrB3XEQbWve8zXoO5No4eFrGcTAMYyoY67p8jRQdtA1HbA==
13128+
dependencies:
13129+
convert-hrtime "^5.0.0"
13130+
1309213131
tiny-invariant@^1.0.6, tiny-invariant@^1.3.3:
1309313132
version "1.3.3"
1309413133
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.3.tgz#46680b7a873a0d5d10005995eb90a70d74d60127"

0 commit comments

Comments
 (0)