@gardenfi/utils 2.1.3-beta.16 → 2.1.3-beta.18
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 +26 -24
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +114 -34
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +16 -9
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +9 -15
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +5 -65
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +10 -11
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +3 -13
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +26 -8
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +4 -10
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +6 -26
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +46 -13
- package/dist/index109.cjs +1 -3
- package/dist/index109.js +117 -104
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +37 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +7 -51
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +21 -24
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +16 -116
- package/dist/index113.cjs +1 -20
- package/dist/index113.js +40 -326
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +21 -80
- package/dist/index115.cjs +1 -4
- package/dist/index115.js +11 -194
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +6 -24
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +103 -178
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -13
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +4 -25
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +19 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +9 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +2 -89
- package/dist/index122.cjs +2 -1
- package/dist/index122.js +3 -33
- package/dist/index123.cjs +20 -1
- package/dist/index123.js +326 -15
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +14 -2
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +4 -75
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +2 -139
- package/dist/index127.cjs +1 -3
- package/dist/index127.js +6 -450
- package/dist/index128.cjs +3 -1
- package/dist/index128.js +209 -58
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +32 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +136 -10
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +20 -68
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +5 -5
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +72 -20
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -3
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +5 -14
- package/dist/index135.cjs +9 -1
- package/dist/index135.js +33 -86
- package/dist/index136.cjs +3 -1
- package/dist/index136.js +110 -18
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -14
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +21 -43
- package/dist/index139.cjs +3 -1
- package/dist/index139.js +451 -38
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +15 -2
- package/dist/index140.cjs +2 -1
- package/dist/index140.js +54 -7
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +23 -35
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +33 -8
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +35 -9
- package/dist/index144.cjs +4 -1
- package/dist/index144.js +194 -15
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +7 -94
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +12 -20
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +18 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +27 -6
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +8 -26
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -35
- package/dist/index150.cjs +1 -2
- package/dist/index150.js +53 -22
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +45 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +8 -8
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +7 -10
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +16 -11
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +18 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +21 -14
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +51 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +11 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +161 -6
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +33 -17
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +21 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +127 -40
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +37 -16
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -21
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +24 -77
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +188 -41
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +4 -12
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +61 -51
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +20 -5
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +14 -184
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +16 -5
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +23 -11
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +11 -13
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +34 -13
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +3 -6
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +18 -13
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +25 -101
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +36 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +10 -151
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +22 -32
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +185 -117
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +27 -30
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +64 -8
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +9 -68
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +32 -8
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +23 -70
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +24 -19
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +3 -110
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +14 -23
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +102 -49
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +77 -103
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +6 -9
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -2
- package/dist/index192.cjs +1 -2
- package/dist/index192.js +24 -3
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +37 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -4
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +43 -2
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -32
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +11 -21
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +19 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +78 -5
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -6
- package/dist/index201.cjs +1 -9
- package/dist/index201.js +30 -28
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +112 -3
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +43 -20
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +31 -32
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +8 -35
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +6 -8
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +6 -12
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +11 -18
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +9 -26
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +13 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +31 -54
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -9
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +7 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +8 -161
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +20 -127
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +30 -26
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +18 -189
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -4
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +18 -3
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -20
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +21 -16
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +22 -11
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +5 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +6 -3
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +8 -27
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +104 -25
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +111 -27
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +18 -6
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +169 -25
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +36 -31
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +17 -34
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -42
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +15 -77
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +23 -2
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +2 -38
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +13 -49
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +12 -6
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +47 -6
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +10 -31
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +8 -5
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +13 -32
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +9 -8
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +13 -3
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +14 -17
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -10
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +30 -5
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +24 -8
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +11 -103
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +25 -3
- package/dist/index248.cjs +2 -1
- package/dist/index248.js +23 -17
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +13 -171
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +57 -11
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +15 -17
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +51 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +24 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +13 -15
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +15 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +12 -9
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +10 -16
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +16 -3
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +40 -139
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +113 -57
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +2 -156
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +5 -9
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +9 -112
- package/dist/index263.cjs +1 -2
- package/dist/index263.js +16 -131
- package/dist/index264.cjs +1 -2
- package/dist/index264.js +8 -41
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +67 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +65 -5
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +185 -9
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +20 -17
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +42 -8
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +32 -13
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +72 -62
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +36 -61
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +15 -185
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +12 -21
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +12 -42
- package/dist/index275.cjs +2 -1
- package/dist/index275.js +18 -76
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -39
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +11 -16
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +16 -13
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +221 -10
- package/dist/index28.cjs +1 -16
- package/dist/index28.js +30 -113
- package/dist/index280.cjs +1 -2
- package/dist/index280.js +6 -18
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +7 -15
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +26 -11
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +34 -103
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +17 -15
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +64 -208
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +67 -6
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +4 -7
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +137 -23
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +153 -17
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +11 -16
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +9 -108
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +111 -9
- package/dist/index292.cjs +2 -1
- package/dist/index292.js +133 -18
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +28 -42
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +32 -72
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +12 -2
- package/dist/index296.cjs +1 -2
- package/dist/index296.js +18 -65
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +68 -4
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +2 -41
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +40 -7
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +7 -45
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +635 -55
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +200 -71
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +173 -4
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +62 -190
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +4 -68
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +37 -654
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -206
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +56 -171
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +61 -47
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -45
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +30 -9
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +194 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +19 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +64 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +43 -20
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +107 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +7 -0
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +4 -0
- package/dist/index318.cjs +1 -0
- package/dist/index318.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +29 -18
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +16 -125
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +30 -57
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +43 -22
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +151 -10
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +33 -18
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +38 -6
- package/dist/index39.cjs +2 -1
- package/dist/index39.js +59 -10
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +5 -5
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -32
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -16
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -16
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -8
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +26 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -23
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +3 -22
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +8 -57
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +66 -38
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -36
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +25 -163
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +67 -107
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +16 -27
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +110 -3
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +61 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +25 -4
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +38 -57
- package/dist/index57.cjs +1 -2
- package/dist/index57.js +36 -53
- package/dist/index58.cjs +1 -3
- package/dist/index58.js +54 -211
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +161 -12
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +39 -11
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +9 -24
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +33 -25
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -47
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +50 -19
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +84 -10
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +38 -37
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -8
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +6 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +17 -31
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +17 -24
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +8 -36
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +13 -36
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +7 -9
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +9 -29
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +46 -22
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +13 -85
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +16 -50
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -23
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +6 -41
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +35 -17
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +24 -2
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +8 -5
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +8 -33
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +26 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -13
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +9 -109
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +115 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +80 -6
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +180 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +6 -21
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -124
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -31
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +93 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +75 -7
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +88 -9
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +138 -16
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +68 -72
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -34
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +108 -45
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -14
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +50 -13
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/localConfig.d.ts +17 -0
- package/package.json +1 -1
package/dist/index26.js
CHANGED
|
@@ -1,60 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
import { SiweInvalidMessageFieldError as e } from "./index295.js";
|
|
2
|
+
import { getAddress as S } from "./index160.js";
|
|
3
|
+
import { isUri as $ } from "./index296.js";
|
|
4
|
+
function C(n) {
|
|
5
|
+
const { chainId: i, domain: s, expirationTime: u, issuedAt: g = /* @__PURE__ */ new Date(), nonce: a, notBefore: m, requestId: h, resources: w, scheme: o, uri: c, version: f } = n;
|
|
6
|
+
{
|
|
7
|
+
if (i !== Math.floor(i))
|
|
8
|
+
throw new e({
|
|
9
|
+
field: "chainId",
|
|
10
|
+
metaMessages: [
|
|
11
|
+
"- Chain ID must be a EIP-155 chain ID.",
|
|
12
|
+
"- See https://eips.ethereum.org/EIPS/eip-155",
|
|
13
|
+
"",
|
|
14
|
+
`Provided value: ${i}`
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
if (!(p.test(s) || M.test(s) || x.test(s)))
|
|
18
|
+
throw new e({
|
|
19
|
+
field: "domain",
|
|
20
|
+
metaMessages: [
|
|
21
|
+
"- Domain must be an RFC 3986 authority.",
|
|
22
|
+
"- See https://www.rfc-editor.org/rfc/rfc3986",
|
|
23
|
+
"",
|
|
24
|
+
`Provided value: ${s}`
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
if (!A.test(a))
|
|
28
|
+
throw new e({
|
|
29
|
+
field: "nonce",
|
|
30
|
+
metaMessages: [
|
|
31
|
+
"- Nonce must be at least 8 characters.",
|
|
32
|
+
"- Nonce must be alphanumeric.",
|
|
33
|
+
"",
|
|
34
|
+
`Provided value: ${a}`
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
if (!$(c))
|
|
38
|
+
throw new e({
|
|
39
|
+
field: "uri",
|
|
40
|
+
metaMessages: [
|
|
41
|
+
"- URI must be a RFC 3986 URI referring to the resource that is the subject of the signing.",
|
|
42
|
+
"- See https://www.rfc-editor.org/rfc/rfc3986",
|
|
43
|
+
"",
|
|
44
|
+
`Provided value: ${c}`
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
if (f !== "1")
|
|
48
|
+
throw new e({
|
|
49
|
+
field: "version",
|
|
50
|
+
metaMessages: [
|
|
51
|
+
"- Version must be '1'.",
|
|
52
|
+
"",
|
|
53
|
+
`Provided value: ${f}`
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
if (o && !P.test(o))
|
|
57
|
+
throw new e({
|
|
58
|
+
field: "scheme",
|
|
59
|
+
metaMessages: [
|
|
60
|
+
"- Scheme must be an RFC 3986 URI scheme.",
|
|
61
|
+
"- See https://www.rfc-editor.org/rfc/rfc3986#section-3.1",
|
|
62
|
+
"",
|
|
63
|
+
`Provided value: ${o}`
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
const t = n.statement;
|
|
67
|
+
if (t != null && t.includes(`
|
|
68
|
+
`))
|
|
69
|
+
throw new e({
|
|
70
|
+
field: "statement",
|
|
71
|
+
metaMessages: [
|
|
72
|
+
"- Statement must not include '\\n'.",
|
|
73
|
+
"",
|
|
74
|
+
`Provided value: ${t}`
|
|
75
|
+
]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
const l = S(n.address), v = o ? `${o}://${s}` : s, I = n.statement ? `${n.statement}
|
|
79
|
+
` : "", R = `${v} wants you to sign in with your Ethereum account:
|
|
80
|
+
${l}
|
|
81
|
+
|
|
82
|
+
${I}`;
|
|
83
|
+
let r = `URI: ${c}
|
|
84
|
+
Version: ${f}
|
|
85
|
+
Chain ID: ${i}
|
|
86
|
+
Nonce: ${a}
|
|
87
|
+
Issued At: ${g.toISOString()}`;
|
|
88
|
+
if (u && (r += `
|
|
89
|
+
Expiration Time: ${u.toISOString()}`), m && (r += `
|
|
90
|
+
Not Before: ${m.toISOString()}`), h && (r += `
|
|
91
|
+
Request ID: ${h}`), w) {
|
|
92
|
+
let t = `
|
|
93
|
+
Resources:`;
|
|
94
|
+
for (const d of w) {
|
|
95
|
+
if (!$(d))
|
|
96
|
+
throw new e({
|
|
97
|
+
field: "resources",
|
|
98
|
+
metaMessages: [
|
|
99
|
+
"- Every resource must be a RFC 3986 URI.",
|
|
100
|
+
"- See https://www.rfc-editor.org/rfc/rfc3986",
|
|
101
|
+
"",
|
|
102
|
+
`Provided value: ${d}`
|
|
103
|
+
]
|
|
104
|
+
});
|
|
105
|
+
t += `
|
|
106
|
+
- ${d}`;
|
|
107
|
+
}
|
|
108
|
+
r += t;
|
|
109
|
+
}
|
|
110
|
+
return `${R}
|
|
111
|
+
${r}`;
|
|
57
112
|
}
|
|
113
|
+
const p = /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/, M = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:[0-9]{1,5})?$/, x = /^localhost(:[0-9]{1,5})?$/, A = /^[a-zA-Z0-9]{8,}$/, P = /^([a-zA-Z][a-zA-Z0-9+-.]*)$/;
|
|
58
114
|
export {
|
|
59
|
-
|
|
115
|
+
C as createSiweMessage
|
|
60
116
|
};
|
package/dist/index260.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="1.0.8";exports.version=e;
|
package/dist/index260.js
CHANGED
|
@@ -1,158 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { stringify as b } from "./index297.js";
|
|
3
|
-
import { pad as d, assertEndOffset as m, assertSize as g, assertStartOffset as p } from "./index298.js";
|
|
4
|
-
const $ = /* @__PURE__ */ new TextEncoder(), h = /* @__PURE__ */ Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0"));
|
|
5
|
-
function y(t, e = {}) {
|
|
6
|
-
const { strict: r = !1 } = e;
|
|
7
|
-
if (!t)
|
|
8
|
-
throw new f(t);
|
|
9
|
-
if (typeof t != "string")
|
|
10
|
-
throw new f(t);
|
|
11
|
-
if (r && !/^0x[0-9a-fA-F]*$/.test(t))
|
|
12
|
-
throw new l(t);
|
|
13
|
-
if (!t.startsWith("0x"))
|
|
14
|
-
throw new l(t);
|
|
15
|
-
}
|
|
16
|
-
function B(...t) {
|
|
17
|
-
return `0x${t.reduce((e, r) => e + r.replace("0x", ""), "")}`;
|
|
18
|
-
}
|
|
19
|
-
function P(t, e = {}) {
|
|
20
|
-
const r = `0x${Number(t)}`;
|
|
21
|
-
return typeof e.size == "number" ? (g(r, e.size), x(r, e.size)) : r;
|
|
22
|
-
}
|
|
23
|
-
function w(t, e = {}) {
|
|
24
|
-
let r = "";
|
|
25
|
-
for (let i = 0; i < t.length; i++)
|
|
26
|
-
r += h[t[i]];
|
|
27
|
-
const n = `0x${r}`;
|
|
28
|
-
return typeof e.size == "number" ? (g(n, e.size), E(n, e.size)) : n;
|
|
29
|
-
}
|
|
30
|
-
function V(t, e = {}) {
|
|
31
|
-
const { signed: r, size: n } = e, i = BigInt(t);
|
|
32
|
-
let s;
|
|
33
|
-
n ? r ? s = (1n << BigInt(n) * 8n - 1n) - 1n : s = 2n ** (BigInt(n) * 8n) - 1n : typeof t == "number" && (s = BigInt(Number.MAX_SAFE_INTEGER));
|
|
34
|
-
const u = typeof s == "bigint" && r ? -s - 1n : 0;
|
|
35
|
-
if (s && i > s || i < u) {
|
|
36
|
-
const a = typeof t == "bigint" ? "n" : "";
|
|
37
|
-
throw new O({
|
|
38
|
-
max: s ? `${s}${a}` : void 0,
|
|
39
|
-
min: `${u}${a}`,
|
|
40
|
-
signed: r,
|
|
41
|
-
size: n,
|
|
42
|
-
value: `${t}${a}`
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const c = `0x${(r && i < 0 ? (1n << BigInt(n * 8)) + BigInt(i) : i).toString(16)}`;
|
|
46
|
-
return n ? x(c, n) : c;
|
|
47
|
-
}
|
|
48
|
-
function j(t, e = {}) {
|
|
49
|
-
return w($.encode(t), e);
|
|
50
|
-
}
|
|
51
|
-
function x(t, e) {
|
|
52
|
-
return d(t, { dir: "left", size: e });
|
|
53
|
-
}
|
|
54
|
-
function E(t, e) {
|
|
55
|
-
return d(t, { dir: "right", size: e });
|
|
56
|
-
}
|
|
57
|
-
function v(t, e, r, n = {}) {
|
|
58
|
-
const { strict: i } = n;
|
|
59
|
-
p(t, e);
|
|
60
|
-
const s = `0x${t.replace("0x", "").slice((e ?? 0) * 2, (r ?? t.length) * 2)}`;
|
|
61
|
-
return i && m(s, e, r), s;
|
|
62
|
-
}
|
|
63
|
-
function A(t) {
|
|
64
|
-
return Math.ceil((t.length - 2) / 2);
|
|
65
|
-
}
|
|
66
|
-
function N(t, e = {}) {
|
|
67
|
-
const { strict: r = !1 } = e;
|
|
68
|
-
try {
|
|
69
|
-
return y(t, { strict: r }), !0;
|
|
70
|
-
} catch {
|
|
71
|
-
return !1;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
class O extends o {
|
|
75
|
-
constructor({ max: e, min: r, signed: n, size: i, value: s }) {
|
|
76
|
-
super(`Number \`${s}\` is not in safe${i ? ` ${i * 8}-bit` : ""}${n ? " signed" : " unsigned"} integer range ${e ? `(\`${r}\` to \`${e}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
|
|
77
|
-
enumerable: !0,
|
|
78
|
-
configurable: !0,
|
|
79
|
-
writable: !0,
|
|
80
|
-
value: "Hex.IntegerOutOfRangeError"
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
class f extends o {
|
|
85
|
-
constructor(e) {
|
|
86
|
-
super(`Value \`${typeof e == "object" ? b(e) : e}\` of type \`${typeof e}\` is an invalid hex type.`, {
|
|
87
|
-
metaMessages: ['Hex types must be represented as `"0x${string}"`.']
|
|
88
|
-
}), Object.defineProperty(this, "name", {
|
|
89
|
-
enumerable: !0,
|
|
90
|
-
configurable: !0,
|
|
91
|
-
writable: !0,
|
|
92
|
-
value: "Hex.InvalidHexTypeError"
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
class l extends o {
|
|
97
|
-
constructor(e) {
|
|
98
|
-
super(`Value \`${e}\` is an invalid hex value.`, {
|
|
99
|
-
metaMessages: [
|
|
100
|
-
'Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).'
|
|
101
|
-
]
|
|
102
|
-
}), Object.defineProperty(this, "name", {
|
|
103
|
-
enumerable: !0,
|
|
104
|
-
configurable: !0,
|
|
105
|
-
writable: !0,
|
|
106
|
-
value: "Hex.InvalidHexValueError"
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
class _ extends o {
|
|
111
|
-
constructor({ givenSize: e, maxSize: r }) {
|
|
112
|
-
super(`Size cannot exceed \`${r}\` bytes. Given size: \`${e}\` bytes.`), Object.defineProperty(this, "name", {
|
|
113
|
-
enumerable: !0,
|
|
114
|
-
configurable: !0,
|
|
115
|
-
writable: !0,
|
|
116
|
-
value: "Hex.SizeOverflowError"
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
class M extends o {
|
|
121
|
-
constructor({ offset: e, position: r, size: n }) {
|
|
122
|
-
super(`Slice ${r === "start" ? "starting" : "ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
|
|
123
|
-
enumerable: !0,
|
|
124
|
-
configurable: !0,
|
|
125
|
-
writable: !0,
|
|
126
|
-
value: "Hex.SliceOffsetOutOfBoundsError"
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
class R extends o {
|
|
131
|
-
constructor({ size: e, targetSize: r, type: n }) {
|
|
132
|
-
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
133
|
-
enumerable: !0,
|
|
134
|
-
configurable: !0,
|
|
135
|
-
writable: !0,
|
|
136
|
-
value: "Hex.SizeExceedsPaddingSizeError"
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
1
|
+
const o = "1.0.8";
|
|
140
2
|
export {
|
|
141
|
-
|
|
142
|
-
f as InvalidHexTypeError,
|
|
143
|
-
l as InvalidHexValueError,
|
|
144
|
-
R as SizeExceedsPaddingSizeError,
|
|
145
|
-
_ as SizeOverflowError,
|
|
146
|
-
M as SliceOffsetOutOfBoundsError,
|
|
147
|
-
y as assert,
|
|
148
|
-
B as concat,
|
|
149
|
-
P as fromBoolean,
|
|
150
|
-
w as fromBytes,
|
|
151
|
-
V as fromNumber,
|
|
152
|
-
j as fromString,
|
|
153
|
-
x as padLeft,
|
|
154
|
-
E as padRight,
|
|
155
|
-
A as size,
|
|
156
|
-
v as slice,
|
|
157
|
-
N as validate
|
|
3
|
+
o as version
|
|
158
4
|
};
|
package/dist/index261.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("./index262.cjs");function a(t){var e;return t.type==="function"?`function ${t.name}(${r.formatAbiParameters(t.inputs)})${t.stateMutability&&t.stateMutability!=="nonpayable"?` ${t.stateMutability}`:""}${(e=t.outputs)!=null&&e.length?` returns (${r.formatAbiParameters(t.outputs)})`:""}`:t.type==="event"?`event ${t.name}(${r.formatAbiParameters(t.inputs)})`:t.type==="error"?`error ${t.name}(${r.formatAbiParameters(t.inputs)})`:t.type==="constructor"?`constructor(${r.formatAbiParameters(t.inputs)})${t.stateMutability==="payable"?" payable":""}`:t.type==="fallback"?`fallback() external${t.stateMutability==="payable"?" payable":""}`:"receive() external payable"}exports.formatAbiItem=a;
|
package/dist/index261.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
amount: e(o.amount),
|
|
6
|
-
index: e(o.index),
|
|
7
|
-
validatorIndex: e(o.validatorIndex)
|
|
8
|
-
};
|
|
1
|
+
import { formatAbiParameters as r } from "./index262.js";
|
|
2
|
+
function u(t) {
|
|
3
|
+
var n;
|
|
4
|
+
return t.type === "function" ? `function ${t.name}(${r(t.inputs)})${t.stateMutability && t.stateMutability !== "nonpayable" ? ` ${t.stateMutability}` : ""}${(n = t.outputs) != null && n.length ? ` returns (${r(t.outputs)})` : ""}` : t.type === "event" ? `event ${t.name}(${r(t.inputs)})` : t.type === "error" ? `error ${t.name}(${r(t.inputs)})` : t.type === "constructor" ? `constructor(${r(t.inputs)})${t.stateMutability === "payable" ? " payable" : ""}` : t.type === "fallback" ? `fallback() external${t.stateMutability === "payable" ? " payable" : ""}` : "receive() external payable";
|
|
9
5
|
}
|
|
10
6
|
export {
|
|
11
|
-
|
|
7
|
+
u as formatAbiItem
|
|
12
8
|
};
|
package/dist/index262.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("./index263.cjs");function m(r){let e="";const a=r.length;for(let t=0;t<a;t++){const o=r[t];e+=i.formatAbiParameter(o),t!==a-1&&(e+=", ")}return e}exports.formatAbiParameters=m;
|
package/dist/index262.js
CHANGED
|
@@ -1,116 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const { prepare: i = !0 } = r, n = Array.isArray(e) ? l(e) : typeof e == "string" ? l(e) : e;
|
|
9
|
-
return {
|
|
10
|
-
...n,
|
|
11
|
-
...i ? { hash: s(n) } : {}
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function M(e, r, i) {
|
|
15
|
-
const { args: n = [], prepare: f = !0 } = i ?? {}, b = $(r, { strict: !1 }), u = e.filter((t) => b ? t.type === "function" || t.type === "error" ? T(t) === A(r, 0, 4) : t.type === "event" ? s(t) === r : !1 : "name" in t && t.name === r);
|
|
16
|
-
if (u.length === 0)
|
|
17
|
-
throw new d({ name: r });
|
|
18
|
-
if (u.length === 1)
|
|
19
|
-
return {
|
|
20
|
-
...u[0],
|
|
21
|
-
...f ? { hash: s(u[0]) } : {}
|
|
22
|
-
};
|
|
23
|
-
let o;
|
|
24
|
-
for (const t of u) {
|
|
25
|
-
if (!("inputs" in t))
|
|
26
|
-
continue;
|
|
27
|
-
if (!n || n.length === 0) {
|
|
28
|
-
if (!t.inputs || t.inputs.length === 0)
|
|
29
|
-
return {
|
|
30
|
-
...t,
|
|
31
|
-
...f ? { hash: s(t) } : {}
|
|
32
|
-
};
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
if (!t.inputs || t.inputs.length === 0 || t.inputs.length !== n.length)
|
|
36
|
-
continue;
|
|
37
|
-
if (n.every((a, w) => {
|
|
38
|
-
const g = "inputs" in t && t.inputs[w];
|
|
39
|
-
return g ? E(a, g) : !1;
|
|
40
|
-
})) {
|
|
41
|
-
if (o && "inputs" in o && o.inputs) {
|
|
42
|
-
const a = B(t.inputs, o.inputs, n);
|
|
43
|
-
if (a)
|
|
44
|
-
throw new O({
|
|
45
|
-
abiItem: t,
|
|
46
|
-
type: a[0]
|
|
47
|
-
}, {
|
|
48
|
-
abiItem: o,
|
|
49
|
-
type: a[1]
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
o = t;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const c = (() => {
|
|
56
|
-
if (o)
|
|
57
|
-
return o;
|
|
58
|
-
const [t, ...m] = u;
|
|
59
|
-
return { ...t, overloads: m };
|
|
60
|
-
})();
|
|
61
|
-
if (!c)
|
|
62
|
-
throw new d({ name: r });
|
|
63
|
-
return {
|
|
64
|
-
...c,
|
|
65
|
-
...f ? { hash: s(c) } : {}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function T(e) {
|
|
69
|
-
return A(s(e), 0, 4);
|
|
70
|
-
}
|
|
71
|
-
function F(e) {
|
|
72
|
-
const r = typeof e == "string" ? e : h(e);
|
|
73
|
-
return p(r);
|
|
74
|
-
}
|
|
75
|
-
function s(e) {
|
|
76
|
-
return typeof e != "string" && "hash" in e && e.hash ? e.hash : v(S(F(e)));
|
|
77
|
-
}
|
|
78
|
-
class O extends y {
|
|
79
|
-
constructor(r, i) {
|
|
80
|
-
super("Found ambiguous types in overloaded ABI Items.", {
|
|
81
|
-
metaMessages: [
|
|
82
|
-
// TODO: abitype to add support for signature-formatted ABI items.
|
|
83
|
-
`\`${r.type}\` in \`${p(h(r.abiItem))}\`, and`,
|
|
84
|
-
`\`${i.type}\` in \`${p(h(i.abiItem))}\``,
|
|
85
|
-
"",
|
|
86
|
-
"These types encode differently and cannot be distinguished at runtime.",
|
|
87
|
-
"Remove one of the ambiguous items in the ABI."
|
|
88
|
-
]
|
|
89
|
-
}), Object.defineProperty(this, "name", {
|
|
90
|
-
enumerable: !0,
|
|
91
|
-
configurable: !0,
|
|
92
|
-
writable: !0,
|
|
93
|
-
value: "AbiItem.AmbiguityError"
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
class d extends y {
|
|
98
|
-
constructor({ name: r, data: i, type: n = "item" }) {
|
|
99
|
-
const f = r ? ` with name "${r}"` : i ? ` with data "${i}"` : "";
|
|
100
|
-
super(`ABI ${n}${f} not found.`), Object.defineProperty(this, "name", {
|
|
101
|
-
enumerable: !0,
|
|
102
|
-
configurable: !0,
|
|
103
|
-
writable: !0,
|
|
104
|
-
value: "AbiItem.NotFoundError"
|
|
105
|
-
});
|
|
1
|
+
import { formatAbiParameter as m } from "./index263.js";
|
|
2
|
+
function f(e) {
|
|
3
|
+
let r = "";
|
|
4
|
+
const o = e.length;
|
|
5
|
+
for (let t = 0; t < o; t++) {
|
|
6
|
+
const a = e[t];
|
|
7
|
+
r += m(a), t !== o - 1 && (r += ", ");
|
|
106
8
|
}
|
|
9
|
+
return r;
|
|
107
10
|
}
|
|
108
11
|
export {
|
|
109
|
-
|
|
110
|
-
d as NotFoundError,
|
|
111
|
-
H as from,
|
|
112
|
-
M as fromAbi,
|
|
113
|
-
T as getSelector,
|
|
114
|
-
F as getSignature,
|
|
115
|
-
s as getSignatureHash
|
|
12
|
+
f as formatAbiParameters
|
|
116
13
|
};
|
package/dist/index263.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class w extends d.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class E extends d.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}exports.ArrayLengthMismatchError=A;exports.BytesSizeMismatchError=y;exports.InvalidArrayError=w;exports.InvalidTypeError=E;exports.LengthMismatchError=m;exports.encode=P;exports.encodePacked=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index264.cjs"),d=/^tuple(?<array>(\[(\d*)\])*)$/;function c(n){let e=n.type;if(d.test(n.type)&&"components"in n){e="(";const p=n.components.length;for(let t=0;t<p;t++){const s=n.components[t];e+=c(s),t<p-1&&(e+=", ")}const o=f.execTyped(d,n.type);return e+=`)${(o==null?void 0:o.array)??""}`,c({...n,type:e})}return"indexed"in n&&n.indexed&&(e=`${e} indexed`),n.name?`${e} ${n.name}`:e}exports.formatAbiParameter=c;
|