react-gldn-kit 0.1.1 → 0.1.2

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.
Files changed (54) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/components/Banners/components/BannerTemplate/index.d.ts +2 -2
  3. package/dist/lib/components/Banners/types.d.ts +2 -2
  4. package/dist/lib/components/Modals/Alert/components/Auth/Credentials/index.d.ts +4 -0
  5. package/dist/lib/components/Modals/Alert/components/Auth/Credentials/index.js +57 -0
  6. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/constants.d.ts +7 -0
  7. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/constants.js +815 -0
  8. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/index.d.ts +5 -0
  9. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/index.js +35 -0
  10. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CurrencySelector/index.d.ts +7 -0
  11. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CurrencySelector/index.js +59 -0
  12. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/DocsCheckBox/index.d.ts +7 -0
  13. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/DocsCheckBox/index.js +35 -0
  14. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/EmailSignUp/index.d.ts +9 -0
  15. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/EmailSignUp/index.js +130 -0
  16. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/OneClickKit/index.d.ts +2 -0
  17. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/OneClickKit/index.js +60 -0
  18. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/constants.d.ts +2 -0
  19. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/constants.js +14 -0
  20. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/index.d.ts +5 -0
  21. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/index.js +129 -0
  22. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/PromoCode/index.d.ts +6 -0
  23. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/PromoCode/index.js +65 -0
  24. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/index.d.ts +9 -0
  25. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/index.js +75 -0
  26. package/dist/lib/components/Modals/Alert/index.d.ts +3 -1
  27. package/dist/lib/components/Modals/Alert/index.js +16 -13
  28. package/dist/lib/components/ui/Headers/PopUpHeader/index.js +2 -1
  29. package/dist/lib/components/ui/Inputs/PhoneInput/index.d.ts +23 -0
  30. package/dist/lib/components/ui/Inputs/PhoneInput/index.js +125 -0
  31. package/dist/lib/components/ui/Tabs/index.js +2 -1
  32. package/dist/lib/hooks/useHookFabric.d.ts +6 -0
  33. package/dist/lib/hooks/useHookFabric.js +24 -0
  34. package/dist/lib/index.d.ts +9 -3
  35. package/dist/lib/index.js +34 -20
  36. package/dist/lib/utils/shared.d.ts +8 -0
  37. package/dist/lib/utils/shared.js +192 -0
  38. package/dist/lib/zustandStore/alerts/modal/constants.js +3 -3
  39. package/dist/lib/zustandStore/alerts/modal/store.js +3 -3
  40. package/dist/lib/zustandStore/forms/signUp/constants.d.ts +10 -0
  41. package/dist/lib/zustandStore/forms/signUp/constants.js +40 -0
  42. package/dist/lib/zustandStore/forms/signUp/selectors.d.ts +23 -0
  43. package/dist/lib/zustandStore/forms/signUp/selectors.js +84 -0
  44. package/dist/lib/zustandStore/forms/signUp/store.d.ts +2 -0
  45. package/dist/lib/zustandStore/forms/signUp/store.js +62 -0
  46. package/dist/lib/zustandStore/forms/signUp/types.d.ts +34 -0
  47. package/dist/lib/zustandStore/forms/signUp/types.js +10 -0
  48. package/dist/lib/zustandStore/forms/signUp/utils.d.ts +36 -0
  49. package/dist/lib/zustandStore/forms/signUp/utils.js +48 -0
  50. package/dist/lib/zustandStore/languages/selectors.d.ts +1 -1
  51. package/dist/main.css +223 -85
  52. package/package.json +8 -6
  53. package/dist/lib/zustandStore/alerts/modal/utils.d.ts +0 -2
  54. package/dist/lib/zustandStore/alerts/modal/utils.js +0 -11
package/dist/main.css CHANGED
@@ -727,7 +727,7 @@
727
727
  font-weight: bold;
728
728
  }
729
729
 
730
- .KIT__BaseInputUi-module__input___RWf0J:-moz-placeholder-shown ~ .KIT__BaseInputUi-module__label___uzM8L {
730
+ .KIT__BaseInputUi-module__input___RWf0J:-moz-placeholder-shown~.KIT__BaseInputUi-module__label___uzM8L {
731
731
  top: 50%;
732
732
  transform: translateY(-50%);
733
733
  left: 10px;
@@ -735,7 +735,7 @@
735
735
  color: var(--input-base-autofill-label-text-color);
736
736
  }
737
737
 
738
- .KIT__BaseInputUi-module__input___RWf0J:placeholder-shown ~ .KIT__BaseInputUi-module__label___uzM8L {
738
+ .KIT__BaseInputUi-module__input___RWf0J:placeholder-shown~.KIT__BaseInputUi-module__label___uzM8L {
739
739
  top: 50%;
740
740
  transform: translateY(-50%);
741
741
  left: 10px;
@@ -743,21 +743,21 @@
743
743
  color: var(--input-base-autofill-label-text-color);
744
744
  }
745
745
 
746
- .KIT__BaseInputUi-module__input___RWf0J:-moz-placeholder-shown ~ .KIT__BaseInputUi-module__labelRight___Q5n_d {
746
+ .KIT__BaseInputUi-module__input___RWf0J:-moz-placeholder-shown~.KIT__BaseInputUi-module__labelRight___Q5n_d {
747
747
  top: 50%;
748
748
  transform: translateY(-50%);
749
749
  left: 25px;
750
750
  font-size: 11px;
751
751
  }
752
752
 
753
- .KIT__BaseInputUi-module__input___RWf0J:placeholder-shown ~ .KIT__BaseInputUi-module__labelRight___Q5n_d {
753
+ .KIT__BaseInputUi-module__input___RWf0J:placeholder-shown~.KIT__BaseInputUi-module__labelRight___Q5n_d {
754
754
  top: 50%;
755
755
  transform: translateY(-50%);
756
756
  left: 25px;
757
757
  font-size: 11px;
758
758
  }
759
759
 
760
- .KIT__BaseInputUi-module__input___RWf0J:not(placeholder-shown) ~ .KIT__BaseInputUi-module__label___uzM8L {
760
+ .KIT__BaseInputUi-module__input___RWf0J:not(placeholder-shown)~.KIT__BaseInputUi-module__label___uzM8L {
761
761
  top: -15px;
762
762
  transform: translateY(0%);
763
763
  z-index: 1;
@@ -773,7 +773,7 @@
773
773
  font-size: 0;
774
774
  }
775
775
 
776
- .KIT__BaseInputUi-module__input___RWf0J:focus ~ .KIT__BaseInputUi-module__label___uzM8L {
776
+ .KIT__BaseInputUi-module__input___RWf0J:focus~.KIT__BaseInputUi-module__label___uzM8L {
777
777
  top: -15px;
778
778
  transform: translateY(0%);
779
779
  left: 0px;
@@ -812,19 +812,19 @@
812
812
  margin-left: var(--indent-base-half);
813
813
  }
814
814
 
815
- .KIT__BaseInputUi-module__input___RWf0J:focus ~ .KIT__BaseInputUi-module__label___uzM8L.KIT__BaseInputUi-module__hideLabel___XBQr4 {
815
+ .KIT__BaseInputUi-module__input___RWf0J:focus~.KIT__BaseInputUi-module__label___uzM8L.KIT__BaseInputUi-module__hideLabel___XBQr4 {
816
816
  opacity: 0;
817
817
  }
818
818
 
819
- .KIT__BaseInputUi-module__input___RWf0J:not(placeholder-shown) ~ label.KIT__BaseInputUi-module__hideLabel___XBQr4 {
819
+ .KIT__BaseInputUi-module__input___RWf0J:not(placeholder-shown)~label.KIT__BaseInputUi-module__hideLabel___XBQr4 {
820
820
  opacity: 0;
821
821
  }
822
822
 
823
- .KIT__BaseInputUi-module__input___RWf0J:-moz-placeholder-shown ~ label.KIT__BaseInputUi-module__hideLabel___XBQr4 {
823
+ .KIT__BaseInputUi-module__input___RWf0J:-moz-placeholder-shown~label.KIT__BaseInputUi-module__hideLabel___XBQr4 {
824
824
  opacity: 1;
825
825
  }
826
826
 
827
- .KIT__BaseInputUi-module__input___RWf0J:placeholder-shown ~ label.KIT__BaseInputUi-module__hideLabel___XBQr4 {
827
+ .KIT__BaseInputUi-module__input___RWf0J:placeholder-shown~label.KIT__BaseInputUi-module__hideLabel___XBQr4 {
828
828
  opacity: 1;
829
829
  }
830
830
 
@@ -840,6 +840,7 @@
840
840
  font-size: 10px;
841
841
  }
842
842
 
843
+
843
844
  .KIT__BaseInputUi-module__animationFadeIn___qsCmj {
844
845
  animation: KIT__BaseInputUi-module__FadeIn___kQ_6Q 1s forwards;
845
846
  }
@@ -896,7 +897,6 @@
896
897
  opacity: 1;
897
898
  }
898
899
  }
899
-
900
900
  .KIT__PromoCode-module__promoTitle___gtXxM {
901
901
  color: var(--promo-code-promo-title-color);
902
902
  font-size: var(--font-size-xs);
@@ -1689,6 +1689,189 @@
1689
1689
  font-weight: 700;
1690
1690
  }
1691
1691
 
1692
+ .KIT__Tabs-module__wrapperTabs___rFoBY {
1693
+ display: flex;
1694
+ align-items: center;
1695
+ width: 100%;
1696
+ position: relative;
1697
+ }
1698
+
1699
+ .KIT__Tabs-module__tab___NBVtA {
1700
+ /* width: 100%; */
1701
+ padding-bottom: var(--indent-base);
1702
+ text-align: center;
1703
+ color: var(--tab-text-color);
1704
+ transition: 0.3s;
1705
+ cursor: pointer;
1706
+ display: flex;
1707
+ justify-content: center;
1708
+ position: relative;
1709
+ z-index: 2;
1710
+ padding-bottom: var(--indent-base);
1711
+ white-space: nowrap;
1712
+ text-overflow: ellipsis;
1713
+ }
1714
+
1715
+ .KIT__Tabs-module__bg___y6G1J {
1716
+ background-color: var(--tabs-background);
1717
+ }
1718
+
1719
+ .KIT__Tabs-module__tabButtonsWrapper___xcC8P {
1720
+ border-radius: var(--border-s);
1721
+ display: flex;
1722
+ align-items: center;
1723
+ padding: 1px;
1724
+ }
1725
+
1726
+ .KIT__Tabs-module__buttonTab___Tpphz {
1727
+ padding: calc(var(--indent-base) / 3);
1728
+ border-radius: var(--border-s);
1729
+ border: 2px solid transparent;
1730
+ width: 100%;
1731
+ }
1732
+
1733
+ .KIT__Tabs-module__buttonTabActive___hoiNu {
1734
+ display: flex;
1735
+ justify-content: center;
1736
+ align-items: center;
1737
+ box-shadow: var(--primary-shadow);
1738
+ height: 100%;
1739
+ }
1740
+
1741
+ .KIT__Tabs-module__buttonTabActive___hoiNu::after {
1742
+ border-color: transparent;
1743
+ }
1744
+
1745
+ .KIT__Tabs-module__activeBlockIndicator___B35H_ {
1746
+ position: absolute;
1747
+ height: 2px;
1748
+ background-color: rgb(var(--third));
1749
+ transition: 0.3s;
1750
+ bottom: 0;
1751
+ z-index: 1;
1752
+ }
1753
+
1754
+ .KIT__Tabs-module__buttonActiveIndicator___l6_IM {
1755
+ height: 100%;
1756
+ border-radius: var(--border-s);
1757
+ border: 2px solid rgb(var(--green));
1758
+ background: var(--primary-gradient);
1759
+ }
1760
+
1761
+ .KIT__Tabs-module__wrapperTabs___rFoBY::-webkit-scrollbar {
1762
+ width: 0;
1763
+ height: 0;
1764
+ }
1765
+
1766
+ .KIT__SignUp-module__wrapperSignUpModal___xR9cE {
1767
+ display: flex;
1768
+ flex-direction: column;
1769
+ align-items: center;
1770
+ width: 100%;
1771
+ }
1772
+
1773
+ .KIT__SignUp-module__wrapperTitle___ozW8l {
1774
+ padding: var(--indent-base);
1775
+ }
1776
+
1777
+ .KIT__SignUp-module__textTitle___yNl9W {
1778
+ font-size: var(--font-size-l);
1779
+ line-height: 20px;
1780
+ color: var(--sign-up-modal-bonus-text-title-color);
1781
+ }
1782
+
1783
+ .KIT__SignUp-module__subText___RqU7d {
1784
+ font-size: var(--font-size-s);
1785
+ color: var(--sign-up-modal-bonus-subtext-color);
1786
+ font-weight: 400;
1787
+ line-height: 18.2px;
1788
+ }
1789
+
1790
+ .KIT__SignUp-module__subText___RqU7d::first-letter {
1791
+ text-transform: uppercase;
1792
+ }
1793
+
1794
+ .KIT__SignUp-module__bonusText___Jir0o {
1795
+ font-size: var(--font-size-l);
1796
+ color: var(--sign-up-modal-bonus-text-color);
1797
+ padding: var(--indent-base);
1798
+ text-align: center;
1799
+ font-weight: 700;
1800
+ line-height: 26px;
1801
+ }
1802
+
1803
+ .KIT__SignUp-module__wrapperTabsAndForm___r8l1i {
1804
+ width: 100%;
1805
+ }
1806
+
1807
+ .KIT__SignUp-module__zIndex___HX8Nv {
1808
+ position: relative;
1809
+ z-index: 3;
1810
+ }
1811
+
1812
+ .KIT__SignUp-module__tabs___yL_k1 {
1813
+ margin-bottom: calc(var(--indent-base) * 2);
1814
+ }
1815
+
1816
+ .KIT__SignUp-module__marginB___gJd7z {
1817
+ margin-bottom: var(--indent-l);
1818
+ }
1819
+
1820
+ .KIT__SignUp-module__checkbox___SgctZ {
1821
+ margin-bottom: var(--indent-base);
1822
+ color: var(--sign-up-modal-checkbox-color);
1823
+ }
1824
+
1825
+ .KIT__SignUp-module__promoTitle___Qv0oq {
1826
+ color: var(--promo-code-promo-title-color);
1827
+ font-size: var(--font-size-s);
1828
+
1829
+ display: flex;
1830
+ align-items: center;
1831
+ gap: var(--indent-xs);
1832
+
1833
+ margin-bottom: 60px;
1834
+ }
1835
+
1836
+ .KIT__SignUp-module__promoTitle___Qv0oq .KIT__SignUp-module__promocodeSvg___ILvew {
1837
+ --size: 24px;
1838
+ width: 24px;
1839
+ width: var(--size);
1840
+ height: 24px;
1841
+ height: var(--size);
1842
+ }
1843
+
1844
+ .KIT__SignUp-module__bigMargin___IHLl0 {
1845
+ margin-bottom: 60px;
1846
+ }
1847
+
1848
+ .KIT__SignUp-module__wrapperReferralFailure___Nv53h {
1849
+ overflow-y: auto;
1850
+ }
1851
+
1852
+ .KIT__SignUp-module__authButton___Zrxas {
1853
+ height: 52px;
1854
+ }
1855
+
1856
+ @media (min-width: 768px) {
1857
+ .KIT__SignUp-module__wrapperReferralFailure___Nv53h {
1858
+ max-width: 360px;
1859
+ border-radius: var(--border-l);
1860
+ }
1861
+ }
1862
+ .KIT__EmailSignUp-module__animationFadeIn___OYv3L {
1863
+ animation: KIT__EmailSignUp-module__FadeIn___jKgXy 1s forwards;
1864
+ }
1865
+
1866
+ @keyframes KIT__EmailSignUp-module__FadeIn___jKgXy {
1867
+ 0% {
1868
+ opacity: 0;
1869
+ }
1870
+
1871
+ 100% {
1872
+ opacity: 1;
1873
+ }
1874
+ }
1692
1875
  .KIT__Alert-module__wrapperModal___lOle6 {
1693
1876
  width: 100%;
1694
1877
  height: 100%;
@@ -1797,6 +1980,35 @@
1797
1980
  opacity: 0;
1798
1981
  }
1799
1982
  }
1983
+ .KIT__Credentials-module__wrapperCredentials___AH3RX {
1984
+ display: flex;
1985
+ flex-direction: column;
1986
+ align-items: center;
1987
+
1988
+ width: var(--full);
1989
+ }
1990
+
1991
+ .KIT__Credentials-module__infoRow___DY4RE {
1992
+ display: flex;
1993
+ justify-content: space-between;
1994
+ align-items: center;
1995
+ width: var(--full);
1996
+ margin-bottom: var(--indent-base-double);
1997
+ }
1998
+
1999
+ .KIT__Credentials-module__username___g5UjF {
2000
+ color: var(--credentials-info-username-color);
2001
+ font-size: var(--font-size-xs);
2002
+ }
2003
+
2004
+ .KIT__Credentials-module__result___MU6EV {
2005
+ color: var(--credentials-info-result-color);
2006
+ font-size: var(--font-size-m);
2007
+ width: calc(var(--large) - (var(--small) + var(--indent-base)));
2008
+ overflow: hidden;
2009
+ text-overflow: ellipsis;
2010
+ }
2011
+
1800
2012
  .KIT__BannerTemplate-module__wrapperBanner___vPzec {
1801
2013
  height: 150px;
1802
2014
  background-size: cover;
@@ -2016,80 +2228,6 @@
2016
2228
  }
2017
2229
  }
2018
2230
 
2019
- .KIT__Tabs-module__wrapperTabs___rFoBY {
2020
- display: flex;
2021
- align-items: center;
2022
- width: 100%;
2023
- position: relative;
2024
- }
2025
-
2026
- .KIT__Tabs-module__tab___NBVtA {
2027
- /* width: 100%; */
2028
- padding-bottom: var(--indent-base);
2029
- text-align: center;
2030
- color: var(--tab-text-color);
2031
- transition: 0.3s;
2032
- cursor: pointer;
2033
- display: flex;
2034
- justify-content: center;
2035
- position: relative;
2036
- z-index: 2;
2037
- padding-bottom: var(--indent-base);
2038
- white-space: nowrap;
2039
- text-overflow: ellipsis;
2040
- }
2041
-
2042
- .KIT__Tabs-module__bg___y6G1J {
2043
- background-color: var(--tabs-background);
2044
- }
2045
-
2046
- .KIT__Tabs-module__tabButtonsWrapper___xcC8P {
2047
- border-radius: var(--border-s);
2048
- display: flex;
2049
- align-items: center;
2050
- padding: 1px;
2051
- }
2052
-
2053
- .KIT__Tabs-module__buttonTab___Tpphz {
2054
- padding: calc(var(--indent-base) / 3);
2055
- border-radius: var(--border-s);
2056
- border: 2px solid transparent;
2057
- width: 100%;
2058
- }
2059
-
2060
- .KIT__Tabs-module__buttonTabActive___hoiNu {
2061
- display: flex;
2062
- justify-content: center;
2063
- align-items: center;
2064
- box-shadow: var(--primary-shadow);
2065
- height: 100%;
2066
- }
2067
-
2068
- .KIT__Tabs-module__buttonTabActive___hoiNu::after {
2069
- border-color: transparent;
2070
- }
2071
-
2072
- .KIT__Tabs-module__activeBlockIndicator___B35H_ {
2073
- position: absolute;
2074
- height: 2px;
2075
- background-color: rgb(var(--third));
2076
- transition: 0.3s;
2077
- bottom: 0;
2078
- z-index: 1;
2079
- }
2080
-
2081
- .KIT__Tabs-module__buttonActiveIndicator___l6_IM {
2082
- height: 100%;
2083
- border-radius: var(--border-s);
2084
- border: 2px solid rgb(var(--green));
2085
- background: var(--primary-gradient);
2086
- }
2087
-
2088
- .KIT__Tabs-module__wrapperTabs___rFoBY::-webkit-scrollbar {
2089
- width: 0;
2090
- height: 0;
2091
- }
2092
-
2093
2231
  .KIT__Docs-module__docContent___Yf1m5 {
2094
2232
  width: 100%;
2095
2233
  padding: var(--indent-base);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-gldn-kit",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "keywords": [],
@@ -12,7 +12,7 @@
12
12
  "build": "rm -rf dist && npm run build:types && webpack --mode=production --node-env=production",
13
13
  "publish": "npm i && npm run build && npm publish",
14
14
  "clear": "sudo rm -rf node_modules && npm i",
15
- "add:react": " npm link ../web-spa/node_modules/react ../web-spa/node_modules/@types/react ../web-spa/node_modules/classnames ../web-spa/node_modules/react-dom ../web-spa/node_modules/@types/react-dom ../web-spa/node_modules/react-responsive-carousel ../web-spa/node_modules/react-easy-swipe",
15
+ "add:react": " npm link ../web-spa/node_modules/react ../web-spa/node_modules/@types/react ../web-spa/node_modules/classnames ../web-spa/node_modules/react-dom ../web-spa/node_modules/@types/react-dom ../web-spa/node_modules/react-responsive-carousel ../web-spa/node_modules/react-easy-swipe ../web-spa/node_modules/react-memory-optimization",
16
16
  "dev:kit": "sudo npm run add:react && npm run dev",
17
17
  "dev:kit-win": "npm run add:react && rimraf ./dist/lib && tsc --build tsconfig.json && webpack --watch"
18
18
  },
@@ -49,13 +49,15 @@
49
49
  "peerDependencies": {
50
50
  "classnames": "*",
51
51
  "react-responsive-carousel": "*",
52
- "zustand": "^4.5.5",
53
- "react":"18.2.0",
54
- "react-dom":"18.2.0"
52
+ "zustand": "*",
53
+ "react":"*",
54
+ "react-dom":"*",
55
+ "react-memory-optimization":"*"
55
56
  },
56
57
  "dependencies": {
57
58
  "html-react-parser": "^5.1.12",
58
- "react-qr-code": "^2.0.13"
59
+ "react-qr-code": "^2.0.13",
60
+ "react-phone-number-input": "^3.3.9"
59
61
  },
60
62
  "eslintConfig": {
61
63
  "extends": [
@@ -1,2 +0,0 @@
1
- export declare const getValueByIdFromUrl: (key: string, path: string) => string;
2
- export declare const sleep: (ms: number) => Promise<unknown>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sleep = exports.getValueByIdFromUrl = void 0;
4
- var getValueByIdFromUrl = function (key, path) {
5
- var url = new URL(path);
6
- var value = url.searchParams.get(key) || '';
7
- return value;
8
- };
9
- exports.getValueByIdFromUrl = getValueByIdFromUrl;
10
- var sleep = function (ms) { return new Promise(function (res) { return setTimeout(res, ms); }); };
11
- exports.sleep = sleep;