@gardenfi/utils 2.4.3 → 2.4.4
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/index10.cjs +1 -1
- package/dist/index10.js +4 -4
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +6 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +35 -50
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +9 -16
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +7 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +26 -5
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +10 -14
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +14 -3
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +116 -25
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +81 -4
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +177 -6
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +5 -87
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +13 -125
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +12 -6
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +94 -20
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +74 -16
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +88 -39
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +137 -20
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +68 -10
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +23 -6
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +106 -103
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +7 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +51 -4
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +17 -9
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +11 -2
- package/dist/index124.cjs +1 -2
- package/dist/index124.js +6 -3
- package/dist/index125.cjs +1 -20
- package/dist/index125.js +14 -326
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +3 -13
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +26 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +5 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -7
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +84 -211
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +124 -30
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +7 -21
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +21 -5
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +17 -73
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +40 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +21 -5
- package/dist/index137.cjs +1 -9
- package/dist/index137.js +11 -35
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +6 -110
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +107 -3
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +3 -24
- package/dist/index141.cjs +1 -3
- package/dist/index141.js +4 -452
- package/dist/index142.cjs +1 -2
- package/dist/index142.js +9 -55
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +2 -27
- package/dist/index144.cjs +2 -1
- package/dist/index144.js +3 -34
- package/dist/index145.cjs +20 -1
- package/dist/index145.js +320 -29
- package/dist/index146.cjs +1 -4
- package/dist/index146.js +11 -192
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +4 -8
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +2 -13
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +6 -17
- package/dist/index150.cjs +3 -1
- package/dist/index150.js +207 -19
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +21 -55
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -45
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +73 -8
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +5 -7
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +5 -16
- package/dist/index157.cjs +9 -1
- package/dist/index157.js +33 -16
- package/dist/index158.cjs +3 -1
- package/dist/index158.js +110 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +3 -52
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +4 -4
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +23 -11
- package/dist/index161.cjs +3 -1
- package/dist/index161.js +451 -161
- package/dist/index162.cjs +2 -1
- package/dist/index162.js +53 -20
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +25 -126
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +28 -33
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +35 -6
- package/dist/index166.cjs +4 -1
- package/dist/index166.js +194 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +6 -189
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +19 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +23 -60
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +9 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +7 -20
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +16 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +18 -23
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +21 -11
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +50 -33
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +12 -3
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +161 -18
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +126 -26
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +37 -35
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +6 -10
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +27 -25
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +190 -27
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +4 -66
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +64 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +3 -34
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +20 -24
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +16 -24
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +23 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +34 -14
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +3 -104
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +18 -80
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +27 -5
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +36 -6
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +10 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +25 -39
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +28 -13
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +62 -39
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +9 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +24 -11
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +24 -19
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +3 -78
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +15 -2
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +76 -33
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +5 -111
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +26 -48
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +40 -30
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +5 -8
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +11 -6
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +19 -6
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +78 -11
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -11
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +36 -12
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +107 -28
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +50 -5
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +32 -7
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +6 -20
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +6 -31
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +11 -20
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +13 -17
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +32 -10
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +5 -22
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +7 -22
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +8 -5
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +20 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +31 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +20 -104
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +4 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +17 -18
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +9 -170
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +20 -16
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +22 -10
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +5 -16
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +8 -22
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +103 -29
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +3 -2
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +18 -13
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +16 -11
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +13 -31
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +10 -47
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +15 -10
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +22 -7
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +30 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +2 -14
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +13 -14
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +12 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +47 -24
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +11 -12
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +7 -24
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +58 -32
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +8 -12
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +13 -15
- package/dist/index252.cjs +1 -2
- package/dist/index252.js +12 -22
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +9 -52
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +24 -25
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +12 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +24 -15
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +13 -5
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +15 -13
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +24 -10
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +113 -11
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +52 -16
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +222 -101
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +138 -5
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +141 -219
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +103 -6
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +7 -7
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +41 -25
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +78 -5
- package/dist/index268.cjs +1 -2
- package/dist/index268.js +2 -42
- package/dist/index269.cjs +2 -1
- package/dist/index269.js +42 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +32 -58
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +2 -11
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +5 -19
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +10 -8
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +19 -66
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +8 -65
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +56 -176
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +63 -20
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +181 -37
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +21 -75
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +22 -20
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +31 -13
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +69 -9
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +34 -7
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +16 -12
- package/dist/index283.cjs +1 -2
- package/dist/index283.js +13 -18
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +12 -14
- package/dist/index285.cjs +2 -1
- package/dist/index285.js +18 -11
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +13 -18
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +11 -146
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +6 -3
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +7 -141
- package/dist/index29.cjs +1 -16
- package/dist/index29.js +11 -113
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +26 -155
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +19 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +3 -113
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +128 -122
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +152 -8
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +9 -19
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +104 -130
- package/dist/index297.cjs +2 -1
- package/dist/index297.js +127 -35
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +10 -77
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +20 -2
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +4 -4
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +2 -2
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +1 -1
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +1 -1
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +3 -3
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +2 -2
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +2 -2
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +4 -63
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +59 -40
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +5 -5
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +45 -5
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +45 -31
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +24 -28
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -33
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +15 -44
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +5 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +9 -37
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +11 -58
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -37
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -15
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -8
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +56 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +16 -45
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +5 -31
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +170 -8
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +99 -64
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +21 -28
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +7 -71
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +29 -17
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +29 -110
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +16 -60
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +29 -20
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +41 -37
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +149 -35
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +31 -54
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +33 -161
- package/dist/index62.cjs +2 -1
- package/dist/index62.js +58 -39
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +37 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +15 -36
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +8 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +2 -51
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +42 -82
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +30 -40
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +9 -8
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +68 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +9 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +28 -8
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +71 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +19 -7
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +110 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +57 -43
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +24 -13
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +40 -16
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +37 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +58 -6
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +164 -33
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +40 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +8 -7
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +36 -26
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +9 -10
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +50 -14
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +81 -113
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +37 -77
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -177
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +5 -5
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +17 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +8 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -95
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +7 -75
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +9 -89
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +45 -137
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +13 -69
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +15 -22
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +13 -109
- package/package.json +1 -1
package/dist/index63.js
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})
|
|
8
|
-
|
|
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;
|
|
9
35
|
}
|
|
10
36
|
export {
|
|
11
|
-
|
|
37
|
+
g as cleanupCache,
|
|
38
|
+
f as listenersCache,
|
|
39
|
+
y as observe
|
|
12
40
|
};
|
package/dist/index64.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("./index229.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/index64.js
CHANGED
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
method: "eth_newFilter",
|
|
16
|
-
params: [
|
|
17
|
-
{
|
|
18
|
-
address: p,
|
|
19
|
-
fromBlock: typeof n == "bigint" ? m(n) : n,
|
|
20
|
-
toBlock: typeof i == "bigint" ? m(i) : i,
|
|
21
|
-
...t.length ? { topics: t } : {}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
abi: o,
|
|
27
|
-
args: a,
|
|
28
|
-
eventName: e ? e.name : void 0,
|
|
29
|
-
fromBlock: n,
|
|
30
|
-
id: s,
|
|
31
|
-
request: u(s),
|
|
32
|
-
strict: !!f,
|
|
33
|
-
toBlock: i,
|
|
34
|
-
type: "event"
|
|
35
|
-
};
|
|
1
|
+
import { wait as l } from "./index229.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;
|
|
36
15
|
}
|
|
37
16
|
export {
|
|
38
|
-
|
|
17
|
+
f as poll
|
|
39
18
|
};
|
package/dist/index65.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}exports.withResolvers=i;
|
package/dist/index65.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
return { id: t, request: n(t), type: "transaction" };
|
|
1
|
+
function i() {
|
|
2
|
+
let e = () => {
|
|
3
|
+
}, n = () => {
|
|
4
|
+
};
|
|
5
|
+
return { promise: new Promise((r, o) => {
|
|
6
|
+
e = r, n = o;
|
|
7
|
+
}), resolve: e, reject: n };
|
|
9
8
|
}
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
i as withResolvers
|
|
12
11
|
};
|
package/dist/index66.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/index66.js
CHANGED
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { getAction as F } from "./index32.js";
|
|
3
|
-
import { internal_estimateMaxPriorityFeePerGas as g } from "./index68.js";
|
|
4
|
-
import { getBlock as y } from "./index71.js";
|
|
5
|
-
import { getGasPrice as u } from "./index80.js";
|
|
6
|
-
async function I(a, o) {
|
|
7
|
-
return w(a, o);
|
|
8
|
-
}
|
|
9
|
-
async function w(a, o) {
|
|
10
|
-
var P, p;
|
|
11
|
-
const { block: i, chain: t = a.chain, request: e, type: m = "eip1559" } = o || {}, n = await (async () => {
|
|
12
|
-
var r, s;
|
|
13
|
-
return typeof ((r = t == null ? void 0 : t.fees) == null ? void 0 : r.baseFeeMultiplier) == "function" ? t.fees.baseFeeMultiplier({
|
|
14
|
-
block: i,
|
|
15
|
-
client: a,
|
|
16
|
-
request: e
|
|
17
|
-
}) : ((s = t == null ? void 0 : t.fees) == null ? void 0 : s.baseFeeMultiplier) ?? 1.2;
|
|
18
|
-
})();
|
|
19
|
-
if (n < 1)
|
|
20
|
-
throw new G();
|
|
21
|
-
const l = 10 ** (((P = n.toString().split(".")[1]) == null ? void 0 : P.length) ?? 0), c = (r) => r * BigInt(Math.ceil(n * l)) / BigInt(l), f = i || await F(a, y, "getBlock")({});
|
|
22
|
-
if (typeof ((p = t == null ? void 0 : t.fees) == null ? void 0 : p.estimateFeesPerGas) == "function") {
|
|
23
|
-
const r = await t.fees.estimateFeesPerGas({
|
|
24
|
-
block: i,
|
|
25
|
-
client: a,
|
|
26
|
-
multiply: c,
|
|
27
|
-
request: e,
|
|
28
|
-
type: m
|
|
29
|
-
});
|
|
30
|
-
if (r !== null)
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
if (m === "eip1559") {
|
|
34
|
-
if (typeof f.baseFeePerGas != "bigint")
|
|
35
|
-
throw new b();
|
|
36
|
-
const r = typeof (e == null ? void 0 : e.maxPriorityFeePerGas) == "bigint" ? e.maxPriorityFeePerGas : await g(a, {
|
|
37
|
-
block: f,
|
|
38
|
-
chain: t,
|
|
39
|
-
request: e
|
|
40
|
-
}), s = c(f.baseFeePerGas);
|
|
41
|
-
return {
|
|
42
|
-
maxFeePerGas: (e == null ? void 0 : e.maxFeePerGas) ?? s + r,
|
|
43
|
-
maxPriorityFeePerGas: r
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
gasPrice: (e == null ? void 0 : e.gasPrice) ?? c(await F(a, u, "getGasPrice")({}))
|
|
48
|
-
};
|
|
49
|
-
}
|
|
1
|
+
const g = (r, n, i) => JSON.stringify(r, (e, t) => typeof t == "bigint" ? t.toString() : t, i);
|
|
50
2
|
export {
|
|
51
|
-
|
|
52
|
-
w as internal_estimateFeesPerGas
|
|
3
|
+
g as stringify
|
|
53
4
|
};
|
package/dist/index67.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index179.cjs"),I=require("./index180.cjs"),n=require("./index44.cjs"),T=require("./index199.cjs"),o=require("./index130.cjs");async function q(r,l){async function d(e){if(e.endsWith(o.fallbackMagicIdentifier.slice(2))){const p=I.trim(c.sliceHex(e,-64,-32)),b=c.sliceHex(e,0,-64).slice(2).match(/.{1,64}/g),s=await Promise.all(b.map(t=>o.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?r.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),x=s.some(t=>t===null)?100:s.every(t=>(t==null?void 0:t.status)==="0x1")?200:s.every(t=>(t==null?void 0:t.status)==="0x0")?500:600;return{atomic:!1,chainId:n.hexToNumber(p),receipts:s.filter(Boolean),status:x,version:"2.0.0"}}return r.request({method:"wallet_getCallsStatus",params:[e]})}const{atomic:f=!1,chainId:i,receipts:a,version:m="2.0.0",...u}=await d(l.id),[g,h]=(()=>{const e=u.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:e==="CONFIRMED"?["success",200]:e==="PENDING"?["pending",100]:[void 0,e]})();return{...u,atomic:f,chainId:i?n.hexToNumber(i):void 0,receipts:(a==null?void 0:a.map(e=>({...e,blockNumber:n.hexToBigInt(e.blockNumber),gasUsed:n.hexToBigInt(e.gasUsed),status:T.receiptStatuses[e.status]})))??[],statusCode:h,status:g,version:m}}exports.getCallsStatus=q;
|
package/dist/index67.js
CHANGED
|
@@ -1,88 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
params: a ? [e, s ?? "latest", a] : s ? [e, s] : [e]
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
const { accessList: n, authorizationList: o, blobs: g, blobVersionedHashes: k, blockNumber: h, blockTag: z, data: b, gas: P, gasPrice: B, maxFeePerBlobGas: H, maxFeePerGas: F, maxPriorityFeePerGas: L, nonce: O, value: R, stateOverride: T, ...m } = await J(r, {
|
|
24
|
-
...i,
|
|
25
|
-
parameters: (
|
|
26
|
-
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
|
27
|
-
// to compute them.
|
|
28
|
-
(t == null ? void 0 : t.type) === "local" ? void 0 : ["blobVersionedHashes"]
|
|
29
|
-
)
|
|
30
|
-
}), l = (typeof h == "bigint" ? G(h) : void 0) || z, w = j(T), A = await (async () => {
|
|
31
|
-
if (m.to)
|
|
32
|
-
return m.to;
|
|
33
|
-
if (o && o.length > 0)
|
|
34
|
-
return await _({
|
|
35
|
-
authorization: o[0]
|
|
36
|
-
}).catch(() => {
|
|
37
|
-
throw new S("`to` is required. Could not infer from `authorizationList`");
|
|
38
|
-
});
|
|
39
|
-
})();
|
|
40
|
-
D(i);
|
|
41
|
-
const q = (p = (d = (f = r.chain) == null ? void 0 : f.formatters) == null ? void 0 : d.transactionRequest) == null ? void 0 : p.format, v = (q || C)({
|
|
42
|
-
// Pick out extra data that might exist on the chain's transaction request type.
|
|
43
|
-
...V(m, { format: q }),
|
|
44
|
-
from: t == null ? void 0 : t.address,
|
|
45
|
-
accessList: n,
|
|
46
|
-
authorizationList: o,
|
|
47
|
-
blobs: g,
|
|
48
|
-
blobVersionedHashes: k,
|
|
49
|
-
data: b,
|
|
50
|
-
gas: P,
|
|
51
|
-
gasPrice: B,
|
|
52
|
-
maxFeePerBlobGas: H,
|
|
53
|
-
maxFeePerGas: F,
|
|
54
|
-
maxPriorityFeePerGas: L,
|
|
55
|
-
nonce: O,
|
|
56
|
-
to: A,
|
|
57
|
-
value: R
|
|
58
|
-
});
|
|
59
|
-
let y = BigInt(await x({ block: l, request: v, rpcStateOverride: w }));
|
|
60
|
-
if (o) {
|
|
61
|
-
const c = await K(r, { address: v.from }), s = await Promise.all(o.map(async (e) => {
|
|
62
|
-
const { address: a } = e, E = await x({
|
|
63
|
-
block: l,
|
|
64
|
-
request: {
|
|
65
|
-
authorizationList: void 0,
|
|
66
|
-
data: b,
|
|
67
|
-
from: t == null ? void 0 : t.address,
|
|
68
|
-
to: a,
|
|
69
|
-
value: G(c)
|
|
70
|
-
},
|
|
71
|
-
rpcStateOverride: w
|
|
72
|
-
}).catch(() => 100000n);
|
|
73
|
-
return 2n * BigInt(E);
|
|
74
|
-
}));
|
|
75
|
-
y += s.reduce((e, a) => e + a, 0n);
|
|
1
|
+
import { sliceHex as o } from "./index179.js";
|
|
2
|
+
import { trim as x } from "./index180.js";
|
|
3
|
+
import { hexToNumber as u, hexToBigInt as c } from "./index44.js";
|
|
4
|
+
import { receiptStatuses as N } from "./index199.js";
|
|
5
|
+
import { fallbackMagicIdentifier as T, fallbackTransactionErrorMagicIdentifier as C } from "./index130.js";
|
|
6
|
+
async function M(a, f) {
|
|
7
|
+
async function m(t) {
|
|
8
|
+
if (t.endsWith(T.slice(2))) {
|
|
9
|
+
const h = x(o(t, -64, -32)), I = o(t, 0, -64).slice(2).match(/.{1,64}/g), s = await Promise.all(I.map((e) => C.slice(2) !== e ? a.request({
|
|
10
|
+
method: "eth_getTransactionReceipt",
|
|
11
|
+
params: [`0x${e}`]
|
|
12
|
+
}, { dedupe: !0 }) : void 0)), b = s.some((e) => e === null) ? 100 : s.every((e) => (e == null ? void 0 : e.status) === "0x1") ? 200 : s.every((e) => (e == null ? void 0 : e.status) === "0x0") ? 500 : 600;
|
|
13
|
+
return {
|
|
14
|
+
atomic: !1,
|
|
15
|
+
chainId: u(h),
|
|
16
|
+
receipts: s.filter(Boolean),
|
|
17
|
+
status: b,
|
|
18
|
+
version: "2.0.0"
|
|
19
|
+
};
|
|
76
20
|
}
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
...i,
|
|
81
|
-
account: t,
|
|
82
|
-
chain: r.chain
|
|
21
|
+
return a.request({
|
|
22
|
+
method: "wallet_getCallsStatus",
|
|
23
|
+
params: [t]
|
|
83
24
|
});
|
|
84
25
|
}
|
|
26
|
+
const { atomic: l = !1, chainId: r, receipts: n, version: d = "2.0.0", ...i } = await m(f.id), [p, g] = (() => {
|
|
27
|
+
const t = i.status;
|
|
28
|
+
return t >= 100 && t < 200 ? ["pending", t] : t >= 200 && t < 300 ? ["success", t] : t >= 300 && t < 700 ? ["failure", t] : t === "CONFIRMED" ? ["success", 200] : t === "PENDING" ? ["pending", 100] : [void 0, t];
|
|
29
|
+
})();
|
|
30
|
+
return {
|
|
31
|
+
...i,
|
|
32
|
+
atomic: l,
|
|
33
|
+
// @ts-expect-error: for backwards compatibility
|
|
34
|
+
chainId: r ? u(r) : void 0,
|
|
35
|
+
receipts: (n == null ? void 0 : n.map((t) => ({
|
|
36
|
+
...t,
|
|
37
|
+
blockNumber: c(t.blockNumber),
|
|
38
|
+
gasUsed: c(t.gasUsed),
|
|
39
|
+
status: N[t.status]
|
|
40
|
+
}))) ?? [],
|
|
41
|
+
statusCode: g,
|
|
42
|
+
status: p,
|
|
43
|
+
version: d
|
|
44
|
+
};
|
|
85
45
|
}
|
|
86
46
|
export {
|
|
87
|
-
|
|
47
|
+
M as getCallsStatus
|
|
88
48
|
};
|
package/dist/index68.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("./index51.cjs"),j=require("./index69.cjs");function q(n){const{batch:u,chain:t,ccipRead:a,key:r="base",name:d="Base Client",type:b="base"}=n,f=(t==null?void 0:t.blockTime)??12e3,g=Math.min(Math.max(Math.floor(f/2),500),4e3),e=n.pollingInterval??g,h=n.cacheTime??e,v=n.account?M.parseAccount(n.account):void 0,{config:x,request:y,value:T}=n.transport({chain:t,pollingInterval:e}),k={...x,...T},c={account:v,batch:u,cacheTime:h,ccipRead:a,chain:t,key:r,name:d,pollingInterval:e,request:y,transport:k,type:b,uid:j.uid()};function o(i){return m=>{const l=m(i);for(const p in c)delete l[p];const s={...i,...l};return Object.assign(s,{extend:o(s)})}}return Object.assign(c,{extend:o(c)})}exports.createClient=q;
|
package/dist/index68.js
CHANGED
|
@@ -1,44 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
return p(s);
|
|
30
|
-
} catch {
|
|
31
|
-
const [r, s] = await Promise.all([
|
|
32
|
-
a ? Promise.resolve(a) : n(e, c, "getBlock")({}),
|
|
33
|
-
n(e, F, "getGasPrice")({})
|
|
34
|
-
]);
|
|
35
|
-
if (typeof r.baseFeePerGas != "bigint")
|
|
36
|
-
throw new y();
|
|
37
|
-
const o = s - r.baseFeePerGas;
|
|
38
|
-
return o < 0n ? 0n : o;
|
|
1
|
+
import { parseAccount as I } from "./index51.js";
|
|
2
|
+
import { uid as M } from "./index69.js";
|
|
3
|
+
function O(n) {
|
|
4
|
+
const { batch: u, chain: t, ccipRead: a, key: d = "base", name: r = "Base Client", type: f = "base" } = n, b = (t == null ? void 0 : t.blockTime) ?? 12e3, m = Math.min(Math.max(Math.floor(b / 2), 500), 4e3), e = n.pollingInterval ?? m, g = n.cacheTime ?? e, x = n.account ? I(n.account) : void 0, { config: h, request: p, value: k } = n.transport({
|
|
5
|
+
chain: t,
|
|
6
|
+
pollingInterval: e
|
|
7
|
+
}), v = { ...h, ...k }, c = {
|
|
8
|
+
account: x,
|
|
9
|
+
batch: u,
|
|
10
|
+
cacheTime: g,
|
|
11
|
+
ccipRead: a,
|
|
12
|
+
chain: t,
|
|
13
|
+
key: d,
|
|
14
|
+
name: r,
|
|
15
|
+
pollingInterval: e,
|
|
16
|
+
request: p,
|
|
17
|
+
transport: v,
|
|
18
|
+
type: f,
|
|
19
|
+
uid: M()
|
|
20
|
+
};
|
|
21
|
+
function o(i) {
|
|
22
|
+
return (T) => {
|
|
23
|
+
const l = T(i);
|
|
24
|
+
for (const y in c)
|
|
25
|
+
delete l[y];
|
|
26
|
+
const s = { ...i, ...l };
|
|
27
|
+
return Object.assign(s, { extend: o(s) });
|
|
28
|
+
};
|
|
39
29
|
}
|
|
30
|
+
return Object.assign(c, { extend: o(c) });
|
|
40
31
|
}
|
|
41
32
|
export {
|
|
42
|
-
|
|
43
|
-
G as internal_estimateMaxPriorityFeePerGas
|
|
33
|
+
O as createClient
|
|
44
34
|
};
|
package/dist/index69.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=256;let t=i,e;function u(r=11){if(!e||t+r>i*2){e="",t=0;for(let n=0;n<i;n++)e+=(256+Math.random()*256|0).toString(16).substring(1)}return e.substring(t,t+++r)}exports.uid=u;
|
package/dist/index69.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
let i = 256, t;
|
|
2
|
+
function s(e = 11) {
|
|
3
|
+
if (!t || i + e > 256 * 2) {
|
|
4
|
+
t = "", i = 0;
|
|
5
|
+
for (let r = 0; r < 256; r++)
|
|
6
|
+
t += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
|
7
|
+
}
|
|
8
|
+
return t.substring(i, i++ + e);
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
s as
|
|
11
|
+
s as uid
|
|
11
12
|
};
|
package/dist/index70.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index66.cjs"),i=require("./index62.cjs"),o=require("./index159.cjs");class d extends i.BaseError{constructor({body:t,cause:e,details:r,headers:n,status:s,url:l}){super("HTTP request failed.",{cause:e,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${o.getUrl(l)}`,t&&`Request body: ${u.stringify(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=n,this.status=s,this.url=l}}class c extends i.BaseError{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${o.getUrl(r)}`,`Request body: ${u.stringify(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class b extends i.BaseError{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${o.getUrl(e)}`,`Request body: ${u.stringify(t)}`],name:"TimeoutError"})}}exports.HttpRequestError=d;exports.RpcRequestError=c;exports.TimeoutError=b;
|
package/dist/index70.js
CHANGED
|
@@ -1,9 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { stringify as s } from "./index66.js";
|
|
2
|
+
import { BaseError as a } from "./index62.js";
|
|
3
|
+
import { getUrl as o } from "./index159.js";
|
|
4
|
+
class m extends a {
|
|
5
|
+
constructor({ body: t, cause: e, details: r, headers: d, status: u, url: l }) {
|
|
6
|
+
super("HTTP request failed.", {
|
|
7
|
+
cause: e,
|
|
8
|
+
details: r,
|
|
9
|
+
metaMessages: [
|
|
10
|
+
u && `Status: ${u}`,
|
|
11
|
+
`URL: ${o(l)}`,
|
|
12
|
+
t && `Request body: ${s(t)}`
|
|
13
|
+
].filter(Boolean),
|
|
14
|
+
name: "HttpRequestError"
|
|
15
|
+
}), Object.defineProperty(this, "body", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
configurable: !0,
|
|
18
|
+
writable: !0,
|
|
19
|
+
value: void 0
|
|
20
|
+
}), Object.defineProperty(this, "headers", {
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
configurable: !0,
|
|
23
|
+
writable: !0,
|
|
24
|
+
value: void 0
|
|
25
|
+
}), Object.defineProperty(this, "status", {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
configurable: !0,
|
|
28
|
+
writable: !0,
|
|
29
|
+
value: void 0
|
|
30
|
+
}), Object.defineProperty(this, "url", {
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
configurable: !0,
|
|
33
|
+
writable: !0,
|
|
34
|
+
value: void 0
|
|
35
|
+
}), this.body = t, this.headers = d, this.status = u, this.url = l;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
class f extends a {
|
|
39
|
+
constructor({ body: t, error: e, url: r }) {
|
|
40
|
+
super("RPC Request failed.", {
|
|
41
|
+
cause: e,
|
|
42
|
+
details: e.message,
|
|
43
|
+
metaMessages: [`URL: ${o(r)}`, `Request body: ${s(t)}`],
|
|
44
|
+
name: "RpcRequestError"
|
|
45
|
+
}), Object.defineProperty(this, "code", {
|
|
46
|
+
enumerable: !0,
|
|
47
|
+
configurable: !0,
|
|
48
|
+
writable: !0,
|
|
49
|
+
value: void 0
|
|
50
|
+
}), Object.defineProperty(this, "data", {
|
|
51
|
+
enumerable: !0,
|
|
52
|
+
configurable: !0,
|
|
53
|
+
writable: !0,
|
|
54
|
+
value: void 0
|
|
55
|
+
}), this.code = e.code, this.data = e.data;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class p extends a {
|
|
59
|
+
constructor({ body: t, url: e }) {
|
|
60
|
+
super("The request took too long to respond.", {
|
|
61
|
+
details: "The request timed out.",
|
|
62
|
+
metaMessages: [`URL: ${o(e)}`, `Request body: ${s(t)}`],
|
|
63
|
+
name: "TimeoutError"
|
|
64
|
+
});
|
|
65
|
+
}
|
|
6
66
|
}
|
|
7
67
|
export {
|
|
8
|
-
|
|
68
|
+
m as HttpRequestError,
|
|
69
|
+
f as RpcRequestError,
|
|
70
|
+
p as TimeoutError
|
|
9
71
|
};
|
package/dist/index71.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index62.cjs");class e extends r.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}exports.UrlRequiredError=e;
|
package/dist/index71.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
method: "eth_getBlockByHash",
|
|
10
|
-
params: [t, a]
|
|
11
|
-
}, { dedupe: !0 }) : o = await e.request({
|
|
12
|
-
method: "eth_getBlockByNumber",
|
|
13
|
-
params: [n || d, a]
|
|
14
|
-
}, { dedupe: !!n }), !o)
|
|
15
|
-
throw new i({ blockHash: t, blockNumber: r });
|
|
16
|
-
return (((c = (s = (m = e.chain) == null ? void 0 : m.formatters) == null ? void 0 : s.block) == null ? void 0 : c.format) || p)(o);
|
|
1
|
+
import { BaseError as r } from "./index62.js";
|
|
2
|
+
class t extends r {
|
|
3
|
+
constructor() {
|
|
4
|
+
super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
|
|
5
|
+
docsPath: "/docs/clients/intro",
|
|
6
|
+
name: "UrlRequiredError"
|
|
7
|
+
});
|
|
8
|
+
}
|
|
17
9
|
}
|
|
18
10
|
export {
|
|
19
|
-
|
|
11
|
+
t as UrlRequiredError
|
|
20
12
|
};
|
package/dist/index72.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 v=require("./index65.cjs"),l=new Map;function A({fn:a,id:o,shouldSplitBatch:h,wait:y=0,sort:u}){const i=async()=>{const e=n();f();const s=e.map(({args:t})=>t);s.length!==0&&a(s).then(t=>{u&&Array.isArray(t)&&t.sort(u);for(let c=0;c<e.length;c++){const{resolve:r}=e[c];r==null||r([t[c],t])}}).catch(t=>{for(let c=0;c<e.length;c++){const{reject:r}=e[c];r==null||r(t)}})},f=()=>l.delete(o),m=()=>n().map(({args:e})=>e),n=()=>l.get(o)||[],g=e=>l.set(o,[...n(),e]);return{flush:f,async schedule(e){const{promise:s,resolve:t,reject:c}=v.withResolvers();return(h==null?void 0:h([...m(),e]))&&i(),n().length>0?(g({args:e,resolve:t,reject:c}),s):(g({args:e,resolve:t,reject:c}),setTimeout(i,y),s)}}}exports.createBatchScheduler=A;
|