@scaleway/regex 3.1.0 → 3.1.2

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/CHANGELOG.md CHANGED
@@ -1,39 +1,43 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1380](https://github.com/scaleway/scaleway-lib/pull/1380) [`c0e0d51`](https://github.com/scaleway/scaleway-lib/commit/c0e0d5104680149f9b38ae509b17d14a66c4d733) Thanks [@QuiiBz](https://github.com/QuiiBz)! - Add `exports` field & fix package lint errors
8
+
9
+ ## 3.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1254](https://github.com/scaleway/scaleway-lib/pull/1254) [`1af34cb`](https://github.com/scaleway/scaleway-lib/commit/1af34cb8a49cb1d5fd5ddaf608df4d1c160b2e10) Thanks [@ModuloM](https://github.com/ModuloM)! - Add Scaleway access key regex.
14
+
3
15
  All notable changes to this project will be documented in this file.
4
16
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
17
 
6
18
  ## 3.1.0 (2023-01-12)
7
19
 
8
-
9
20
  ### :package: Chore
10
21
 
11
- * **release:** publish ([22abd68](https://github.com/scaleway/scaleway-lib/commit/22abd687033bcd8c7cd187c8a9370c02fe7c0ef4))
12
-
22
+ - **release:** publish ([22abd68](https://github.com/scaleway/scaleway-lib/commit/22abd687033bcd8c7cd187c8a9370c02fe7c0ef4))
13
23
 
14
24
  ### :gear: Features
15
25
 
16
- * **regex:** advanced domain regex for non ASCII characters ([#1156](https://github.com/scaleway/scaleway-lib/issues/1156)) ([6b896f8](https://github.com/scaleway/scaleway-lib/commit/6b896f824a773e0fa342357e11074551688429e3))
17
-
18
-
26
+ - **regex:** advanced domain regex for non ASCII characters ([#1156](https://github.com/scaleway/scaleway-lib/issues/1156)) ([6b896f8](https://github.com/scaleway/scaleway-lib/commit/6b896f824a773e0fa342357e11074551688429e3))
19
27
 
20
28
  ## 3.0.0 (2023-01-06)
21
29
 
22
-
23
30
  ### ⚠ BREAKING CHANGES
24
31
 
25
- * packages are ESM only
32
+ - packages are ESM only
26
33
 
27
34
  ### :package: Chore
28
35
 
29
- * **release:** publish ([20c9d4f](https://github.com/scaleway/scaleway-lib/commit/20c9d4fb39822245252bf362bc7a8d26127e511d))
30
-
36
+ - **release:** publish ([20c9d4f](https://github.com/scaleway/scaleway-lib/commit/20c9d4fb39822245252bf362bc7a8d26127e511d))
31
37
 
32
38
  ### :gear: Features
33
39
 
34
- * publish packages as ESM only ([#1145](https://github.com/scaleway/scaleway-lib/issues/1145)) ([4c25097](https://github.com/scaleway/scaleway-lib/commit/4c25097254a5ba7f0a5dbb6fdf5d6578a75f777a))
35
-
36
-
40
+ - publish packages as ESM only ([#1145](https://github.com/scaleway/scaleway-lib/issues/1145)) ([4c25097](https://github.com/scaleway/scaleway-lib/commit/4c25097254a5ba7f0a5dbb6fdf5d6578a75f777a))
37
41
 
38
42
  ## 2.9.1 (2022-12-29)
39
43
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ declare const accessKeyRegex: RegExp;
1
2
  declare const alpha: RegExp;
2
3
  declare const alphaLower: RegExp;
3
4
  declare const alphanum: RegExp;
@@ -41,4 +42,4 @@ declare const ipv6Cidr: RegExp;
41
42
  declare const reverseDNS: RegExp;
42
43
  declare const dashedIpv4: RegExp;
43
44
 
44
- export { absoluteLinuxPath, advancedDomainName, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, dashedIpv4, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, reverseDNS, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
45
+ export { absoluteLinuxPath, accessKeyRegex, advancedDomainName, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, dashedIpv4, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, reverseDNS, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ const accessKeyRegex = /^SCW[A-Z0-9]{17}$/i;
1
2
  const alpha = /^[a-zA-Z]*$/;
2
3
  const alphaLower = /^[a-z]+$/;
3
4
  const alphanum = /^[a-zA-Z0-9]*$/;
@@ -57,4 +58,4 @@ const ipv6Cidr = new RegExp(`^${cidrv6}$`);
57
58
  const reverseDNS = /^[a-z0-9-]+(\.[a-z0-9-]{1,63})+(\.)$/;
58
59
  const dashedIpv4 = /(\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(-(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}/;
59
60
 
60
- export { absoluteLinuxPath, advancedDomainName, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, dashedIpv4, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, reverseDNS, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
61
+ export { absoluteLinuxPath, accessKeyRegex, advancedDomainName, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, dashedIpv4, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, reverseDNS, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@scaleway/regex",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "A small utility to use regex",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=14.x"
8
8
  },
9
9
  "sideEffects": false,
10
- "main": "dist/index.js",
11
- "module": "dist/index.js",
12
- "types": "dist/index.d.ts",
10
+ "exports": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
13
14
  "publishConfig": {
14
15
  "access": "public"
15
16
  },
@@ -18,6 +19,5 @@
18
19
  "url": "https://github.com/scaleway/scaleway-lib",
19
20
  "directory": "packages/regex"
20
21
  },
21
- "license": "MIT",
22
- "gitHead": "9d6de7b63065f53774cb64b0e5a46a868dc9933a"
23
- }
22
+ "license": "MIT"
23
+ }