web3bio-profile-kit 0.1.23 → 0.1.25
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/utils/helpers.cjs +1 -1
- package/dist/utils/helpers.js +1 -1
- package/dist/utils/regex.cjs +9 -9
- package/dist/utils/regex.d.ts +1 -1
- package/dist/utils/regex.js +9 -9
- package/package.json +1 -1
package/dist/utils/helpers.cjs
CHANGED
|
@@ -141,7 +141,7 @@ const platformMap = new Map([
|
|
|
141
141
|
* Detect platform from identity string based on regex patterns
|
|
142
142
|
*/
|
|
143
143
|
const detectPlatform = (term) => {
|
|
144
|
-
if (/\.(farcaster\.eth|farcaster)$/.test(term))
|
|
144
|
+
if (/\.(farcaster\.eth|farcaster|fcast\.id)$/.test(term))
|
|
145
145
|
return platform.Platform.farcaster;
|
|
146
146
|
for (const [regex, Platform] of platformMap) {
|
|
147
147
|
if (regex.test(term)) {
|
package/dist/utils/helpers.js
CHANGED
|
@@ -139,7 +139,7 @@ const platformMap = new Map([
|
|
|
139
139
|
* Detect platform from identity string based on regex patterns
|
|
140
140
|
*/
|
|
141
141
|
const detectPlatform = (term) => {
|
|
142
|
-
if (/\.(farcaster\.eth|farcaster)$/.test(term))
|
|
142
|
+
if (/\.(farcaster\.eth|farcaster|fcast\.id)$/.test(term))
|
|
143
143
|
return Platform.farcaster;
|
|
144
144
|
for (const [regex, Platform] of platformMap) {
|
|
145
145
|
if (regex.test(term)) {
|
package/dist/utils/regex.cjs
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
const REGEX = {
|
|
8
|
-
ENS:
|
|
9
|
-
BASENAMES:
|
|
10
|
-
LINEA:
|
|
8
|
+
ENS: /^[^.].+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|locker|club|box|id)$/i,
|
|
9
|
+
BASENAMES: /^[^.].+\.base(\.eth)?$/i,
|
|
10
|
+
LINEA: /^[^.].+\.linea(\.eth)?$/i,
|
|
11
11
|
FARCASTER: /^(?:[A-Za-z0-9_-]{1,61}(?:\.(?:eth|farcaster|fcast\.id|farcaster\.eth))?|farcaster,#\d+)$/i,
|
|
12
|
-
LENS:
|
|
12
|
+
LENS: /^[^.].+\.lens$/i,
|
|
13
|
+
SNS: /^[^.].+\.sol$/i,
|
|
13
14
|
CLUSTER: /^[\w-]+\/[\w-]+$/,
|
|
14
|
-
SPACE_ID:
|
|
15
|
-
SEEKERID:
|
|
16
|
-
UNSTOPPABLE_DOMAINS:
|
|
17
|
-
DOTBIT:
|
|
18
|
-
SNS: /^.+\.sol$/i,
|
|
15
|
+
SPACE_ID: /^[^.].+\.(?:bnb|arb)$/i,
|
|
16
|
+
SEEKERID: /^[^.].+\.skr$/i,
|
|
17
|
+
UNSTOPPABLE_DOMAINS: /^[^.].+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
|
|
18
|
+
DOTBIT: /^[^.].+\.bit$/i,
|
|
19
19
|
ETH_ADDRESS: /^0x[a-fA-F0-9]{40}$/i,
|
|
20
20
|
BTC_ADDRESS: /^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[qp][a-z0-9]{11,71})$/,
|
|
21
21
|
SOLANA_ADDRESS: /^[1-9A-HJ-NP-Za-km-z]{32,44}$/,
|
package/dist/utils/regex.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ export declare const REGEX: {
|
|
|
8
8
|
LINEA: RegExp;
|
|
9
9
|
FARCASTER: RegExp;
|
|
10
10
|
LENS: RegExp;
|
|
11
|
+
SNS: RegExp;
|
|
11
12
|
CLUSTER: RegExp;
|
|
12
13
|
SPACE_ID: RegExp;
|
|
13
14
|
SEEKERID: RegExp;
|
|
14
15
|
UNSTOPPABLE_DOMAINS: RegExp;
|
|
15
16
|
DOTBIT: RegExp;
|
|
16
|
-
SNS: RegExp;
|
|
17
17
|
ETH_ADDRESS: RegExp;
|
|
18
18
|
BTC_ADDRESS: RegExp;
|
|
19
19
|
SOLANA_ADDRESS: RegExp;
|
package/dist/utils/regex.js
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
const REGEX = {
|
|
6
|
-
ENS:
|
|
7
|
-
BASENAMES:
|
|
8
|
-
LINEA:
|
|
6
|
+
ENS: /^[^.].+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|locker|club|box|id)$/i,
|
|
7
|
+
BASENAMES: /^[^.].+\.base(\.eth)?$/i,
|
|
8
|
+
LINEA: /^[^.].+\.linea(\.eth)?$/i,
|
|
9
9
|
FARCASTER: /^(?:[A-Za-z0-9_-]{1,61}(?:\.(?:eth|farcaster|fcast\.id|farcaster\.eth))?|farcaster,#\d+)$/i,
|
|
10
|
-
LENS:
|
|
10
|
+
LENS: /^[^.].+\.lens$/i,
|
|
11
|
+
SNS: /^[^.].+\.sol$/i,
|
|
11
12
|
CLUSTER: /^[\w-]+\/[\w-]+$/,
|
|
12
|
-
SPACE_ID:
|
|
13
|
-
SEEKERID:
|
|
14
|
-
UNSTOPPABLE_DOMAINS:
|
|
15
|
-
DOTBIT:
|
|
16
|
-
SNS: /^.+\.sol$/i,
|
|
13
|
+
SPACE_ID: /^[^.].+\.(?:bnb|arb)$/i,
|
|
14
|
+
SEEKERID: /^[^.].+\.skr$/i,
|
|
15
|
+
UNSTOPPABLE_DOMAINS: /^[^.].+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
|
|
16
|
+
DOTBIT: /^[^.].+\.bit$/i,
|
|
17
17
|
ETH_ADDRESS: /^0x[a-fA-F0-9]{40}$/i,
|
|
18
18
|
BTC_ADDRESS: /^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[qp][a-z0-9]{11,71})$/,
|
|
19
19
|
SOLANA_ADDRESS: /^[1-9A-HJ-NP-Za-km-z]{32,44}$/,
|