@gardenfi/utils 2.4.4 → 2.4.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +46 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +14 -35
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +13 -9
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -8
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +16 -26
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +65 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +11 -14
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +13 -117
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +8 -81
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +10 -177
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +26 -6
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +13 -12
- package/dist/index112.cjs +3 -1
- package/dist/index112.js +110 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +51 -95
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +24 -75
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +113 -85
- package/dist/index116.cjs +20 -1
- package/dist/index116.js +325 -137
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +79 -67
- package/dist/index118.cjs +4 -1
- package/dist/index118.js +194 -23
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +18 -109
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +24 -6
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +175 -48
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +12 -16
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +24 -10
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +3 -6
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +89 -14
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +37 -3
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +15 -26
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -5
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +75 -6
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +135 -85
- package/dist/index131.cjs +3 -1
- package/dist/index131.js +449 -123
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +64 -7
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +6 -21
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +68 -16
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +5 -40
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +21 -21
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -11
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +14 -6
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +86 -104
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +14 -3
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +46 -4
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +39 -9
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +8 -2
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +58 -3
- package/dist/index145.cjs +1 -20
- package/dist/index145.js +8 -321
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +8 -13
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +20 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +10 -2
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +15 -7
- package/dist/index150.cjs +1 -3
- package/dist/index150.js +101 -213
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +5 -32
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +6 -21
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +26 -5
- package/dist/index154.cjs +2 -1
- package/dist/index154.js +21 -70
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +9 -5
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -5
- package/dist/index157.cjs +1 -9
- package/dist/index157.js +9 -34
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +11 -110
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +14 -3
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +14 -23
- package/dist/index161.cjs +1 -3
- package/dist/index161.js +7 -451
- package/dist/index162.cjs +1 -2
- package/dist/index162.js +18 -51
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -26
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +18 -30
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +39 -34
- package/dist/index166.cjs +1 -4
- package/dist/index166.js +17 -194
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +20 -7
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +77 -15
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +42 -25
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +11 -8
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +52 -7
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +3 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -18
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -21
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +11 -51
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +13 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +12 -160
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +5 -127
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +12 -37
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +103 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +6 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +149 -189
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +36 -4
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +31 -63
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +10 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +63 -15
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +8 -15
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +71 -23
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +19 -34
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +111 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +23 -18
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +50 -27
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +105 -35
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +9 -11
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +2 -26
- package/dist/index196.cjs +2 -1
- package/dist/index196.js +3 -29
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +12 -64
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +4 -9
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +2 -25
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +31 -24
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +21 -3
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +5 -14
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +5 -80
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +5 -5
- package/dist/index205.cjs +9 -1
- package/dist/index205.js +34 -26
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +3 -43
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +26 -5
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +33 -11
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +35 -19
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +7 -77
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +13 -2
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +13 -32
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +22 -106
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +8 -49
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +54 -31
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +7 -6
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +161 -6
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +127 -11
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +27 -10
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +190 -12
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +4 -33
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +3 -5
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +20 -7
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +14 -6
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +11 -20
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +32 -29
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +3 -21
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +27 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +8 -8
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +25 -17
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +28 -10
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +6 -21
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +27 -22
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +39 -5
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +42 -8
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +74 -100
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -3
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +36 -17
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +48 -16
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +6 -10
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +6 -16
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +31 -21
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +5 -31
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +9 -2
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +3 -13
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +17 -12
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +10 -47
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +5 -11
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +8 -7
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +104 -9
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +3 -14
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +17 -13
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +171 -9
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +17 -24
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +25 -12
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +13 -24
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +14 -12
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +5 -15
- package/dist/index259.cjs +1 -2
- package/dist/index259.js +13 -24
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +10 -52
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +16 -224
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +153 -137
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +9 -146
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +108 -98
- package/dist/index265.cjs +2 -1
- package/dist/index265.js +134 -6
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +3 -42
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +136 -74
- package/dist/index268.cjs +2 -1
- package/dist/index268.js +42 -2
- package/dist/index269.cjs +1 -2
- package/dist/index269.js +2 -42
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +6 -2
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +10 -5
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +18 -9
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +8 -19
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +66 -8
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +64 -65
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +181 -60
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +20 -184
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +41 -21
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +54 -20
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +18 -54
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +10 -34
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +7 -10
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +12 -13
- package/dist/index284.cjs +2 -1
- package/dist/index284.js +16 -10
- package/dist/index285.cjs +1 -2
- package/dist/index285.js +14 -18
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +11 -14
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +103 -11
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +6 -6
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +225 -7
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +6 -26
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +7 -20
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +26 -3
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +18 -139
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +136 -145
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -9
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +18 -112
- package/dist/index297.cjs +1 -2
- package/dist/index297.js +35 -127
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +77 -10
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +2 -20
- package/dist/index300.cjs +2 -1
- package/dist/index300.js +63 -695
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +4 -201
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +40 -68
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +7 -66
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +62 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +70 -33
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +4 -8
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +187 -55
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +68 -77
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +699 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +126 -181
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +201 -4
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +4 -4
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +45 -5
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +4 -44
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +5 -2
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +2 -22
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +3 -3
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +10 -25
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +18 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +125 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +60 -15
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +23 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -13
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +20 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +6 -12
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +10 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +32 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +16 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +15 -54
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +7 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +33 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +24 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +20 -169
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +56 -101
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +40 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +37 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +166 -7
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +110 -30
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +30 -29
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +3 -16
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +2 -34
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -45
- package/dist/index59.cjs +2 -1
- package/dist/index59.js +59 -151
- package/dist/index60.cjs +2 -1
- package/dist/index60.js +50 -31
- package/dist/index61.cjs +3 -1
- package/dist/index61.js +210 -33
- package/dist/index62.cjs +1 -2
- package/dist/index62.js +13 -59
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +12 -37
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +24 -15
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +27 -7
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +48 -2
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +19 -45
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +10 -30
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +39 -8
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +9 -68
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +7 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +28 -25
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +36 -71
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +34 -17
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +9 -110
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +26 -57
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +21 -23
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +87 -38
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +49 -36
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +20 -55
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +38 -163
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +17 -40
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +5 -8
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +33 -36
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +12 -49
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +106 -82
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -41
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -7
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +7 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +21 -17
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +1 -1
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +31 -13
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -7
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +7 -9
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +9 -46
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +16 -13
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +73 -16
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +35 -13
- package/package.json +3 -2
package/dist/index122.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index264.cjs"),i=require("./index265.cjs"),u=require("./index262.cjs");function s(e,o){var n;const{bytecode:r,args:t}=o;return u.concat(r,(n=e.inputs)!=null&&n.length&&(t!=null&&t.length)?i.encode(e.inputs,t):"0x")}function d(e){return c.from(e)}exports.encode=s;exports.from=d;
|
package/dist/index122.js
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rpcUrls: o.default.http,
|
|
12
|
-
blockExplorerUrls: e ? Object.values(e).map(({ url: c }) => c) : void 0
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
}, { dedupe: !0, retryCount: 0 });
|
|
1
|
+
import { from as m } from "./index264.js";
|
|
2
|
+
import { encode as c } from "./index265.js";
|
|
3
|
+
import { concat as f } from "./index262.js";
|
|
4
|
+
function d(o, t) {
|
|
5
|
+
var e;
|
|
6
|
+
const { bytecode: r, args: n } = t;
|
|
7
|
+
return f(r, (e = o.inputs) != null && e.length && (n != null && n.length) ? c(o.inputs, n) : "0x");
|
|
8
|
+
}
|
|
9
|
+
function s(o) {
|
|
10
|
+
return m(o);
|
|
16
11
|
}
|
|
17
12
|
export {
|
|
18
|
-
|
|
13
|
+
d as encode,
|
|
14
|
+
s as from
|
|
19
15
|
};
|
package/dist/index123.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index264.cjs"),s=require("./index265.cjs"),m=require("./index262.cjs");function d(e,...t){const{overloads:r}=e,o=r?u([e,...r],e.name,{args:t[0]}):e,c=f(o),i=t.length>0?s.encode(o.inputs,t[0]):void 0;return i?m.concat(c,i):c}function l(e,t={}){return n.from(e,t)}function u(e,t,r){const o=n.fromAbi(e,t,r);if(o.type!=="function")throw new n.NotFoundError({name:t,type:"function"});return o}function f(e){return n.getSelector(e)}exports.encodeData=d;exports.from=l;exports.fromAbi=u;exports.getSelector=f;
|
package/dist/index123.js
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { from as c, fromAbi as m, NotFoundError as i, getSelector as s } from "./index264.js";
|
|
2
|
+
import { encode as u } from "./index265.js";
|
|
3
|
+
import { concat as d } from "./index262.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;
|
|
9
|
+
}
|
|
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);
|
|
10
21
|
}
|
|
11
22
|
export {
|
|
12
|
-
|
|
23
|
+
S as encodeData,
|
|
24
|
+
$ as from,
|
|
25
|
+
p as fromAbi,
|
|
26
|
+
l as getSelector
|
|
13
27
|
};
|
package/dist/index124.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="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",s="0x0000000000000000000000000000000000000000";exports.ethAddress=e;exports.zeroAddress=s;
|
package/dist/index124.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
async function c(e) {
|
|
3
|
-
var s;
|
|
4
|
-
return ((s = e.account) == null ? void 0 : s.type) === "local" ? [e.account.address] : (await e.request({ method: "eth_accounts" }, { dedupe: !0 })).map((r) => t(r));
|
|
5
|
-
}
|
|
1
|
+
const e = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", s = "0x0000000000000000000000000000000000000000";
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
e as ethAddress,
|
|
4
|
+
s as zeroAddress
|
|
8
5
|
};
|
package/dist/index125.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("./index46.cjs"),q=require("./index126.cjs"),A=require("./index127.cjs"),S=require("./index128.cjs"),p=require("./index82.cjs");function v(r,{blockTag:f=r.experimental_blockTag??"latest",emitMissed:k=!1,emitOnBegin:g=!1,onBlock:y,onError:u,includeTransactions:h,poll:d,pollingInterval:m=r.pollingInterval}){const B=typeof d<"u"?d:!(r.transport.type==="webSocket"||r.transport.type==="ipc"||r.transport.type==="fallback"&&(r.transport.transports[0].config.type==="webSocket"||r.transport.transports[0].config.type==="ipc")),o=h??!1;let t;return B?(()=>{const c=S.stringify(["watchBlocks",r.uid,f,k,g,o,m]);return q.observe(c,{onBlock:y,onError:u},s=>A.poll(async()=>{var a;try{const e=await i.getAction(r,p.getBlock,"getBlock")({blockTag:f,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&&k)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||f==="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:m}))})():(()=>{let c=!0,s=!0,a=()=>c=!1;return(async()=>{try{g&&i.getAction(r,p.getBlock,"getBlock")({blockTag:f,includeTransactions:o}).then(n=>{c&&s&&(y(n,void 0),s=!1)}).catch(u);const e=(()=>{if(r.transport.type==="fallback"){const n=r.transport.transports.find(b=>b.config.type==="webSocket"||b.config.type==="ipc");return n?n.value:r.transport}return r.transport})(),{unsubscribe:l}=await e.subscribe({params:["newHeads"],async onData(n){var w;if(!c)return;const b=await i.getAction(r,p.getBlock,"getBlock")({blockNumber:(w=n.result)==null?void 0:w.number,includeTransactions:o}).catch(()=>{});c&&(y(b,t),s=!1,t=b)},onError(n){u==null||u(n)}});a=l,c||a()}catch(e){u==null||u(e)}})(),()=>a()})()}exports.watchBlocks=v;
|
package/dist/index125.js
CHANGED
|
@@ -1,17 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { getAction as p } from "./index46.js";
|
|
2
|
+
import { observe as S } from "./index126.js";
|
|
3
|
+
import { poll as x } from "./index127.js";
|
|
4
|
+
import { stringify as N } from "./index128.js";
|
|
5
|
+
import { getBlock as i } from "./index82.js";
|
|
6
|
+
function j(e, { blockTag: l = e.experimental_blockTag ?? "latest", emitMissed: k = !1, emitOnBegin: m = !1, onBlock: y, onError: u, includeTransactions: h, poll: d, pollingInterval: w = e.pollingInterval }) {
|
|
7
|
+
const B = typeof d < "u" ? d : !(e.transport.type === "webSocket" || e.transport.type === "ipc" || e.transport.type === "fallback" && (e.transport.transports[0].config.type === "webSocket" || e.transport.transports[0].config.type === "ipc")), c = h ?? !1;
|
|
8
|
+
let t;
|
|
9
|
+
return B ? (() => {
|
|
10
|
+
const a = N([
|
|
11
|
+
"watchBlocks",
|
|
12
|
+
e.uid,
|
|
13
|
+
l,
|
|
14
|
+
k,
|
|
15
|
+
m,
|
|
16
|
+
c,
|
|
17
|
+
w
|
|
18
|
+
]);
|
|
19
|
+
return S(a, { onBlock: y, onError: u }, (s) => x(async () => {
|
|
20
|
+
var o;
|
|
21
|
+
try {
|
|
22
|
+
const r = await p(e, i, "getBlock")({
|
|
23
|
+
blockTag: l,
|
|
24
|
+
includeTransactions: c
|
|
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 && k)
|
|
30
|
+
for (let f = (t == null ? void 0 : t.number) + 1n; f < r.number; f++) {
|
|
31
|
+
const n = await p(e, i, "getBlock")({
|
|
32
|
+
blockNumber: f,
|
|
33
|
+
includeTransactions: c
|
|
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
|
+
l === "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
|
+
(o = s.onError) == null || o.call(s, r);
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
emitOnBegin: m,
|
|
48
|
+
interval: w
|
|
49
|
+
}));
|
|
50
|
+
})() : (() => {
|
|
51
|
+
let a = !0, s = !0, o = () => a = !1;
|
|
52
|
+
return (async () => {
|
|
53
|
+
try {
|
|
54
|
+
m && p(e, i, "getBlock")({
|
|
55
|
+
blockTag: l,
|
|
56
|
+
includeTransactions: c
|
|
57
|
+
}).then((n) => {
|
|
58
|
+
a && s && (y(n, void 0), s = !1);
|
|
59
|
+
}).catch(u);
|
|
60
|
+
const r = (() => {
|
|
61
|
+
if (e.transport.type === "fallback") {
|
|
62
|
+
const n = e.transport.transports.find((b) => b.config.type === "webSocket" || b.config.type === "ipc");
|
|
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
|
+
var g;
|
|
70
|
+
if (!a)
|
|
71
|
+
return;
|
|
72
|
+
const b = await p(e, i, "getBlock")({
|
|
73
|
+
blockNumber: (g = n.result) == null ? void 0 : g.number,
|
|
74
|
+
includeTransactions: c
|
|
75
|
+
}).catch(() => {
|
|
76
|
+
});
|
|
77
|
+
a && (y(b, t), s = !1, t = b);
|
|
78
|
+
},
|
|
79
|
+
onError(n) {
|
|
80
|
+
u == null || u(n);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
o = f, a || o();
|
|
84
|
+
} catch (r) {
|
|
85
|
+
u == null || u(r);
|
|
86
|
+
}
|
|
87
|
+
})(), () => o();
|
|
88
|
+
})();
|
|
14
89
|
}
|
|
15
90
|
export {
|
|
16
|
-
|
|
91
|
+
j as watchBlocks
|
|
17
92
|
};
|
package/dist/index126.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=new Map,r=new Map;let b=0;function w(s,a,C){const o=++b,c=()=>i.get(s)||[],m=()=>{const t=c();i.set(s,t.filter(n=>n.id!==o))},f=()=>{const t=c();if(!t.some(e=>e.id===o))return;const n=r.get(s);if(t.length===1&&n){const e=n();e instanceof Promise&&e.catch(()=>{})}m()},l=c();if(i.set(s,[...l,{id:o,fns:a}]),l&&l.length>0)return f;const u={};for(const t in a)u[t]=(...n)=>{var p,g;const e=c();if(e.length!==0)for(const y of e)(g=(p=y.fns)[t])==null||g.call(p,...n)};const h=C(u);return typeof h=="function"&&r.set(s,h),f}exports.cleanupCache=r;exports.listenersCache=i;exports.observe=w;
|
package/dist/index126.js
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
2
|
+
let k = 0;
|
|
3
|
+
function y(s, l, m) {
|
|
4
|
+
const i = ++k, c = () => f.get(s) || [], w = () => {
|
|
5
|
+
const n = c();
|
|
6
|
+
f.set(s, n.filter((e) => e.id !== i));
|
|
7
|
+
}, r = () => {
|
|
8
|
+
const n = c();
|
|
9
|
+
if (!n.some((t) => t.id === i))
|
|
10
|
+
return;
|
|
11
|
+
const e = g.get(s);
|
|
12
|
+
if (n.length === 1 && e) {
|
|
13
|
+
const t = e();
|
|
14
|
+
t instanceof Promise && t.catch(() => {
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
w();
|
|
18
|
+
}, o = c();
|
|
19
|
+
if (f.set(s, [
|
|
20
|
+
...o,
|
|
21
|
+
{ id: i, fns: l }
|
|
22
|
+
]), o && o.length > 0)
|
|
23
|
+
return r;
|
|
24
|
+
const u = {};
|
|
25
|
+
for (const n in l)
|
|
26
|
+
u[n] = (...e) => {
|
|
27
|
+
var p, h;
|
|
28
|
+
const t = c();
|
|
29
|
+
if (t.length !== 0)
|
|
30
|
+
for (const C of t)
|
|
31
|
+
(h = (p = C.fns)[n]) == null || h.call(p, ...e);
|
|
32
|
+
};
|
|
33
|
+
const a = m(u);
|
|
34
|
+
return typeof a == "function" && g.set(s, a), r;
|
|
3
35
|
}
|
|
4
36
|
export {
|
|
5
|
-
|
|
37
|
+
g as cleanupCache,
|
|
38
|
+
f as listenersCache,
|
|
39
|
+
y as observe
|
|
6
40
|
};
|
package/dist/index127.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("./index245.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/index127.js
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (o.executor)
|
|
16
|
-
return o.executor === "self" ? o.executor : e(o.executor);
|
|
17
|
-
})(), n = {
|
|
18
|
-
address: o.contractAddress ?? o.address,
|
|
19
|
-
chainId: s,
|
|
20
|
-
nonce: u
|
|
21
|
-
};
|
|
22
|
-
return typeof n.chainId > "u" && (n.chainId = ((i = r.chain) == null ? void 0 : i.id) ?? await a(r, p, "getChainId")({})), typeof n.nonce > "u" && (n.nonce = await a(r, g, "getTransactionCount")({
|
|
23
|
-
address: d.address,
|
|
24
|
-
blockTag: "pending"
|
|
25
|
-
}), (t === "self" || t != null && t.address && h(t.address, d.address)) && (n.nonce += 1)), n;
|
|
1
|
+
import { wait as l } from "./index245.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;
|
|
26
15
|
}
|
|
27
16
|
export {
|
|
28
|
-
|
|
17
|
+
f as poll
|
|
29
18
|
};
|
package/dist/index128.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(e,n,i)=>JSON.stringify(e,(o,t)=>typeof t=="bigint"?t.toString():t,i);exports.stringify=r;
|
package/dist/index128.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
async function u(e) {
|
|
3
|
-
return (await e.request({ method: "eth_requestAccounts" }, { dedupe: !0, retryCount: 0 })).map((s) => t(s));
|
|
4
|
-
}
|
|
1
|
+
const g = (r, n, i) => JSON.stringify(r, (e, t) => typeof t == "bigint" ? t.toString() : t, i);
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
g as stringify
|
|
7
4
|
};
|
package/dist/index129.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index84.cjs"),d=require("./index46.cjs"),N=require("./index126.cjs"),h=require("./index127.cjs"),g=require("./index128.cjs"),m=require("./index92.cjs");function q(r,{emitOnBegin:b=!1,emitMissed:l=!1,onBlockNumber:p,onError:a,poll:i,pollingInterval:k=r.pollingInterval}){const B=typeof i<"u"?i:!(r.transport.type==="webSocket"||r.transport.type==="ipc"||r.transport.type==="fallback"&&(r.transport.transports[0].config.type==="webSocket"||r.transport.transports[0].config.type==="ipc"));let e;return B?(()=>{const f=g.stringify(["watchBlockNumber",r.uid,b,l,k]);return N.observe(f,{onBlockNumber:p,onError:a},o=>h.poll(async()=>{var u;try{const t=await d.getAction(r,m.getBlockNumber,"getBlockNumber")({cacheTime:0});if(e){if(t===e)return;if(t-e>1&&l)for(let s=e+1n;s<t;s++)o.onBlockNumber(s,e),e=s}(!e||t>e)&&(o.onBlockNumber(t,e),e=t)}catch(t){(u=o.onError)==null||u.call(o,t)}},{emitOnBegin:b,interval:k}))})():(()=>{const f=g.stringify(["watchBlockNumber",r.uid,b,l]);return N.observe(f,{onBlockNumber:p,onError:a},o=>{let u=!0,t=()=>u=!1;return(async()=>{try{const s=(()=>{if(r.transport.type==="fallback"){const n=r.transport.transports.find(c=>c.config.type==="webSocket"||c.config.type==="ipc");return n?n.value:r.transport}return r.transport})(),{unsubscribe:v}=await s.subscribe({params:["newHeads"],onData(n){var y;if(!u)return;const c=w.hexToBigInt((y=n.result)==null?void 0:y.number);o.onBlockNumber(c,e),e=c},onError(n){var c;(c=o.onError)==null||c.call(o,n)}});t=v,u||t()}catch(s){a==null||a(s)}})(),()=>t()})})()}exports.watchBlockNumber=q;
|
package/dist/index129.js
CHANGED
|
@@ -1,9 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { hexToBigInt as g } from "./index84.js";
|
|
2
|
+
import { getAction as h } from "./index46.js";
|
|
3
|
+
import { observe as y } from "./index126.js";
|
|
4
|
+
import { poll as v } from "./index127.js";
|
|
5
|
+
import { stringify as N } from "./index128.js";
|
|
6
|
+
import { getBlockNumber as d } from "./index92.js";
|
|
7
|
+
function j(r, { emitOnBegin: b = !1, emitMissed: p = !1, onBlockNumber: l, onError: n, poll: k, pollingInterval: i = r.pollingInterval }) {
|
|
8
|
+
const B = typeof k < "u" ? k : !(r.transport.type === "webSocket" || r.transport.type === "ipc" || r.transport.type === "fallback" && (r.transport.transports[0].config.type === "webSocket" || r.transport.transports[0].config.type === "ipc"));
|
|
9
|
+
let t;
|
|
10
|
+
return B ? (() => {
|
|
11
|
+
const f = N([
|
|
12
|
+
"watchBlockNumber",
|
|
13
|
+
r.uid,
|
|
14
|
+
b,
|
|
15
|
+
p,
|
|
16
|
+
i
|
|
17
|
+
]);
|
|
18
|
+
return y(f, { onBlockNumber: l, onError: n }, (e) => v(async () => {
|
|
19
|
+
var c;
|
|
20
|
+
try {
|
|
21
|
+
const o = await h(r, d, "getBlockNumber")({ cacheTime: 0 });
|
|
22
|
+
if (t) {
|
|
23
|
+
if (o === t)
|
|
24
|
+
return;
|
|
25
|
+
if (o - t > 1 && p)
|
|
26
|
+
for (let s = t + 1n; s < o; s++)
|
|
27
|
+
e.onBlockNumber(s, t), t = s;
|
|
28
|
+
}
|
|
29
|
+
(!t || o > t) && (e.onBlockNumber(o, t), t = o);
|
|
30
|
+
} catch (o) {
|
|
31
|
+
(c = e.onError) == null || c.call(e, o);
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
emitOnBegin: b,
|
|
35
|
+
interval: i
|
|
36
|
+
}));
|
|
37
|
+
})() : (() => {
|
|
38
|
+
const f = N([
|
|
39
|
+
"watchBlockNumber",
|
|
40
|
+
r.uid,
|
|
41
|
+
b,
|
|
42
|
+
p
|
|
43
|
+
]);
|
|
44
|
+
return y(f, { onBlockNumber: l, onError: n }, (e) => {
|
|
45
|
+
let c = !0, o = () => c = !1;
|
|
46
|
+
return (async () => {
|
|
47
|
+
try {
|
|
48
|
+
const s = (() => {
|
|
49
|
+
if (r.transport.type === "fallback") {
|
|
50
|
+
const a = r.transport.transports.find((u) => u.config.type === "webSocket" || u.config.type === "ipc");
|
|
51
|
+
return a ? a.value : r.transport;
|
|
52
|
+
}
|
|
53
|
+
return r.transport;
|
|
54
|
+
})(), { unsubscribe: w } = await s.subscribe({
|
|
55
|
+
params: ["newHeads"],
|
|
56
|
+
onData(a) {
|
|
57
|
+
var m;
|
|
58
|
+
if (!c)
|
|
59
|
+
return;
|
|
60
|
+
const u = g((m = a.result) == null ? void 0 : m.number);
|
|
61
|
+
e.onBlockNumber(u, t), t = u;
|
|
62
|
+
},
|
|
63
|
+
onError(a) {
|
|
64
|
+
var u;
|
|
65
|
+
(u = e.onError) == null || u.call(e, a);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
o = w, c || o();
|
|
69
|
+
} catch (s) {
|
|
70
|
+
n == null || n(s);
|
|
71
|
+
}
|
|
72
|
+
})(), () => o();
|
|
73
|
+
});
|
|
74
|
+
})();
|
|
6
75
|
}
|
|
7
76
|
export {
|
|
8
|
-
|
|
77
|
+
j as watchBlockNumber
|
|
9
78
|
};
|
package/dist/index130.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("./index73.cjs"),T=require("./index126.cjs"),B=require("./index127.cjs"),C=require("./index128.cjs"),A=require("./index116.cjs"),O=require("./index131.cjs"),P=require("./index132.cjs"),I=require("./index106.cjs"),g=require("./index46.cjs"),j=require("./index74.cjs"),z=require("./index92.cjs"),R=require("./index104.cjs"),U=require("./index99.cjs"),$=require("./index133.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==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),N=k??!1;return S?(()=>{const p=C.stringify(["watchEvent",b,d,w,e.uid,u,L,f]);return T.observe(p,{onLogs:q,onError:c},s=>{let o;f!==void 0&&(o=f-1n);let n,i=!1;const h=B.poll(async()=>{var r;if(!i){try{n=await g.getAction(e,j.createEventFilter,"createEventFilter")({address:b,args:d,event:u,events:m,strict:N,fromBlock:f})}catch{}i=!0;return}try{let t;if(n)t=await g.getAction(e,R.getFilterChanges,"getFilterChanges")({filter:n});else{const a=await g.getAction(e,z.getBlockNumber,"getBlockNumber")({});o&&o!==a?t=await g.getAction(e,U.getLogs,"getLogs")({address:b,args:d,event:u,events:m,fromBlock:o+1n,toBlock:a}):t=[],o=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&&(i=!1),(r=s.onError)==null||r.call(s,t)}},{emitOnBegin:!0,interval:L});return async()=>{n&&await g.getAction(e,$.uninstallFilter,"uninstallFilter")({filter:n}),h()}})})():(()=>{let p=!0,s=()=>p=!1;return(async()=>{try{const o=(()=>{if(e.transport.type==="fallback"){const r=e.transport.transports.find(t=>t.config.type==="webSocket"||t.config.type==="ipc");return r?r.value:e.transport}return e.transport})(),n=m??(u?[u]:void 0);let i=[];n&&(i=[n.flatMap(t=>M.encodeEventTopics({abi:[t],eventName:t.name,args:d}))],u&&(i=i[0]));const{unsubscribe:h}=await o.subscribe({params:["logs",{address:b,topics:i}],onData(r){var a;if(!p)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,p||s()}catch(o){c==null||c(o)}})(),()=>s()})()}exports.watchEvent=G;
|