@gardenfi/utils 2.1.3-beta.14 → 2.1.3-beta.15
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 +30 -34
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +44 -2
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +9 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +16 -50
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +64 -15
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +11 -10
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -5
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -14
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +10 -3
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +25 -25
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +14 -4
- package/dist/index109.cjs +3 -1
- package/dist/index109.js +110 -6
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +17 -115
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +50 -93
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +24 -125
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +117 -7
- package/dist/index113.cjs +20 -1
- package/dist/index113.js +323 -18
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +80 -17
- package/dist/index115.cjs +4 -1
- package/dist/index115.js +194 -40
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +24 -21
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +179 -9
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +12 -6
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +23 -105
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +134 -37
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +89 -4
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +33 -9
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +16 -2
- package/dist/index124.cjs +1 -2
- package/dist/index124.js +2 -3
- package/dist/index125.cjs +1 -20
- package/dist/index125.js +74 -325
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +138 -13
- package/dist/index127.cjs +3 -1
- package/dist/index127.js +451 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +65 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +10 -21
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +66 -212
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +6 -32
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +21 -21
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +3 -5
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +13 -72
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +88 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +18 -5
- package/dist/index137.cjs +1 -9
- package/dist/index137.js +13 -35
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +43 -108
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +39 -3
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -142
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +7 -23
- package/dist/index141.cjs +1 -3
- package/dist/index141.js +37 -450
- package/dist/index142.cjs +1 -2
- package/dist/index142.js +8 -54
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +9 -26
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +14 -32
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +94 -34
- package/dist/index146.cjs +1 -4
- package/dist/index146.js +20 -194
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +4 -8
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +6 -12
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +26 -18
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +33 -13
- package/dist/index150.cjs +2 -1
- package/dist/index150.js +19 -22
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +9 -8
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +8 -55
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +9 -44
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +11 -8
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +13 -7
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +14 -16
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +7 -18
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +21 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +6 -51
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +19 -2
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +21 -11
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +38 -159
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +17 -21
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +21 -127
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +77 -35
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +44 -6
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +11 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +50 -189
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +5 -62
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +186 -24
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +6 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +11 -20
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +13 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +13 -23
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -11
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -34
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +104 -3
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +6 -18
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +151 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +34 -35
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +120 -18
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +31 -10
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +8 -24
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +67 -27
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +8 -64
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +71 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +19 -33
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +109 -23
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +23 -24
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +50 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +106 -14
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +9 -104
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +2 -81
- package/dist/index192.cjs +2 -1
- package/dist/index192.js +3 -6
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +13 -6
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +4 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +2 -35
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +32 -14
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +18 -39
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +5 -11
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +5 -19
- package/dist/index201.cjs +9 -1
- package/dist/index201.js +31 -74
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +3 -2
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +19 -30
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +28 -106
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +32 -46
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +8 -32
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +12 -8
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +18 -6
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +27 -6
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +464 -13
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -11
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +54 -9
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +8 -13
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +7 -32
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +162 -5
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +127 -7
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +27 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +189 -18
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -32
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -21
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +20 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +16 -17
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +11 -10
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +33 -20
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +3 -23
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -5
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +25 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +28 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +6 -104
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +28 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +31 -36
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +34 -18
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +37 -166
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +77 -16
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +2 -11
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +36 -15
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +47 -20
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -30
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +7 -2
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +32 -13
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +5 -13
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +31 -26
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +8 -47
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +3 -11
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +17 -7
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +10 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +5 -13
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +8 -14
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +104 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +3 -25
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +18 -12
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +168 -21
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +12 -8
- package/dist/index250.cjs +1 -2
- package/dist/index250.js +16 -23
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +25 -13
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +12 -14
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +15 -52
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +5 -25
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +13 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +9 -14
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +16 -5
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -13
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +140 -10
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +57 -12
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +155 -16
- package/dist/index261.cjs +1 -2
- package/dist/index261.js +9 -41
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +114 -2
- package/dist/index263.cjs +2 -1
- package/dist/index263.js +134 -5
- package/dist/index264.cjs +2 -1
- package/dist/index264.js +40 -9
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +2 -20
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +5 -8
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +9 -65
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +17 -63
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +8 -186
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +12 -57
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +66 -22
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +61 -38
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +179 -69
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +21 -39
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +35 -9
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +70 -7
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +40 -12
- package/dist/index277.cjs +1 -2
- package/dist/index277.js +16 -18
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +12 -13
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +12 -11
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -3
- package/dist/index280.cjs +2 -1
- package/dist/index280.js +18 -103
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +14 -16
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +11 -214
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +103 -6
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +17 -7
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +213 -25
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +6 -19
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +7 -109
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +26 -3
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +18 -139
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +17 -32
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +103 -150
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +42 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +72 -107
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +2 -135
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +10 -205
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +19 -42
- package/dist/index296.cjs +2 -1
- package/dist/index296.js +63 -75
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +5 -2
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +40 -68
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +7 -11
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +12 -16
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +46 -31
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +61 -18
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +68 -648
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +4 -178
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +190 -62
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +68 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +654 -37
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +206 -7
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +171 -56
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +47 -61
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +45 -4
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +9 -10
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +4 -194
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +5 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +2 -64
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +20 -43
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +18 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +124 -30
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +57 -26
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +23 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +10 -33
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +18 -42
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +6 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -35
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +17 -17
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +30 -36
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +15 -58
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +16 -32
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +7 -15
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -8
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +25 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +21 -44
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +57 -30
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +40 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +37 -9
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +161 -63
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +109 -7
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +27 -25
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +3 -71
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +2 -20
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +4 -111
- package/dist/index56.cjs +2 -1
- package/dist/index56.js +58 -59
- package/dist/index57.cjs +2 -1
- package/dist/index57.js +52 -22
- package/dist/index58.cjs +3 -1
- package/dist/index58.js +212 -37
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +12 -36
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +6 -6
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +11 -57
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +23 -164
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +27 -39
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +47 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +19 -36
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +11 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +36 -46
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +9 -85
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +7 -41
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +30 -7
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +22 -105
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +36 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +36 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +9 -8
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +29 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +22 -7
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +85 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +46 -42
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +23 -13
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +41 -16
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +17 -13
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +2 -10
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +33 -35
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +8 -8
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +12 -7
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +109 -26
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -10
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +5 -13
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +6 -116
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +21 -80
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -181
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +119 -19
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +31 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +7 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +9 -95
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +16 -75
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +72 -87
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +34 -137
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +45 -68
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +14 -23
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +13 -109
- package/dist/src/index.d.ts +0 -3
- 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 +9 -2
- package/dist/src/lib/blockNumber/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/index314.cjs +0 -1
- package/dist/index314.js +0 -7
- package/dist/index315.cjs +0 -1
- package/dist/index315.js +0 -4
- package/dist/index316.cjs +0 -1
- package/dist/index316.js +0 -24
- package/dist/src/lib/fetcher.d.ts +0 -45
- package/dist/src/lib/retry.d.ts +0 -16
- package/dist/src/lib/safeParseJson.d.ts +0 -7
- package/dist/src/lib/tryCatch.d.ts +0 -7
- package/dist/src/lib/types.d.ts +0 -3
package/dist/index125.js
CHANGED
|
@@ -1,329 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { hexToBigInt as h } from "./index81.js";
|
|
2
|
+
import { getAction as v } from "./index43.js";
|
|
3
|
+
import { observe as i } from "./index122.js";
|
|
4
|
+
import { poll as d } from "./index123.js";
|
|
5
|
+
import { stringify as y } from "./index124.js";
|
|
6
|
+
import { getBlockNumber as g } from "./index89.js";
|
|
7
|
+
function j(t, { emitOnBegin: b = !1, emitMissed: f = !1, onBlockNumber: p, onError: n, poll: k, pollingInterval: m = t.pollingInterval }) {
|
|
8
|
+
const B = typeof k < "u" ? k : !(t.transport.type === "webSocket" || t.transport.type === "fallback" && t.transport.transports[0].config.type === "webSocket");
|
|
9
|
+
let r;
|
|
10
|
+
return B ? (() => {
|
|
11
|
+
const l = y([
|
|
12
|
+
"watchBlockNumber",
|
|
13
|
+
t.uid,
|
|
14
|
+
b,
|
|
15
|
+
f,
|
|
16
|
+
m
|
|
17
|
+
]);
|
|
18
|
+
return i(l, { onBlockNumber: p, onError: n }, (e) => d(async () => {
|
|
19
|
+
var a;
|
|
20
|
+
try {
|
|
21
|
+
const o = await v(t, g, "getBlockNumber")({ cacheTime: 0 });
|
|
22
|
+
if (r) {
|
|
23
|
+
if (o === r)
|
|
24
|
+
return;
|
|
25
|
+
if (o - r > 1 && f)
|
|
26
|
+
for (let s = r + 1n; s < o; s++)
|
|
27
|
+
e.onBlockNumber(s, r), r = s;
|
|
28
|
+
}
|
|
29
|
+
(!r || o > r) && (e.onBlockNumber(o, r), r = o);
|
|
30
|
+
} catch (o) {
|
|
31
|
+
(a = e.onError) == null || a.call(e, o);
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
emitOnBegin: b,
|
|
35
|
+
interval: m
|
|
36
|
+
}));
|
|
37
|
+
})() : (() => {
|
|
38
|
+
const l = y([
|
|
39
|
+
"watchBlockNumber",
|
|
40
|
+
t.uid,
|
|
41
|
+
b,
|
|
42
|
+
f
|
|
43
|
+
]);
|
|
44
|
+
return i(l, { onBlockNumber: p, onError: n }, (e) => {
|
|
45
|
+
let a = !0, o = () => a = !1;
|
|
46
|
+
return (async () => {
|
|
47
|
+
try {
|
|
48
|
+
const s = (() => {
|
|
49
|
+
if (t.transport.type === "fallback") {
|
|
50
|
+
const c = t.transport.transports.find((u) => u.config.type === "webSocket");
|
|
51
|
+
return c ? c.value : t.transport;
|
|
52
|
+
}
|
|
53
|
+
return t.transport;
|
|
54
|
+
})(), { unsubscribe: w } = await s.subscribe({
|
|
55
|
+
params: ["newHeads"],
|
|
56
|
+
onData(c) {
|
|
57
|
+
var N;
|
|
58
|
+
if (!a)
|
|
59
|
+
return;
|
|
60
|
+
const u = h((N = c.result) == null ? void 0 : N.number);
|
|
61
|
+
e.onBlockNumber(u, r), r = u;
|
|
62
|
+
},
|
|
63
|
+
onError(c) {
|
|
64
|
+
var u;
|
|
65
|
+
(u = e.onError) == null || u.call(e, c);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
o = w, a || o();
|
|
69
|
+
} catch (s) {
|
|
70
|
+
n == null || n(s);
|
|
71
|
+
}
|
|
72
|
+
})(), () => o();
|
|
13
73
|
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
class l extends r {
|
|
17
|
-
constructor({ docsPath: e }) {
|
|
18
|
-
super([
|
|
19
|
-
"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
|
|
20
|
-
"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."
|
|
21
|
-
].join(`
|
|
22
|
-
`), {
|
|
23
|
-
docsPath: e,
|
|
24
|
-
name: "AbiConstructorParamsNotFoundError"
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
class h extends r {
|
|
29
|
-
constructor({ data: e, params: t, size: o }) {
|
|
30
|
-
super([`Data size of ${o} bytes is too small for given parameters.`].join(`
|
|
31
|
-
`), {
|
|
32
|
-
metaMessages: [
|
|
33
|
-
`Params: (${a(t, { includeName: !0 })})`,
|
|
34
|
-
`Data: ${e} (${o} bytes)`
|
|
35
|
-
],
|
|
36
|
-
name: "AbiDecodingDataSizeTooSmallError"
|
|
37
|
-
}), Object.defineProperty(this, "data", {
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
configurable: !0,
|
|
40
|
-
writable: !0,
|
|
41
|
-
value: void 0
|
|
42
|
-
}), Object.defineProperty(this, "params", {
|
|
43
|
-
enumerable: !0,
|
|
44
|
-
configurable: !0,
|
|
45
|
-
writable: !0,
|
|
46
|
-
value: void 0
|
|
47
|
-
}), Object.defineProperty(this, "size", {
|
|
48
|
-
enumerable: !0,
|
|
49
|
-
configurable: !0,
|
|
50
|
-
writable: !0,
|
|
51
|
-
value: void 0
|
|
52
|
-
}), this.data = e, this.params = t, this.size = o;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
class b extends r {
|
|
56
|
-
constructor() {
|
|
57
|
-
super('Cannot decode zero data ("0x") with ABI parameters.', {
|
|
58
|
-
name: "AbiDecodingZeroDataError"
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
class g extends r {
|
|
63
|
-
constructor({ expectedLength: e, givenLength: t, type: o }) {
|
|
64
|
-
super([
|
|
65
|
-
`ABI encoding array length mismatch for type ${o}.`,
|
|
66
|
-
`Expected length: ${e}`,
|
|
67
|
-
`Given length: ${t}`
|
|
68
|
-
].join(`
|
|
69
|
-
`), { name: "AbiEncodingArrayLengthMismatchError" });
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
class A extends r {
|
|
73
|
-
constructor({ expectedSize: e, value: t }) {
|
|
74
|
-
super(`Size of bytes "${t}" (bytes${u(t)}) does not match expected size (bytes${e}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
class E extends r {
|
|
78
|
-
constructor({ expectedLength: e, givenLength: t }) {
|
|
79
|
-
super([
|
|
80
|
-
"ABI encoding params/values length mismatch.",
|
|
81
|
-
`Expected length (params): ${e}`,
|
|
82
|
-
`Given length (values): ${t}`
|
|
83
|
-
].join(`
|
|
84
|
-
`), { name: "AbiEncodingLengthMismatchError" });
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
class y extends r {
|
|
88
|
-
constructor(e, { docsPath: t }) {
|
|
89
|
-
super([
|
|
90
|
-
`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,
|
|
91
|
-
"Cannot encode error result without knowing what the parameter types are.",
|
|
92
|
-
"Make sure you are using the correct ABI and that the inputs exist on it."
|
|
93
|
-
].join(`
|
|
94
|
-
`), {
|
|
95
|
-
docsPath: t,
|
|
96
|
-
name: "AbiErrorInputsNotFoundError"
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
class v extends r {
|
|
101
|
-
constructor(e, { docsPath: t } = {}) {
|
|
102
|
-
super([
|
|
103
|
-
`Error ${e ? `"${e}" ` : ""}not found on ABI.`,
|
|
104
|
-
"Make sure you are using the correct ABI and that the error exists on it."
|
|
105
|
-
].join(`
|
|
106
|
-
`), {
|
|
107
|
-
docsPath: t,
|
|
108
|
-
name: "AbiErrorNotFoundError"
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
class f extends r {
|
|
113
|
-
constructor(e, { docsPath: t }) {
|
|
114
|
-
super([
|
|
115
|
-
`Encoded error signature "${e}" not found on ABI.`,
|
|
116
|
-
"Make sure you are using the correct ABI and that the error exists on it.",
|
|
117
|
-
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`
|
|
118
|
-
].join(`
|
|
119
|
-
`), {
|
|
120
|
-
docsPath: t,
|
|
121
|
-
name: "AbiErrorSignatureNotFoundError"
|
|
122
|
-
}), Object.defineProperty(this, "signature", {
|
|
123
|
-
enumerable: !0,
|
|
124
|
-
configurable: !0,
|
|
125
|
-
writable: !0,
|
|
126
|
-
value: void 0
|
|
127
|
-
}), this.signature = e;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
class x extends r {
|
|
131
|
-
constructor({ docsPath: e }) {
|
|
132
|
-
super("Cannot extract event signature from empty topics.", {
|
|
133
|
-
docsPath: e,
|
|
134
|
-
name: "AbiEventSignatureEmptyTopicsError"
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
class I extends r {
|
|
139
|
-
constructor(e, { docsPath: t }) {
|
|
140
|
-
super([
|
|
141
|
-
`Encoded event signature "${e}" not found on ABI.`,
|
|
142
|
-
"Make sure you are using the correct ABI and that the event exists on it.",
|
|
143
|
-
`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`
|
|
144
|
-
].join(`
|
|
145
|
-
`), {
|
|
146
|
-
docsPath: t,
|
|
147
|
-
name: "AbiEventSignatureNotFoundError"
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
class $ extends r {
|
|
152
|
-
constructor(e, { docsPath: t } = {}) {
|
|
153
|
-
super([
|
|
154
|
-
`Event ${e ? `"${e}" ` : ""}not found on ABI.`,
|
|
155
|
-
"Make sure you are using the correct ABI and that the event exists on it."
|
|
156
|
-
].join(`
|
|
157
|
-
`), {
|
|
158
|
-
docsPath: t,
|
|
159
|
-
name: "AbiEventNotFoundError"
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
class B extends r {
|
|
164
|
-
constructor(e, { docsPath: t } = {}) {
|
|
165
|
-
super([
|
|
166
|
-
`Function ${e ? `"${e}" ` : ""}not found on ABI.`,
|
|
167
|
-
"Make sure you are using the correct ABI and that the function exists on it."
|
|
168
|
-
].join(`
|
|
169
|
-
`), {
|
|
170
|
-
docsPath: t,
|
|
171
|
-
name: "AbiFunctionNotFoundError"
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
class F extends r {
|
|
176
|
-
constructor(e, { docsPath: t }) {
|
|
177
|
-
super([
|
|
178
|
-
`Function "${e}" does not contain any \`outputs\` on ABI.`,
|
|
179
|
-
"Cannot decode function result without knowing what the parameter types are.",
|
|
180
|
-
"Make sure you are using the correct ABI and that the function exists on it."
|
|
181
|
-
].join(`
|
|
182
|
-
`), {
|
|
183
|
-
docsPath: t,
|
|
184
|
-
name: "AbiFunctionOutputsNotFoundError"
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
class j extends r {
|
|
189
|
-
constructor(e, { docsPath: t }) {
|
|
190
|
-
super([
|
|
191
|
-
`Encoded function signature "${e}" not found on ABI.`,
|
|
192
|
-
"Make sure you are using the correct ABI and that the function exists on it.",
|
|
193
|
-
`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`
|
|
194
|
-
].join(`
|
|
195
|
-
`), {
|
|
196
|
-
docsPath: t,
|
|
197
|
-
name: "AbiFunctionSignatureNotFoundError"
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
class M extends r {
|
|
202
|
-
constructor(e, t) {
|
|
203
|
-
super("Found ambiguous types in overloaded ABI items.", {
|
|
204
|
-
metaMessages: [
|
|
205
|
-
`\`${e.type}\` in \`${i(e.abiItem)}\`, and`,
|
|
206
|
-
`\`${t.type}\` in \`${i(t.abiItem)}\``,
|
|
207
|
-
"",
|
|
208
|
-
"These types encode differently and cannot be distinguished at runtime.",
|
|
209
|
-
"Remove one of the ambiguous items in the ABI."
|
|
210
|
-
],
|
|
211
|
-
name: "AbiItemAmbiguityError"
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
class D extends r {
|
|
216
|
-
constructor({ expectedSize: e, givenSize: t }) {
|
|
217
|
-
super(`Expected bytes${e}, got bytes${t}.`, {
|
|
218
|
-
name: "BytesSizeMismatchError"
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
class w extends r {
|
|
223
|
-
constructor({ abiItem: e, data: t, params: o, size: s }) {
|
|
224
|
-
super([
|
|
225
|
-
`Data size of ${s} bytes is too small for non-indexed event parameters.`
|
|
226
|
-
].join(`
|
|
227
|
-
`), {
|
|
228
|
-
metaMessages: [
|
|
229
|
-
`Params: (${a(o, { includeName: !0 })})`,
|
|
230
|
-
`Data: ${t} (${s} bytes)`
|
|
231
|
-
],
|
|
232
|
-
name: "DecodeLogDataMismatch"
|
|
233
|
-
}), Object.defineProperty(this, "abiItem", {
|
|
234
|
-
enumerable: !0,
|
|
235
|
-
configurable: !0,
|
|
236
|
-
writable: !0,
|
|
237
|
-
value: void 0
|
|
238
|
-
}), Object.defineProperty(this, "data", {
|
|
239
|
-
enumerable: !0,
|
|
240
|
-
configurable: !0,
|
|
241
|
-
writable: !0,
|
|
242
|
-
value: void 0
|
|
243
|
-
}), Object.defineProperty(this, "params", {
|
|
244
|
-
enumerable: !0,
|
|
245
|
-
configurable: !0,
|
|
246
|
-
writable: !0,
|
|
247
|
-
value: void 0
|
|
248
|
-
}), Object.defineProperty(this, "size", {
|
|
249
|
-
enumerable: !0,
|
|
250
|
-
configurable: !0,
|
|
251
|
-
writable: !0,
|
|
252
|
-
value: void 0
|
|
253
|
-
}), this.abiItem = e, this.data = t, this.params = o, this.size = s;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
class N extends r {
|
|
257
|
-
constructor({ abiItem: e, param: t }) {
|
|
258
|
-
super([
|
|
259
|
-
`Expected a topic for indexed event parameter${t.name ? ` "${t.name}"` : ""} on event "${i(e, { includeName: !0 })}".`
|
|
260
|
-
].join(`
|
|
261
|
-
`), { name: "DecodeLogTopicsMismatch" }), Object.defineProperty(this, "abiItem", {
|
|
262
|
-
enumerable: !0,
|
|
263
|
-
configurable: !0,
|
|
264
|
-
writable: !0,
|
|
265
|
-
value: void 0
|
|
266
|
-
}), this.abiItem = e;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
class S extends r {
|
|
270
|
-
constructor(e, { docsPath: t }) {
|
|
271
|
-
super([
|
|
272
|
-
`Type "${e}" is not a valid encoding type.`,
|
|
273
|
-
"Please provide a valid ABI type."
|
|
274
|
-
].join(`
|
|
275
|
-
`), { docsPath: t, name: "InvalidAbiEncodingType" });
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
class P extends r {
|
|
279
|
-
constructor(e, { docsPath: t }) {
|
|
280
|
-
super([
|
|
281
|
-
`Type "${e}" is not a valid decoding type.`,
|
|
282
|
-
"Please provide a valid ABI type."
|
|
283
|
-
].join(`
|
|
284
|
-
`), { docsPath: t, name: "InvalidAbiDecodingType" });
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
class k extends r {
|
|
288
|
-
constructor(e) {
|
|
289
|
-
super([`Value "${e}" is not a valid array.`].join(`
|
|
290
|
-
`), {
|
|
291
|
-
name: "InvalidArrayError"
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
class z extends r {
|
|
296
|
-
constructor(e) {
|
|
297
|
-
super([
|
|
298
|
-
`"${e}" is not a valid definition type.`,
|
|
299
|
-
'Valid types: "function", "event", "error"'
|
|
300
|
-
].join(`
|
|
301
|
-
`), { name: "InvalidDefinitionTypeError" });
|
|
302
|
-
}
|
|
74
|
+
})();
|
|
303
75
|
}
|
|
304
76
|
export {
|
|
305
|
-
|
|
306
|
-
l as AbiConstructorParamsNotFoundError,
|
|
307
|
-
h as AbiDecodingDataSizeTooSmallError,
|
|
308
|
-
b as AbiDecodingZeroDataError,
|
|
309
|
-
g as AbiEncodingArrayLengthMismatchError,
|
|
310
|
-
A as AbiEncodingBytesSizeMismatchError,
|
|
311
|
-
E as AbiEncodingLengthMismatchError,
|
|
312
|
-
y as AbiErrorInputsNotFoundError,
|
|
313
|
-
v as AbiErrorNotFoundError,
|
|
314
|
-
f as AbiErrorSignatureNotFoundError,
|
|
315
|
-
$ as AbiEventNotFoundError,
|
|
316
|
-
x as AbiEventSignatureEmptyTopicsError,
|
|
317
|
-
I as AbiEventSignatureNotFoundError,
|
|
318
|
-
B as AbiFunctionNotFoundError,
|
|
319
|
-
F as AbiFunctionOutputsNotFoundError,
|
|
320
|
-
j as AbiFunctionSignatureNotFoundError,
|
|
321
|
-
M as AbiItemAmbiguityError,
|
|
322
|
-
D as BytesSizeMismatchError,
|
|
323
|
-
w as DecodeLogDataMismatch,
|
|
324
|
-
N as DecodeLogTopicsMismatch,
|
|
325
|
-
P as InvalidAbiDecodingTypeError,
|
|
326
|
-
S as InvalidAbiEncodingTypeError,
|
|
327
|
-
k as InvalidArrayError,
|
|
328
|
-
z as InvalidDefinitionTypeError
|
|
77
|
+
j as watchBlockNumber
|
|
329
78
|
};
|
package/dist/index126.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 M=require("./index70.cjs"),T=require("./index122.cjs"),B=require("./index123.cjs"),C=require("./index124.cjs"),A=require("./index113.cjs"),O=require("./index127.cjs"),P=require("./index128.cjs"),I=require("./index103.cjs"),p=require("./index43.cjs"),j=require("./index71.cjs"),z=require("./index89.cjs"),R=require("./index101.cjs"),U=require("./index96.cjs"),$=require("./index129.cjs");function G(e,{address:b,args:d,batch:w=!0,event:u,events:m,fromBlock:f,onError:c,onLogs:q,poll:F,pollingInterval:L=e.pollingInterval,strict:k}){const S=typeof F<"u"?F:typeof f=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="fallback"&&e.transport.transports[0].config.type==="webSocket"),N=k??!1;return S?(()=>{const g=C.stringify(["watchEvent",b,d,w,e.uid,u,L,f]);return T.observe(g,{onLogs:q,onError:c},s=>{let i;f!==void 0&&(i=f-1n);let n,o=!1;const h=B.poll(async()=>{var r;if(!o){try{n=await p.getAction(e,j.createEventFilter,"createEventFilter")({address:b,args:d,event:u,events:m,strict:N,fromBlock:f})}catch{}o=!0;return}try{let t;if(n)t=await p.getAction(e,R.getFilterChanges,"getFilterChanges")({filter:n});else{const a=await p.getAction(e,z.getBlockNumber,"getBlockNumber")({});i&&i!==a?t=await p.getAction(e,U.getLogs,"getLogs")({address:b,args:d,event:u,events:m,fromBlock:i+1n,toBlock:a}):t=[],i=a}if(t.length===0)return;if(w)s.onLogs(t);else for(const a of t)s.onLogs([a])}catch(t){n&&t instanceof O.InvalidInputRpcError&&(o=!1),(r=s.onError)==null||r.call(s,t)}},{emitOnBegin:!0,interval:L});return async()=>{n&&await p.getAction(e,$.uninstallFilter,"uninstallFilter")({filter:n}),h()}})})():(()=>{let g=!0,s=()=>g=!1;return(async()=>{try{const i=(()=>{if(e.transport.type==="fallback"){const r=e.transport.transports.find(t=>t.config.type==="webSocket");return r?r.value:e.transport}return e.transport})(),n=m??(u?[u]:void 0);let o=[];n&&(o=[n.flatMap(t=>M.encodeEventTopics({abi:[t],eventName:t.name,args:d}))],u&&(o=o[0]));const{unsubscribe:h}=await i.subscribe({params:["logs",{address:b,topics:o}],onData(r){var a;if(!g)return;const t=r.result;try{const{eventName:l,args:v}=P.decodeEventLog({abi:n??[],data:t.data,topics:t.topics,strict:N}),y=I.formatLog(t,{args:v,eventName:l});q([y])}catch(l){let v,y;if(l instanceof A.DecodeLogDataMismatch||l instanceof A.DecodeLogTopicsMismatch){if(k)return;v=l.abiItem.name,y=(a=l.abiItem.inputs)==null?void 0:a.some(E=>!("name"in E&&E.name))}const D=I.formatLog(t,{args:y?[]:{},eventName:v});q([D])}},onError(r){c==null||c(r)}});s=h,g||s()}catch(i){c==null||c(i)}})(),()=>s()})()}exports.watchEvent=G;
|
package/dist/index126.js
CHANGED
|
@@ -1,16 +1,141 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { encodeEventTopics as B } from "./index70.js";
|
|
2
|
+
import { observe as C } from "./index122.js";
|
|
3
|
+
import { poll as T } from "./index123.js";
|
|
4
|
+
import { stringify as z } from "./index124.js";
|
|
5
|
+
import { DecodeLogDataMismatch as A, DecodeLogTopicsMismatch as O } from "./index113.js";
|
|
6
|
+
import { InvalidInputRpcError as P } from "./index127.js";
|
|
7
|
+
import { decodeEventLog as R } from "./index128.js";
|
|
8
|
+
import { formatLog as E } from "./index103.js";
|
|
9
|
+
import { getAction as m } from "./index43.js";
|
|
10
|
+
import { createEventFilter as U } from "./index71.js";
|
|
11
|
+
import { getBlockNumber as j } from "./index89.js";
|
|
12
|
+
import { getFilterChanges as q } from "./index101.js";
|
|
13
|
+
import { getLogs as x } from "./index96.js";
|
|
14
|
+
import { uninstallFilter as G } from "./index129.js";
|
|
15
|
+
function at(e, { address: b, args: g, batch: k = !0, event: c, events: y, fromBlock: p, onError: f, onLogs: w, poll: N, pollingInterval: F = e.pollingInterval, strict: L }) {
|
|
16
|
+
const M = typeof N < "u" ? N : typeof p == "bigint" ? !0 : !(e.transport.type === "webSocket" || e.transport.type === "fallback" && e.transport.transports[0].config.type === "webSocket"), I = L ?? !1;
|
|
17
|
+
return M ? (() => {
|
|
18
|
+
const l = z([
|
|
19
|
+
"watchEvent",
|
|
20
|
+
b,
|
|
21
|
+
g,
|
|
22
|
+
k,
|
|
23
|
+
e.uid,
|
|
24
|
+
c,
|
|
25
|
+
F,
|
|
26
|
+
p
|
|
27
|
+
]);
|
|
28
|
+
return C(l, { onLogs: w, onError: f }, (n) => {
|
|
29
|
+
let a;
|
|
30
|
+
p !== void 0 && (a = p - 1n);
|
|
31
|
+
let r, i = !1;
|
|
32
|
+
const h = T(async () => {
|
|
33
|
+
var o;
|
|
34
|
+
if (!i) {
|
|
35
|
+
try {
|
|
36
|
+
r = await m(e, U, "createEventFilter")({
|
|
37
|
+
address: b,
|
|
38
|
+
args: g,
|
|
39
|
+
event: c,
|
|
40
|
+
events: y,
|
|
41
|
+
strict: I,
|
|
42
|
+
fromBlock: p
|
|
43
|
+
});
|
|
44
|
+
} catch {
|
|
45
|
+
}
|
|
46
|
+
i = !0;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
let t;
|
|
51
|
+
if (r)
|
|
52
|
+
t = await m(e, q, "getFilterChanges")({ filter: r });
|
|
53
|
+
else {
|
|
54
|
+
const s = await m(e, j, "getBlockNumber")({});
|
|
55
|
+
a && a !== s ? t = await m(e, x, "getLogs")({
|
|
56
|
+
address: b,
|
|
57
|
+
args: g,
|
|
58
|
+
event: c,
|
|
59
|
+
events: y,
|
|
60
|
+
fromBlock: a + 1n,
|
|
61
|
+
toBlock: s
|
|
62
|
+
}) : t = [], a = s;
|
|
63
|
+
}
|
|
64
|
+
if (t.length === 0)
|
|
65
|
+
return;
|
|
66
|
+
if (k)
|
|
67
|
+
n.onLogs(t);
|
|
68
|
+
else
|
|
69
|
+
for (const s of t)
|
|
70
|
+
n.onLogs([s]);
|
|
71
|
+
} catch (t) {
|
|
72
|
+
r && t instanceof P && (i = !1), (o = n.onError) == null || o.call(n, t);
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
emitOnBegin: !0,
|
|
76
|
+
interval: F
|
|
77
|
+
});
|
|
78
|
+
return async () => {
|
|
79
|
+
r && await m(e, G, "uninstallFilter")({ filter: r }), h();
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
})() : (() => {
|
|
83
|
+
let l = !0, n = () => l = !1;
|
|
84
|
+
return (async () => {
|
|
85
|
+
try {
|
|
86
|
+
const a = (() => {
|
|
87
|
+
if (e.transport.type === "fallback") {
|
|
88
|
+
const o = e.transport.transports.find((t) => t.config.type === "webSocket");
|
|
89
|
+
return o ? o.value : e.transport;
|
|
90
|
+
}
|
|
91
|
+
return e.transport;
|
|
92
|
+
})(), r = y ?? (c ? [c] : void 0);
|
|
93
|
+
let i = [];
|
|
94
|
+
r && (i = [r.flatMap((t) => B({
|
|
95
|
+
abi: [t],
|
|
96
|
+
eventName: t.name,
|
|
97
|
+
args: g
|
|
98
|
+
}))], c && (i = i[0]));
|
|
99
|
+
const { unsubscribe: h } = await a.subscribe({
|
|
100
|
+
params: ["logs", { address: b, topics: i }],
|
|
101
|
+
onData(o) {
|
|
102
|
+
var s;
|
|
103
|
+
if (!l)
|
|
104
|
+
return;
|
|
105
|
+
const t = o.result;
|
|
106
|
+
try {
|
|
107
|
+
const { eventName: u, args: d } = R({
|
|
108
|
+
abi: r ?? [],
|
|
109
|
+
data: t.data,
|
|
110
|
+
topics: t.topics,
|
|
111
|
+
strict: I
|
|
112
|
+
}), v = E(t, { args: d, eventName: u });
|
|
113
|
+
w([v]);
|
|
114
|
+
} catch (u) {
|
|
115
|
+
let d, v;
|
|
116
|
+
if (u instanceof A || u instanceof O) {
|
|
117
|
+
if (L)
|
|
118
|
+
return;
|
|
119
|
+
d = u.abiItem.name, v = (s = u.abiItem.inputs) == null ? void 0 : s.some((D) => !("name" in D && D.name));
|
|
120
|
+
}
|
|
121
|
+
const S = E(t, {
|
|
122
|
+
args: v ? [] : {},
|
|
123
|
+
eventName: d
|
|
124
|
+
});
|
|
125
|
+
w([S]);
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
onError(o) {
|
|
129
|
+
f == null || f(o);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
n = h, l || n();
|
|
133
|
+
} catch (a) {
|
|
134
|
+
f == null || f(a);
|
|
135
|
+
}
|
|
136
|
+
})(), () => n();
|
|
137
|
+
})();
|
|
12
138
|
}
|
|
13
139
|
export {
|
|
14
|
-
|
|
15
|
-
e as formatAbiParams
|
|
140
|
+
at as watchEvent
|
|
16
141
|
};
|
package/dist/index127.cjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index56.cjs"),k=require("./index182.cjs"),D=-1;class r extends S.BaseError{constructor(e,{code:o,docsPath:T,metaMessages:N,name:q,shortMessage:C}){super(C,{cause:e,docsPath:T,metaMessages:N||(e==null?void 0:e.metaMessages),name:q||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=q||e.name,this.code=e instanceof k.RpcRequestError?e.code:o??D}}class t extends r{constructor(e,o){super(e,o),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=o.data}}class s extends r{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends r{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class n extends r{constructor(e,{method:o}={}){super(e,{code:n.code,name:"MethodNotFoundRpcError",shortMessage:`The method${o?` "${o}"`:""} does not exist / is not available.`})}}Object.defineProperty(n,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class a extends r{constructor(e){super(e,{code:a.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
2
|
+
`)})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class u extends r{constructor(e){super(e,{code:u.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends r{constructor(e){super(e,{code:d.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
3
|
+
`)})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class i extends r{constructor(e){super(e,{code:i.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class l extends r{constructor(e){super(e,{code:l.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class p extends r{constructor(e){super(e,{code:p.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class b extends r{constructor(e,{method:o}={}){super(e,{code:b.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${o?` "${o}"`:""} is not supported.`})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class h extends r{constructor(e){super(e,{code:h.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class m extends r{constructor(e){super(e,{code:m.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class g extends t{constructor(e){super(e,{code:g.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class f extends t{constructor(e){super(e,{code:f.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class v extends t{constructor(e,{method:o}={}){super(e,{code:v.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${o?` " ${o}"`:""}.`})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends t{constructor(e){super(e,{code:E.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class R extends t{constructor(e){super(e,{code:R.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class w extends t{constructor(e){super(e,{code:w.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class P extends t{constructor(e){super(e,{code:P.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class y extends t{constructor(e){super(e,{code:y.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class j extends t{constructor(e){super(e,{code:j.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class M extends t{constructor(e){super(e,{code:M.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class O extends t{constructor(e){super(e,{code:O.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class x extends t{constructor(e){super(e,{code:x.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class U extends t{constructor(e){super(e,{code:U.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(U,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class A extends r{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}exports.AtomicReadyWalletRejectedUpgradeError=x;exports.AtomicityNotSupportedError=U;exports.BundleTooLargeError=O;exports.ChainDisconnectedError=R;exports.DuplicateIdError=j;exports.InternalRpcError=u;exports.InvalidInputRpcError=d;exports.InvalidParamsRpcError=a;exports.InvalidRequestRpcError=c;exports.JsonRpcVersionUnsupportedError=m;exports.LimitExceededRpcError=h;exports.MethodNotFoundRpcError=n;exports.MethodNotSupportedRpcError=b;exports.ParseRpcError=s;exports.ProviderDisconnectedError=E;exports.ProviderRpcError=t;exports.ResourceNotFoundRpcError=i;exports.ResourceUnavailableRpcError=l;exports.RpcError=r;exports.SwitchChainError=w;exports.TransactionRejectedRpcError=p;exports.UnauthorizedProviderError=f;exports.UnknownBundleIdError=M;exports.UnknownRpcError=A;exports.UnsupportedChainIdError=y;exports.UnsupportedNonOptionalCapabilityError=P;exports.UnsupportedProviderMethodError=v;exports.UserRejectedRequestError=g;
|