@gardenfi/utils 2.2.1 → 2.3.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/index.cjs +1 -1
- package/dist/index.js +35 -31
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +114 -34
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +41 -8
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +17 -26
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +6 -10
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +8 -13
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -117
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +106 -78
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +8 -177
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +5 -5
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +7 -13
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +21 -13
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +37 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +8 -95
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +31 -75
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +13 -89
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +7 -138
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +9 -69
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +15 -22
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +69 -105
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +35 -6
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +46 -50
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +14 -16
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +19 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +13 -10
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +9 -5
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +16 -14
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +65 -3
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +10 -25
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +13 -4
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +8 -6
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +10 -88
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +25 -124
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +13 -6
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +137 -10
- package/dist/index130.cjs +3 -1
- package/dist/index130.js +106 -17
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +51 -17
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +24 -40
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +116 -20
- package/dist/index134.cjs +20 -1
- package/dist/index134.js +326 -11
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +81 -6
- package/dist/index136.cjs +4 -1
- package/dist/index136.js +193 -105
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +19 -3
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +25 -4
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +178 -9
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +15 -2
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +13 -2
- package/dist/index141.cjs +1 -2
- package/dist/index141.js +25 -3
- package/dist/index142.cjs +1 -20
- package/dist/index142.js +3 -327
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +89 -13
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +37 -4
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +16 -2
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +2 -8
- package/dist/index147.cjs +1 -3
- package/dist/index147.js +71 -211
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +139 -32
- package/dist/index149.cjs +3 -1
- package/dist/index149.js +451 -21
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -35
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +64 -5
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +6 -73
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +69 -5
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -5
- package/dist/index154.cjs +1 -9
- package/dist/index154.js +3 -35
- package/dist/index155.cjs +1 -3
- package/dist/index155.js +14 -110
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +89 -3
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +13 -23
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +45 -451
- package/dist/index159.cjs +1 -2
- package/dist/index159.js +32 -48
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +26 -18
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +7 -26
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +35 -30
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +8 -35
- package/dist/index163.cjs +1 -4
- package/dist/index163.js +9 -194
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +15 -8
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +95 -18
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +20 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -8
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +6 -7
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +26 -16
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +14 -184
- package/dist/index170.cjs +2 -1
- package/dist/index170.js +23 -17
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +9 -21
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +8 -51
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +10 -11
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +11 -161
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -127
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +14 -38
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +7 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +21 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +6 -191
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +104 -118
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +22 -4
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +38 -62
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +18 -3
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +20 -19
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +79 -15
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +43 -22
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -34
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +53 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -18
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +5 -27
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +5 -36
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +11 -10
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +13 -25
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +13 -28
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -65
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +151 -9
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +35 -24
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +31 -24
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +9 -3
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +68 -14
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +8 -79
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +71 -5
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +19 -27
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +108 -40
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +23 -5
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +50 -11
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +106 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +9 -79
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +2 -2
- package/dist/index209.cjs +2 -1
- package/dist/index209.js +3 -38
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +12 -110
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +4 -49
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +2 -33
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +32 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +21 -6
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +5 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +5 -11
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +5 -10
- package/dist/index218.cjs +9 -1
- package/dist/index218.js +34 -12
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -33
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +27 -5
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +33 -7
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +35 -8
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +7 -19
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +16 -29
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -20
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +8 -3
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +7 -17
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +160 -9
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +126 -20
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +35 -12
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +27 -22
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +191 -5
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +4 -9
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +3 -105
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +21 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +16 -18
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +33 -16
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +3 -11
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +26 -15
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +24 -21
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +12 -57
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +28 -30
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +28 -2
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +42 -13
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +77 -11
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +2 -48
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +36 -10
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +49 -7
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +6 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +6 -13
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +30 -12
- package/dist/index25.cjs +1 -16
- package/dist/index25.js +57 -113
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +5 -10
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +8 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +3 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +17 -24
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +10 -13
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -15
- package/dist/index256.cjs +1 -2
- package/dist/index256.js +8 -24
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +102 -50
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -13
- package/dist/index259.cjs +1 -2
- package/dist/index259.js +18 -18
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +112 -30
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +16 -13
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +224 -11
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +133 -218
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +136 -129
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +99 -142
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +6 -103
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +42 -6
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +66 -30
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +2 -79
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +141 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +18 -17
- package/dist/index270.cjs +1 -2
- package/dist/index270.js +3 -41
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +156 -2
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +9 -5
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +112 -9
- package/dist/index274.cjs +2 -1
- package/dist/index274.js +131 -16
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +6 -8
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +7 -67
- package/dist/index277.cjs +2 -1
- package/dist/index277.js +40 -64
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +2 -187
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +4 -21
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +31 -12
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +9 -41
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +17 -74
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +8 -40
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +66 -16
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +64 -12
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +186 -6
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +23 -7
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +41 -25
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +74 -17
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +40 -3
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +11 -39
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +14 -138
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +7 -149
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +10 -7
- package/dist/index293.cjs +2 -1
- package/dist/index293.js +16 -111
- package/dist/index294.cjs +1 -2
- package/dist/index294.js +13 -133
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -11
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +26 -19
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +17 -696
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +10 -200
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +19 -68
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +15 -11
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +25 -44
- package/dist/index300.cjs +1 -2
- package/dist/index300.js +695 -63
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +201 -4
- package/dist/index302.cjs +2 -1
- package/dist/index302.js +65 -39
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +4 -7
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +38 -60
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +7 -77
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +63 -4
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +64 -181
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +4 -5
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +183 -52
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +7 -25
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +69 -5
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +59 -40
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +45 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +4 -21
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +4 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -6
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +45 -13
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +25 -15
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -5
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +14 -9
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +5 -12
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +13 -11
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +17 -17
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +10 -13
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +11 -32
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -55
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -16
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -5
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +55 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +15 -170
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +5 -103
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +170 -20
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +103 -7
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -31
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +21 -29
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +16 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +9 -32
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +18 -44
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +122 -148
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +56 -31
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +22 -37
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +9 -58
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +6 -6
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +20 -37
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -15
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +10 -8
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +33 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +15 -44
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +15 -30
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +7 -9
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +31 -66
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +22 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +22 -28
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +8 -22
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +58 -71
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +40 -19
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +37 -110
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +163 -57
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +108 -21
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +30 -40
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -38
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +4 -59
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +56 -163
- package/dist/index79.cjs +2 -1
- package/dist/index79.js +51 -37
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +24 -2
- package/dist/index80.cjs +3 -1
- package/dist/index80.js +215 -9
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +12 -35
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +12 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +23 -49
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +26 -83
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +45 -39
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +19 -8
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +11 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +40 -17
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -124
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +7 -13
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +31 -7
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +36 -9
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +36 -46
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +9 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +28 -15
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -13
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +85 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +50 -35
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +23 -9
- package/dist/src/index.d.ts +4 -1
- package/dist/src/lib/approve.d.ts +1 -1
- package/dist/src/lib/auth/apikey/apikey.d.ts +1 -1
- package/dist/src/lib/auth/auth.types.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkey.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkeyLogin.d.ts +3 -3
- package/dist/src/lib/auth/siwe/siwe.d.ts +1 -1
- package/dist/src/lib/blockNumber/blockNumber.d.ts +2 -9
- package/dist/src/lib/blockNumber/index.d.ts +1 -1
- package/dist/src/lib/digestKey/digestKey.d.ts +1 -1
- package/dist/src/lib/fetcher/fetcher.d.ts +45 -0
- package/dist/src/lib/fetcher/index.d.ts +1 -0
- package/dist/src/lib/fetcher/safeParseJson.d.ts +7 -0
- package/dist/src/lib/result/index.d.ts +1 -0
- package/dist/src/lib/retry.d.ts +16 -0
- package/dist/src/lib/tryCatch/index.d.ts +1 -0
- package/dist/src/lib/tryCatch/tryCatch.d.ts +7 -0
- package/dist/src/lib/types.d.ts +3 -0
- package/dist/src/lib/utils.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/src/lib/{result.d.ts → result/result.d.ts} +0 -0
package/dist/index57.js
CHANGED
|
@@ -1,38 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { encodeFunctionData as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { addressResolverAbi as u, universalResolverResolveAbi as A } from "./index22.js";
|
|
2
|
+
import { decodeFunctionResult as R } from "./index58.js";
|
|
3
|
+
import { encodeFunctionData as h } from "./index59.js";
|
|
4
|
+
import { getChainContractAddress as b } from "./index60.js";
|
|
5
|
+
import { trim as w } from "./index61.js";
|
|
6
|
+
import { toHex as C } from "./index33.js";
|
|
7
|
+
import { isNullUniversalResolverError as y } from "./index62.js";
|
|
8
|
+
import { localBatchGatewayUrl as x } from "./index63.js";
|
|
9
|
+
import { namehash as i } from "./index64.js";
|
|
10
|
+
import { packetToBytes as N } from "./index65.js";
|
|
11
|
+
import { getAction as B } from "./index66.js";
|
|
12
|
+
import { readContract as T } from "./index67.js";
|
|
13
|
+
async function J(a, n) {
|
|
14
|
+
const { blockNumber: l, blockTag: m, coinType: o, name: e, gatewayUrls: f, strict: v } = n, { chain: t } = a, p = (() => {
|
|
15
|
+
if (n.universalResolverAddress)
|
|
16
|
+
return n.universalResolverAddress;
|
|
17
|
+
if (!t)
|
|
18
|
+
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
19
|
+
return b({
|
|
20
|
+
blockNumber: l,
|
|
21
|
+
chain: t,
|
|
22
|
+
contract: "ensUniversalResolver"
|
|
12
23
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
functionName: s
|
|
17
|
-
});
|
|
24
|
+
})(), c = t == null ? void 0 : t.ensTlds;
|
|
25
|
+
if (c && !c.some((r) => e.endsWith(r)))
|
|
26
|
+
return null;
|
|
18
27
|
try {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
const r = h({
|
|
29
|
+
abi: u,
|
|
30
|
+
functionName: "addr",
|
|
31
|
+
...o != null ? { args: [i(e), BigInt(o)] } : { args: [i(e)] }
|
|
32
|
+
}), g = {
|
|
33
|
+
address: p,
|
|
34
|
+
abi: A,
|
|
35
|
+
functionName: "resolve",
|
|
36
|
+
args: [
|
|
37
|
+
C(N(e)),
|
|
38
|
+
r,
|
|
39
|
+
f ?? [x]
|
|
40
|
+
],
|
|
41
|
+
blockNumber: l,
|
|
42
|
+
blockTag: m
|
|
43
|
+
}, d = await B(a, T, "readContract")(g);
|
|
44
|
+
if (d[0] === "0x")
|
|
45
|
+
return null;
|
|
46
|
+
const s = R({
|
|
47
|
+
abi: u,
|
|
48
|
+
args: o != null ? [i(e), BigInt(o)] : void 0,
|
|
49
|
+
functionName: "addr",
|
|
50
|
+
data: d[0]
|
|
33
51
|
});
|
|
52
|
+
return s === "0x" || w(s) === "0x00" ? null : s;
|
|
53
|
+
} catch (r) {
|
|
54
|
+
if (v)
|
|
55
|
+
throw r;
|
|
56
|
+
if (y(r, "resolve"))
|
|
57
|
+
return null;
|
|
58
|
+
throw r;
|
|
34
59
|
}
|
|
35
60
|
}
|
|
36
61
|
export {
|
|
37
|
-
|
|
62
|
+
J as getEnsAddress
|
|
38
63
|
};
|
package/dist/index58.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 o=require("./index134.cjs"),a=require("./index228.cjs"),b=require("./index116.cjs"),i="/docs/contract/decodeFunctionResult";function f(c){const{abi:r,args:d,functionName:n,data:s}=c;let e=r[0];if(n){const u=b.getAbiItem({abi:r,args:d,name:n});if(!u)throw new o.AbiFunctionNotFoundError(n,{docsPath:i});e=u}if(e.type!=="function")throw new o.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!e.outputs)throw new o.AbiFunctionOutputsNotFoundError(e.name,{docsPath:i});const t=a.decodeAbiParameters(e.outputs,s);if(t&&t.length>1)return t;if(t&&t.length===1)return t[0]}exports.decodeFunctionResult=f;
|
package/dist/index58.js
CHANGED
|
@@ -1,41 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
clearTimeout(s), u(), t(), l();
|
|
14
|
-
};
|
|
15
|
-
try {
|
|
16
|
-
const t = await S(r, { id: i });
|
|
17
|
-
if (!d(t))
|
|
18
|
-
return;
|
|
19
|
-
m(() => e.resolve(t));
|
|
20
|
-
} catch (t) {
|
|
21
|
-
m(() => e.reject(t));
|
|
22
|
-
}
|
|
23
|
-
}, {
|
|
24
|
-
interval: c,
|
|
25
|
-
emitOnBegin: !0
|
|
26
|
-
});
|
|
27
|
-
return u;
|
|
28
|
-
});
|
|
29
|
-
return s = n ? setTimeout(() => {
|
|
30
|
-
l(), clearTimeout(s), a(new h({ id: i }));
|
|
31
|
-
}, n) : void 0, await p;
|
|
32
|
-
}
|
|
33
|
-
class h extends w {
|
|
34
|
-
constructor({ id: o }) {
|
|
35
|
-
super(`Timed out while waiting for call bundle with id "${o}" to be confirmed.`, { name: "WaitForCallsStatusTimeoutError" });
|
|
1
|
+
import { AbiFunctionNotFoundError as u, AbiFunctionOutputsNotFoundError as s } from "./index134.js";
|
|
2
|
+
import { decodeAbiParameters as a } from "./index228.js";
|
|
3
|
+
import { getAbiItem as m } from "./index116.js";
|
|
4
|
+
const e = "/docs/contract/decodeFunctionResult";
|
|
5
|
+
function l(c) {
|
|
6
|
+
const { abi: r, args: d, functionName: o, data: f } = c;
|
|
7
|
+
let n = r[0];
|
|
8
|
+
if (o) {
|
|
9
|
+
const i = m({ abi: r, args: d, name: o });
|
|
10
|
+
if (!i)
|
|
11
|
+
throw new u(o, { docsPath: e });
|
|
12
|
+
n = i;
|
|
36
13
|
}
|
|
14
|
+
if (n.type !== "function")
|
|
15
|
+
throw new u(void 0, { docsPath: e });
|
|
16
|
+
if (!n.outputs)
|
|
17
|
+
throw new s(n.name, { docsPath: e });
|
|
18
|
+
const t = a(n.outputs, f);
|
|
19
|
+
if (t && t.length > 1)
|
|
20
|
+
return t;
|
|
21
|
+
if (t && t.length === 1)
|
|
22
|
+
return t[0];
|
|
37
23
|
}
|
|
38
24
|
export {
|
|
39
|
-
|
|
40
|
-
B as waitForCallsStatus
|
|
25
|
+
l as decodeFunctionResult
|
|
41
26
|
};
|
package/dist/index59.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`);super(b,e.cause?{cause:e.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=n,this.metaMessages=e.metaMessages,this.name=e.name??this.name,this.shortMessage=t,this.version=l.version}walk(t){return d(this,t)}}function d(s,t){return t!=null&&t(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?d(s.cause,t):t?null:s}exports.BaseError=u;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index137.cjs"),s=require("./index231.cjs"),d=require("./index239.cjs");function b(n){const{args:c}=n,{abi:o,functionName:i}=(()=>{var e;return n.abi.length===1&&((e=n.functionName)!=null&&e.startsWith("0x"))?n:d.prepareEncodeFunctionData(n)})(),t=o[0],u=i,a="inputs"in t&&t.inputs?s.encodeAbiParameters(t.inputs,c??[]):void 0;return r.concatHex([u,a??"0x"])}exports.encodeFunctionData=b;
|
package/dist/index59.js
CHANGED
|
@@ -1,62 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
class r extends Error {
|
|
7
|
-
constructor(t, e = {}) {
|
|
1
|
+
import { concatHex as a } from "./index137.js";
|
|
2
|
+
import { encodeAbiParameters as s } from "./index231.js";
|
|
3
|
+
import { prepareEncodeFunctionData as f } from "./index239.js";
|
|
4
|
+
function b(n) {
|
|
5
|
+
const { args: i } = n, { abi: c, functionName: e } = (() => {
|
|
8
6
|
var o;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})(), a = e.cause instanceof r && e.cause.docsPath || e.docsPath, n = (o = i.getDocsUrl) == null ? void 0 : o.call(i, { ...e, docsPath: a }), b = [
|
|
13
|
-
t || "An error occurred.",
|
|
14
|
-
"",
|
|
15
|
-
...e.metaMessages ? [...e.metaMessages, ""] : [],
|
|
16
|
-
...n ? [`Docs: ${n}`] : [],
|
|
17
|
-
...u ? [`Details: ${u}`] : [],
|
|
18
|
-
...i.version ? [`Version: ${i.version}`] : []
|
|
19
|
-
].join(`
|
|
20
|
-
`);
|
|
21
|
-
super(b, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
|
|
22
|
-
enumerable: !0,
|
|
23
|
-
configurable: !0,
|
|
24
|
-
writable: !0,
|
|
25
|
-
value: void 0
|
|
26
|
-
}), Object.defineProperty(this, "docsPath", {
|
|
27
|
-
enumerable: !0,
|
|
28
|
-
configurable: !0,
|
|
29
|
-
writable: !0,
|
|
30
|
-
value: void 0
|
|
31
|
-
}), Object.defineProperty(this, "metaMessages", {
|
|
32
|
-
enumerable: !0,
|
|
33
|
-
configurable: !0,
|
|
34
|
-
writable: !0,
|
|
35
|
-
value: void 0
|
|
36
|
-
}), Object.defineProperty(this, "shortMessage", {
|
|
37
|
-
enumerable: !0,
|
|
38
|
-
configurable: !0,
|
|
39
|
-
writable: !0,
|
|
40
|
-
value: void 0
|
|
41
|
-
}), Object.defineProperty(this, "version", {
|
|
42
|
-
enumerable: !0,
|
|
43
|
-
configurable: !0,
|
|
44
|
-
writable: !0,
|
|
45
|
-
value: void 0
|
|
46
|
-
}), Object.defineProperty(this, "name", {
|
|
47
|
-
enumerable: !0,
|
|
48
|
-
configurable: !0,
|
|
49
|
-
writable: !0,
|
|
50
|
-
value: "BaseError"
|
|
51
|
-
}), this.details = u, this.docsPath = a, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = l;
|
|
52
|
-
}
|
|
53
|
-
walk(t) {
|
|
54
|
-
return d(this, t);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function d(s, t) {
|
|
58
|
-
return t != null && t(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? d(s.cause, t) : t ? null : s;
|
|
7
|
+
return n.abi.length === 1 && ((o = n.functionName) != null && o.startsWith("0x")) ? n : f(n);
|
|
8
|
+
})(), t = c[0], u = e, r = "inputs" in t && t.inputs ? s(t.inputs, i ?? []) : void 0;
|
|
9
|
+
return a([u, r ?? "0x"]);
|
|
59
10
|
}
|
|
60
11
|
export {
|
|
61
|
-
|
|
12
|
+
b as encodeFunctionData
|
|
62
13
|
};
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index5.cjs"),f=require("@peculiar/webcrypto"),a=require("./index3.cjs"),o=require("./index23.cjs");class e{constructor(t){if(!e.isValidDigestKey(t))throw new Error("Invalid digest key format");this._digestKey=t;const r=o.privateKeyToAccount("0x"+t);this._userId=r.address}static from(t){return t=a.trim0x(t),this.isValidDigestKey(t)?n.Ok(new e(t)):n.Err("Invalid digest key format")}static generateRandom(){const t=e.generateRandomDigestKey();return e.from(t)}static isValidDigestKey(t){return/^[0-9a-fA-F]{64}$/.test(t)&&this.isValidPrivateKey(t)}static isValidPrivateKey(t){const r=BigInt("0x"+t),i=1n,s=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");return r>=i&&r<s}static generateRandomDigestKey(){const t=new f.Crypto,r=new Uint8Array(32);t.getRandomValues(r);const i=a.trim0x(Buffer.from(r).toString("hex"));return e.isValidPrivateKey(i)?i:e.generateRandomDigestKey()}get digestKey(){return this._digestKey}get userId(){return this._userId}}exports.DigestKey=e;
|
package/dist/index6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { trim0x as a } from "./index17.js";
|
|
2
1
|
import { Err as n, Ok as o } from "./index5.js";
|
|
3
2
|
import { Crypto as s } from "@peculiar/webcrypto";
|
|
4
|
-
import {
|
|
3
|
+
import { trim0x as i } from "./index3.js";
|
|
4
|
+
import { privateKeyToAccount as c } from "./index23.js";
|
|
5
5
|
class e {
|
|
6
6
|
constructor(t) {
|
|
7
7
|
if (!e.isValidDigestKey(t))
|
|
@@ -11,7 +11,7 @@ class e {
|
|
|
11
11
|
this._userId = r.address;
|
|
12
12
|
}
|
|
13
13
|
static from(t) {
|
|
14
|
-
return t =
|
|
14
|
+
return t = i(t), this.isValidDigestKey(t) ? o(new e(t)) : n("Invalid digest key format");
|
|
15
15
|
}
|
|
16
16
|
static generateRandom() {
|
|
17
17
|
const t = e.generateRandomDigestKey();
|
|
@@ -21,15 +21,15 @@ class e {
|
|
|
21
21
|
return /^[0-9a-fA-F]{64}$/.test(t) && this.isValidPrivateKey(t);
|
|
22
22
|
}
|
|
23
23
|
static isValidPrivateKey(t) {
|
|
24
|
-
const r = BigInt("0x" + t), f = 1n,
|
|
24
|
+
const r = BigInt("0x" + t), f = 1n, a = BigInt(
|
|
25
25
|
"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"
|
|
26
26
|
);
|
|
27
|
-
return r >= f && r <
|
|
27
|
+
return r >= f && r < a;
|
|
28
28
|
}
|
|
29
29
|
static generateRandomDigestKey() {
|
|
30
30
|
const t = new s(), r = new Uint8Array(32);
|
|
31
31
|
t.getRandomValues(r);
|
|
32
|
-
const f =
|
|
32
|
+
const f = i(Buffer.from(r).toString("hex"));
|
|
33
33
|
return e.isValidPrivateKey(f) ? f : e.generateRandomDigestKey();
|
|
34
34
|
}
|
|
35
35
|
get digestKey() {
|
package/dist/index60.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 n=require("./index79.cjs");function a({blockNumber:r,chain:t,contract:e}){var c;const o=(c=t==null?void 0:t.contracts)==null?void 0:c[e];if(!o)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:e}});if(r&&o.blockCreated&&o.blockCreated>r)throw new n.ChainDoesNotSupportContract({blockNumber:r,chain:t,contract:{name:e,blockCreated:o.blockCreated}});return o.address}exports.getChainContractAddress=a;
|
package/dist/index60.js
CHANGED
|
@@ -1,40 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
|
1
|
+
import { ChainDoesNotSupportContract as d } from "./index79.js";
|
|
2
|
+
function n({ blockNumber: r, chain: t, contract: e }) {
|
|
3
|
+
var c;
|
|
4
|
+
const o = (c = t == null ? void 0 : t.contracts) == null ? void 0 : c[e];
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new d({
|
|
7
|
+
chain: t,
|
|
8
|
+
contract: { name: e }
|
|
9
|
+
});
|
|
10
|
+
if (r && o.blockCreated && o.blockCreated > r)
|
|
11
|
+
throw new d({
|
|
12
|
+
blockNumber: r,
|
|
13
|
+
chain: t,
|
|
14
|
+
contract: {
|
|
15
|
+
name: e,
|
|
16
|
+
blockCreated: o.blockCreated
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return o.address;
|
|
35
20
|
}
|
|
36
21
|
export {
|
|
37
|
-
|
|
38
|
-
f as listenersCache,
|
|
39
|
-
y as observe
|
|
22
|
+
n as getChainContractAddress
|
|
40
23
|
};
|
package/dist/index61.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 g(e,{dir:i="left"}={}){let t=typeof e=="string"?e.replace("0x",""):e,n=0;for(let l=0;l<t.length-1&&t[i==="left"?l:t.length-l-1].toString()==="0";l++)n++;return t=i==="left"?t.slice(n):t.slice(0,t.length-n),typeof e=="string"?(t.length===1&&i==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}exports.trim=g;
|
package/dist/index61.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
return (
|
|
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;
|
|
1
|
+
function f(e, { dir: n = "left" } = {}) {
|
|
2
|
+
let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
|
|
3
|
+
for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
|
|
4
|
+
i++;
|
|
5
|
+
return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
|
|
15
6
|
}
|
|
16
7
|
export {
|
|
17
|
-
f as
|
|
8
|
+
f as trim
|
|
18
9
|
};
|
package/dist/index62.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 d=require("./index213.cjs"),f=require("./index78.cjs"),i=require("./index80.cjs");function v(e,l){var t,o,n,a,s,u;if(!(e instanceof f.BaseError))return!1;const r=e.walk(c=>c instanceof i.ContractFunctionRevertedError);return r instanceof i.ContractFunctionRevertedError?!!(((t=r.data)==null?void 0:t.errorName)==="ResolverNotFound"||((o=r.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||((n=r.data)==null?void 0:n.errorName)==="ResolverNotContract"||((a=r.data)==null?void 0:a.errorName)==="ResolverError"||((s=r.data)==null?void 0:s.errorName)==="HttpError"||(u=r.reason)!=null&&u.includes("Wildcard on non-extended resolvers is not supported")||l==="reverse"&&r.reason===d.panicReasons[50]):!1}exports.isNullUniversalResolverError=v;
|
package/dist/index62.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { panicReasons as l } from "./index213.js";
|
|
2
|
+
import { BaseError as c } from "./index78.js";
|
|
3
|
+
import { ContractFunctionRevertedError as i } from "./index80.js";
|
|
4
|
+
function N(e, f) {
|
|
5
|
+
var t, o, n, a, s, u;
|
|
6
|
+
if (!(e instanceof c))
|
|
7
|
+
return !1;
|
|
8
|
+
const r = e.walk((d) => d instanceof i);
|
|
9
|
+
return r instanceof i ? !!(((t = r.data) == null ? void 0 : t.errorName) === "ResolverNotFound" || ((o = r.data) == null ? void 0 : o.errorName) === "ResolverWildcardNotSupported" || ((n = r.data) == null ? void 0 : n.errorName) === "ResolverNotContract" || ((a = r.data) == null ? void 0 : a.errorName) === "ResolverError" || ((s = r.data) == null ? void 0 : s.errorName) === "HttpError" || (u = r.reason) != null && u.includes("Wildcard on non-extended resolvers is not supported") || f === "reverse" && r.reason === l[50]) : !1;
|
|
8
10
|
}
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
N as isNullUniversalResolverError
|
|
11
13
|
};
|
package/dist/index63.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("./index22.cjs"),y=require("./index213.cjs"),h=require("./index235.cjs"),n=require("./index238.cjs"),w=require("./index240.cjs"),u="x-batch-gateway:true";async function i(t){const{data:l,ccipRequest:o}=t,{args:[d]}=h.decodeFunctionData({abi:c.batchGatewayAbi,data:l}),a=[],s=[];return await Promise.all(d.map(async(r,e)=>{try{s[e]=r.urls.includes(u)?await i({data:r.data,ccipRequest:o}):await o(r),a[e]=!1}catch(b){a[e]=!0,s[e]=g(b)}})),w.encodeFunctionResult({abi:c.batchGatewayAbi,functionName:"query",result:[a,s]})}function g(t){return t.name==="HttpRequestError"&&t.status?n.encodeErrorResult({abi:c.batchGatewayAbi,errorName:"HttpError",args:[t.status,t.shortMessage]}):n.encodeErrorResult({abi:[y.solidityError],errorName:"Error",args:["shortMessage"in t?t.shortMessage:t.message]})}exports.localBatchGatewayRequest=i;exports.localBatchGatewayUrl=u;
|
package/dist/index63.js
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import { batchGatewayAbi as o } from "./index22.js";
|
|
2
|
+
import { solidityError as l } from "./index213.js";
|
|
3
|
+
import { decodeFunctionData as f } from "./index235.js";
|
|
4
|
+
import { encodeErrorResult as n } from "./index238.js";
|
|
5
|
+
import { encodeFunctionResult as p } from "./index240.js";
|
|
6
|
+
const d = "x-batch-gateway:true";
|
|
7
|
+
async function g(t) {
|
|
8
|
+
const { data: i, ccipRequest: c } = t, { args: [u] } = f({ abi: o, data: i }), e = [], s = [];
|
|
9
|
+
return await Promise.all(u.map(async (r, a) => {
|
|
10
|
+
try {
|
|
11
|
+
s[a] = r.urls.includes(d) ? await g({ data: r.data, ccipRequest: c }) : await c(r), e[a] = !1;
|
|
12
|
+
} catch (m) {
|
|
13
|
+
e[a] = !0, s[a] = h(m);
|
|
14
|
+
}
|
|
15
|
+
})), p({
|
|
16
|
+
abi: o,
|
|
17
|
+
functionName: "query",
|
|
18
|
+
result: [e, s]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function h(t) {
|
|
22
|
+
return t.name === "HttpRequestError" && t.status ? n({
|
|
23
|
+
abi: o,
|
|
24
|
+
errorName: "HttpError",
|
|
25
|
+
args: [t.status, t.shortMessage]
|
|
26
|
+
}) : n({
|
|
27
|
+
abi: [l],
|
|
28
|
+
errorName: "Error",
|
|
29
|
+
args: ["shortMessage" in t ? t.shortMessage : t.message]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
2
32
|
export {
|
|
3
|
-
g as
|
|
33
|
+
g as localBatchGatewayRequest,
|
|
34
|
+
d as localBatchGatewayUrl
|
|
4
35
|
};
|
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 i=require("./index137.cjs"),n=require("./index45.cjs"),r=require("./index33.cjs"),a=require("./index48.cjs"),h=require("./index227.cjs");function b(s){let e=new Uint8Array(32).fill(0);if(!s)return r.bytesToHex(e);const o=s.split(".");for(let t=o.length-1;t>=0;t-=1){const c=h.encodedLabelToLabelhash(o[t]),l=c?n.toBytes(c):a.keccak256(n.stringToBytes(o[t]),"bytes");e=a.keccak256(i.concat([e,l]),"bytes")}return r.bytesToHex(e)}exports.namehash=b;
|
package/dist/index64.js
CHANGED
|
@@ -1,48 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
atomic: !1,
|
|
15
|
-
chainId: u(h),
|
|
16
|
-
receipts: s.filter(Boolean),
|
|
17
|
-
status: b,
|
|
18
|
-
version: "2.0.0"
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return a.request({
|
|
22
|
-
method: "wallet_getCallsStatus",
|
|
23
|
-
params: [t]
|
|
24
|
-
});
|
|
1
|
+
import { concat as a } from "./index137.js";
|
|
2
|
+
import { toBytes as m, stringToBytes as c } from "./index45.js";
|
|
3
|
+
import { bytesToHex as n } from "./index33.js";
|
|
4
|
+
import { keccak256 as i } from "./index48.js";
|
|
5
|
+
import { encodedLabelToLabelhash as f } from "./index227.js";
|
|
6
|
+
function u(r) {
|
|
7
|
+
let t = new Uint8Array(32).fill(0);
|
|
8
|
+
if (!r)
|
|
9
|
+
return n(t);
|
|
10
|
+
const e = r.split(".");
|
|
11
|
+
for (let o = e.length - 1; o >= 0; o -= 1) {
|
|
12
|
+
const s = f(e[o]), l = s ? m(s) : i(c(e[o]), "bytes");
|
|
13
|
+
t = i(a([t, l]), "bytes");
|
|
25
14
|
}
|
|
26
|
-
|
|
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
|
-
};
|
|
15
|
+
return n(t);
|
|
45
16
|
}
|
|
46
17
|
export {
|
|
47
|
-
|
|
18
|
+
u as namehash
|
|
48
19
|
};
|
package/dist/index65.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 l=require("./index45.cjs"),a=require("./index270.cjs"),c=require("./index226.cjs");function h(i){const r=i.replace(/^\.|\.$/gm,"");if(r.length===0)return new Uint8Array(1);const e=new Uint8Array(l.stringToBytes(r).byteLength+2);let t=0;const o=r.split(".");for(let s=0;s<o.length;s++){let n=l.stringToBytes(o[s]);n.byteLength>255&&(n=l.stringToBytes(a.encodeLabelhash(c.labelhash(o[s])))),e[t]=n.length,e.set(n,t+1),t+=n.length+1}return e.byteLength!==t+1?e.slice(0,t+1):e}exports.packetToBytes=h;
|
package/dist/index65.js
CHANGED
|
@@ -1,34 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
};
|
|
1
|
+
import { stringToBytes as i } from "./index45.js";
|
|
2
|
+
import { encodeLabelhash as h } from "./index270.js";
|
|
3
|
+
import { labelhash as f } from "./index226.js";
|
|
4
|
+
function y(s) {
|
|
5
|
+
const o = s.replace(/^\.|\.$/gm, "");
|
|
6
|
+
if (o.length === 0)
|
|
7
|
+
return new Uint8Array(1);
|
|
8
|
+
const e = new Uint8Array(i(o).byteLength + 2);
|
|
9
|
+
let t = 0;
|
|
10
|
+
const l = o.split(".");
|
|
11
|
+
for (let r = 0; r < l.length; r++) {
|
|
12
|
+
let n = i(l[r]);
|
|
13
|
+
n.byteLength > 255 && (n = i(h(f(l[r])))), e[t] = n.length, e.set(n, t + 1), t += n.length + 1;
|
|
29
14
|
}
|
|
30
|
-
return
|
|
15
|
+
return e.byteLength !== t + 1 ? e.slice(0, t + 1) : e;
|
|
31
16
|
}
|
|
32
17
|
export {
|
|
33
|
-
|
|
18
|
+
y as packetToBytes
|
|
34
19
|
};
|
package/dist/index66.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,e,o){const i=t[e.name];if(typeof i=="function")return i;const n=t[o];return typeof n=="function"?n:c=>e(t,c)}exports.getAction=r;
|