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.
@@ -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)) {
@@ -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)) {
@@ -5,17 +5,17 @@
5
5
  * @public
6
6
  */
7
7
  const REGEX = {
8
- ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|locker|club|box|uni\.eth|cb\.id|world\.id|gemini\.eth|int\.eth)$/i,
9
- BASENAMES: /^.+\.base(\.eth)?$/i,
10
- LINEA: /^.+\.linea(\.eth)?$/i,
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: /^.+\.lens$/i,
12
+ LENS: /^[^.].+\.lens$/i,
13
+ SNS: /^[^.].+\.sol$/i,
13
14
  CLUSTER: /^[\w-]+\/[\w-]+$/,
14
- SPACE_ID: /^.+\.(?:bnb|arb)$/i,
15
- SEEKERID: /^.+\.skr$/i,
16
- UNSTOPPABLE_DOMAINS: /^.+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
17
- DOTBIT: /^.+\.bit$/i,
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}$/,
@@ -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;
@@ -3,17 +3,17 @@
3
3
  * @public
4
4
  */
5
5
  const REGEX = {
6
- ENS: /^.+\.(?:eth|xyz|bio|app|luxe|kred|art|ceo|locker|club|box|uni\.eth|cb\.id|world\.id|gemini\.eth|int\.eth)$/i,
7
- BASENAMES: /^.+\.base(\.eth)?$/i,
8
- LINEA: /^.+\.linea(\.eth)?$/i,
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: /^.+\.lens$/i,
10
+ LENS: /^[^.].+\.lens$/i,
11
+ SNS: /^[^.].+\.sol$/i,
11
12
  CLUSTER: /^[\w-]+\/[\w-]+$/,
12
- SPACE_ID: /^.+\.(?:bnb|arb)$/i,
13
- SEEKERID: /^.+\.skr$/i,
14
- UNSTOPPABLE_DOMAINS: /^.+\.(?:crypto|888|nft|blockchain|bitcoin|dao|x|klever|hi|zil|kresus|polygon|wallet|binanceus|anime|go|manga|eth)$/i,
15
- DOTBIT: /^.+\.bit$/i,
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}$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web3bio-profile-kit",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "React hooks for querying ENS, Farcaster, Lens and Web3 universal profiles",
5
5
  "author": "web3bio",
6
6
  "license": "MIT",