@lokalise/harmony 1.31.0 → 1.31.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/harmony.cjs +60 -58
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.css +21 -0
- package/dist/harmony.mjs +60 -58
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony10.cjs +51 -8
- package/dist/harmony10.cjs.map +1 -1
- package/dist/harmony10.mjs +51 -8
- package/dist/harmony10.mjs.map +1 -1
- package/dist/harmony100.cjs +14 -6
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +13 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +21 -132
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +20 -131
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +6 -12
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +5 -11
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +132 -5
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +132 -5
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +12 -40
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +11 -39
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +4 -59
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +5 -60
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +39 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +39 -6
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +61 -6
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +60 -5
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +8 -6
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +7 -5
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +91 -88
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +76 -90
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony11.cjs +8 -4
- package/dist/harmony11.cjs.map +1 -1
- package/dist/harmony11.mjs +8 -4
- package/dist/harmony11.mjs.map +1 -1
- package/dist/harmony110.cjs +7 -14
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +6 -13
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +6 -15
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +5 -14
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +6 -37
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +5 -36
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +62 -28
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +61 -27
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +87 -61
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +87 -61
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +18 -88
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +17 -87
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +97 -19
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +96 -18
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +12 -12
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +12 -12
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +13 -14
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +13 -14
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +34 -14
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +34 -14
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony12.cjs +5 -25
- package/dist/harmony12.cjs.map +1 -1
- package/dist/harmony12.mjs +5 -25
- package/dist/harmony12.mjs.map +1 -1
- package/dist/harmony120.cjs +27 -10
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +27 -10
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +7 -16
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +7 -16
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +56 -20
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +56 -20
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +59 -11
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +59 -11
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +18 -7
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +17 -6
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +13 -57
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +13 -57
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +14 -59
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +14 -59
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +17 -19
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +16 -18
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +10 -5
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +10 -5
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +15 -11
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +15 -11
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +25 -5
- package/dist/harmony13.cjs.map +1 -1
- package/dist/harmony13.mjs +25 -5
- package/dist/harmony13.mjs.map +1 -1
- package/dist/harmony130.cjs +17 -28
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +17 -28
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +10 -12
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +10 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +1 -1
- package/dist/harmony132.mjs +1 -1
- package/dist/harmony134.cjs +15 -0
- package/dist/harmony134.cjs.map +1 -0
- package/dist/harmony134.mjs +15 -0
- package/dist/harmony134.mjs.map +1 -0
- package/dist/harmony135.cjs +35 -0
- package/dist/harmony135.cjs.map +1 -0
- package/dist/harmony135.mjs +35 -0
- package/dist/harmony135.mjs.map +1 -0
- package/dist/harmony136.cjs +17 -0
- package/dist/harmony136.cjs.map +1 -0
- package/dist/harmony136.mjs +17 -0
- package/dist/harmony136.mjs.map +1 -0
- package/dist/harmony137.cjs +9 -0
- package/dist/harmony137.cjs.map +1 -0
- package/dist/harmony137.mjs +9 -0
- package/dist/harmony137.mjs.map +1 -0
- package/dist/harmony14.cjs +5 -11
- package/dist/harmony14.cjs.map +1 -1
- package/dist/harmony14.mjs +5 -11
- package/dist/harmony14.mjs.map +1 -1
- package/dist/harmony15.cjs +9 -9
- package/dist/harmony15.cjs.map +1 -1
- package/dist/harmony15.mjs +9 -9
- package/dist/harmony15.mjs.map +1 -1
- package/dist/harmony16.cjs +9 -16
- package/dist/harmony16.cjs.map +1 -1
- package/dist/harmony16.mjs +9 -16
- package/dist/harmony16.mjs.map +1 -1
- package/dist/harmony17.cjs +16 -14
- package/dist/harmony17.cjs.map +1 -1
- package/dist/harmony17.mjs +16 -14
- package/dist/harmony17.mjs.map +1 -1
- package/dist/harmony18.cjs +13 -139
- package/dist/harmony18.cjs.map +1 -1
- package/dist/harmony18.mjs +13 -139
- package/dist/harmony18.mjs.map +1 -1
- package/dist/harmony19.cjs +141 -13
- package/dist/harmony19.cjs.map +1 -1
- package/dist/harmony19.mjs +141 -13
- package/dist/harmony19.mjs.map +1 -1
- package/dist/harmony20.cjs +13 -16
- package/dist/harmony20.cjs.map +1 -1
- package/dist/harmony20.mjs +13 -16
- package/dist/harmony20.mjs.map +1 -1
- package/dist/harmony21.cjs +10 -11
- package/dist/harmony21.cjs.map +1 -1
- package/dist/harmony21.mjs +10 -11
- package/dist/harmony21.mjs.map +1 -1
- package/dist/harmony22.cjs +16 -18
- package/dist/harmony22.cjs.map +1 -1
- package/dist/harmony22.mjs +16 -18
- package/dist/harmony22.mjs.map +1 -1
- package/dist/harmony23.cjs +17 -17
- package/dist/harmony23.cjs.map +1 -1
- package/dist/harmony23.mjs +18 -18
- package/dist/harmony23.mjs.map +1 -1
- package/dist/harmony24.cjs +19 -9
- package/dist/harmony24.cjs.map +1 -1
- package/dist/harmony24.mjs +19 -9
- package/dist/harmony24.mjs.map +1 -1
- package/dist/harmony25.cjs +7 -8
- package/dist/harmony25.cjs.map +1 -1
- package/dist/harmony25.mjs +7 -8
- package/dist/harmony25.mjs.map +1 -1
- package/dist/harmony26.cjs +11 -27
- package/dist/harmony26.cjs.map +1 -1
- package/dist/harmony26.mjs +11 -27
- package/dist/harmony26.mjs.map +1 -1
- package/dist/harmony27.cjs +22 -26
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +23 -27
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony28.cjs +28 -8
- package/dist/harmony28.cjs.map +1 -1
- package/dist/harmony28.mjs +29 -9
- package/dist/harmony28.mjs.map +1 -1
- package/dist/harmony29.cjs +10 -54
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +10 -54
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony3.cjs +3 -3
- package/dist/harmony3.mjs +3 -3
- package/dist/harmony30.cjs +50 -25
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +51 -26
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +27 -15
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +28 -16
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony32.cjs +16 -8
- package/dist/harmony32.cjs.map +1 -1
- package/dist/harmony32.mjs +16 -8
- package/dist/harmony32.mjs.map +1 -1
- package/dist/harmony33.cjs +8 -12
- package/dist/harmony33.cjs.map +1 -1
- package/dist/harmony33.mjs +9 -13
- package/dist/harmony33.mjs.map +1 -1
- package/dist/harmony34.cjs +14 -14
- package/dist/harmony34.cjs.map +1 -1
- package/dist/harmony34.mjs +14 -14
- package/dist/harmony34.mjs.map +1 -1
- package/dist/harmony35.cjs +4 -4
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +4 -4
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony36.cjs +6 -6
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +6 -6
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +6 -5
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +6 -5
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +6 -14
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +7 -15
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +15 -7
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +15 -7
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony4.cjs +10 -10
- package/dist/harmony4.mjs +10 -10
- package/dist/harmony40.cjs +7 -11
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +9 -13
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +8 -8
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +8 -8
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +14 -12
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +14 -12
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +8 -8
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +9 -9
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +9 -9
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +10 -10
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +12 -14
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +12 -14
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +10 -10
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +10 -10
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +8 -8
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +8 -8
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +7 -7
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +7 -7
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +14 -12
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +14 -12
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony50.cjs +12 -14
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +12 -14
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +8 -8
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +8 -8
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +10 -7
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +12 -9
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +14 -56
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +14 -56
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +48 -74
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +47 -73
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +80 -4
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +80 -4
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +4 -21
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +4 -21
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +20 -34
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +20 -34
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +35 -120
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +34 -119
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +121 -46
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +120 -45
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +4 -4
- package/dist/harmony6.mjs +4 -4
- package/dist/harmony60.cjs +46 -25
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +46 -25
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +24 -6
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +24 -6
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +6 -82
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +6 -82
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +80 -20
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +80 -20
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +22 -16
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +22 -16
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +19 -16
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +18 -15
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +15 -18
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +15 -18
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +18 -61
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +18 -61
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +61 -6
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +61 -6
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +7 -10
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +6 -9
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony7.cjs +11 -30
- package/dist/harmony7.cjs.map +1 -1
- package/dist/harmony7.mjs +11 -30
- package/dist/harmony7.mjs.map +1 -1
- package/dist/harmony70.cjs +8 -17
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +8 -17
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +13 -18
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +14 -19
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +22 -4
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +22 -4
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +4 -31
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +5 -32
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +25 -25
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +27 -27
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +24 -11
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +25 -12
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +11 -23
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +12 -24
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +27 -55
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +29 -57
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +60 -10
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +59 -9
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +10 -9
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +9 -8
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony8.cjs +30 -23
- package/dist/harmony8.cjs.map +1 -1
- package/dist/harmony8.mjs +30 -23
- package/dist/harmony8.mjs.map +1 -1
- package/dist/harmony80.cjs +5 -26
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +8 -29
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +29 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +29 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +3 -11
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +3 -11
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +40 -21
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +39 -20
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony87.cjs +2 -2
- package/dist/harmony87.mjs +2 -2
- package/dist/harmony88.cjs +2 -2
- package/dist/harmony88.mjs +2 -2
- package/dist/harmony9.cjs +16 -45
- package/dist/harmony9.cjs.map +1 -1
- package/dist/harmony9.mjs +16 -45
- package/dist/harmony9.mjs.map +1 -1
- package/dist/harmony93.cjs +2 -2
- package/dist/harmony93.mjs +2 -2
- package/dist/harmony95.cjs +11 -99
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +11 -82
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +22 -19
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +21 -18
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +10 -12
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +10 -12
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +9 -18
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +9 -18
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +18 -6
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +18 -6
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/node.d.ts +1 -0
- package/package.json +1 -1
@@ -0,0 +1,35 @@
|
|
1
|
+
import { __require as require_Symbol } from "./harmony134.mjs";
|
2
|
+
var _getRawTag;
|
3
|
+
var hasRequired_getRawTag;
|
4
|
+
function require_getRawTag() {
|
5
|
+
if (hasRequired_getRawTag) return _getRawTag;
|
6
|
+
hasRequired_getRawTag = 1;
|
7
|
+
var Symbol = require_Symbol();
|
8
|
+
var objectProto = Object.prototype;
|
9
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
10
|
+
var nativeObjectToString = objectProto.toString;
|
11
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
12
|
+
function getRawTag(value) {
|
13
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
14
|
+
try {
|
15
|
+
value[symToStringTag] = void 0;
|
16
|
+
var unmasked = true;
|
17
|
+
} catch (e) {
|
18
|
+
}
|
19
|
+
var result = nativeObjectToString.call(value);
|
20
|
+
if (unmasked) {
|
21
|
+
if (isOwn) {
|
22
|
+
value[symToStringTag] = tag;
|
23
|
+
} else {
|
24
|
+
delete value[symToStringTag];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
return result;
|
28
|
+
}
|
29
|
+
_getRawTag = getRawTag;
|
30
|
+
return _getRawTag;
|
31
|
+
}
|
32
|
+
export {
|
33
|
+
require_getRawTag as __require
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=harmony135.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony135.mjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,SAASA,eAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
var _objectToString;
|
4
|
+
var hasRequired_objectToString;
|
5
|
+
function require_objectToString() {
|
6
|
+
if (hasRequired_objectToString) return _objectToString;
|
7
|
+
hasRequired_objectToString = 1;
|
8
|
+
var objectProto = Object.prototype;
|
9
|
+
var nativeObjectToString = objectProto.toString;
|
10
|
+
function objectToString(value) {
|
11
|
+
return nativeObjectToString.call(value);
|
12
|
+
}
|
13
|
+
_objectToString = objectToString;
|
14
|
+
return _objectToString;
|
15
|
+
}
|
16
|
+
exports.__require = require_objectToString;
|
17
|
+
//# sourceMappingURL=harmony136.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony136.cjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var _objectToString;
|
2
|
+
var hasRequired_objectToString;
|
3
|
+
function require_objectToString() {
|
4
|
+
if (hasRequired_objectToString) return _objectToString;
|
5
|
+
hasRequired_objectToString = 1;
|
6
|
+
var objectProto = Object.prototype;
|
7
|
+
var nativeObjectToString = objectProto.toString;
|
8
|
+
function objectToString(value) {
|
9
|
+
return nativeObjectToString.call(value);
|
10
|
+
}
|
11
|
+
_objectToString = objectToString;
|
12
|
+
return _objectToString;
|
13
|
+
}
|
14
|
+
export {
|
15
|
+
require_objectToString as __require
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=harmony136.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony136.mjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
4
|
+
function getDefaultExportFromCjs(x) {
|
5
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
6
|
+
}
|
7
|
+
exports.commonjsGlobal = commonjsGlobal;
|
8
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
9
|
+
//# sourceMappingURL=harmony137.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony137.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
2
|
+
function getDefaultExportFromCjs(x) {
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
4
|
+
}
|
5
|
+
export {
|
6
|
+
commonjsGlobal,
|
7
|
+
getDefaultExportFromCjs
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=harmony137.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony137.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony14.cjs
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
5
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
}
|
13
|
-
exports.UnauthorizedError = UnauthorizedError;
|
3
|
+
const createHeaderBuilderMiddleware = require("./harmony18.cjs");
|
4
|
+
const PublicApiHeaderBuilderMiddleware = createHeaderBuilderMiddleware.createHeaderBuilderMiddleware(
|
5
|
+
(builder) => builder.and({ "x-lokalise-plugin": "true" })
|
6
|
+
);
|
7
|
+
exports.PublicApiHeaderBuilderMiddleware = PublicApiHeaderBuilderMiddleware;
|
14
8
|
//# sourceMappingURL=harmony14.cjs.map
|
package/dist/harmony14.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony14.cjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony14.cjs","sources":["../src/features/auth/core/middleware/publicApiHeaderBuilderMiddleware.ts"],"sourcesContent":["import { createHeaderBuilderMiddleware } from '@features/auth/core/headers/createHeaderBuilderMiddleware'\n\nexport const PublicApiHeaderBuilderMiddleware = createHeaderBuilderMiddleware((builder) =>\n\tbuilder.and({ 'x-lokalise-plugin': 'true' }),\n)\n"],"names":["createHeaderBuilderMiddleware"],"mappings":";;;AAEO,MAAM,mCAAmCA,8BAAA;AAAA,EAA8B,CAAC,YAC9E,QAAQ,IAAI,EAAE,qBAAqB,OAAQ,CAAA;AAC5C;;"}
|
package/dist/harmony14.mjs
CHANGED
@@ -1,14 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
constructor() {
|
6
|
-
super(...arguments);
|
7
|
-
__publicField(this, "name", "UnauthorizedError");
|
8
|
-
__publicField(this, "status", 401);
|
9
|
-
}
|
10
|
-
}
|
1
|
+
import { createHeaderBuilderMiddleware } from "./harmony18.mjs";
|
2
|
+
const PublicApiHeaderBuilderMiddleware = createHeaderBuilderMiddleware(
|
3
|
+
(builder) => builder.and({ "x-lokalise-plugin": "true" })
|
4
|
+
);
|
11
5
|
export {
|
12
|
-
|
6
|
+
PublicApiHeaderBuilderMiddleware
|
13
7
|
};
|
14
8
|
//# sourceMappingURL=harmony14.mjs.map
|
package/dist/harmony14.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony14.mjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony14.mjs","sources":["../src/features/auth/core/middleware/publicApiHeaderBuilderMiddleware.ts"],"sourcesContent":["import { createHeaderBuilderMiddleware } from '@features/auth/core/headers/createHeaderBuilderMiddleware'\n\nexport const PublicApiHeaderBuilderMiddleware = createHeaderBuilderMiddleware((builder) =>\n\tbuilder.and({ 'x-lokalise-plugin': 'true' }),\n)\n"],"names":[],"mappings":";AAEO,MAAM,mCAAmC;AAAA,EAA8B,CAAC,YAC9E,QAAQ,IAAI,EAAE,qBAAqB,OAAQ,CAAA;AAC5C;"}
|
package/dist/harmony15.cjs
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
2
5
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
return jwtTokenPayload.JWT_TOKEN_PAYLOAD_SCHEMA.parse(JSON.parse(decoded));
|
9
|
-
} catch (_error) {
|
10
|
-
return void 0;
|
6
|
+
class UnauthorizedError extends Error {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
__publicField(this, "name", "UnauthorizedError");
|
10
|
+
__publicField(this, "status", 401);
|
11
11
|
}
|
12
12
|
}
|
13
|
-
exports.
|
13
|
+
exports.UnauthorizedError = UnauthorizedError;
|
14
14
|
//# sourceMappingURL=harmony15.cjs.map
|
package/dist/harmony15.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony15.cjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony15.cjs","sources":["../src/features/auth/errors/UnauthorizedError.ts"],"sourcesContent":["export class UnauthorizedError extends Error {\n\toverride readonly name = 'UnauthorizedError'\n\treadonly status = 401\n}\n"],"names":[],"mappings":";;;;;AAAO,MAAM,0BAA0B,MAAM;AAAA,EAAtC;AAAA;AACY,gCAAO;AAChB,kCAAS;AAAA;AACnB;;"}
|
package/dist/harmony15.mjs
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4
|
+
class UnauthorizedError extends Error {
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
__publicField(this, "name", "UnauthorizedError");
|
8
|
+
__publicField(this, "status", 401);
|
9
9
|
}
|
10
10
|
}
|
11
11
|
export {
|
12
|
-
|
12
|
+
UnauthorizedError
|
13
13
|
};
|
14
14
|
//# sourceMappingURL=harmony15.mjs.map
|
package/dist/harmony15.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony15.mjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony15.mjs","sources":["../src/features/auth/errors/UnauthorizedError.ts"],"sourcesContent":["export class UnauthorizedError extends Error {\n\toverride readonly name = 'UnauthorizedError'\n\treadonly status = 401\n}\n"],"names":[],"mappings":";;;AAAO,MAAM,0BAA0B,MAAM;AAAA,EAAtC;AAAA;AACY,gCAAO;AAChB,kCAAS;AAAA;AACnB;"}
|
package/dist/harmony16.cjs
CHANGED
@@ -1,21 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
const jwtTokenPayload = require("./harmony99.cjs");
|
4
|
+
function parseJwtTokenPayload(token) {
|
5
|
+
try {
|
6
|
+
const payload = token.split(".")[1];
|
7
|
+
const decoded = atob(payload);
|
8
|
+
return jwtTokenPayload.JWT_TOKEN_PAYLOAD_SCHEMA.parse(JSON.parse(decoded));
|
9
|
+
} catch (_error) {
|
10
|
+
return void 0;
|
8
11
|
}
|
9
|
-
return { accessToken, refreshToken };
|
10
12
|
}
|
11
|
-
|
12
|
-
return getCookie(document.cookie, "csrf_token") ?? null;
|
13
|
-
}
|
14
|
-
function getCookie(cookies, name) {
|
15
|
-
var _a, _b;
|
16
|
-
return (_b = (_a = cookies.split(";").find((cookie) => cookie.trim().startsWith(`${name}=`))) == null ? void 0 : _a.trim()) == null ? void 0 : _b.substring(name.length + 1);
|
17
|
-
}
|
18
|
-
exports.getCookie = getCookie;
|
19
|
-
exports.getCsrfTokenFromCookie = getCsrfTokenFromCookie;
|
20
|
-
exports.getJwtTokenFromCookie = getJwtTokenFromCookie;
|
13
|
+
exports.parseJwtTokenPayload = parseJwtTokenPayload;
|
21
14
|
//# sourceMappingURL=harmony16.cjs.map
|
package/dist/harmony16.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony16.cjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony16.cjs","sources":["../src/features/auth/core/utils/jwtTokenPayload.ts"],"sourcesContent":["import { JWT_TOKEN_PAYLOAD_SCHEMA, type JwtTokenPayload } from '../types/jwtTokenPayload'\n\n/**\n * Parses the payload of a JWT token.\n *\n * @param token - The JWT token to parse.\n */\nexport function parseJwtTokenPayload(token: string): JwtTokenPayload | undefined {\n\ttry {\n\t\tconst payload = token.split('.')[1]\n\t\tconst decoded = atob(payload)\n\t\treturn JWT_TOKEN_PAYLOAD_SCHEMA.parse(JSON.parse(decoded))\n\t} catch (_error) {\n\t\treturn undefined\n\t}\n}\n"],"names":["JWT_TOKEN_PAYLOAD_SCHEMA"],"mappings":";;;AAOO,SAAS,qBAAqB,OAA4C;AAC5E,MAAA;AACH,UAAM,UAAU,MAAM,MAAM,GAAG,EAAE,CAAC;AAC5B,UAAA,UAAU,KAAK,OAAO;AAC5B,WAAOA,gBAAyB,yBAAA,MAAM,KAAK,MAAM,OAAO,CAAC;AAAA,WACjD,QAAQ;AACT,WAAA;AAAA,EAAA;AAET;;"}
|
package/dist/harmony16.mjs
CHANGED
@@ -1,21 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { JWT_TOKEN_PAYLOAD_SCHEMA } from "./harmony99.mjs";
|
2
|
+
function parseJwtTokenPayload(token) {
|
3
|
+
try {
|
4
|
+
const payload = token.split(".")[1];
|
5
|
+
const decoded = atob(payload);
|
6
|
+
return JWT_TOKEN_PAYLOAD_SCHEMA.parse(JSON.parse(decoded));
|
7
|
+
} catch (_error) {
|
8
|
+
return void 0;
|
6
9
|
}
|
7
|
-
return { accessToken, refreshToken };
|
8
|
-
}
|
9
|
-
function getCsrfTokenFromCookie() {
|
10
|
-
return getCookie(document.cookie, "csrf_token") ?? null;
|
11
|
-
}
|
12
|
-
function getCookie(cookies, name) {
|
13
|
-
var _a, _b;
|
14
|
-
return (_b = (_a = cookies.split(";").find((cookie) => cookie.trim().startsWith(`${name}=`))) == null ? void 0 : _a.trim()) == null ? void 0 : _b.substring(name.length + 1);
|
15
10
|
}
|
16
11
|
export {
|
17
|
-
|
18
|
-
getCsrfTokenFromCookie,
|
19
|
-
getJwtTokenFromCookie
|
12
|
+
parseJwtTokenPayload
|
20
13
|
};
|
21
14
|
//# sourceMappingURL=harmony16.mjs.map
|
package/dist/harmony16.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony16.mjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony16.mjs","sources":["../src/features/auth/core/utils/jwtTokenPayload.ts"],"sourcesContent":["import { JWT_TOKEN_PAYLOAD_SCHEMA, type JwtTokenPayload } from '../types/jwtTokenPayload'\n\n/**\n * Parses the payload of a JWT token.\n *\n * @param token - The JWT token to parse.\n */\nexport function parseJwtTokenPayload(token: string): JwtTokenPayload | undefined {\n\ttry {\n\t\tconst payload = token.split('.')[1]\n\t\tconst decoded = atob(payload)\n\t\treturn JWT_TOKEN_PAYLOAD_SCHEMA.parse(JSON.parse(decoded))\n\t} catch (_error) {\n\t\treturn undefined\n\t}\n}\n"],"names":[],"mappings":";AAOO,SAAS,qBAAqB,OAA4C;AAC5E,MAAA;AACH,UAAM,UAAU,MAAM,MAAM,GAAG,EAAE,CAAC;AAC5B,UAAA,UAAU,KAAK,OAAO;AAC5B,WAAO,yBAAyB,MAAM,KAAK,MAAM,OAAO,CAAC;AAAA,WACjD,QAAQ;AACT,WAAA;AAAA,EAAA;AAET;"}
|
package/dist/harmony17.cjs
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
constructor(middleware) {
|
9
|
-
this.middleware = middleware;
|
10
|
-
}
|
11
|
-
apply(base) {
|
12
|
-
return base.from(async () => {
|
13
|
-
const middlewareBuilder = this.middleware(headerBuilder.HeaderBuilder.create());
|
14
|
-
return middlewareBuilder instanceof Promise ? middlewareBuilder.then((r) => r.resolve()) : middlewareBuilder.resolve();
|
15
|
-
});
|
3
|
+
function getJwtTokenFromCookie() {
|
4
|
+
const accessToken = getCookie(document.cookie, "accessToken");
|
5
|
+
const refreshToken = getCookie(document.cookie, "refreshToken");
|
6
|
+
if (!accessToken || !refreshToken) {
|
7
|
+
return null;
|
16
8
|
}
|
9
|
+
return { accessToken, refreshToken };
|
10
|
+
}
|
11
|
+
function getCsrfTokenFromCookie() {
|
12
|
+
return getCookie(document.cookie, "csrf_token") ?? null;
|
13
|
+
}
|
14
|
+
function getCookie(cookies, name) {
|
15
|
+
var _a, _b;
|
16
|
+
return (_b = (_a = cookies.split(";").find((cookie) => cookie.trim().startsWith(`${name}=`))) == null ? void 0 : _a.trim()) == null ? void 0 : _b.substring(name.length + 1);
|
17
17
|
}
|
18
|
-
exports.
|
18
|
+
exports.getCookie = getCookie;
|
19
|
+
exports.getCsrfTokenFromCookie = getCsrfTokenFromCookie;
|
20
|
+
exports.getJwtTokenFromCookie = getJwtTokenFromCookie;
|
19
21
|
//# sourceMappingURL=harmony17.cjs.map
|
package/dist/harmony17.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony17.cjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony17.cjs","sources":["../src/features/auth/frontend/utils/cookieTokenUtils.ts"],"sourcesContent":["import type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\nexport function getJwtTokenFromCookie(): JwtToken | null {\n\tconst accessToken = getCookie(document.cookie, 'accessToken')\n\tconst refreshToken = getCookie(document.cookie, 'refreshToken')\n\n\tif (!accessToken || !refreshToken) {\n\t\treturn null\n\t}\n\n\treturn { accessToken, refreshToken }\n}\n\nexport function getCsrfTokenFromCookie(): string | null {\n\treturn getCookie(document.cookie, 'csrf_token') ?? null\n}\n\nexport function getCookie(cookies: string, name: string): string | undefined {\n\treturn cookies\n\t\t.split(';')\n\t\t.find((cookie) => cookie.trim().startsWith(`${name}=`))\n\t\t?.trim()\n\t\t?.substring(name.length + 1)\n}\n"],"names":[],"mappings":";;AAEO,SAAS,wBAAyC;AACxD,QAAM,cAAc,UAAU,SAAS,QAAQ,aAAa;AAC5D,QAAM,eAAe,UAAU,SAAS,QAAQ,cAAc;AAE1D,MAAA,CAAC,eAAe,CAAC,cAAc;AAC3B,WAAA;AAAA,EAAA;AAGD,SAAA,EAAE,aAAa,aAAa;AACpC;AAEO,SAAS,yBAAwC;AACvD,SAAO,UAAU,SAAS,QAAQ,YAAY,KAAK;AACpD;AAEgB,SAAA,UAAU,SAAiB,MAAkC;;AACrE,UAAA,mBACL,MAAM,GAAG,EACT,KAAK,CAAC,WAAW,OAAO,OAAO,WAAW,GAAG,IAAI,GAAG,CAAC,MAFhD,mBAGJ,WAHI,mBAIJ,UAAU,KAAK,SAAS;AAC5B;;;;"}
|
package/dist/harmony17.mjs
CHANGED
@@ -1,19 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
constructor(middleware) {
|
7
|
-
this.middleware = middleware;
|
8
|
-
}
|
9
|
-
apply(base) {
|
10
|
-
return base.from(async () => {
|
11
|
-
const middlewareBuilder = this.middleware(HeaderBuilder.create());
|
12
|
-
return middlewareBuilder instanceof Promise ? middlewareBuilder.then((r) => r.resolve()) : middlewareBuilder.resolve();
|
13
|
-
});
|
1
|
+
function getJwtTokenFromCookie() {
|
2
|
+
const accessToken = getCookie(document.cookie, "accessToken");
|
3
|
+
const refreshToken = getCookie(document.cookie, "refreshToken");
|
4
|
+
if (!accessToken || !refreshToken) {
|
5
|
+
return null;
|
14
6
|
}
|
7
|
+
return { accessToken, refreshToken };
|
8
|
+
}
|
9
|
+
function getCsrfTokenFromCookie() {
|
10
|
+
return getCookie(document.cookie, "csrf_token") ?? null;
|
11
|
+
}
|
12
|
+
function getCookie(cookies, name) {
|
13
|
+
var _a, _b;
|
14
|
+
return (_b = (_a = cookies.split(";").find((cookie) => cookie.trim().startsWith(`${name}=`))) == null ? void 0 : _a.trim()) == null ? void 0 : _b.substring(name.length + 1);
|
15
15
|
}
|
16
16
|
export {
|
17
|
-
|
17
|
+
getCookie,
|
18
|
+
getCsrfTokenFromCookie,
|
19
|
+
getJwtTokenFromCookie
|
18
20
|
};
|
19
21
|
//# sourceMappingURL=harmony17.mjs.map
|
package/dist/harmony17.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony17.mjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony17.mjs","sources":["../src/features/auth/frontend/utils/cookieTokenUtils.ts"],"sourcesContent":["import type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\nexport function getJwtTokenFromCookie(): JwtToken | null {\n\tconst accessToken = getCookie(document.cookie, 'accessToken')\n\tconst refreshToken = getCookie(document.cookie, 'refreshToken')\n\n\tif (!accessToken || !refreshToken) {\n\t\treturn null\n\t}\n\n\treturn { accessToken, refreshToken }\n}\n\nexport function getCsrfTokenFromCookie(): string | null {\n\treturn getCookie(document.cookie, 'csrf_token') ?? null\n}\n\nexport function getCookie(cookies: string, name: string): string | undefined {\n\treturn cookies\n\t\t.split(';')\n\t\t.find((cookie) => cookie.trim().startsWith(`${name}=`))\n\t\t?.trim()\n\t\t?.substring(name.length + 1)\n}\n"],"names":[],"mappings":"AAEO,SAAS,wBAAyC;AACxD,QAAM,cAAc,UAAU,SAAS,QAAQ,aAAa;AAC5D,QAAM,eAAe,UAAU,SAAS,QAAQ,cAAc;AAE1D,MAAA,CAAC,eAAe,CAAC,cAAc;AAC3B,WAAA;AAAA,EAAA;AAGD,SAAA,EAAE,aAAa,aAAa;AACpC;AAEO,SAAS,yBAAwC;AACvD,SAAO,UAAU,SAAS,QAAQ,YAAY,KAAK;AACpD;AAEgB,SAAA,UAAU,SAAiB,MAAkC;AAftE;AAgBC,UAAA,mBACL,MAAM,GAAG,EACT,KAAK,CAAC,WAAW,OAAO,OAAO,WAAW,GAAG,IAAI,GAAG,CAAC,MAFhD,mBAGJ,WAHI,mBAIJ,UAAU,KAAK,SAAS;AAC5B;"}
|
package/dist/harmony18.cjs
CHANGED
@@ -1,145 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
*/
|
11
|
-
constructor(factories) {
|
12
|
-
this.factories = factories;
|
13
|
-
}
|
14
|
-
static create(initialHeaders = {}) {
|
15
|
-
return new HeaderBuilder([() => initialHeaders]);
|
16
|
-
}
|
17
|
-
/**
|
18
|
-
* Adds a single header to the builder by providing a key and a value.
|
19
|
-
*
|
20
|
-
* @example
|
21
|
-
* ```typescript
|
22
|
-
* const builder = HeaderBuilder.create()
|
23
|
-
* .add('Content-Type', 'application/json')
|
24
|
-
* .add('authorization', 'Bearer token')
|
25
|
-
*
|
26
|
-
* const headers = await builder.resolve()
|
27
|
-
* console.log(headers)
|
28
|
-
* // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
|
29
|
-
* ```
|
30
|
-
*
|
31
|
-
* @param key - The key of the header
|
32
|
-
* @param value - The value of the header
|
33
|
-
*/
|
34
|
-
add(key, value) {
|
35
|
-
return new HeaderBuilder([...this.factories, () => ({ [key]: value })]);
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* Adds multiple headers to the builder by providing an object or a promise of an object with the headers.
|
39
|
-
*
|
40
|
-
* @example
|
41
|
-
* ```typescript
|
42
|
-
* const builder = HeaderBuilder.create()
|
43
|
-
* .and({ 'Content-Type': 'application/json', 'authorization': 'Bearer token' })
|
44
|
-
* .and(Promise.resolve({ 'X-Custom-Header': 'custom', 'X-Another-Header': 'another' }))
|
45
|
-
*
|
46
|
-
* const headers = await builder.resolve()
|
47
|
-
* console.log(headers)
|
48
|
-
* // Prints: {
|
49
|
-
* // 'Content-Type': 'application/json',
|
50
|
-
* // 'authorization': 'Bearer token',
|
51
|
-
* // 'X-Custom-Header': 'custom',
|
52
|
-
* // 'X-Another-Header': 'another'
|
53
|
-
* // }
|
54
|
-
* ```
|
55
|
-
*
|
56
|
-
* @param extension - An object with the headers to add
|
57
|
-
*/
|
58
|
-
and(extension) {
|
59
|
-
return new HeaderBuilder([...this.factories, () => extension]);
|
60
|
-
}
|
61
|
-
/**
|
62
|
-
* Adds a factory function that returns a promise of headers to the builder.
|
63
|
-
* This is useful when you need to fetch some data asynchronously to build the headers.
|
64
|
-
*
|
65
|
-
* @example
|
66
|
-
* ```typescript
|
67
|
-
* const builder = HeaderBuilder.create()
|
68
|
-
* .from(async () => {
|
69
|
-
* const token = await fetchToken()
|
70
|
-
* return { 'authorization': `Bearer ${token}` }
|
71
|
-
* })
|
72
|
-
*
|
73
|
-
* const headers = await builder.resolve()
|
74
|
-
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
75
|
-
* ```
|
76
|
-
*
|
77
|
-
* @param factory - A function that returns a promise of headers
|
78
|
-
*/
|
79
|
-
from(factory) {
|
80
|
-
return new HeaderBuilder([...this.factories, factory]);
|
81
|
-
}
|
82
|
-
/**
|
83
|
-
* Takes a middleware function that receives the current builder and returns a new, modified, builder.
|
84
|
-
*
|
85
|
-
* @example
|
86
|
-
* ```typescript
|
87
|
-
* const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
|
88
|
-
* const token = await fetchToken()
|
89
|
-
* return builder.add('authorization', `Bearer ${token}`)
|
90
|
-
* })
|
91
|
-
*
|
92
|
-
* const builder = HeaderBuilder.create()
|
93
|
-
* .with(authMiddleware)
|
94
|
-
*
|
95
|
-
* const headers = await builder.resolve() // Type of headers is { 'authorization': string }
|
96
|
-
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
97
|
-
* ```
|
98
|
-
*
|
99
|
-
* @param middleware
|
100
|
-
*/
|
101
|
-
with(middleware) {
|
102
|
-
return middleware.apply(this);
|
103
|
-
}
|
104
|
-
/**
|
105
|
-
* Merges the current builder with another builder.
|
106
|
-
*
|
107
|
-
* @example
|
108
|
-
* ```typescript
|
109
|
-
* const builderA = HeaderBuilder.create()
|
110
|
-
* .add('Content-Type', 'application/json')
|
111
|
-
*
|
112
|
-
* const builderB = HeaderBuilder.create()
|
113
|
-
* .add('authorization', 'Bearer token')
|
114
|
-
*
|
115
|
-
* const mergedBuilder = builderA.merge(builderB)
|
116
|
-
*
|
117
|
-
* const headers = await mergedBuilder.resolve()
|
118
|
-
* console.log(headers)
|
119
|
-
* // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
|
120
|
-
* ```
|
121
|
-
*
|
122
|
-
* @param builder - The builder to merge with
|
123
|
-
*/
|
124
|
-
merge(builder) {
|
125
|
-
return new HeaderBuilder([...this.factories, ...builder.factories]);
|
3
|
+
const headerBuilder = require("./harmony19.cjs");
|
4
|
+
function createHeaderBuilderMiddleware(middleware) {
|
5
|
+
return new HeaderBuilderMiddleware(middleware);
|
6
|
+
}
|
7
|
+
class HeaderBuilderMiddleware {
|
8
|
+
constructor(middleware) {
|
9
|
+
this.middleware = middleware;
|
126
10
|
}
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
* const builder = HeaderBuilder.create()
|
133
|
-
* .add('Content-Type', 'application/json')
|
134
|
-
*
|
135
|
-
* const headers = await builder.resolve()
|
136
|
-
* console.log(headers) // { 'Content-Type': 'application/json' }
|
137
|
-
*/
|
138
|
-
async resolve() {
|
139
|
-
const headers = this.factories.map((header) => header());
|
140
|
-
const resolvedHeaders = await Promise.all(headers);
|
141
|
-
return Object.assign({}, ...resolvedHeaders);
|
11
|
+
apply(base) {
|
12
|
+
return base.from(async () => {
|
13
|
+
const middlewareBuilder = this.middleware(headerBuilder.HeaderBuilder.create());
|
14
|
+
return middlewareBuilder instanceof Promise ? middlewareBuilder.then((r) => r.resolve()) : middlewareBuilder.resolve();
|
15
|
+
});
|
142
16
|
}
|
143
17
|
}
|
144
|
-
exports.
|
18
|
+
exports.createHeaderBuilderMiddleware = createHeaderBuilderMiddleware;
|
145
19
|
//# sourceMappingURL=harmony18.cjs.map
|