summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cidr-regex
diff options
context:
space:
mode:
authornpm CLI robot <npm-cli+bot@github.com>2023-03-31 06:38:48 -0700
committerGitHub <noreply@github.com>2023-03-31 13:38:48 +0000
commit0517e19310281bb8ab95afa8a29d02cd0de07354 (patch)
tree3f037182eae8eab9ae361dc92e1bce51d2d0bae9 /deps/npm/node_modules/cidr-regex
parentb74b9ddb7b0161e7090a9ec2fd2b1358b17b0e23 (diff)
downloadnode-new-0517e19310281bb8ab95afa8a29d02cd0de07354.tar.gz
deps: upgrade npm to 9.6.3
PR-URL: https://github.com/nodejs/node/pull/47325 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luke Karrys <luke@lukekarrys.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/cidr-regex')
-rw-r--r--deps/npm/node_modules/cidr-regex/index.d.ts55
1 files changed, 0 insertions, 55 deletions
diff --git a/deps/npm/node_modules/cidr-regex/index.d.ts b/deps/npm/node_modules/cidr-regex/index.d.ts
deleted file mode 100644
index 9099caecc8..0000000000
--- a/deps/npm/node_modules/cidr-regex/index.d.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-declare namespace ip {
- interface Options {
- /**
- Only match an exact string. Useful with `RegExp#test()` to check if a string is a CIDR IP address. *(`false` matches any CIDR IP address in a string)*
-
- @default false
- */
- readonly exact?: boolean;
- }
-}
-
-declare const ip: {
- /**
- Regular expression for matching IP addresses in CIDR notation.
-
- @returns A regex for matching both IPv4 and IPv6 CIDR IP addresses.
-
- @example
- ```
- import cidrRegex = require("cidr-regex");
-
- // Contains a CIDR IP address?
- cidrRegex().test("foo 192.168.0.1/24");
- //=> true
-
- // Is a CIDR IP address?
- cidrRegex({exact: true}).test("foo 192.168.0.1/24");
- //=> false
-
- "foo 192.168.0.1/24 bar 1:2:3:4:5:6:7:8/64 baz".match(cidrRegex());
- //=> ["192.168.0.1/24", "1:2:3:4:5:6:7:8/64"]
- ```
- */
- (options?: ip.Options): RegExp;
-
- /**
- @returns A regex for matching IPv4 CIDR IP addresses.
- */
- v4(options?: ip.Options): RegExp;
-
- /**
- @returns A regex for matching IPv6 CIDR IP addresses.
-
- @example
- ```
- import cidrRegex = require("cidr-regex");
-
- cidrRegex.v6({exact: true}).test("1:2:3:4:5:6:7:8/64");
- //=> true
- ```
- */
- v6(options?: ip.Options): RegExp;
-};
-
-export = ip;