@gardenfi/utils 2.3.0 → 2.3.1
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/index100.cjs +1 -1
- package/dist/index100.js +41 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +17 -50
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +6 -16
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +8 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -5
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +108 -13
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +8 -3
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +6 -26
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +7 -4
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +21 -6
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +8 -88
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +29 -123
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +13 -7
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +7 -21
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +9 -17
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +15 -39
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +73 -21
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +31 -7
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +46 -6
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +14 -106
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +14 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +10 -4
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +17 -9
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +66 -2
- package/dist/index124.cjs +1 -2
- package/dist/index124.js +12 -3
- package/dist/index125.cjs +1 -20
- package/dist/index125.js +13 -326
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +8 -13
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +10 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +27 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +14 -7
- package/dist/index130.cjs +3 -3
- package/dist/index130.js +87 -192
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +51 -31
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +23 -20
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +117 -5
- package/dist/index134.cjs +20 -1
- package/dist/index134.js +325 -72
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +81 -5
- package/dist/index136.cjs +4 -1
- package/dist/index136.js +194 -5
- package/dist/index137.cjs +1 -9
- package/dist/index137.js +16 -33
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +24 -110
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +178 -3
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +11 -22
- package/dist/index141.cjs +1 -3
- package/dist/index141.js +24 -451
- package/dist/index142.cjs +1 -2
- package/dist/index142.js +3 -55
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +89 -26
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +37 -33
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +15 -35
- package/dist/index146.cjs +1 -4
- package/dist/index146.js +2 -195
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +74 -7
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +137 -11
- package/dist/index149.cjs +3 -1
- package/dist/index149.js +446 -13
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +60 -23
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +6 -8
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +69 -55
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -45
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +3 -8
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +14 -7
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +87 -15
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +13 -18
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +43 -19
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +37 -50
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +7 -11
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +34 -157
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +8 -21
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +9 -127
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +14 -37
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +95 -6
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +20 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -191
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +7 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +24 -62
- package/dist/index170.cjs +2 -1
- package/dist/index170.js +25 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +9 -20
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +8 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +9 -22
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +11 -11
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +12 -33
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +15 -3
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +7 -18
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +19 -25
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +6 -36
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +21 -10
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +39 -24
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +17 -28
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +21 -65
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +80 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +43 -32
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -24
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +52 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +5 -14
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +5 -103
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +11 -80
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +13 -5
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +13 -6
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +151 -39
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +35 -13
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +30 -41
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +9 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +68 -11
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +9 -19
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +69 -76
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +20 -2
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +110 -37
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +23 -111
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +50 -49
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +105 -31
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +9 -9
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +2 -7
- package/dist/index209.cjs +2 -1
- package/dist/index209.js +3 -7
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +13 -11
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +4 -10
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +2 -14
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +31 -32
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +22 -5
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +5 -7
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +5 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +5 -20
- package/dist/index218.cjs +9 -1
- package/dist/index218.js +33 -29
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -21
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +26 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +33 -17
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +35 -10
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +7 -20
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +18 -22
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -5
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +8 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +7 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +150 -93
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +128 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +27 -18
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +182 -162
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +4 -18
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +3 -11
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +19 -15
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +16 -22
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +34 -30
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +3 -2
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +27 -13
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +24 -11
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +27 -46
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +27 -11
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +42 -7
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +78 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +2 -14
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +33 -10
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +49 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +6 -24
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +6 -12
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +32 -24
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +5 -14
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +6 -13
- package/dist/index252.cjs +1 -2
- package/dist/index252.js +3 -24
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +17 -52
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +10 -25
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +8 -15
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +104 -5
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -14
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +18 -10
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +17 -16
- package/dist/index261.cjs +1 -2
- package/dist/index261.js +223 -40
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +140 -2
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +146 -5
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +103 -10
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +6 -19
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +42 -8
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +74 -62
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +2 -66
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +131 -177
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +3 -22
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +134 -21
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +9 -76
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +99 -26
- package/dist/index274.cjs +2 -1
- package/dist/index274.js +129 -11
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +6 -13
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +7 -13
- package/dist/index277.cjs +2 -2
- package/dist/index277.js +41 -18
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +2 -15
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +5 -11
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +10 -103
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +19 -6
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +8 -224
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +66 -6
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +66 -7
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +184 -24
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +21 -18
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +38 -142
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +76 -3
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +33 -133
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +9 -148
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +13 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +9 -110
- package/dist/index293.cjs +2 -2
- package/dist/index293.js +18 -134
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +13 -138
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -42
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +22 -74
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +20 -2
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +1 -1
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +698 -68
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +178 -675
- package/dist/index302.cjs +2 -1
- package/dist/index302.js +63 -198
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +4 -66
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +40 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +7 -40
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +62 -7
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +72 -57
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +4 -78
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +195 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +67 -193
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +3 -3
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +45 -31
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +24 -28
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -33
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +15 -44
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +5 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +9 -37
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +11 -58
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -37
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -15
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -8
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +56 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +16 -45
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +5 -31
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +170 -8
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +99 -64
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +21 -28
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +15 -70
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +10 -19
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +18 -110
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +120 -55
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +56 -20
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +22 -39
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +10 -37
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +18 -56
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -166
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +10 -40
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +31 -8
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +16 -36
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +16 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +7 -50
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +29 -81
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +20 -37
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +21 -7
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +58 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +40 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +37 -8
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +166 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +111 -7
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +30 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -47
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +4 -14
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +59 -16
- package/dist/index79.cjs +2 -1
- package/dist/index79.js +54 -13
- package/dist/index80.cjs +3 -1
- package/dist/index80.js +215 -6
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +12 -34
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +12 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +24 -8
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +27 -25
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +47 -10
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +19 -14
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +10 -116
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +38 -79
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -177
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +7 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +30 -12
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +36 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +35 -94
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +9 -75
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +29 -89
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -138
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +82 -66
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +50 -23
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +20 -106
- package/package.json +1 -1
package/dist/index289.js
CHANGED
|
@@ -1,143 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return !1;
|
|
12
|
-
} catch (e) {
|
|
13
|
-
return typeof e == "object" && typeof e.response < "u" || !globalThis.hasOwnProperty("Image") ? !1 : new Promise((n) => {
|
|
14
|
-
const r = new Image();
|
|
15
|
-
r.onload = () => {
|
|
16
|
-
n(!0);
|
|
17
|
-
}, r.onerror = () => {
|
|
18
|
-
n(!1);
|
|
19
|
-
}, r.src = t;
|
|
1
|
+
import { BaseError as r } from "./index277.js";
|
|
2
|
+
class u extends r {
|
|
3
|
+
constructor({ signature: e, type: n }) {
|
|
4
|
+
super(`Invalid ${n} signature.`, {
|
|
5
|
+
details: e
|
|
6
|
+
}), Object.defineProperty(this, "name", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: "InvalidSignatureError"
|
|
20
11
|
});
|
|
21
12
|
}
|
|
22
13
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
let I = t;
|
|
33
|
-
return e != null && e.arweave && (I = t.replace(/https:\/\/arweave.net/g, e == null ? void 0 : e.arweave)), { uri: I, isOnChain: !1, isEncoded: !1 };
|
|
34
|
-
}
|
|
35
|
-
if ((u || h) && s)
|
|
36
|
-
return {
|
|
37
|
-
uri: `${r}/${u ? "ipns" : "ipfs"}/${s}${m}`,
|
|
38
|
-
isOnChain: !1,
|
|
39
|
-
isEncoded: !1
|
|
40
|
-
};
|
|
41
|
-
if (o === "ar:/" && s)
|
|
42
|
-
return {
|
|
43
|
-
uri: `${a}/${s}${m || ""}`,
|
|
44
|
-
isOnChain: !1,
|
|
45
|
-
isEncoded: !1
|
|
46
|
-
};
|
|
47
|
-
let c = t.replace(C, "");
|
|
48
|
-
if (c.startsWith("<svg") && (c = `data:image/svg+xml;base64,${btoa(c)}`), c.startsWith("data:") || c.startsWith("{"))
|
|
49
|
-
return {
|
|
50
|
-
uri: c,
|
|
51
|
-
isOnChain: !0,
|
|
52
|
-
isEncoded: !1
|
|
53
|
-
};
|
|
54
|
-
throw new d({ uri: t });
|
|
55
|
-
}
|
|
56
|
-
function R(t) {
|
|
57
|
-
if (typeof t != "object" || !("image" in t) && !("image_url" in t) && !("image_data" in t))
|
|
58
|
-
throw new A({ data: t });
|
|
59
|
-
return t.image || t.image_url || t.image_data;
|
|
60
|
-
}
|
|
61
|
-
async function O({ gatewayUrls: t, uri: e }) {
|
|
62
|
-
try {
|
|
63
|
-
const n = await fetch(e).then((a) => a.json());
|
|
64
|
-
return await _({
|
|
65
|
-
gatewayUrls: t,
|
|
66
|
-
uri: R(n)
|
|
14
|
+
class i extends r {
|
|
15
|
+
constructor({ signature: e }) {
|
|
16
|
+
super("Unknown signature.", {
|
|
17
|
+
details: e
|
|
18
|
+
}), Object.defineProperty(this, "name", {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
configurable: !0,
|
|
21
|
+
writable: !0,
|
|
22
|
+
value: "UnknownSignatureError"
|
|
67
23
|
});
|
|
68
|
-
} catch {
|
|
69
|
-
throw new d({ uri: e });
|
|
70
24
|
}
|
|
71
25
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (!i || i.toLowerCase() !== "eip155")
|
|
83
|
-
throw new f({ reason: "Only EIP-155 supported" });
|
|
84
|
-
if (!o)
|
|
85
|
-
throw new f({ reason: "Chain ID not found" });
|
|
86
|
-
if (!s)
|
|
87
|
-
throw new f({
|
|
88
|
-
reason: "Contract address not found"
|
|
26
|
+
class s extends r {
|
|
27
|
+
constructor({ signature: e }) {
|
|
28
|
+
super("Invalid struct signature.", {
|
|
29
|
+
details: e,
|
|
30
|
+
metaMessages: ["No properties exist."]
|
|
31
|
+
}), Object.defineProperty(this, "name", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
configurable: !0,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: "InvalidStructSignatureError"
|
|
89
36
|
});
|
|
90
|
-
|
|
91
|
-
throw new f({ reason: "Token ID not found" });
|
|
92
|
-
if (!p)
|
|
93
|
-
throw new f({ reason: "ERC namespace not found" });
|
|
94
|
-
return {
|
|
95
|
-
chainID: Number.parseInt(o),
|
|
96
|
-
namespace: p.toLowerCase(),
|
|
97
|
-
contractAddress: s,
|
|
98
|
-
tokenID: a
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
async function P(t, { nft: e }) {
|
|
102
|
-
if (e.namespace === "erc721")
|
|
103
|
-
return g(t, {
|
|
104
|
-
address: e.contractAddress,
|
|
105
|
-
abi: [
|
|
106
|
-
{
|
|
107
|
-
name: "tokenURI",
|
|
108
|
-
type: "function",
|
|
109
|
-
stateMutability: "view",
|
|
110
|
-
inputs: [{ name: "tokenId", type: "uint256" }],
|
|
111
|
-
outputs: [{ name: "", type: "string" }]
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
functionName: "tokenURI",
|
|
115
|
-
args: [BigInt(e.tokenID)]
|
|
116
|
-
});
|
|
117
|
-
if (e.namespace === "erc1155")
|
|
118
|
-
return g(t, {
|
|
119
|
-
address: e.contractAddress,
|
|
120
|
-
abi: [
|
|
121
|
-
{
|
|
122
|
-
name: "uri",
|
|
123
|
-
type: "function",
|
|
124
|
-
stateMutability: "view",
|
|
125
|
-
inputs: [{ name: "_id", type: "uint256" }],
|
|
126
|
-
outputs: [{ name: "", type: "string" }]
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
functionName: "uri",
|
|
130
|
-
args: [BigInt(e.tokenID)]
|
|
131
|
-
});
|
|
132
|
-
throw new v({ namespace: e.namespace });
|
|
37
|
+
}
|
|
133
38
|
}
|
|
134
39
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
P as getNftTokenUri,
|
|
139
|
-
k as isImageUri,
|
|
140
|
-
_ as parseAvatarUri,
|
|
141
|
-
z as parseNftUri,
|
|
142
|
-
N as resolveAvatarUri
|
|
40
|
+
u as InvalidSignatureError,
|
|
41
|
+
s as InvalidStructSignatureError,
|
|
42
|
+
i as UnknownSignatureError
|
|
143
43
|
};
|
package/dist/index29.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index197.cjs"),n=require("./index203.cjs");function l(e){const{key:t="public",name:i="Public Client"}=e;return c.createClient({...e,key:t,name:i,type:"publicClient"}).extend(n.publicActions)}exports.createPublicClient=l;
|
package/dist/index29.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createClient as n } from "./
|
|
2
|
-
import { publicActions as c } from "./
|
|
1
|
+
import { createClient as n } from "./index197.js";
|
|
2
|
+
import { publicActions as c } from "./index203.js";
|
|
3
3
|
function u(t) {
|
|
4
4
|
const { key: e = "public", name: i = "Public Client" } = t;
|
|
5
5
|
return n({
|
package/dist/index290.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index277.cjs");class t extends s.BaseError{constructor({current:r,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${r.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}exports.InvalidParenthesisError=t;
|
package/dist/index290.js
CHANGED
|
@@ -1,158 +1,19 @@
|
|
|
1
|
-
import { BaseError as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function y(t, e = {}) {
|
|
6
|
-
const { strict: r = !1 } = e;
|
|
7
|
-
if (!t)
|
|
8
|
-
throw new f(t);
|
|
9
|
-
if (typeof t != "string")
|
|
10
|
-
throw new f(t);
|
|
11
|
-
if (r && !/^0x[0-9a-fA-F]*$/.test(t))
|
|
12
|
-
throw new l(t);
|
|
13
|
-
if (!t.startsWith("0x"))
|
|
14
|
-
throw new l(t);
|
|
15
|
-
}
|
|
16
|
-
function B(...t) {
|
|
17
|
-
return `0x${t.reduce((e, r) => e + r.replace("0x", ""), "")}`;
|
|
18
|
-
}
|
|
19
|
-
function P(t, e = {}) {
|
|
20
|
-
const r = `0x${Number(t)}`;
|
|
21
|
-
return typeof e.size == "number" ? (g(r, e.size), x(r, e.size)) : r;
|
|
22
|
-
}
|
|
23
|
-
function w(t, e = {}) {
|
|
24
|
-
let r = "";
|
|
25
|
-
for (let i = 0; i < t.length; i++)
|
|
26
|
-
r += h[t[i]];
|
|
27
|
-
const n = `0x${r}`;
|
|
28
|
-
return typeof e.size == "number" ? (g(n, e.size), E(n, e.size)) : n;
|
|
29
|
-
}
|
|
30
|
-
function V(t, e = {}) {
|
|
31
|
-
const { signed: r, size: n } = e, i = BigInt(t);
|
|
32
|
-
let s;
|
|
33
|
-
n ? r ? s = (1n << BigInt(n) * 8n - 1n) - 1n : s = 2n ** (BigInt(n) * 8n) - 1n : typeof t == "number" && (s = BigInt(Number.MAX_SAFE_INTEGER));
|
|
34
|
-
const u = typeof s == "bigint" && r ? -s - 1n : 0;
|
|
35
|
-
if (s && i > s || i < u) {
|
|
36
|
-
const a = typeof t == "bigint" ? "n" : "";
|
|
37
|
-
throw new O({
|
|
38
|
-
max: s ? `${s}${a}` : void 0,
|
|
39
|
-
min: `${u}${a}`,
|
|
40
|
-
signed: r,
|
|
41
|
-
size: n,
|
|
42
|
-
value: `${t}${a}`
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const c = `0x${(r && i < 0 ? (1n << BigInt(n * 8)) + BigInt(i) : i).toString(16)}`;
|
|
46
|
-
return n ? x(c, n) : c;
|
|
47
|
-
}
|
|
48
|
-
function j(t, e = {}) {
|
|
49
|
-
return w($.encode(t), e);
|
|
50
|
-
}
|
|
51
|
-
function x(t, e) {
|
|
52
|
-
return d(t, { dir: "left", size: e });
|
|
53
|
-
}
|
|
54
|
-
function E(t, e) {
|
|
55
|
-
return d(t, { dir: "right", size: e });
|
|
56
|
-
}
|
|
57
|
-
function v(t, e, r, n = {}) {
|
|
58
|
-
const { strict: i } = n;
|
|
59
|
-
p(t, e);
|
|
60
|
-
const s = `0x${t.replace("0x", "").slice((e ?? 0) * 2, (r ?? t.length) * 2)}`;
|
|
61
|
-
return i && m(s, e, r), s;
|
|
62
|
-
}
|
|
63
|
-
function A(t) {
|
|
64
|
-
return Math.ceil((t.length - 2) / 2);
|
|
65
|
-
}
|
|
66
|
-
function N(t, e = {}) {
|
|
67
|
-
const { strict: r = !1 } = e;
|
|
68
|
-
try {
|
|
69
|
-
return y(t, { strict: r }), !0;
|
|
70
|
-
} catch {
|
|
71
|
-
return !1;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
class O extends o {
|
|
75
|
-
constructor({ max: e, min: r, signed: n, size: i, value: s }) {
|
|
76
|
-
super(`Number \`${s}\` is not in safe${i ? ` ${i * 8}-bit` : ""}${n ? " signed" : " unsigned"} integer range ${e ? `(\`${r}\` to \`${e}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
|
|
77
|
-
enumerable: !0,
|
|
78
|
-
configurable: !0,
|
|
79
|
-
writable: !0,
|
|
80
|
-
value: "Hex.IntegerOutOfRangeError"
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
class f extends o {
|
|
85
|
-
constructor(e) {
|
|
86
|
-
super(`Value \`${typeof e == "object" ? b(e) : e}\` of type \`${typeof e}\` is an invalid hex type.`, {
|
|
87
|
-
metaMessages: ['Hex types must be represented as `"0x${string}"`.']
|
|
88
|
-
}), Object.defineProperty(this, "name", {
|
|
89
|
-
enumerable: !0,
|
|
90
|
-
configurable: !0,
|
|
91
|
-
writable: !0,
|
|
92
|
-
value: "Hex.InvalidHexTypeError"
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
class l extends o {
|
|
97
|
-
constructor(e) {
|
|
98
|
-
super(`Value \`${e}\` is an invalid hex value.`, {
|
|
1
|
+
import { BaseError as s } from "./index277.js";
|
|
2
|
+
class n extends s {
|
|
3
|
+
constructor({ current: r, depth: e }) {
|
|
4
|
+
super("Unbalanced parentheses.", {
|
|
99
5
|
metaMessages: [
|
|
100
|
-
|
|
101
|
-
]
|
|
6
|
+
`"${r.trim()}" has too many ${e > 0 ? "opening" : "closing"} parentheses.`
|
|
7
|
+
],
|
|
8
|
+
details: `Depth "${e}"`
|
|
102
9
|
}), Object.defineProperty(this, "name", {
|
|
103
10
|
enumerable: !0,
|
|
104
11
|
configurable: !0,
|
|
105
12
|
writable: !0,
|
|
106
|
-
value: "
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
class _ extends o {
|
|
111
|
-
constructor({ givenSize: e, maxSize: r }) {
|
|
112
|
-
super(`Size cannot exceed \`${r}\` bytes. Given size: \`${e}\` bytes.`), Object.defineProperty(this, "name", {
|
|
113
|
-
enumerable: !0,
|
|
114
|
-
configurable: !0,
|
|
115
|
-
writable: !0,
|
|
116
|
-
value: "Hex.SizeOverflowError"
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
class M extends o {
|
|
121
|
-
constructor({ offset: e, position: r, size: n }) {
|
|
122
|
-
super(`Slice ${r === "start" ? "starting" : "ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
|
|
123
|
-
enumerable: !0,
|
|
124
|
-
configurable: !0,
|
|
125
|
-
writable: !0,
|
|
126
|
-
value: "Hex.SliceOffsetOutOfBoundsError"
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
class R extends o {
|
|
131
|
-
constructor({ size: e, targetSize: r, type: n }) {
|
|
132
|
-
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
133
|
-
enumerable: !0,
|
|
134
|
-
configurable: !0,
|
|
135
|
-
writable: !0,
|
|
136
|
-
value: "Hex.SizeExceedsPaddingSizeError"
|
|
13
|
+
value: "InvalidParenthesisError"
|
|
137
14
|
});
|
|
138
15
|
}
|
|
139
16
|
}
|
|
140
17
|
export {
|
|
141
|
-
|
|
142
|
-
f as InvalidHexTypeError,
|
|
143
|
-
l as InvalidHexValueError,
|
|
144
|
-
R as SizeExceedsPaddingSizeError,
|
|
145
|
-
_ as SizeOverflowError,
|
|
146
|
-
M as SliceOffsetOutOfBoundsError,
|
|
147
|
-
y as assert,
|
|
148
|
-
B as concat,
|
|
149
|
-
P as fromBoolean,
|
|
150
|
-
w as fromBytes,
|
|
151
|
-
V as fromNumber,
|
|
152
|
-
j as fromString,
|
|
153
|
-
x as padLeft,
|
|
154
|
-
E as padRight,
|
|
155
|
-
A as size,
|
|
156
|
-
v as slice,
|
|
157
|
-
N as validate
|
|
18
|
+
n as InvalidParenthesisError
|
|
158
19
|
};
|
package/dist/index291.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index277.cjs");class t extends r.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}exports.CircularReferenceError=t;
|
package/dist/index291.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { BaseError as r } from "./index277.js";
|
|
2
|
+
class a extends r {
|
|
3
|
+
constructor({ type: e }) {
|
|
4
|
+
super("Circular reference detected.", {
|
|
5
|
+
metaMessages: [`Struct "${e}" is a circular reference.`]
|
|
6
|
+
}), Object.defineProperty(this, "name", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: "CircularReferenceError"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
9
13
|
}
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
a as CircularReferenceError
|
|
12
16
|
};
|
package/dist/index292.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const t=e();exports.idCache=t;
|
package/dist/index292.js
CHANGED
|
@@ -1,116 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import { keccak256 as v } from "./index306.js";
|
|
3
|
-
import { validate as $, slice as A, fromString as S } from "./index290.js";
|
|
4
|
-
import { isArgOfType as E, normalizeSignature as p, getAmbiguousTypes as B } from "./index307.js";
|
|
5
|
-
import { parseAbiItem as l } from "./index270.js";
|
|
6
|
-
import { formatAbiItem as h } from "./index263.js";
|
|
7
|
-
function H(e, r = {}) {
|
|
8
|
-
const { prepare: i = !0 } = r, n = Array.isArray(e) ? l(e) : typeof e == "string" ? l(e) : e;
|
|
1
|
+
function r() {
|
|
9
2
|
return {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (u.length === 0)
|
|
17
|
-
throw new d({ name: r });
|
|
18
|
-
if (u.length === 1)
|
|
19
|
-
return {
|
|
20
|
-
...u[0],
|
|
21
|
-
...f ? { hash: s(u[0]) } : {}
|
|
22
|
-
};
|
|
23
|
-
let o;
|
|
24
|
-
for (const t of u) {
|
|
25
|
-
if (!("inputs" in t))
|
|
26
|
-
continue;
|
|
27
|
-
if (!n || n.length === 0) {
|
|
28
|
-
if (!t.inputs || t.inputs.length === 0)
|
|
29
|
-
return {
|
|
30
|
-
...t,
|
|
31
|
-
...f ? { hash: s(t) } : {}
|
|
32
|
-
};
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
if (!t.inputs || t.inputs.length === 0 || t.inputs.length !== n.length)
|
|
36
|
-
continue;
|
|
37
|
-
if (n.every((a, w) => {
|
|
38
|
-
const g = "inputs" in t && t.inputs[w];
|
|
39
|
-
return g ? E(a, g) : !1;
|
|
40
|
-
})) {
|
|
41
|
-
if (o && "inputs" in o && o.inputs) {
|
|
42
|
-
const a = B(t.inputs, o.inputs, n);
|
|
43
|
-
if (a)
|
|
44
|
-
throw new O({
|
|
45
|
-
abiItem: t,
|
|
46
|
-
type: a[0]
|
|
47
|
-
}, {
|
|
48
|
-
abiItem: o,
|
|
49
|
-
type: a[1]
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
o = t;
|
|
3
|
+
current: 0,
|
|
4
|
+
take() {
|
|
5
|
+
return this.current++;
|
|
6
|
+
},
|
|
7
|
+
reset() {
|
|
8
|
+
this.current = 0;
|
|
53
9
|
}
|
|
54
|
-
}
|
|
55
|
-
const c = (() => {
|
|
56
|
-
if (o)
|
|
57
|
-
return o;
|
|
58
|
-
const [t, ...m] = u;
|
|
59
|
-
return { ...t, overloads: m };
|
|
60
|
-
})();
|
|
61
|
-
if (!c)
|
|
62
|
-
throw new d({ name: r });
|
|
63
|
-
return {
|
|
64
|
-
...c,
|
|
65
|
-
...f ? { hash: s(c) } : {}
|
|
66
10
|
};
|
|
67
11
|
}
|
|
68
|
-
|
|
69
|
-
return A(s(e), 0, 4);
|
|
70
|
-
}
|
|
71
|
-
function F(e) {
|
|
72
|
-
const r = typeof e == "string" ? e : h(e);
|
|
73
|
-
return p(r);
|
|
74
|
-
}
|
|
75
|
-
function s(e) {
|
|
76
|
-
return typeof e != "string" && "hash" in e && e.hash ? e.hash : v(S(F(e)));
|
|
77
|
-
}
|
|
78
|
-
class O extends y {
|
|
79
|
-
constructor(r, i) {
|
|
80
|
-
super("Found ambiguous types in overloaded ABI Items.", {
|
|
81
|
-
metaMessages: [
|
|
82
|
-
// TODO: abitype to add support for signature-formatted ABI items.
|
|
83
|
-
`\`${r.type}\` in \`${p(h(r.abiItem))}\`, and`,
|
|
84
|
-
`\`${i.type}\` in \`${p(h(i.abiItem))}\``,
|
|
85
|
-
"",
|
|
86
|
-
"These types encode differently and cannot be distinguished at runtime.",
|
|
87
|
-
"Remove one of the ambiguous items in the ABI."
|
|
88
|
-
]
|
|
89
|
-
}), Object.defineProperty(this, "name", {
|
|
90
|
-
enumerable: !0,
|
|
91
|
-
configurable: !0,
|
|
92
|
-
writable: !0,
|
|
93
|
-
value: "AbiItem.AmbiguityError"
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
class d extends y {
|
|
98
|
-
constructor({ name: r, data: i, type: n = "item" }) {
|
|
99
|
-
const f = r ? ` with name "${r}"` : i ? ` with data "${i}"` : "";
|
|
100
|
-
super(`ABI ${n}${f} not found.`), Object.defineProperty(this, "name", {
|
|
101
|
-
enumerable: !0,
|
|
102
|
-
configurable: !0,
|
|
103
|
-
writable: !0,
|
|
104
|
-
value: "AbiItem.NotFoundError"
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
12
|
+
const t = /* @__PURE__ */ r();
|
|
108
13
|
export {
|
|
109
|
-
|
|
110
|
-
d as NotFoundError,
|
|
111
|
-
H as from,
|
|
112
|
-
M as fromAbi,
|
|
113
|
-
T as getSelector,
|
|
114
|
-
F as getSignature,
|
|
115
|
-
s as getSignatureHash
|
|
14
|
+
t as idCache
|
|
116
15
|
};
|
package/dist/index293.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
2
|
-
`)
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function x(e){var c,d,f;const{scheme:n,statement:t,...p}=((c=e.match(h))==null?void 0:c.groups)??{},{chainId:s,expirationTime:i,issuedAt:o,notBefore:r,requestId:a,...m}=((d=e.match(A))==null?void 0:d.groups)??{},u=(f=e.split("Resources:")[1])==null?void 0:f.split(`
|
|
2
|
+
- `).slice(1);return{...p,...m,...s?{chainId:Number(s)}:{},...i?{expirationTime:new Date(i)}:{},...o?{issuedAt:new Date(o)}:{},...r?{notBefore:new Date(r)}:{},...a?{requestId:a}:{},...u?{resources:u}:{},...n?{scheme:n}:{},...t?{statement:t}:{}}}const h=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,A=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;exports.parseSiweMessage=x;
|