cidr-regex 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +12 -12
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Options = {
|
|
2
|
+
/**
|
|
3
|
+
Only match an exact string. Useful with `RegExp#test()` to check if a string is an IP address. *(`false` matches any IP address in a string)*
|
|
4
|
+
|
|
5
|
+
@defaultValue false
|
|
6
|
+
*/
|
|
7
|
+
readonly exact?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const cidrRegex: {
|
|
10
|
+
({ exact }?: Options): RegExp;
|
|
11
|
+
v4({ exact }?: Options): RegExp;
|
|
12
|
+
v6({ exact }?: Options): RegExp;
|
|
13
|
+
};
|
|
14
|
+
export declare const v4: ({ exact }?: Options) => RegExp;
|
|
15
|
+
export declare const v6: ({ exact }?: Options) => RegExp;
|
|
16
|
+
export default cidrRegex;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAEA,KAAK,OAAO,GAAG;IACb;;;;MAIE;IACF,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAA;AAWD,QAAA,MAAM,SAAS;iBAAa,OAAO;mBACQ,OAAO;mBACP,OAAO;CAFmE,CAAC;AACtH,eAAO,MAAM,EAAE,eAA4B,OAAO,WAA2D,CAAC;AAC9G,eAAO,MAAM,EAAE,eAA4B,OAAO,WAA2D,CAAC;AAC9G,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cidr-regex",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Regular expression for matching IP addresses in CIDR notation",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"contributors": [
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"ip-regex": "^5.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "22.
|
|
26
|
+
"@types/node": "22.13.4",
|
|
27
27
|
"eslint": "8.57.0",
|
|
28
|
-
"eslint-config-silverwind": "
|
|
29
|
-
"eslint-config-silverwind-typescript": "
|
|
30
|
-
"typescript": "5.
|
|
31
|
-
"typescript-config-silverwind": "
|
|
32
|
-
"updates": "16.4.
|
|
33
|
-
"versions": "12.1.
|
|
34
|
-
"vite": "
|
|
35
|
-
"vite-config-silverwind": "
|
|
36
|
-
"vitest": "
|
|
37
|
-
"vitest-config-silverwind": "
|
|
28
|
+
"eslint-config-silverwind": "99.0.0",
|
|
29
|
+
"eslint-config-silverwind-typescript": "9.2.2",
|
|
30
|
+
"typescript": "5.7.3",
|
|
31
|
+
"typescript-config-silverwind": "8.0.0",
|
|
32
|
+
"updates": "16.4.2",
|
|
33
|
+
"versions": "12.1.3",
|
|
34
|
+
"vite": "6.1.0",
|
|
35
|
+
"vite-config-silverwind": "4.0.0",
|
|
36
|
+
"vitest": "3.0.5",
|
|
37
|
+
"vitest-config-silverwind": "10.0.0"
|
|
38
38
|
}
|
|
39
39
|
}
|