@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/index119.js
CHANGED
|
@@ -1,109 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return async (n, F = {}) => {
|
|
10
|
-
var h;
|
|
11
|
-
const { dedupe: w = !1, methods: t, retryDelay: H = 150, retryCount: L = 3, uid: $ } = {
|
|
12
|
-
...A,
|
|
13
|
-
...F
|
|
14
|
-
}, { method: c } = n;
|
|
15
|
-
if ((h = t == null ? void 0 : t.exclude) != null && h.includes(c))
|
|
16
|
-
throw new s(new Error("method not supported"), {
|
|
17
|
-
method: c
|
|
18
|
-
});
|
|
19
|
-
if (t != null && t.include && !t.include.includes(c))
|
|
20
|
-
throw new s(new Error("method not supported"), {
|
|
21
|
-
method: c
|
|
22
|
-
});
|
|
23
|
-
const g = w ? O(`${$}.${_(n)}`) : void 0;
|
|
24
|
-
return V(() => W(async () => {
|
|
25
|
-
try {
|
|
26
|
-
return await r(n);
|
|
27
|
-
} catch (o) {
|
|
28
|
-
const e = o;
|
|
29
|
-
switch (e.code) {
|
|
30
|
-
case T.code:
|
|
31
|
-
throw new T(e);
|
|
32
|
-
case S.code:
|
|
33
|
-
throw new S(e);
|
|
34
|
-
case M.code:
|
|
35
|
-
throw new M(e, { method: n.method });
|
|
36
|
-
case B.code:
|
|
37
|
-
throw new B(e);
|
|
38
|
-
case i.code:
|
|
39
|
-
throw new i(e);
|
|
40
|
-
case j.code:
|
|
41
|
-
throw new j(e);
|
|
42
|
-
case x.code:
|
|
43
|
-
throw new x(e);
|
|
44
|
-
case P.code:
|
|
45
|
-
throw new P(e);
|
|
46
|
-
case D.code:
|
|
47
|
-
throw new D(e);
|
|
48
|
-
case s.code:
|
|
49
|
-
throw new s(e, {
|
|
50
|
-
method: n.method
|
|
51
|
-
});
|
|
52
|
-
case a.code:
|
|
53
|
-
throw new a(e);
|
|
54
|
-
case C.code:
|
|
55
|
-
throw new C(e);
|
|
56
|
-
case u.code:
|
|
57
|
-
throw new u(e);
|
|
58
|
-
case q.code:
|
|
59
|
-
throw new q(e);
|
|
60
|
-
case N.code:
|
|
61
|
-
throw new N(e);
|
|
62
|
-
case b.code:
|
|
63
|
-
throw new b(e);
|
|
64
|
-
case v.code:
|
|
65
|
-
throw new v(e);
|
|
66
|
-
case U.code:
|
|
67
|
-
throw new U(e);
|
|
68
|
-
case I.code:
|
|
69
|
-
throw new I(e);
|
|
70
|
-
case y.code:
|
|
71
|
-
throw new y(e);
|
|
72
|
-
case m.code:
|
|
73
|
-
throw new m(e);
|
|
74
|
-
case R.code:
|
|
75
|
-
throw new R(e);
|
|
76
|
-
case l.code:
|
|
77
|
-
throw new l(e);
|
|
78
|
-
case E.code:
|
|
79
|
-
throw new E(e);
|
|
80
|
-
case f.code:
|
|
81
|
-
throw new f(e);
|
|
82
|
-
case 5e3:
|
|
83
|
-
throw new u(e);
|
|
84
|
-
default:
|
|
85
|
-
throw o instanceof z ? o : new J(e);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}, {
|
|
89
|
-
delay: ({ count: o, error: e }) => {
|
|
90
|
-
var p;
|
|
91
|
-
if (e && e instanceof k) {
|
|
92
|
-
const d = (p = e == null ? void 0 : e.headers) == null ? void 0 : p.get("Retry-After");
|
|
93
|
-
if (d != null && d.match(/\d/))
|
|
94
|
-
return Number.parseInt(d) * 1e3;
|
|
95
|
-
}
|
|
96
|
-
return ~~(1 << o) * H;
|
|
97
|
-
},
|
|
98
|
-
retryCount: L,
|
|
99
|
-
shouldRetry: ({ error: o }) => G(o)
|
|
100
|
-
}), { enabled: w, id: g });
|
|
101
|
-
};
|
|
1
|
+
import { from as c, fromAbi as m, NotFoundError as i, getSelector as s } from "./index262.js";
|
|
2
|
+
import { encode as u } from "./index263.js";
|
|
3
|
+
import { concat as d } from "./index260.js";
|
|
4
|
+
function S(o, ...t) {
|
|
5
|
+
const { overloads: r } = o, e = r ? p([o, ...r], o.name, {
|
|
6
|
+
args: t[0]
|
|
7
|
+
}) : o, n = l(e), f = t.length > 0 ? u(e.inputs, t[0]) : void 0;
|
|
8
|
+
return f ? d(n, f) : n;
|
|
102
9
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
10
|
+
function $(o, t = {}) {
|
|
11
|
+
return c(o, t);
|
|
12
|
+
}
|
|
13
|
+
function p(o, t, r) {
|
|
14
|
+
const e = m(o, t, r);
|
|
15
|
+
if (e.type !== "function")
|
|
16
|
+
throw new i({ name: t, type: "function" });
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
function l(o) {
|
|
20
|
+
return s(o);
|
|
105
21
|
}
|
|
106
22
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
23
|
+
S as encodeData,
|
|
24
|
+
$ as from,
|
|
25
|
+
p as fromAbi,
|
|
26
|
+
l as getSelector
|
|
109
27
|
};
|
package/dist/index12.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 e=require("./index17.cjs"),l=require("@simplewebauthn/browser");class c{constructor(r,t){if(this.storeKey="passkey-auth",!window)throw new Error("Passkey is only supported in the browser environment.");this.url=r.endpoint("passkey"),this.store=t}getPasskeyFromStore(){if(this.token&&this.userName)return e.Ok({token:this.token,gardenUserName:this.userName});const r=this.store.getItem(this.storeKey);if(r){const t=JSON.parse(r);return e.Ok(t)}return e.Err("Passkey is not set")}validateUsername(r){return!r||r.length===0?e.Err("Username cannot be empty"):r.length<3||r.length>32?e.Err("Username must be between 3 and 32 characters"):r.includes(" ")?e.Err("Username cannot contain spaces"):e.Ok(r.trim().toLowerCase())}async register(r){var i;const t=this.validateUsername(r);if(t.error)return e.Err(t.error);try{const n=await e.Fetcher.post(this.url.endpoint("register/begin"),{body:JSON.stringify({username:t}),headers:{credentials:"include","Content-Type":"application/json"}});if(n.error)return e.Err("Failed to start registration",n.error);const s=(i=n.result)==null?void 0:i.challenge;if(!s)return e.Err("No challenge found");if(!s.publicKey.authenticatorSelection)return e.Err("No authenticator selection found");s.publicKey.authenticatorSelection.requireResidentKey=!0,s.publicKey.authenticatorSelection.residentKey="required";const a=await l.startRegistration({optionsJSON:s.publicKey}),o=await e.Fetcher.post(this.url.endpoint("register/finish"),{body:JSON.stringify({username:t,credential:a}),headers:{credentials:"include","Content-Type":"application/json"}});return o.error?e.Err("Failed to verify registration: "+o.error):o.result?(this.token=o.result.token,this.userName=t.val,e.Ok(o.result)):e.Err("No verification result found")}catch(n){return e.Err("Registration error",n)}}async login(r){var i;const t=this.validateUsername(r);if(t.error)return e.Err(t.error);try{const n=await e.Fetcher.post(this.url.endpoint("login/begin"),{body:JSON.stringify({username:t}),headers:{credentials:"include","Content-Type":"application/json"}});if(n.error)return e.Err("Failed to start login",n.error);const s=(i=n.result)==null?void 0:i.challenge;if(!s)return e.Err("No challenge found");const a=await l.startAuthentication({optionsJSON:s.publicKey}),o=await e.Fetcher.post(this.url.endpoint("login/finish"),{body:JSON.stringify({username:t,credential:a}),headers:{credentials:"include","Content-Type":"application/json"}});return o.error?e.Err("Failed to verify login",o.error):o.result?(this.token=o.result.token,this.userName=t.val,e.Ok(o.result)):e.Err("No verification result found")}catch(n){return e.Err("Login error",n)}}async conditionalLogin(){var r,t;try{const i=await e.Fetcher.get(this.url.endpoint("conditional-login/begin"),{headers:{credentials:"include"}});if(i.error)return e.Err("Failed to start login",i.error);const n=(r=i.result)==null?void 0:r.challenge;if(!n)return e.Err("No challenge found");const s=await l.startAuthentication({optionsJSON:n.publicKey}),a=await e.Fetcher.post(this.url.endpoint("conditional-login/finish"),{body:JSON.stringify({login_id:(t=i.result)==null?void 0:t.login_id,credential:s}),headers:{credentials:"include","Content-Type":"application/json"}});return a.error?e.Err("Failed to verify login",a.error):a.result?(this.token=a.result.token,this.userName=a.result.gardenUserName,e.Ok(a.result)):e.Err("No verification result found")}catch(i){return e.Err("Conditional login error",i)}}}exports.PasskeyLogin=c;
|
package/dist/index12.js
CHANGED
|
@@ -1,46 +1,143 @@
|
|
|
1
|
-
import { Err as
|
|
2
|
-
import {
|
|
3
|
-
class
|
|
4
|
-
constructor(
|
|
5
|
-
this.
|
|
1
|
+
import { Ok as l, Err as e, Fetcher as c } from "./index17.js";
|
|
2
|
+
import { startRegistration as d, startAuthentication as u } from "@simplewebauthn/browser";
|
|
3
|
+
class f {
|
|
4
|
+
constructor(t, r) {
|
|
5
|
+
if (this.storeKey = "passkey-auth", !window)
|
|
6
|
+
throw new Error("Passkey is only supported in the browser environment.");
|
|
7
|
+
this.url = t.endpoint("passkey"), this.store = r;
|
|
6
8
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
getPasskeyFromStore() {
|
|
10
|
+
if (this.token && this.userName)
|
|
11
|
+
return l({ token: this.token, gardenUserName: this.userName });
|
|
12
|
+
const t = this.store.getItem(this.storeKey);
|
|
13
|
+
if (t) {
|
|
14
|
+
const r = JSON.parse(t);
|
|
15
|
+
return l(r);
|
|
16
|
+
}
|
|
17
|
+
return e("Passkey is not set");
|
|
10
18
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Validates the username according to predefined rules.
|
|
21
|
+
* @param username The username to validate.
|
|
22
|
+
* @returns Result<string, string> - Ok if valid, Err with message if invalid.
|
|
23
|
+
*/
|
|
24
|
+
validateUsername(t) {
|
|
25
|
+
return !t || t.length === 0 ? e("Username cannot be empty") : t.length < 3 || t.length > 32 ? e("Username must be between 3 and 32 characters") : t.includes(" ") ? e("Username cannot contain spaces") : l(t.trim().toLowerCase());
|
|
17
26
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Handles user registration using WebAuthn passkeys.
|
|
29
|
+
* @param username The username to register.
|
|
30
|
+
* @returns AsyncResult<PasskeyToken, string> - Ok if successful, Err if failed.
|
|
31
|
+
*/
|
|
32
|
+
async register(t) {
|
|
33
|
+
var i;
|
|
34
|
+
const r = this.validateUsername(t);
|
|
35
|
+
if (r.error) return e(r.error);
|
|
36
|
+
try {
|
|
37
|
+
const n = await c.post(this.url.endpoint("register/begin"), {
|
|
38
|
+
body: JSON.stringify({ username: r }),
|
|
39
|
+
headers: { credentials: "include", "Content-Type": "application/json" }
|
|
40
|
+
});
|
|
41
|
+
if (n.error)
|
|
42
|
+
return e("Failed to start registration", n.error);
|
|
43
|
+
const s = (i = n.result) == null ? void 0 : i.challenge;
|
|
44
|
+
if (!s) return e("No challenge found");
|
|
45
|
+
if (!s.publicKey.authenticatorSelection)
|
|
46
|
+
return e("No authenticator selection found");
|
|
47
|
+
s.publicKey.authenticatorSelection.requireResidentKey = !0, s.publicKey.authenticatorSelection.residentKey = "required";
|
|
48
|
+
const a = await d({
|
|
49
|
+
optionsJSON: s.publicKey
|
|
50
|
+
}), o = await c.post(
|
|
51
|
+
this.url.endpoint("register/finish"),
|
|
52
|
+
{
|
|
53
|
+
body: JSON.stringify({
|
|
54
|
+
username: r,
|
|
55
|
+
credential: a
|
|
56
|
+
}),
|
|
57
|
+
headers: {
|
|
58
|
+
credentials: "include",
|
|
59
|
+
"Content-Type": "application/json"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
return o.error ? e("Failed to verify registration: " + o.error) : o.result ? (this.token = o.result.token, this.userName = r.val, l(o.result)) : e("No verification result found");
|
|
64
|
+
} catch (n) {
|
|
65
|
+
return e("Registration error", n);
|
|
66
|
+
}
|
|
23
67
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Handles user login using WebAuthn passkeys.
|
|
70
|
+
* @param username The username to log in.
|
|
71
|
+
* @returns AsyncResult<PasskeyToken, string> - Ok if successful, Err if failed.
|
|
72
|
+
*/
|
|
73
|
+
async login(t) {
|
|
74
|
+
var i;
|
|
75
|
+
const r = this.validateUsername(t);
|
|
76
|
+
if (r.error) return e(r.error);
|
|
77
|
+
try {
|
|
78
|
+
const n = await c.post(this.url.endpoint("login/begin"), {
|
|
79
|
+
body: JSON.stringify({ username: r }),
|
|
80
|
+
headers: { credentials: "include", "Content-Type": "application/json" }
|
|
81
|
+
});
|
|
82
|
+
if (n.error)
|
|
83
|
+
return e("Failed to start login", n.error);
|
|
84
|
+
const s = (i = n.result) == null ? void 0 : i.challenge;
|
|
85
|
+
if (!s) return e("No challenge found");
|
|
86
|
+
const a = await u({
|
|
87
|
+
optionsJSON: s.publicKey
|
|
88
|
+
}), o = await c.post(
|
|
89
|
+
this.url.endpoint("login/finish"),
|
|
90
|
+
{
|
|
91
|
+
body: JSON.stringify({
|
|
92
|
+
username: r,
|
|
93
|
+
credential: a
|
|
94
|
+
}),
|
|
95
|
+
headers: {
|
|
96
|
+
credentials: "include",
|
|
97
|
+
"Content-Type": "application/json"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
return o.error ? e("Failed to verify login", o.error) : o.result ? (this.token = o.result.token, this.userName = r.val, l(o.result)) : e("No verification result found");
|
|
102
|
+
} catch (n) {
|
|
103
|
+
return e("Login error", n);
|
|
104
|
+
}
|
|
38
105
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Handles conditional login (without username) for existing users.
|
|
108
|
+
* @returns AsyncResult<PasskeyToken, string> - Ok if successful, Err if failed.
|
|
109
|
+
*/
|
|
110
|
+
async conditionalLogin() {
|
|
111
|
+
var t, r;
|
|
112
|
+
try {
|
|
113
|
+
const i = await c.get(this.url.endpoint("conditional-login/begin"), {
|
|
114
|
+
headers: { credentials: "include" }
|
|
115
|
+
});
|
|
116
|
+
if (i.error)
|
|
117
|
+
return e("Failed to start login", i.error);
|
|
118
|
+
const n = (t = i.result) == null ? void 0 : t.challenge;
|
|
119
|
+
if (!n) return e("No challenge found");
|
|
120
|
+
const s = await u({
|
|
121
|
+
optionsJSON: n.publicKey
|
|
122
|
+
}), a = await c.post(
|
|
123
|
+
this.url.endpoint("conditional-login/finish"),
|
|
124
|
+
{
|
|
125
|
+
body: JSON.stringify({
|
|
126
|
+
login_id: (r = i.result) == null ? void 0 : r.login_id,
|
|
127
|
+
credential: s
|
|
128
|
+
}),
|
|
129
|
+
headers: {
|
|
130
|
+
credentials: "include",
|
|
131
|
+
"Content-Type": "application/json"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
return a.error ? e("Failed to verify login", a.error) : a.result ? (this.token = a.result.token, this.userName = a.result.gardenUserName, l(a.result)) : e("No verification result found");
|
|
136
|
+
} catch (i) {
|
|
137
|
+
return e("Conditional login error", i);
|
|
138
|
+
}
|
|
42
139
|
}
|
|
43
140
|
}
|
|
44
141
|
export {
|
|
45
|
-
|
|
142
|
+
f as PasskeyLogin
|
|
46
143
|
};
|
package/dist/index121.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=require("./index43.cjs"),B=require("./index122.cjs"),q=require("./index123.cjs"),A=require("./index124.cjs"),p=require("./index79.cjs");function S(r,{blockTag:b="latest",emitMissed:y=!1,emitOnBegin:g=!1,onBlock:k,onError:u,includeTransactions:m,poll:d,pollingInterval:w=r.pollingInterval}){const h=typeof d<"u"?d:!(r.transport.type==="webSocket"||r.transport.type==="fallback"&&r.transport.transports[0].config.type==="webSocket"),o=m??!1;let t;return h?(()=>{const c=A.stringify(["watchBlocks",r.uid,b,y,g,o,w]);return B.observe(c,{onBlock:k,onError:u},s=>q.poll(async()=>{var a;try{const e=await i.getAction(r,p.getBlock,"getBlock")({blockTag:b,includeTransactions:o});if(e.number!==null&&(t==null?void 0:t.number)!=null){if(e.number===t.number)return;if(e.number-t.number>1&&y)for(let l=(t==null?void 0:t.number)+1n;l<e.number;l++){const n=await i.getAction(r,p.getBlock,"getBlock")({blockNumber:l,includeTransactions:o});s.onBlock(n,t),t=n}}((t==null?void 0:t.number)==null||b==="pending"&&(e==null?void 0:e.number)==null||e.number!==null&&e.number>t.number)&&(s.onBlock(e,t),t=e)}catch(e){(a=s.onError)==null||a.call(s,e)}},{emitOnBegin:g,interval:w}))})():(()=>{let c=!0,s=!0,a=()=>c=!1;return(async()=>{try{g&&i.getAction(r,p.getBlock,"getBlock")({blockTag:b,includeTransactions:o}).then(n=>{c&&s&&(k(n,void 0),s=!1)}).catch(u);const e=(()=>{if(r.transport.type==="fallback"){const n=r.transport.transports.find(f=>f.config.type==="webSocket");return n?n.value:r.transport}return r.transport})(),{unsubscribe:l}=await e.subscribe({params:["newHeads"],async onData(n){if(!c)return;const f=await i.getAction(r,p.getBlock,"getBlock")({blockNumber:n.blockNumber,includeTransactions:o}).catch(()=>{});c&&(k(f,t),s=!1,t=f)},onError(n){u==null||u(n)}});a=l,c||a()}catch(e){u==null||u(e)}})(),()=>a()})()}exports.watchBlocks=S;
|
package/dist/index121.js
CHANGED
|
@@ -1,6 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
import { getAction as i } from "./index43.js";
|
|
2
|
+
import { observe as B } from "./index122.js";
|
|
3
|
+
import { poll as N } from "./index123.js";
|
|
4
|
+
import { stringify as S } from "./index124.js";
|
|
5
|
+
import { getBlock as p } from "./index79.js";
|
|
6
|
+
function j(e, { blockTag: b = "latest", emitMissed: y = !1, emitOnBegin: m = !1, onBlock: k, onError: u, includeTransactions: h, poll: d, pollingInterval: w = e.pollingInterval }) {
|
|
7
|
+
const g = typeof d < "u" ? d : !(e.transport.type === "webSocket" || e.transport.type === "fallback" && e.transport.transports[0].config.type === "webSocket"), o = h ?? !1;
|
|
8
|
+
let t;
|
|
9
|
+
return g ? (() => {
|
|
10
|
+
const a = S([
|
|
11
|
+
"watchBlocks",
|
|
12
|
+
e.uid,
|
|
13
|
+
b,
|
|
14
|
+
y,
|
|
15
|
+
m,
|
|
16
|
+
o,
|
|
17
|
+
w
|
|
18
|
+
]);
|
|
19
|
+
return B(a, { onBlock: k, onError: u }, (s) => N(async () => {
|
|
20
|
+
var c;
|
|
21
|
+
try {
|
|
22
|
+
const r = await i(e, p, "getBlock")({
|
|
23
|
+
blockTag: b,
|
|
24
|
+
includeTransactions: o
|
|
25
|
+
});
|
|
26
|
+
if (r.number !== null && (t == null ? void 0 : t.number) != null) {
|
|
27
|
+
if (r.number === t.number)
|
|
28
|
+
return;
|
|
29
|
+
if (r.number - t.number > 1 && y)
|
|
30
|
+
for (let f = (t == null ? void 0 : t.number) + 1n; f < r.number; f++) {
|
|
31
|
+
const n = await i(e, p, "getBlock")({
|
|
32
|
+
blockNumber: f,
|
|
33
|
+
includeTransactions: o
|
|
34
|
+
});
|
|
35
|
+
s.onBlock(n, t), t = n;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// If no previous block exists, emit.
|
|
39
|
+
((t == null ? void 0 : t.number) == null || // If the block tag is "pending" with no block number, emit.
|
|
40
|
+
b === "pending" && (r == null ? void 0 : r.number) == null || // If the next block number is greater than the previous block number, emit.
|
|
41
|
+
// We don't want to emit blocks in the past.
|
|
42
|
+
r.number !== null && r.number > t.number) && (s.onBlock(r, t), t = r);
|
|
43
|
+
} catch (r) {
|
|
44
|
+
(c = s.onError) == null || c.call(s, r);
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
emitOnBegin: m,
|
|
48
|
+
interval: w
|
|
49
|
+
}));
|
|
50
|
+
})() : (() => {
|
|
51
|
+
let a = !0, s = !0, c = () => a = !1;
|
|
52
|
+
return (async () => {
|
|
53
|
+
try {
|
|
54
|
+
m && i(e, p, "getBlock")({
|
|
55
|
+
blockTag: b,
|
|
56
|
+
includeTransactions: o
|
|
57
|
+
}).then((n) => {
|
|
58
|
+
a && s && (k(n, void 0), s = !1);
|
|
59
|
+
}).catch(u);
|
|
60
|
+
const r = (() => {
|
|
61
|
+
if (e.transport.type === "fallback") {
|
|
62
|
+
const n = e.transport.transports.find((l) => l.config.type === "webSocket");
|
|
63
|
+
return n ? n.value : e.transport;
|
|
64
|
+
}
|
|
65
|
+
return e.transport;
|
|
66
|
+
})(), { unsubscribe: f } = await r.subscribe({
|
|
67
|
+
params: ["newHeads"],
|
|
68
|
+
async onData(n) {
|
|
69
|
+
if (!a)
|
|
70
|
+
return;
|
|
71
|
+
const l = await i(e, p, "getBlock")({
|
|
72
|
+
blockNumber: n.blockNumber,
|
|
73
|
+
includeTransactions: o
|
|
74
|
+
}).catch(() => {
|
|
75
|
+
});
|
|
76
|
+
a && (k(l, t), s = !1, t = l);
|
|
77
|
+
},
|
|
78
|
+
onError(n) {
|
|
79
|
+
u == null || u(n);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
c = f, a || c();
|
|
83
|
+
} catch (r) {
|
|
84
|
+
u == null || u(r);
|
|
85
|
+
}
|
|
86
|
+
})(), () => c();
|
|
87
|
+
})();
|
|
88
|
+
}
|
|
2
89
|
export {
|
|
3
|
-
|
|
4
|
-
f as deploylessCallViaFactoryBytecode,
|
|
5
|
-
d as universalSignatureValidatorByteCode
|
|
90
|
+
j as watchBlocks
|
|
6
91
|
};
|
package/dist/index122.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=new Map,r=new Map;let m=0;function w(n,u,C){const o=++m,s=()=>i.get(n)||[],y=()=>{const t=s();i.set(n,t.filter(e=>e.id!==o))},a=()=>{const t=s();if(!t.some(c=>c.id===o))return;const e=r.get(n);t.length===1&&e&&e(),y()},l=s();if(i.set(n,[...l,{id:o,fns:u}]),l&&l.length>0)return a;const f={};for(const t in u)f[t]=(...e)=>{var h,p;const c=s();if(c.length!==0)for(const b of c)(p=(h=b.fns)[t])==null||p.call(h,...e)};const g=C(f);return typeof g=="function"&&r.set(n,g),a}exports.cleanupCache=r;exports.listenersCache=i;exports.observe=w;
|
package/dist/index122.js
CHANGED
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
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;
|
|
30
|
+
}
|
|
8
31
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
32
|
+
h as cleanupCache,
|
|
33
|
+
l as listenersCache,
|
|
34
|
+
y as observe
|
|
11
35
|
};
|
package/dist/index123.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("./index241.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/index123.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { wait as l } from "./index241.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;
|
|
15
|
+
}
|
|
2
16
|
export {
|
|
3
|
-
|
|
17
|
+
f as poll
|
|
4
18
|
};
|
package/dist/index124.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e
|
|
2
|
-
`;exports.presignMessagePrefix=e;
|
|
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/index124.js
CHANGED
package/dist/index125.cjs
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`),{docsPath:r,name:"AbiConstructorNotFoundError"})}}class c extends t.BaseError{constructor({docsPath:r}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
3
|
-
`),{docsPath:r,name:"AbiConstructorParamsNotFoundError"})}}class d extends t.BaseError{constructor({data:r,params:e,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`
|
|
4
|
-
`),{metaMessages:[`Params: (${i.formatAbiParams(e,{includeName:!0})})`,`Data: ${r} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r,this.params=e,this.size=n}}class E extends t.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class b extends t.BaseError{constructor({expectedLength:r,givenLength:e,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${r}`,`Given length: ${e}`].join(`
|
|
5
|
-
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class m extends t.BaseError{constructor({expectedSize:r,value:e}){super(`Size of bytes "${e}" (bytes${s.size(e)}) does not match expected size (bytes${r}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class l extends t.BaseError{constructor({expectedLength:r,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${r}`,`Given length (values): ${e}`].join(`
|
|
6
|
-
`),{name:"AbiEncodingLengthMismatchError"})}}class p extends t.BaseError{constructor(r,{docsPath:e}){super([`Arguments (\`args\`) were provided to "${r}", but "${r}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
|
|
7
|
-
`),{docsPath:e,name:"AbiErrorInputsNotFoundError"})}}class h extends t.BaseError{constructor(r,{docsPath:e}={}){super([`Error ${r?`"${r}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
|
|
8
|
-
`),{docsPath:e,name:"AbiErrorNotFoundError"})}}class g extends t.BaseError{constructor(r,{docsPath:e}){super([`Encoded error signature "${r}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${r}.`].join(`
|
|
9
|
-
`),{docsPath:e,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=r}}class A extends t.BaseError{constructor({docsPath:r}){super("Cannot extract event signature from empty topics.",{docsPath:r,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends t.BaseError{constructor(r,{docsPath:e}){super([`Encoded event signature "${r}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${r}.`].join(`
|
|
10
|
-
`),{docsPath:e,name:"AbiEventSignatureNotFoundError"})}}class v extends t.BaseError{constructor(r,{docsPath:e}={}){super([`Event ${r?`"${r}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
|
|
11
|
-
`),{docsPath:e,name:"AbiEventNotFoundError"})}}class B extends t.BaseError{constructor(r,{docsPath:e}={}){super([`Function ${r?`"${r}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
12
|
-
`),{docsPath:e,name:"AbiFunctionNotFoundError"})}}class I extends t.BaseError{constructor(r,{docsPath:e}){super([`Function "${r}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
13
|
-
`),{docsPath:e,name:"AbiFunctionOutputsNotFoundError"})}}class f extends t.BaseError{constructor(r,{docsPath:e}){super([`Encoded function signature "${r}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${r}.`].join(`
|
|
14
|
-
`),{docsPath:e,name:"AbiFunctionSignatureNotFoundError"})}}class x extends t.BaseError{constructor(r,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${r.type}\` in \`${i.formatAbiItem(r.abiItem)}\`, and`,`\`${e.type}\` in \`${i.formatAbiItem(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class $ extends t.BaseError{constructor({expectedSize:r,givenSize:e}){super(`Expected bytes${r}, got bytes${e}.`,{name:"BytesSizeMismatchError"})}}class F extends t.BaseError{constructor({abiItem:r,data:e,params:n,size:a}){super([`Data size of ${a} bytes is too small for non-indexed event parameters.`].join(`
|
|
15
|
-
`),{metaMessages:[`Params: (${i.formatAbiParams(n,{includeName:!0})})`,`Data: ${e} (${a} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=r,this.data=e,this.params=n,this.size=a}}class M extends t.BaseError{constructor({abiItem:r,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${i.formatAbiItem(r,{includeName:!0})}".`].join(`
|
|
16
|
-
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=r}}class D extends t.BaseError{constructor(r,{docsPath:e}){super([`Type "${r}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
17
|
-
`),{docsPath:e,name:"InvalidAbiEncodingType"})}}class j extends t.BaseError{constructor(r,{docsPath:e}){super([`Type "${r}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
18
|
-
`),{docsPath:e,name:"InvalidAbiDecodingType"})}}class N extends t.BaseError{constructor(r){super([`Value "${r}" is not a valid array.`].join(`
|
|
19
|
-
`),{name:"InvalidArrayError"})}}class S extends t.BaseError{constructor(r){super([`"${r}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
20
|
-
`),{name:"InvalidDefinitionTypeError"})}}exports.AbiConstructorNotFoundError=u;exports.AbiConstructorParamsNotFoundError=c;exports.AbiDecodingDataSizeTooSmallError=d;exports.AbiDecodingZeroDataError=E;exports.AbiEncodingArrayLengthMismatchError=b;exports.AbiEncodingBytesSizeMismatchError=m;exports.AbiEncodingLengthMismatchError=l;exports.AbiErrorInputsNotFoundError=p;exports.AbiErrorNotFoundError=h;exports.AbiErrorSignatureNotFoundError=g;exports.AbiEventNotFoundError=v;exports.AbiEventSignatureEmptyTopicsError=A;exports.AbiEventSignatureNotFoundError=y;exports.AbiFunctionNotFoundError=B;exports.AbiFunctionOutputsNotFoundError=I;exports.AbiFunctionSignatureNotFoundError=f;exports.AbiItemAmbiguityError=x;exports.BytesSizeMismatchError=$;exports.DecodeLogDataMismatch=F;exports.DecodeLogTopicsMismatch=M;exports.InvalidAbiDecodingTypeError=j;exports.InvalidAbiEncodingTypeError=D;exports.InvalidArrayError=N;exports.InvalidDefinitionTypeError=S;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index81.cjs"),d=require("./index43.cjs"),y=require("./index122.cjs"),h=require("./index123.cjs"),B=require("./index124.cjs"),m=require("./index89.cjs");function q(t,{emitOnBegin:b=!1,emitMissed:l=!1,onBlockNumber:p,onError:a,poll:k,pollingInterval:i=t.pollingInterval}){const g=typeof k<"u"?k:!(t.transport.type==="webSocket"||t.transport.type==="fallback"&&t.transport.transports[0].config.type==="webSocket");let r;return g?(()=>{const f=B.stringify(["watchBlockNumber",t.uid,b,l,i]);return y.observe(f,{onBlockNumber:p,onError:a},o=>h.poll(async()=>{var c;try{const e=await d.getAction(t,m.getBlockNumber,"getBlockNumber")({cacheTime:0});if(r){if(e===r)return;if(e-r>1&&l)for(let s=r+1n;s<e;s++)o.onBlockNumber(s,r),r=s}(!r||e>r)&&(o.onBlockNumber(e,r),r=e)}catch(e){(c=o.onError)==null||c.call(o,e)}},{emitOnBegin:b,interval:i}))})():(()=>{const f=B.stringify(["watchBlockNumber",t.uid,b,l]);return y.observe(f,{onBlockNumber:p,onError:a},o=>{let c=!0,e=()=>c=!1;return(async()=>{try{const s=(()=>{if(t.transport.type==="fallback"){const n=t.transport.transports.find(u=>u.config.type==="webSocket");return n?n.value:t.transport}return t.transport})(),{unsubscribe:v}=await s.subscribe({params:["newHeads"],onData(n){var N;if(!c)return;const u=w.hexToBigInt((N=n.result)==null?void 0:N.number);o.onBlockNumber(u,r),r=u},onError(n){var u;(u=o.onError)==null||u.call(o,n)}});e=v,c||e()}catch(s){a==null||a(s)}})(),()=>e()})})()}exports.watchBlockNumber=q;
|