@gardenfi/utils 2.1.3-beta.13 → 2.1.3-beta.14
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.cjs +1 -1
- package/dist/index.js +34 -30
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +2 -44
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +6 -8
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +50 -26
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +16 -10
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -13
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +5 -117
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +13 -79
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +3 -181
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +26 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +4 -13
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +6 -13
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +115 -17
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +92 -93
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +122 -72
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +7 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +20 -137
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +16 -68
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +39 -22
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +21 -109
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +10 -5
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +6 -50
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +105 -15
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +37 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +3 -11
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +4 -6
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +9 -15
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -4
- package/dist/index124.cjs +2 -1
- package/dist/index124.js +3 -27
- package/dist/index125.cjs +20 -1
- package/dist/index125.js +326 -4
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +13 -6
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +4 -88
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -126
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +7 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +21 -10
- package/dist/index130.cjs +3 -1
- package/dist/index130.js +211 -17
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +32 -18
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +20 -39
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -21
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +72 -10
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +5 -6
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +5 -106
- package/dist/index137.cjs +9 -1
- package/dist/index137.js +36 -3
- package/dist/index138.cjs +3 -1
- package/dist/index138.js +111 -4
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +3 -9
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +142 -2
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +24 -2
- package/dist/index141.cjs +3 -2
- package/dist/index141.js +452 -3
- package/dist/index142.cjs +2 -20
- package/dist/index142.js +35 -307
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +24 -11
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +33 -4
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +36 -2
- package/dist/index146.cjs +4 -1
- package/dist/index146.js +193 -6
- package/dist/index147.cjs +1 -3
- package/dist/index147.js +6 -213
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +13 -32
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +18 -21
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +13 -33
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +27 -5
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +8 -73
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +55 -5
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +45 -5
- package/dist/index154.cjs +1 -9
- package/dist/index154.js +8 -35
- package/dist/index155.cjs +1 -3
- package/dist/index155.js +7 -110
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +17 -3
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +16 -21
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +21 -451
- package/dist/index159.cjs +1 -2
- package/dist/index159.js +50 -53
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +2 -19
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +11 -26
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +152 -24
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +21 -35
- package/dist/index163.cjs +1 -4
- package/dist/index163.js +126 -193
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +37 -7
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -18
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +25 -25
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +191 -8
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -8
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +61 -15
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +24 -186
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +3 -19
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +20 -21
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +15 -50
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +23 -11
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +11 -161
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +33 -126
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +3 -39
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +18 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +27 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +36 -191
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +18 -120
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +11 -4
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +21 -60
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +29 -3
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +63 -18
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +9 -16
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +33 -23
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +24 -34
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +25 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -18
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +14 -27
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +101 -34
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +80 -10
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -25
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -28
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +25 -63
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +34 -9
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +13 -24
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +41 -23
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -3
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +11 -14
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +19 -80
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +78 -5
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +2 -28
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +34 -39
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +111 -5
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +49 -11
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +32 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +8 -78
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +7 -2
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +6 -37
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +11 -111
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +9 -48
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +13 -32
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +32 -8
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +5 -7
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +7 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -11
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +20 -10
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +31 -13
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +19 -31
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +4 -5
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +17 -7
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +10 -8
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +21 -20
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +22 -31
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +5 -20
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +5 -3
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +8 -17
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +104 -10
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +3 -22
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +36 -31
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +18 -22
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +171 -5
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +17 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +10 -104
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +17 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +21 -17
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +30 -17
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -11
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +13 -16
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +11 -21
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +26 -31
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +47 -30
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +12 -2
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +7 -13
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -12
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +13 -47
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +13 -10
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +9 -7
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +23 -8
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +12 -13
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +24 -14
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +8 -12
- package/dist/index250.cjs +2 -1
- package/dist/index250.js +24 -9
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +12 -23
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +14 -11
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +52 -24
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +25 -13
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +12 -14
- package/dist/index256.cjs +1 -2
- package/dist/index256.js +15 -24
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +5 -52
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +13 -42
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +10 -108
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +12 -57
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +16 -103
- package/dist/index261.cjs +2 -1
- package/dist/index261.js +40 -77
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +2 -2
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +5 -16
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +8 -212
- package/dist/index265.cjs +1 -2
- package/dist/index265.js +18 -40
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +9 -2
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +66 -5
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +64 -9
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +184 -17
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +57 -12
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +22 -8
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +42 -66
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +72 -61
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +35 -181
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +15 -21
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +5 -34
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +13 -77
- package/dist/index277.cjs +2 -1
- package/dist/index277.js +18 -40
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +13 -15
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +11 -13
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -3
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +102 -11
- package/dist/index281.cjs +1 -2
- package/dist/index281.js +14 -16
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +213 -13
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +6 -11
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +7 -7
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +27 -7
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +18 -25
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +107 -18
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +2 -2
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +30 -33
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +3 -3
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +5 -5
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +4 -4
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +205 -10
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +42 -19
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +73 -652
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +2 -207
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +67 -176
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +11 -68
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +16 -12
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +31 -46
- package/dist/index300.cjs +1 -2
- package/dist/index300.js +18 -65
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +657 -4
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +177 -40
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +66 -7
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +4 -62
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +33 -70
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +8 -4
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +55 -187
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +61 -47
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -45
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +11 -25
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +194 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +5 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +64 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +43 -20
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +4 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +7 -6
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +30 -12
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +28 -14
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +16 -5
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +32 -12
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +44 -10
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +150 -11
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +35 -11
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +17 -17
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +38 -13
- package/dist/index41.cjs +2 -1
- package/dist/index41.js +58 -32
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +32 -55
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +15 -16
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +8 -5
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -9
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +42 -168
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +29 -101
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +9 -21
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +68 -7
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -31
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +27 -28
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +71 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -33
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +110 -44
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +59 -150
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +20 -31
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +38 -36
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +37 -59
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +6 -6
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +58 -32
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +165 -15
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +40 -8
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +10 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +34 -43
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +9 -31
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +49 -8
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +83 -66
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +39 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -28
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +105 -22
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -71
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -19
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +8 -110
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +13 -60
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +7 -24
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +9 -40
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +45 -36
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -58
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +14 -164
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +13 -40
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +10 -2
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +5 -8
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +29 -30
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +8 -8
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +8 -50
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +25 -84
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +10 -41
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +13 -7
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +117 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +80 -17
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +181 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +19 -119
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +6 -13
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -7
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -9
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +94 -45
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +75 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +88 -16
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +138 -13
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +69 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +22 -34
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +109 -9
- package/dist/src/index.d.ts +3 -0
- package/dist/src/lib/approve.d.ts +1 -1
- package/dist/src/lib/auth/apikey/apikey.d.ts +1 -1
- package/dist/src/lib/auth/auth.types.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkey.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkeyLogin.d.ts +3 -3
- package/dist/src/lib/auth/siwe/siwe.d.ts +1 -1
- package/dist/src/lib/blockNumber/blockNumber.d.ts +2 -9
- package/dist/src/lib/blockNumber/index.d.ts +1 -1
- package/dist/src/lib/fetcher.d.ts +45 -0
- package/dist/src/lib/retry.d.ts +16 -0
- package/dist/src/lib/safeParseJson.d.ts +7 -0
- package/dist/src/lib/tryCatch.d.ts +7 -0
- package/dist/src/lib/types.d.ts +3 -0
- package/dist/src/lib/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/index42.js
CHANGED
|
@@ -1,58 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
f
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function y(e, n = {}) {
|
|
31
|
-
let r = e;
|
|
32
|
-
n.size && (u(r, { size: n.size }), r = s(r, { dir: "right", size: n.size }));
|
|
33
|
-
let i = r.slice(2);
|
|
34
|
-
i.length % 2 && (i = `0${i}`);
|
|
35
|
-
const z = i.length / 2, d = new Uint8Array(z);
|
|
36
|
-
for (let f = 0, o = 0; f < z; f++) {
|
|
37
|
-
const b = m(i.charCodeAt(o++)), c = m(i.charCodeAt(o++));
|
|
38
|
-
if (b === void 0 || c === void 0)
|
|
39
|
-
throw new g(`Invalid byte sequence ("${i[o - 2]}${i[o - 1]}" in "${i}").`);
|
|
40
|
-
d[f] = b * 16 + c;
|
|
41
|
-
}
|
|
42
|
-
return d;
|
|
43
|
-
}
|
|
44
|
-
function T(e, n) {
|
|
45
|
-
const r = h(e, n);
|
|
46
|
-
return y(r);
|
|
47
|
-
}
|
|
48
|
-
function l(e, n = {}) {
|
|
49
|
-
const r = A.encode(e);
|
|
50
|
-
return typeof n.size == "number" ? (u(r, { size: n.size }), s(r, { dir: "right", size: n.size })) : r;
|
|
1
|
+
const l = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
2
|
+
let m = 0;
|
|
3
|
+
function y(e, f, w) {
|
|
4
|
+
const i = ++m, s = () => l.get(e) || [], C = () => {
|
|
5
|
+
const n = s();
|
|
6
|
+
l.set(e, n.filter((t) => t.id !== i));
|
|
7
|
+
}, r = () => {
|
|
8
|
+
const n = s();
|
|
9
|
+
if (!n.some((c) => c.id === i))
|
|
10
|
+
return;
|
|
11
|
+
const t = h.get(e);
|
|
12
|
+
n.length === 1 && t && t(), C();
|
|
13
|
+
}, o = s();
|
|
14
|
+
if (l.set(e, [
|
|
15
|
+
...o,
|
|
16
|
+
{ id: i, fns: f }
|
|
17
|
+
]), o && o.length > 0)
|
|
18
|
+
return r;
|
|
19
|
+
const u = {};
|
|
20
|
+
for (const n in f)
|
|
21
|
+
u[n] = (...t) => {
|
|
22
|
+
var p, g;
|
|
23
|
+
const c = s();
|
|
24
|
+
if (c.length !== 0)
|
|
25
|
+
for (const k of c)
|
|
26
|
+
(g = (p = k.fns)[n]) == null || g.call(p, ...t);
|
|
27
|
+
};
|
|
28
|
+
const a = w(u);
|
|
29
|
+
return typeof a == "function" && h.set(e, a), r;
|
|
51
30
|
}
|
|
52
31
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
l as stringToBytes,
|
|
57
|
-
F as toBytes
|
|
32
|
+
h as cleanupCache,
|
|
33
|
+
l as listenersCache,
|
|
34
|
+
y as observe
|
|
58
35
|
};
|
package/dist/index43.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 u=require("./index220.cjs");function s(o,{emitOnBegin:w,initialWaitTime:t,interval:c}){let e=!0;const a=()=>e=!1;return(async()=>{let n;w&&(n=await o({unpoll:a}));const r=await(t==null?void 0:t(n))??c;await u.wait(r);const l=async()=>{e&&(await o({unpoll:a}),await u.wait(c),l())};l()})(),a}exports.poll=s;
|
package/dist/index43.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return s === "bytes" ? m(n) : n;
|
|
1
|
+
import { wait as l } from "./index220.js";
|
|
2
|
+
function f(o, { emitOnBegin: r, initialWaitTime: t, interval: c }) {
|
|
3
|
+
let n = !0;
|
|
4
|
+
const a = () => n = !1;
|
|
5
|
+
return (async () => {
|
|
6
|
+
let w;
|
|
7
|
+
r && (w = await o({ unpoll: a }));
|
|
8
|
+
const s = await (t == null ? void 0 : t(w)) ?? c;
|
|
9
|
+
await l(s);
|
|
10
|
+
const u = async () => {
|
|
11
|
+
n && (await o({ unpoll: a }), await l(c), u());
|
|
12
|
+
};
|
|
13
|
+
u();
|
|
14
|
+
})(), a;
|
|
16
15
|
}
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
f as poll
|
|
19
18
|
};
|
package/dist/index44.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 i(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}exports.withResolvers=i;
|
package/dist/index44.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
function i() {
|
|
2
|
+
let e = () => {
|
|
3
|
+
}, n = () => {
|
|
4
|
+
};
|
|
5
|
+
return { promise: new Promise((r, o) => {
|
|
6
|
+
e = r, n = o;
|
|
7
|
+
}), resolve: e, reject: n };
|
|
5
8
|
}
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
i as withResolvers
|
|
8
11
|
};
|
package/dist/index45.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=(e,n,i)=>JSON.stringify(e,(o,t)=>typeof t=="bigint"?t.toString():t,i);exports.stringify=r;
|
package/dist/index45.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { isHex as i } from "./index198.js";
|
|
3
|
-
import { toBytes as m } from "./index42.js";
|
|
4
|
-
import { toHex as s } from "./index30.js";
|
|
5
|
-
function x(t, r) {
|
|
6
|
-
const e = r || "hex", o = c(i(t, { strict: !1 }) ? m(t) : t);
|
|
7
|
-
return e === "bytes" ? o : s(o);
|
|
8
|
-
}
|
|
1
|
+
const g = (r, n, i) => JSON.stringify(r, (e, t) => typeof t == "bigint" ? t.toString() : t, i);
|
|
9
2
|
export {
|
|
10
|
-
|
|
3
|
+
g as stringify
|
|
11
4
|
};
|
package/dist/index46.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 c=require("./index164.cjs"),I=require("./index165.cjs"),n=require("./index185.cjs"),T=require("./index186.cjs"),o=require("./index110.cjs");async function q(r,l){async function d(e){if(e.endsWith(o.fallbackMagicIdentifier.slice(2))){const p=I.trim(c.sliceHex(e,-64,-32)),b=c.sliceHex(e,0,-64).slice(2).match(/.{1,64}/g),s=await Promise.all(b.map(t=>o.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?r.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),x=s.some(t=>t===null)?100:s.every(t=>(t==null?void 0:t.status)==="0x1")?200:s.every(t=>(t==null?void 0:t.status)==="0x0")?500:600;return{atomic:!1,chainId:n.hexToNumber(p),receipts:s.filter(Boolean),status:x,version:"2.0.0"}}return r.request({method:"wallet_getCallsStatus",params:[e]})}const{atomic:f=!1,chainId:i,receipts:a,version:m="2.0.0",...u}=await d(l.id),[g,h]=(()=>{const e=u.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:e==="CONFIRMED"?["success",200]:e==="PENDING"?["pending",100]:[void 0,e]})();return{...u,atomic:f,chainId:i?n.hexToNumber(i):void 0,receipts:(a==null?void 0:a.map(e=>({...e,blockNumber:n.hexToBigInt(e.blockNumber),gasUsed:n.hexToBigInt(e.gasUsed),status:T.receiptStatuses[e.status]})))??[],statusCode:h,status:g,version:m}}exports.getCallsStatus=q;
|
package/dist/index46.js
CHANGED
|
@@ -1,174 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Y(e);
|
|
21
|
-
const d = v(p), m = g(i);
|
|
22
|
-
return h([
|
|
23
|
-
"0x04",
|
|
24
|
-
y([
|
|
25
|
-
o(s),
|
|
26
|
-
c ? o(c) : "0x",
|
|
27
|
-
t ? o(t) : "0x",
|
|
28
|
-
x ? o(x) : "0x",
|
|
29
|
-
n ? o(n) : "0x",
|
|
30
|
-
f ?? "0x",
|
|
31
|
-
a ? o(a) : "0x",
|
|
32
|
-
l ?? "0x",
|
|
33
|
-
d,
|
|
34
|
-
m,
|
|
35
|
-
...I(e, r)
|
|
36
|
-
])
|
|
37
|
-
]);
|
|
38
|
-
}
|
|
39
|
-
function J(e, r) {
|
|
40
|
-
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerBlobGas: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
41
|
-
R(e);
|
|
42
|
-
let d = e.blobVersionedHashes, m = e.sidecars;
|
|
43
|
-
if (e.blobs && (typeof d > "u" || typeof m > "u")) {
|
|
44
|
-
const u = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((P) => w(P)), z = e.kzg, b = B({
|
|
45
|
-
blobs: u,
|
|
46
|
-
kzg: z
|
|
47
|
-
});
|
|
48
|
-
if (typeof d > "u" && (d = C({
|
|
49
|
-
commitments: b
|
|
50
|
-
})), typeof m > "u") {
|
|
51
|
-
const P = V({ blobs: u, commitments: b, kzg: z });
|
|
52
|
-
m = k({ blobs: u, commitments: b, proofs: P });
|
|
1
|
+
import { sliceHex as o } from "./index164.js";
|
|
2
|
+
import { trim as x } from "./index165.js";
|
|
3
|
+
import { hexToNumber as u, hexToBigInt as c } from "./index185.js";
|
|
4
|
+
import { receiptStatuses as N } from "./index186.js";
|
|
5
|
+
import { fallbackMagicIdentifier as T, fallbackTransactionErrorMagicIdentifier as C } from "./index110.js";
|
|
6
|
+
async function M(a, f) {
|
|
7
|
+
async function m(t) {
|
|
8
|
+
if (t.endsWith(T.slice(2))) {
|
|
9
|
+
const h = x(o(t, -64, -32)), I = o(t, 0, -64).slice(2).match(/.{1,64}/g), s = await Promise.all(I.map((e) => C.slice(2) !== e ? a.request({
|
|
10
|
+
method: "eth_getTransactionReceipt",
|
|
11
|
+
params: [`0x${e}`]
|
|
12
|
+
}, { dedupe: !0 }) : void 0)), b = s.some((e) => e === null) ? 100 : s.every((e) => (e == null ? void 0 : e.status) === "0x1") ? 200 : s.every((e) => (e == null ? void 0 : e.status) === "0x0") ? 500 : 600;
|
|
13
|
+
return {
|
|
14
|
+
atomic: !1,
|
|
15
|
+
chainId: u(h),
|
|
16
|
+
receipts: s.filter(Boolean),
|
|
17
|
+
status: b,
|
|
18
|
+
version: "2.0.0"
|
|
19
|
+
};
|
|
53
20
|
}
|
|
21
|
+
return a.request({
|
|
22
|
+
method: "wallet_getCallsStatus",
|
|
23
|
+
params: [t]
|
|
24
|
+
});
|
|
54
25
|
}
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
a ? o(a) : "0x",
|
|
66
|
-
d ?? [],
|
|
67
|
-
...I(e, r)
|
|
68
|
-
], A = [], F = [], G = [];
|
|
69
|
-
if (m)
|
|
70
|
-
for (let u = 0; u < m.length; u++) {
|
|
71
|
-
const { blob: z, commitment: b, proof: P } = m[u];
|
|
72
|
-
A.push(z), F.push(b), G.push(P);
|
|
73
|
-
}
|
|
74
|
-
return h([
|
|
75
|
-
"0x03",
|
|
76
|
-
m ? (
|
|
77
|
-
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
78
|
-
y([E, A, F, G])
|
|
79
|
-
) : (
|
|
80
|
-
// If sidecars are disabled, standard envelope is used:
|
|
81
|
-
y(E)
|
|
82
|
-
)
|
|
83
|
-
]);
|
|
84
|
-
}
|
|
85
|
-
function K(e, r) {
|
|
86
|
-
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerGas: a, maxPriorityFeePerGas: x, accessList: t, data: p } = e;
|
|
87
|
-
S(e);
|
|
88
|
-
const l = v(t), d = [
|
|
89
|
-
o(i),
|
|
90
|
-
n ? o(n) : "0x",
|
|
91
|
-
x ? o(x) : "0x",
|
|
92
|
-
a ? o(a) : "0x",
|
|
93
|
-
s ? o(s) : "0x",
|
|
94
|
-
c ?? "0x",
|
|
95
|
-
f ? o(f) : "0x",
|
|
96
|
-
p ?? "0x",
|
|
97
|
-
l,
|
|
98
|
-
...I(e, r)
|
|
99
|
-
];
|
|
100
|
-
return h([
|
|
101
|
-
"0x02",
|
|
102
|
-
y(d)
|
|
103
|
-
]);
|
|
104
|
-
}
|
|
105
|
-
function M(e, r) {
|
|
106
|
-
const { chainId: i, gas: s, data: n, nonce: c, to: f, value: a, accessList: x, gasPrice: t } = e;
|
|
107
|
-
_(e);
|
|
108
|
-
const p = v(x), l = [
|
|
109
|
-
o(i),
|
|
110
|
-
c ? o(c) : "0x",
|
|
111
|
-
t ? o(t) : "0x",
|
|
112
|
-
s ? o(s) : "0x",
|
|
113
|
-
f ?? "0x",
|
|
114
|
-
a ? o(a) : "0x",
|
|
115
|
-
n ?? "0x",
|
|
116
|
-
p,
|
|
117
|
-
...I(e, r)
|
|
118
|
-
];
|
|
119
|
-
return h([
|
|
120
|
-
"0x01",
|
|
121
|
-
y(l)
|
|
122
|
-
]);
|
|
123
|
-
}
|
|
124
|
-
function N(e, r) {
|
|
125
|
-
const { chainId: i = 0, gas: s, data: n, nonce: c, to: f, value: a, gasPrice: x } = e;
|
|
126
|
-
j(e);
|
|
127
|
-
let t = [
|
|
128
|
-
c ? o(c) : "0x",
|
|
129
|
-
x ? o(x) : "0x",
|
|
130
|
-
s ? o(s) : "0x",
|
|
131
|
-
f ?? "0x",
|
|
132
|
-
a ? o(a) : "0x",
|
|
133
|
-
n ?? "0x"
|
|
134
|
-
];
|
|
135
|
-
if (r) {
|
|
136
|
-
const p = (() => {
|
|
137
|
-
if (r.v >= 35n)
|
|
138
|
-
return (r.v - 35n) / 2n > 0 ? r.v : 27n + (r.v === 35n ? 0n : 1n);
|
|
139
|
-
if (i > 0)
|
|
140
|
-
return BigInt(i * 2) + BigInt(35n + r.v - 27n);
|
|
141
|
-
const m = 27n + (r.v === 27n ? 0n : 1n);
|
|
142
|
-
if (r.v !== m)
|
|
143
|
-
throw new H({ v: r.v });
|
|
144
|
-
return m;
|
|
145
|
-
})(), l = T(r.r), d = T(r.s);
|
|
146
|
-
t = [
|
|
26
|
+
const { atomic: l = !1, chainId: r, receipts: n, version: d = "2.0.0", ...i } = await m(f.id), [p, g] = (() => {
|
|
27
|
+
const t = i.status;
|
|
28
|
+
return t >= 100 && t < 200 ? ["pending", t] : t >= 200 && t < 300 ? ["success", t] : t >= 300 && t < 700 ? ["failure", t] : t === "CONFIRMED" ? ["success", 200] : t === "PENDING" ? ["pending", 100] : [void 0, t];
|
|
29
|
+
})();
|
|
30
|
+
return {
|
|
31
|
+
...i,
|
|
32
|
+
atomic: l,
|
|
33
|
+
// @ts-expect-error: for backwards compatibility
|
|
34
|
+
chainId: r ? u(r) : void 0,
|
|
35
|
+
receipts: (n == null ? void 0 : n.map((t) => ({
|
|
147
36
|
...t,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
]
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"0x"
|
|
157
|
-
]);
|
|
158
|
-
return y(t);
|
|
159
|
-
}
|
|
160
|
-
function I(e, r) {
|
|
161
|
-
const i = r ?? e, { v: s, yParity: n } = i;
|
|
162
|
-
if (typeof i.r > "u")
|
|
163
|
-
return [];
|
|
164
|
-
if (typeof i.s > "u")
|
|
165
|
-
return [];
|
|
166
|
-
if (typeof s > "u" && typeof n > "u")
|
|
167
|
-
return [];
|
|
168
|
-
const c = T(i.r), f = T(i.s);
|
|
169
|
-
return [typeof n == "number" ? n ? o(1) : "0x" : s === 0n ? "0x" : s === 1n ? o(1) : s === 27n ? "0x" : o(1), c === "0x00" ? "0x" : c, f === "0x00" ? "0x" : f];
|
|
37
|
+
blockNumber: c(t.blockNumber),
|
|
38
|
+
gasUsed: c(t.gasUsed),
|
|
39
|
+
status: N[t.status]
|
|
40
|
+
}))) ?? [],
|
|
41
|
+
statusCode: g,
|
|
42
|
+
status: p,
|
|
43
|
+
version: d
|
|
44
|
+
};
|
|
170
45
|
}
|
|
171
46
|
export {
|
|
172
|
-
|
|
173
|
-
I as toYParitySignatureArray
|
|
47
|
+
M as getCallsStatus
|
|
174
48
|
};
|
package/dist/index47.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 q=require("./index48.cjs"),C=require("./index49.cjs");function O(n){const{batch:r,cacheTime:d=n.pollingInterval??4e3,ccipRead:l,key:a="base",name:b="Base Client",pollingInterval:t=4e3,type:g="base"}=n,c=n.chain,f=n.account?q.parseAccount(n.account):void 0,{config:y,request:h,value:p}=n.transport({chain:c,pollingInterval:t}),v={...y,...p},e={account:f,batch:r,cacheTime:d,ccipRead:l,chain:c,key:a,name:b,pollingInterval:t,request:h,transport:v,type:g,uid:C.uid()};function o(i){return x=>{const u=x(i);for(const j in e)delete u[j];const s={...i,...u};return Object.assign(s,{extend:o(s)})}}return Object.assign(e,{extend:o(e)})}exports.createClient=O;
|
package/dist/index47.js
CHANGED
|
@@ -1,106 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { parseAccount as k } from "./index48.js";
|
|
2
|
+
import { uid as m } from "./index49.js";
|
|
3
|
+
function O(n) {
|
|
4
|
+
const { batch: d, cacheTime: l = n.pollingInterval ?? 4e3, ccipRead: r, key: a = "base", name: f = "Base Client", pollingInterval: c = 4e3, type: b = "base" } = n, e = n.chain, g = n.account ? k(n.account) : void 0, { config: p, request: x, value: h } = n.transport({
|
|
5
|
+
chain: e,
|
|
6
|
+
pollingInterval: c
|
|
7
|
+
}), v = { ...p, ...h }, t = {
|
|
8
|
+
account: g,
|
|
9
|
+
batch: d,
|
|
10
|
+
cacheTime: l,
|
|
11
|
+
ccipRead: r,
|
|
12
|
+
chain: e,
|
|
13
|
+
key: a,
|
|
14
|
+
name: f,
|
|
15
|
+
pollingInterval: c,
|
|
16
|
+
request: x,
|
|
17
|
+
transport: v,
|
|
18
|
+
type: b,
|
|
19
|
+
uid: m()
|
|
10
20
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
domain: t,
|
|
20
|
-
types: r
|
|
21
|
-
})), n !== "EIP712Domain" && a.push(f({
|
|
22
|
-
data: e,
|
|
23
|
-
primaryType: n,
|
|
24
|
-
types: r
|
|
25
|
-
})), c(h(a));
|
|
26
|
-
}
|
|
27
|
-
function b({ domain: o, types: t }) {
|
|
28
|
-
return f({
|
|
29
|
-
data: o,
|
|
30
|
-
primaryType: "EIP712Domain",
|
|
31
|
-
types: t
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function f({ data: o, primaryType: t, types: e }) {
|
|
35
|
-
const n = m({
|
|
36
|
-
data: o,
|
|
37
|
-
primaryType: t,
|
|
38
|
-
types: e
|
|
39
|
-
});
|
|
40
|
-
return c(n);
|
|
41
|
-
}
|
|
42
|
-
function m({ data: o, primaryType: t, types: e }) {
|
|
43
|
-
const n = [{ type: "bytes32" }], r = [l({ primaryType: t, types: e })];
|
|
44
|
-
for (const a of e[t]) {
|
|
45
|
-
const [i, s] = y({
|
|
46
|
-
types: e,
|
|
47
|
-
name: a.name,
|
|
48
|
-
type: a.type,
|
|
49
|
-
value: o[a.name]
|
|
50
|
-
});
|
|
51
|
-
n.push(i), r.push(s);
|
|
52
|
-
}
|
|
53
|
-
return p(n, r);
|
|
54
|
-
}
|
|
55
|
-
function l({ primaryType: o, types: t }) {
|
|
56
|
-
const e = d(x({ primaryType: o, types: t }));
|
|
57
|
-
return c(e);
|
|
58
|
-
}
|
|
59
|
-
function x({ primaryType: o, types: t }) {
|
|
60
|
-
let e = "";
|
|
61
|
-
const n = u({ primaryType: o, types: t });
|
|
62
|
-
n.delete(o);
|
|
63
|
-
const r = [o, ...Array.from(n).sort()];
|
|
64
|
-
for (const a of r)
|
|
65
|
-
e += `${a}(${t[a].map(({ name: i, type: s }) => `${s} ${i}`).join(",")})`;
|
|
66
|
-
return e;
|
|
67
|
-
}
|
|
68
|
-
function u({ primaryType: o, types: t }, e = /* @__PURE__ */ new Set()) {
|
|
69
|
-
const n = o.match(/^\w*/u), r = n == null ? void 0 : n[0];
|
|
70
|
-
if (e.has(r) || t[r] === void 0)
|
|
71
|
-
return e;
|
|
72
|
-
e.add(r);
|
|
73
|
-
for (const a of t[r])
|
|
74
|
-
u({ primaryType: a.type, types: t }, e);
|
|
75
|
-
return e;
|
|
76
|
-
}
|
|
77
|
-
function y({ types: o, name: t, type: e, value: n }) {
|
|
78
|
-
if (o[e] !== void 0)
|
|
79
|
-
return [
|
|
80
|
-
{ type: "bytes32" },
|
|
81
|
-
c(m({ data: n, primaryType: e, types: o }))
|
|
82
|
-
];
|
|
83
|
-
if (e === "bytes")
|
|
84
|
-
return n = `0x${(n.length % 2 ? "0" : "") + n.slice(2)}`, [{ type: "bytes32" }, c(n)];
|
|
85
|
-
if (e === "string")
|
|
86
|
-
return [{ type: "bytes32" }, c(d(n))];
|
|
87
|
-
if (e.lastIndexOf("]") === e.length - 1) {
|
|
88
|
-
const r = e.slice(0, e.lastIndexOf("[")), a = n.map((i) => y({
|
|
89
|
-
name: t,
|
|
90
|
-
type: r,
|
|
91
|
-
types: o,
|
|
92
|
-
value: i
|
|
93
|
-
}));
|
|
94
|
-
return [
|
|
95
|
-
{ type: "bytes32" },
|
|
96
|
-
c(p(a.map(([i]) => i), a.map(([, i]) => i)))
|
|
97
|
-
];
|
|
21
|
+
function o(i) {
|
|
22
|
+
return (y) => {
|
|
23
|
+
const s = y(i);
|
|
24
|
+
for (const j in t)
|
|
25
|
+
delete s[j];
|
|
26
|
+
const u = { ...i, ...s };
|
|
27
|
+
return Object.assign(u, { extend: o(u) });
|
|
28
|
+
};
|
|
98
29
|
}
|
|
99
|
-
return
|
|
30
|
+
return Object.assign(t, { extend: o(t) });
|
|
100
31
|
}
|
|
101
32
|
export {
|
|
102
|
-
|
|
103
|
-
b as hashDomain,
|
|
104
|
-
f as hashStruct,
|
|
105
|
-
k as hashTypedData
|
|
33
|
+
O as createClient
|
|
106
34
|
};
|
package/dist/index49.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 i=256;let t=i,e;function u(r=11){if(!e||t+r>i*2){e="",t=0;for(let n=0;n<i;n++)e+=(256+Math.random()*256|0).toString(16).substring(1)}return e.substring(t,t+++r)}exports.uid=u;
|
package/dist/index49.js
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return s.get(`${t}.${o}`);
|
|
10
|
-
const i = t.substring(2).toLowerCase(), n = p(m(i), "bytes"), e = i.split("");
|
|
11
|
-
for (let r = 0; r < 40; r += 2)
|
|
12
|
-
n[r >> 1] >> 4 >= 8 && e[r] && (e[r] = e[r].toUpperCase()), (n[r >> 1] & 15) >= 8 && e[r + 1] && (e[r + 1] = e[r + 1].toUpperCase());
|
|
13
|
-
const f = `0x${e.join("")}`;
|
|
14
|
-
return s.set(`${t}.${o}`, f), f;
|
|
15
|
-
}
|
|
16
|
-
function w(t, o) {
|
|
17
|
-
if (!$(t, { strict: !1 }))
|
|
18
|
-
throw new c({ address: t });
|
|
19
|
-
return h(t, o);
|
|
1
|
+
let i = 256, t;
|
|
2
|
+
function s(e = 11) {
|
|
3
|
+
if (!t || i + e > 256 * 2) {
|
|
4
|
+
t = "", i = 0;
|
|
5
|
+
for (let r = 0; r < 256; r++)
|
|
6
|
+
t += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
|
7
|
+
}
|
|
8
|
+
return t.substring(i, i++ + e);
|
|
20
9
|
}
|
|
21
10
|
export {
|
|
22
|
-
|
|
23
|
-
w as getAddress
|
|
11
|
+
s as uid
|
|
24
12
|
};
|
package/dist/index50.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index45.cjs"),i=require("./index41.cjs"),o=require("./index139.cjs");class d extends i.BaseError{constructor({body:t,cause:e,details:r,headers:n,status:s,url:l}){super("HTTP request failed.",{cause:e,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${o.getUrl(l)}`,t&&`Request body: ${u.stringify(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=n,this.status=s,this.url=l}}class c extends i.BaseError{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${o.getUrl(r)}`,`Request body: ${u.stringify(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class b extends i.BaseError{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${o.getUrl(e)}`,`Request body: ${u.stringify(t)}`],name:"TimeoutError"})}}exports.HttpRequestError=d;exports.RpcRequestError=c;exports.TimeoutError=b;
|