express-sweet 1.0.23 → 1.0.24

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.
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="64" height="64">
2
+ <path fill="#fff" d="M32 24.795c-1.164.296-1.884.013-2.53-.957l-4.594-6.356-.664-.88-5.365 7.257c-.613.873-1.256 1.253-2.4.944l6.87-9.222-6.396-8.33c1.1-.214 1.86-.105 2.535.88l4.765 6.435 4.8-6.4c.615-.873 1.276-1.205 2.38-.883l-2.48 3.288-3.36 4.375c-.4.5-.345.842.023 1.325L32 24.795zM.008 15.427l.562-2.764C2.1 7.193 8.37 4.92 12.694 8.3c2.527 1.988 3.155 4.8 3.03 7.95H1.48c-.214 5.67 3.867 9.092 9.07 7.346 1.825-.613 2.9-2.042 3.438-3.83.273-.896.725-1.036 1.567-.78-.43 2.236-1.4 4.104-3.45 5.273-3.063 1.75-7.435 1.184-9.735-1.248C1 21.6.434 19.812.18 17.9c-.04-.316-.12-.617-.18-.92q.008-.776.008-1.552zm1.498-.38h12.872c-.084-4.1-2.637-7.012-6.126-7.037-3.83-.03-6.58 2.813-6.746 7.037z"/>
3
+ </svg>
@@ -0,0 +1 @@
1
+ <svg width="621.3" height="84" viewBox="0 0 621.3 84" xmlns="http://www.w3.org/2000/svg"><g id="svgGroup" stroke-linecap="round" fill-rule="evenodd" font-size="9pt" stroke="#ffffff" stroke-width="0" fill="#ffffff" style="stroke:#ffffff;stroke-width:0;fill:#ffffff"><path d="M 445.6 17.9 L 427.6 64 L 425.9 64 L 410.1 14 L 412.4 14 L 426.9 60.2 L 444.7 14 L 446.4 14 L 464.3 60.2 L 478.7 14 L 481 14 L 465.3 64 L 463.5 64 L 445.6 17.9 Z M 246 51.5 L 248 50.9 A 18.993 18.993 0 0 0 248.909 54.21 A 14.381 14.381 0 0 0 250.55 57.35 A 10.999 10.999 0 0 0 254.609 60.848 A 13.68 13.68 0 0 0 255.7 61.35 Q 258.42 62.463 262.227 62.658 A 32.624 32.624 0 0 0 263.9 62.7 Q 268.607 62.7 271.893 61.564 A 12.237 12.237 0 0 0 275.7 59.5 A 10.665 10.665 0 0 0 278.564 55.978 A 10.419 10.419 0 0 0 279.6 51.3 Q 279.6 48.215 278.387 46.209 A 6.605 6.605 0 0 0 277.35 44.9 Q 275.1 42.7 271.55 41.55 Q 268 40.4 264.2 39.6 Q 262 39.1 259 38.4 Q 256 37.7 253.2 36.35 Q 250.4 35 248.5 32.65 A 8.151 8.151 0 0 1 246.964 29.516 Q 246.657 28.326 246.609 26.926 A 15.374 15.374 0 0 1 246.6 26.4 Q 246.6 22.5 248.8 19.5 Q 251 16.5 254.85 14.9 A 20.463 20.463 0 0 1 259.757 13.574 A 27.213 27.213 0 0 1 263.7 13.3 A 22.788 22.788 0 0 1 270.039 14.154 A 19.645 19.645 0 0 1 274.4 16 A 12.506 12.506 0 0 1 279.516 21.659 A 18.262 18.262 0 0 1 280.7 25 L 278.9 25.5 Q 277.926 22.008 276.061 19.901 A 9.525 9.525 0 0 0 275.15 19 A 14.113 14.113 0 0 0 271.699 16.776 A 12.602 12.602 0 0 0 269.6 16.05 A 25.041 25.041 0 0 0 265.57 15.373 A 21.678 21.678 0 0 0 263.8 15.3 A 24.898 24.898 0 0 0 259.314 15.681 Q 256.709 16.159 254.621 17.235 A 13.758 13.758 0 0 0 252.95 18.25 Q 248.8 21.2 248.8 26.3 A 10.486 10.486 0 0 0 249.011 28.463 Q 249.308 29.871 250.022 30.958 A 6.419 6.419 0 0 0 250.3 31.35 A 10.63 10.63 0 0 0 253.86 34.303 A 12.353 12.353 0 0 0 254.15 34.45 A 23.203 23.203 0 0 0 257.929 35.894 A 26.922 26.922 0 0 0 259.3 36.25 Q 262.1 36.9 264.7 37.4 Q 267.6 38 270.6 38.9 A 25.279 25.279 0 0 1 275.83 41.115 A 23.552 23.552 0 0 1 276.15 41.3 Q 278.7 42.8 280.25 45.25 Q 281.712 47.56 281.795 50.981 A 17.162 17.162 0 0 1 281.8 51.4 A 13.387 13.387 0 0 1 281.301 55.131 A 10.967 10.967 0 0 1 279.6 58.6 Q 277.4 61.6 273.35 63.15 Q 269.3 64.7 263.8 64.7 Q 258.222 64.7 254.291 62.938 A 15.062 15.062 0 0 1 251.9 61.6 A 12.82 12.82 0 0 1 247.733 56.712 Q 246.805 54.877 246.241 52.583 A 25.4 25.4 0 0 1 246 51.5 Z M 292.1 51.5 L 294.1 50.9 A 18.993 18.993 0 0 0 295.009 54.21 A 14.381 14.381 0 0 0 296.65 57.35 A 10.999 10.999 0 0 0 300.709 60.848 A 13.68 13.68 0 0 0 301.8 61.35 Q 304.52 62.463 308.327 62.658 A 32.624 32.624 0 0 0 310 62.7 Q 314.707 62.7 317.993 61.564 A 12.237 12.237 0 0 0 321.8 59.5 A 10.665 10.665 0 0 0 324.664 55.978 A 10.419 10.419 0 0 0 325.7 51.3 Q 325.7 48.215 324.487 46.209 A 6.605 6.605 0 0 0 323.45 44.9 Q 321.2 42.7 317.65 41.55 Q 314.1 40.4 310.3 39.6 Q 308.1 39.1 305.1 38.4 Q 302.1 37.7 299.3 36.35 Q 296.5 35 294.6 32.65 A 8.151 8.151 0 0 1 293.064 29.516 Q 292.757 28.326 292.709 26.926 A 15.374 15.374 0 0 1 292.7 26.4 Q 292.7 22.5 294.9 19.5 Q 297.1 16.5 300.95 14.9 A 20.463 20.463 0 0 1 305.857 13.574 A 27.213 27.213 0 0 1 309.8 13.3 A 22.788 22.788 0 0 1 316.139 14.154 A 19.645 19.645 0 0 1 320.5 16 A 12.506 12.506 0 0 1 325.616 21.659 A 18.262 18.262 0 0 1 326.8 25 L 325 25.5 Q 324.026 22.008 322.161 19.901 A 9.525 9.525 0 0 0 321.25 19 A 14.113 14.113 0 0 0 317.799 16.776 A 12.602 12.602 0 0 0 315.7 16.05 A 25.041 25.041 0 0 0 311.67 15.373 A 21.678 21.678 0 0 0 309.9 15.3 A 24.898 24.898 0 0 0 305.414 15.681 Q 302.809 16.159 300.721 17.235 A 13.758 13.758 0 0 0 299.05 18.25 Q 294.9 21.2 294.9 26.3 A 10.486 10.486 0 0 0 295.111 28.463 Q 295.408 29.871 296.122 30.958 A 6.419 6.419 0 0 0 296.4 31.35 A 10.63 10.63 0 0 0 299.96 34.303 A 12.353 12.353 0 0 0 300.25 34.45 A 23.203 23.203 0 0 0 304.029 35.894 A 26.922 26.922 0 0 0 305.4 36.25 Q 308.2 36.9 310.8 37.4 Q 313.7 38 316.7 38.9 A 25.279 25.279 0 0 1 321.93 41.115 A 23.552 23.552 0 0 1 322.25 41.3 Q 324.8 42.8 326.35 45.25 Q 327.812 47.56 327.895 50.981 A 17.162 17.162 0 0 1 327.9 51.4 A 13.387 13.387 0 0 1 327.401 55.131 A 10.967 10.967 0 0 1 325.7 58.6 Q 323.5 61.6 319.45 63.15 Q 315.4 64.7 309.9 64.7 Q 304.322 64.7 300.391 62.938 A 15.062 15.062 0 0 1 298 61.6 A 12.82 12.82 0 0 1 293.833 56.712 Q 292.905 54.877 292.341 52.583 A 25.4 25.4 0 0 1 292.1 51.5 Z M 366.2 51.5 L 368.2 50.9 A 18.993 18.993 0 0 0 369.109 54.21 A 14.381 14.381 0 0 0 370.75 57.35 A 10.999 10.999 0 0 0 374.809 60.848 A 13.68 13.68 0 0 0 375.9 61.35 Q 378.62 62.463 382.427 62.658 A 32.624 32.624 0 0 0 384.1 62.7 Q 388.807 62.7 392.093 61.564 A 12.237 12.237 0 0 0 395.9 59.5 A 10.665 10.665 0 0 0 398.764 55.978 A 10.419 10.419 0 0 0 399.8 51.3 Q 399.8 48.215 398.587 46.209 A 6.605 6.605 0 0 0 397.55 44.9 Q 395.3 42.7 391.75 41.55 Q 388.2 40.4 384.4 39.6 Q 382.2 39.1 379.2 38.4 Q 376.2 37.7 373.4 36.35 Q 370.6 35 368.7 32.65 A 8.151 8.151 0 0 1 367.164 29.516 Q 366.857 28.326 366.809 26.926 A 15.374 15.374 0 0 1 366.8 26.4 Q 366.8 22.5 369 19.5 Q 371.2 16.5 375.05 14.9 A 20.463 20.463 0 0 1 379.957 13.574 A 27.213 27.213 0 0 1 383.9 13.3 A 22.788 22.788 0 0 1 390.239 14.154 A 19.645 19.645 0 0 1 394.6 16 A 12.506 12.506 0 0 1 399.716 21.659 A 18.262 18.262 0 0 1 400.9 25 L 399.1 25.5 Q 398.126 22.008 396.261 19.901 A 9.525 9.525 0 0 0 395.35 19 A 14.113 14.113 0 0 0 391.899 16.776 A 12.602 12.602 0 0 0 389.8 16.05 A 25.041 25.041 0 0 0 385.77 15.373 A 21.678 21.678 0 0 0 384 15.3 A 24.898 24.898 0 0 0 379.514 15.681 Q 376.909 16.159 374.821 17.235 A 13.758 13.758 0 0 0 373.15 18.25 Q 369 21.2 369 26.3 A 10.486 10.486 0 0 0 369.211 28.463 Q 369.508 29.871 370.222 30.958 A 6.419 6.419 0 0 0 370.5 31.35 A 10.63 10.63 0 0 0 374.06 34.303 A 12.353 12.353 0 0 0 374.35 34.45 A 23.203 23.203 0 0 0 378.129 35.894 A 26.922 26.922 0 0 0 379.5 36.25 Q 382.3 36.9 384.9 37.4 Q 387.8 38 390.8 38.9 A 25.279 25.279 0 0 1 396.03 41.115 A 23.552 23.552 0 0 1 396.35 41.3 Q 398.9 42.8 400.45 45.25 Q 401.912 47.56 401.995 50.981 A 17.162 17.162 0 0 1 402 51.4 A 13.387 13.387 0 0 1 401.501 55.131 A 10.967 10.967 0 0 1 399.8 58.6 Q 397.6 61.6 393.55 63.15 Q 389.5 64.7 384 64.7 Q 378.422 64.7 374.491 62.938 A 15.062 15.062 0 0 1 372.1 61.6 A 12.82 12.82 0 0 1 367.933 56.712 Q 367.005 54.877 366.441 52.583 A 25.4 25.4 0 0 1 366.2 51.5 Z M 102.6 49.3 L 102.7 49.1 L 102.7 84 L 100.5 84 L 100.5 14 L 102.7 14 L 102.7 28.3 A 20.65 20.65 0 0 1 109.126 18.152 A 25.206 25.206 0 0 1 109.65 17.7 A 18.097 18.097 0 0 1 117.044 14.04 Q 119.752 13.369 122.937 13.307 A 33.629 33.629 0 0 1 123.6 13.3 Q 130.6 13.3 135.85 16.45 A 21.293 21.293 0 0 1 143.978 25.305 A 25.296 25.296 0 0 1 144 25.35 A 26.234 26.234 0 0 1 146.345 32.499 A 36.241 36.241 0 0 1 146.9 39 A 35.374 35.374 0 0 1 146.305 45.648 A 26.153 26.153 0 0 1 144 52.55 A 22.221 22.221 0 0 1 138.501 59.62 A 21.399 21.399 0 0 1 135.9 61.5 A 21.463 21.463 0 0 1 127.496 64.447 A 27.63 27.63 0 0 1 123.7 64.7 A 26.554 26.554 0 0 1 117.533 64.021 A 18.84 18.84 0 0 1 109.8 60.25 Q 104.4 55.8 102.6 49.3 Z M 45.1 39 L 2.2 39 Q 2.3 46 4.95 51.35 A 21.554 21.554 0 0 0 9.044 57.12 A 19.579 19.579 0 0 0 12.25 59.7 A 18.852 18.852 0 0 0 21.422 62.653 A 23.041 23.041 0 0 0 22.9 62.7 A 25.755 25.755 0 0 0 29.2 61.961 A 20.473 20.473 0 0 0 35.05 59.5 A 18.677 18.677 0 0 0 42.596 50.412 A 22.115 22.115 0 0 0 42.6 50.4 L 44.4 51.1 Q 41.9 57.6 36.25 61.15 Q 30.6 64.7 22.9 64.7 A 23.713 23.713 0 0 1 16.141 63.769 A 20.192 20.192 0 0 1 10.95 61.4 A 22.072 22.072 0 0 1 3.464 53.283 A 26.549 26.549 0 0 1 2.9 52.2 A 27.862 27.862 0 0 1 0.409 44.086 A 36.794 36.794 0 0 1 0 38.5 Q 0 31.1 2.95 25.4 A 22.827 22.827 0 0 1 8.399 18.437 A 21.776 21.776 0 0 1 11.05 16.5 Q 16.2 13.3 22.9 13.3 A 24.524 24.524 0 0 1 29.614 14.189 A 20.975 20.975 0 0 1 34.3 16.15 Q 39.3 19 42.2 23.85 A 20.585 20.585 0 0 1 45.03 32.995 A 25.24 25.24 0 0 1 45.1 34.9 Q 45.1 35.526 45.14 36.472 A 72 72 0 0 0 45.15 36.7 A 16.395 16.395 0 0 1 45.167 37.444 Q 45.167 38.2 45.1 39 Z M 235.7 39 L 192.8 39 Q 192.9 46 195.55 51.35 A 21.554 21.554 0 0 0 199.644 57.12 A 19.579 19.579 0 0 0 202.85 59.7 A 18.852 18.852 0 0 0 212.022 62.653 A 23.041 23.041 0 0 0 213.5 62.7 A 25.755 25.755 0 0 0 219.8 61.961 A 20.473 20.473 0 0 0 225.65 59.5 A 18.677 18.677 0 0 0 233.196 50.412 A 22.115 22.115 0 0 0 233.2 50.4 L 235 51.1 Q 232.5 57.6 226.85 61.15 Q 221.2 64.7 213.5 64.7 A 23.713 23.713 0 0 1 206.741 63.769 A 20.192 20.192 0 0 1 201.55 61.4 A 22.072 22.072 0 0 1 194.064 53.283 A 26.549 26.549 0 0 1 193.5 52.2 A 27.862 27.862 0 0 1 191.009 44.086 A 36.794 36.794 0 0 1 190.6 38.5 Q 190.6 31.1 193.55 25.4 A 22.827 22.827 0 0 1 198.999 18.437 A 21.776 21.776 0 0 1 201.65 16.5 Q 206.8 13.3 213.5 13.3 A 24.524 24.524 0 0 1 220.214 14.189 A 20.975 20.975 0 0 1 224.9 16.15 Q 229.9 19 232.8 23.85 A 20.585 20.585 0 0 1 235.63 32.995 A 25.24 25.24 0 0 1 235.7 34.9 Q 235.7 35.526 235.74 36.472 A 72 72 0 0 0 235.75 36.7 A 16.395 16.395 0 0 1 235.767 37.444 Q 235.767 38.2 235.7 39 Z M 533 39 L 490.1 39 Q 490.2 46 492.85 51.35 A 21.554 21.554 0 0 0 496.944 57.12 A 19.579 19.579 0 0 0 500.15 59.7 A 18.852 18.852 0 0 0 509.322 62.653 A 23.041 23.041 0 0 0 510.8 62.7 A 25.755 25.755 0 0 0 517.1 61.961 A 20.473 20.473 0 0 0 522.95 59.5 A 18.677 18.677 0 0 0 530.496 50.412 A 22.115 22.115 0 0 0 530.5 50.4 L 532.3 51.1 Q 529.8 57.6 524.15 61.15 Q 518.5 64.7 510.8 64.7 A 23.713 23.713 0 0 1 504.041 63.769 A 20.192 20.192 0 0 1 498.85 61.4 A 22.072 22.072 0 0 1 491.364 53.283 A 26.549 26.549 0 0 1 490.8 52.2 A 27.862 27.862 0 0 1 488.309 44.086 A 36.794 36.794 0 0 1 487.9 38.5 Q 487.9 31.1 490.85 25.4 A 22.827 22.827 0 0 1 496.299 18.437 A 21.776 21.776 0 0 1 498.95 16.5 Q 504.1 13.3 510.8 13.3 A 24.524 24.524 0 0 1 517.514 14.189 A 20.975 20.975 0 0 1 522.2 16.15 Q 527.2 19 530.1 23.85 A 20.585 20.585 0 0 1 532.93 32.995 A 25.24 25.24 0 0 1 533 34.9 Q 533 35.526 533.04 36.472 A 72 72 0 0 0 533.05 36.7 A 16.395 16.395 0 0 1 533.067 37.444 Q 533.067 38.2 533 39 Z M 588.4 39 L 545.5 39 Q 545.6 46 548.25 51.35 A 21.554 21.554 0 0 0 552.344 57.12 A 19.579 19.579 0 0 0 555.55 59.7 A 18.852 18.852 0 0 0 564.722 62.653 A 23.041 23.041 0 0 0 566.2 62.7 A 25.755 25.755 0 0 0 572.5 61.961 A 20.473 20.473 0 0 0 578.35 59.5 A 18.677 18.677 0 0 0 585.896 50.412 A 22.115 22.115 0 0 0 585.9 50.4 L 587.7 51.1 Q 585.2 57.6 579.55 61.15 Q 573.9 64.7 566.2 64.7 A 23.713 23.713 0 0 1 559.441 63.769 A 20.192 20.192 0 0 1 554.25 61.4 A 22.072 22.072 0 0 1 546.764 53.283 A 26.549 26.549 0 0 1 546.2 52.2 A 27.862 27.862 0 0 1 543.709 44.086 A 36.794 36.794 0 0 1 543.3 38.5 Q 543.3 31.1 546.25 25.4 A 22.827 22.827 0 0 1 551.699 18.437 A 21.776 21.776 0 0 1 554.35 16.5 Q 559.5 13.3 566.2 13.3 A 24.524 24.524 0 0 1 572.914 14.189 A 20.975 20.975 0 0 1 577.6 16.15 Q 582.6 19 585.5 23.85 A 20.585 20.585 0 0 1 588.33 32.995 A 25.24 25.24 0 0 1 588.4 34.9 Q 588.4 35.526 588.44 36.472 A 72 72 0 0 0 588.45 36.7 A 16.395 16.395 0 0 1 588.467 37.444 Q 588.467 38.2 588.4 39 Z M 68.9 38.7 L 51.7 14 L 54.2 14 L 70.1 37.2 L 86 14 L 88.5 14 L 71.3 38.7 L 88.5 64 L 86 64 L 70.1 40.3 L 54.2 64 L 51.7 64 L 68.9 38.7 Z M 595.4 14 L 603.6 14 L 603.6 0 L 605.8 0 L 605.8 14 L 621.3 14 L 621.3 16 L 605.8 16 L 605.8 50.6 Q 605.8 54.7 608.05 57.6 Q 610.3 60.5 613.85 61.7 A 12.337 12.337 0 0 0 617.827 62.355 Q 619.528 62.355 621.3 61.9 L 621.3 63.7 Q 618.1 64.6 614.95 64.1 Q 611.8 63.6 609.25 61.8 Q 606.7 60 605.15 57.15 A 12.732 12.732 0 0 1 603.723 52.614 A 16.109 16.109 0 0 1 603.6 50.6 L 603.6 16 L 595.4 16 L 595.4 14 Z M 160.6 64 L 160.6 14 L 162.8 14 L 162.8 26 Q 164 22.2 166.95 19.1 A 18.058 18.058 0 0 1 174.084 14.524 A 20.905 20.905 0 0 1 174.15 14.5 A 16.066 16.066 0 0 1 178.857 13.616 Q 180.619 13.543 182.521 13.807 A 24.56 24.56 0 0 1 183.7 14 L 183.7 16.1 A 18.567 18.567 0 0 0 180.826 15.672 Q 178.03 15.484 175.5 16.25 Q 171.7 17.4 168.85 20.2 A 18.578 18.578 0 0 0 165.219 25.279 A 22.526 22.526 0 0 0 164.4 27.15 A 24.134 24.134 0 0 0 162.877 34.092 A 28.595 28.595 0 0 0 162.8 36.2 L 162.8 64 L 160.6 64 Z M 144.7 39 Q 144.7 28.1 138.95 21.7 A 18.991 18.991 0 0 0 126.242 15.428 A 26.521 26.521 0 0 0 123.6 15.3 A 22.945 22.945 0 0 0 117.805 16.002 A 18.407 18.407 0 0 0 112.5 18.3 A 19.595 19.595 0 0 0 105.494 26.154 A 23.466 23.466 0 0 0 105.25 26.65 Q 102.7 32 102.7 39 A 32.014 32.014 0 0 0 103.33 45.491 A 24.867 24.867 0 0 0 105.3 51.35 Q 107.9 56.7 112.6 59.7 A 18.981 18.981 0 0 0 120.235 62.463 A 24.555 24.555 0 0 0 123.7 62.7 A 23.259 23.259 0 0 0 130.605 61.723 A 18.3 18.3 0 0 0 139 56.3 Q 144.411 50.225 144.686 40.095 A 40.402 40.402 0 0 0 144.7 39 Z M 2.2 37 L 42.9 37 A 30.655 30.655 0 0 0 42.916 36.043 Q 42.916 30.23 40.65 25.7 Q 38.2 20.8 33.65 18.05 A 18.903 18.903 0 0 0 26.659 15.575 A 24.797 24.797 0 0 0 22.9 15.3 A 20.57 20.57 0 0 0 16.119 16.394 A 18.748 18.748 0 0 0 12.5 18.1 Q 7.9 20.9 5.15 25.8 A 23.021 23.021 0 0 0 2.46 33.937 A 28.436 28.436 0 0 0 2.2 37 Z M 192.8 37 L 233.5 37 A 30.655 30.655 0 0 0 233.516 36.043 Q 233.516 30.23 231.25 25.7 Q 228.8 20.8 224.25 18.05 A 18.903 18.903 0 0 0 217.259 15.575 A 24.797 24.797 0 0 0 213.5 15.3 A 20.57 20.57 0 0 0 206.719 16.394 A 18.748 18.748 0 0 0 203.1 18.1 Q 198.5 20.9 195.75 25.8 A 23.021 23.021 0 0 0 193.06 33.937 A 28.436 28.436 0 0 0 192.8 37 Z M 490.1 37 L 530.8 37 A 30.655 30.655 0 0 0 530.816 36.043 Q 530.816 30.23 528.55 25.7 Q 526.1 20.8 521.55 18.05 A 18.903 18.903 0 0 0 514.559 15.575 A 24.797 24.797 0 0 0 510.8 15.3 A 20.57 20.57 0 0 0 504.019 16.394 A 18.748 18.748 0 0 0 500.4 18.1 Q 495.8 20.9 493.05 25.8 A 23.021 23.021 0 0 0 490.36 33.937 A 28.436 28.436 0 0 0 490.1 37 Z M 545.5 37 L 586.2 37 A 30.655 30.655 0 0 0 586.216 36.043 Q 586.216 30.23 583.95 25.7 Q 581.5 20.8 576.95 18.05 A 18.903 18.903 0 0 0 569.959 15.575 A 24.797 24.797 0 0 0 566.2 15.3 A 20.57 20.57 0 0 0 559.419 16.394 A 18.748 18.748 0 0 0 555.8 18.1 Q 551.2 20.9 548.45 25.8 A 23.021 23.021 0 0 0 545.76 33.937 A 28.436 28.436 0 0 0 545.5 37 Z" vector-effect="non-scaling-stroke"/></g></svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="64" height="64">
2
+ <path fill="#fff" d="M32 24.795c-1.164.296-1.884.013-2.53-.957l-4.594-6.356-.664-.88-5.365 7.257c-.613.873-1.256 1.253-2.4.944l6.87-9.222-6.396-8.33c1.1-.214 1.86-.105 2.535.88l4.765 6.435 4.8-6.4c.615-.873 1.276-1.205 2.38-.883l-2.48 3.288-3.36 4.375c-.4.5-.345.842.023 1.325L32 24.795zM.008 15.427l.562-2.764C2.1 7.193 8.37 4.92 12.694 8.3c2.527 1.988 3.155 4.8 3.03 7.95H1.48c-.214 5.67 3.867 9.092 9.07 7.346 1.825-.613 2.9-2.042 3.438-3.83.273-.896.725-1.036 1.567-.78-.43 2.236-1.4 4.104-3.45 5.273-3.063 1.75-7.435 1.184-9.735-1.248C1 21.6.434 19.812.18 17.9c-.04-.316-.12-.617-.18-.92q.008-.776.008-1.552zm1.498-.38h12.872c-.084-4.1-2.637-7.012-6.126-7.037-3.83-.03-6.58 2.813-6.746 7.037z"/>
3
+ </svg>
package/docs/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <title>Express Sweet Documentation</title>
6
6
  <meta charset="utf-8" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <!-- <link rel="shortcut icon" href="favicon.ico" /> -->
8
+ <link rel="shortcut icon" type="image/svg+xml" href="img/logos/favicon.svg" />
9
9
  <!--begin::Fonts-->
10
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700" />
11
11
  <!--end::Fonts-->
@@ -19,7 +19,10 @@
19
19
  <!--begin::Custom CSS(used by this page)-->
20
20
  <style>
21
21
  code:not([class*=language-]) {
22
- color: #fff;
22
+ color: #9efeff;
23
+ background-color: #364135;
24
+ padding: 0.1rem 0;
25
+ margin: 0;
23
26
  }
24
27
  </style>
25
28
  <!--end::Custom CSS-->
@@ -61,10 +64,9 @@
61
64
  <!--end::sidebar mobile toggle-->
62
65
  <!--begin::Mobile logo-->
63
66
  <div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
64
- <h1 class="text-dark fw-bold fs-3 d-lg-none my-0">express-sweet</h1>
65
- <!-- <a href="#!" class="d-lg-none">
66
- <img alt="Logo" src="media/logos/small.svg" class="h-30px" />
67
- </a> -->
67
+ <a href="/" class="d-lg-none">
68
+ <img alt="Logo" src="img/logos/default-small.svg" class="h-20px" />
69
+ </a>
68
70
  </div>
69
71
  <!--end::Mobile logo-->
70
72
  <!--begin::Header wrapper-->
@@ -226,12 +228,11 @@
226
228
  <div id="kt_app_sidebar" class="app-sidebar flex-column" data-kt-drawer="true" data-kt-drawer-name="app-sidebar" data-kt-drawer-activate="{default: true, lg: false}" data-kt-drawer-overlay="true" data-kt-drawer-width="225px" data-kt-drawer-direction="start" data-kt-drawer-toggle="#kt_app_sidebar_mobile_toggle">
227
229
  <!--begin::Logo-->
228
230
  <div class="app-sidebar-logo px-6" id="kt_app_sidebar_logo">
229
- <h1 class="text-dark fw-bold fs-3 my-0">express-sweet</h1>
230
231
  <!--begin::Logo image-->
231
- <!-- <a href="#!">
232
- <img alt="Logo" src="media/logos/default.svg" class="h-25px app-sidebar-logo-default" />
233
- <img alt="Logo" src="media/logos/small.svg" class="h-20px app-sidebar-logo-minimize" />
234
- </a> -->
232
+ <a href="/">
233
+ <img alt="Logo" src="img/logos/default.svg" class="h-20px app-sidebar-logo-default" />
234
+ <img alt="Logo" src="img/logos/default-small.svg" class="h-20px app-sidebar-logo-minimize" />
235
+ </a>
235
236
  <!--end::Logo image-->
236
237
  </div>
237
238
  <!--end::Logo-->
@@ -5183,10 +5184,35 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
5183
5184
  <!--begin::Block-->
5184
5185
  <div class="py-5">
5185
5186
  Express Sweet has built-in passport authentication middleware for user authentication by username and password.<br>
5186
- You can immediately start user authentication in your application using the authentication configuration file and the authentication service module.<br>
5187
- If you want to know more about passport, please see this <a href="https://www.passportjs.org/" class="fw-semibold" target="_blank">reference</a>.
5187
+ You can immediately start user authentication in your application using the authentication configuration file and the authentication service module.<br><br>
5188
+ For more information about <code>passport</code>, click <a href="https://www.passportjs.org/" class="fw-semibold" target="_blank">here</a>.
5188
5189
  </div>
5189
5190
  <!--end::Block-->
5191
+ <!--begin::Notice-->
5192
+ <div class="py-5">
5193
+ <!--begin::Information-->
5194
+ <div class="d-flex align-items-center rounded py-5 px-5 bg-light-primary">
5195
+ <!--begin::Icon-->
5196
+ <!--begin::Svg Icon | path: icons/duotune/general/gen044.svg-->
5197
+ <span class="svg-icon svg-icon-3x svg-icon-primary me-5">
5198
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5199
+ <rect opacity="0.3" x="2" y="2" width="20" height="20" rx="10" fill="currentColor" />
5200
+ <rect x="11" y="14" width="7" height="2" rx="1" transform="rotate(-90 11 14)" fill="currentColor" />
5201
+ <rect x="11" y="17" width="2" height="2" rx="1" transform="rotate(-90 11 17)" fill="currentColor" />
5202
+ </svg>
5203
+ </span>
5204
+ <!--end::Svg Icon-->
5205
+ <!--end::Icon-->
5206
+ <!--begin::Description-->
5207
+ <div class="text-gray-700 fw-bold fs-6">
5208
+ If an unauthenticated user makes a request to a URL that allows access only if authenticated, the user will be redirected to the page specified by <code>failure_redirect</code>.<br>
5209
+ If that access is asynchronous, a <code>403</code> error is returned.
5210
+ </div>
5211
+ <!--end::Description-->
5212
+ </div>
5213
+ <!--end::Information-->
5214
+ </div>
5215
+ <!--end::Notice-->
5190
5216
  </div>
5191
5217
  <!--end::Section-->
5192
5218
  <!--begin::Section-->
@@ -5408,6 +5434,30 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
5408
5434
  The default is 24 hours (<code>86400000</code> milliseconds).
5409
5435
  </td>
5410
5436
  </tr>
5437
+ <tr>
5438
+ <td class="mw-250px"><code>is_ajax: (req: express.Request) =&gt; boolean</code></td>
5439
+ <td>
5440
+ How to determine if it is an ajax request.<br>
5441
+ The default is that if there is an XMLHttpRequest in the request header (<code>req.xhr</code>) returns <code>true</code>.<br><br>
5442
+ For example, if there is no XMLHttpRequest in req(<code>express.Request</code>) and the Ajax endpoint starts with <code>/api</code>, a custom Ajax decision can be made like &quot;<code>return /^\/api\//.test(req.path)</code>&quot;.<br>
5443
+ <!--begin::Code-->
5444
+ <div class="py-5">
5445
+ <!--begin::Highlight-->
5446
+ <div class="highlight">
5447
+ <button class="highlight-copy btn" data-bs-toggle="tooltip" title="Copy code">copy</button>
5448
+ <div class="highlight-code">
5449
+ <pre class="language-javascript"><code class="language-javascript">is_ajax: req =&gt; {
5450
+ // If the request URL begins with /api, it is assumed to be Ajax.
5451
+ return /^\/api/.test(req.path);
5452
+ // return !!req.xhr;
5453
+ }</code></pre>
5454
+ </div>
5455
+ </div>
5456
+ <!--end::Highlight-->
5457
+ </div>
5458
+ <!--end::Code-->
5459
+ </td>
5460
+ </tr>
5411
5461
  </tbody>
5412
5462
  <!--end::Body-->
5413
5463
  </table>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-sweet",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Extend Express functionality with Express Sweet and start developing fast, minimal web applications.",
5
5
  "main": "dist/build.common.js",
6
6
  "module": "dist/build.esm.js",
@@ -76,7 +76,7 @@
76
76
  "debug": "~2.6.9",
77
77
  "dotenv": "^8.2.0",
78
78
  "esm": "^3.2.25",
79
- "express": "^4.16.4",
79
+ "express": "^4.18.2",
80
80
  "express-hbs": "^2.3.3",
81
81
  "express-session": "^1.17.1",
82
82
  "fs-extra": "^9.0.1",
@@ -94,7 +94,6 @@
94
94
  "passport": "^0.4.1",
95
95
  "passport-local": "^1.0.0",
96
96
  "redis": "^4.1.0",
97
- "reflect-metadata": "^0.1.13",
98
97
  "sequelize": "^5.22.4",
99
98
  "uniqid": "^5.2.0"
100
99
  },
@@ -103,13 +102,13 @@
103
102
  "@types/connect-redis": "^0.0.18",
104
103
  "@types/cookie-parser": "^1.4.2",
105
104
  "@types/debug": "^4.1.5",
106
- "@types/express": "^4.17.11",
105
+ "@types/express": "^4.17.14",
107
106
  "@types/express-session": "^1.17.3",
108
107
  "@types/http-errors": "^1.8.0",
109
108
  "@types/ioredis": "^4.26.4",
110
109
  "@types/jest": "^26.0.22",
111
110
  "@types/multer": "^1.4.5",
112
- "@types/node": "^14.14.37",
111
+ "@types/node": "^14.18.32",
113
112
  "@types/passport": "^1.0.6",
114
113
  "@types/passport-local": "^1.0.33",
115
114
  "@types/validator": "^13.1.3",
@@ -1,4 +1,7 @@
1
1
  import sequelize from 'sequelize';
2
+ /**
3
+ * Connect to DB.
4
+ */
2
5
  declare const _default: {
3
6
  /**
4
7
  * Returns true if the DB can be connected.
@@ -80,83 +83,80 @@ declare const _default: {
80
83
  query(sql: string | {
81
84
  query: string;
82
85
  values: unknown[];
83
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.UPDATE>): any;
86
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.UPDATE>): Bluebird<T_1>;
84
87
  query(sql: string | {
85
88
  query: string;
86
89
  values: unknown[];
87
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.BULKUPDATE>): any;
90
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.BULKUPDATE>): Bluebird<T_1>;
88
91
  query(sql: string | {
89
92
  query: string;
90
93
  values: unknown[];
91
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.INSERT>): any;
94
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.INSERT>): Bluebird<T_1>;
92
95
  query(sql: string | {
93
96
  query: string;
94
97
  values: unknown[];
95
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.UPSERT>): any;
98
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.UPSERT>): Bluebird<T_1>;
96
99
  query(sql: string | {
97
100
  query: string;
98
101
  values: unknown[];
99
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.DELETE>): any;
102
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.DELETE>): Bluebird<T_1>;
100
103
  query(sql: string | {
101
104
  query: string;
102
105
  values: unknown[];
103
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.BULKDELETE>): any;
106
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.BULKDELETE>): Bluebird<T_1>;
104
107
  query(sql: string | {
105
108
  query: string;
106
109
  values: unknown[];
107
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.SHOWTABLES>): any;
110
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.SHOWTABLES>): Bluebird<T_1>;
108
111
  query(sql: string | {
109
112
  query: string;
110
113
  values: unknown[];
111
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.DESCRIBE>): any;
114
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.DESCRIBE>): Bluebird<T_1>;
112
115
  query<M extends sequelize.Model<any, any>>(sql: string | {
113
116
  query: string;
114
117
  values: unknown[];
115
- }, options: sequelize.QueryOptionsWithModel): any;
116
- query<T_1 extends object>(sql: string | {
118
+ }, options: sequelize.QueryOptionsWithModel): Bluebird<T_1>;
119
+ query<T_2 extends object>(sql: string | {
117
120
  query: string;
118
121
  values: unknown[];
119
122
  }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.SELECT> & {
120
123
  plain: true;
121
- }): any;
122
- query<T_2 extends object>(sql: string | {
124
+ }): Bluebird<T_1>;
125
+ query<T_3 extends object>(sql: string | {
123
126
  query: string;
124
127
  values: unknown[];
125
- }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.SELECT>): any;
128
+ }, options: sequelize.QueryOptionsWithType<sequelize.QueryTypes.SELECT>): Bluebird<T_1>;
126
129
  query(sql: string | {
127
130
  query: string;
128
131
  values: unknown[];
129
132
  }, options: (sequelize.QueryOptions | sequelize.QueryOptionsWithType<sequelize.QueryTypes.RAW>) & {
130
133
  plain: true;
131
- }): any;
134
+ }): Bluebird<T_1>;
132
135
  query(sql: string | {
133
136
  query: string;
134
137
  values: unknown[];
135
- }, options?: sequelize.QueryOptions | sequelize.QueryOptionsWithType<sequelize.QueryTypes.RAW> | undefined): any;
138
+ }, options?: sequelize.QueryOptions | sequelize.QueryOptionsWithType<sequelize.QueryTypes.RAW> | undefined): Bluebird<T_1>;
136
139
  random(): sequelize.Utils.Fn;
137
- set(variables: object, options: sequelize.QueryOptionsTransactionRequired): any;
140
+ set(variables: object, options: sequelize.QueryOptionsTransactionRequired): Bluebird<T_1>;
138
141
  escape(value: string | number | Date): string;
139
- createSchema(schema: string, options: sequelize.Logging): any;
140
- showAllSchemas(options: sequelize.Logging): any;
141
- dropSchema(schema: string, options: sequelize.Logging): any;
142
- dropAllSchemas(options: sequelize.Logging): any;
143
- sync(options?: sequelize.SyncOptions | undefined): any;
144
- truncate(options?: sequelize.DestroyOptions | undefined): any;
145
- drop(options?: sequelize.DropOptions | undefined): any;
146
- authenticate(options?: sequelize.QueryOptions | undefined): any;
147
- validate(options?: sequelize.QueryOptions | undefined): any;
148
- transaction<T_3>(options: sequelize.TransactionOptions, autoCallback: (t: sequelize.Transaction) => PromiseLike<T_3>): any;
149
- transaction<T_4>(autoCallback: (t: sequelize.Transaction) => PromiseLike<T_4>): any;
150
- transaction(options?: sequelize.TransactionOptions | undefined): any;
151
- close(): any;
152
- databaseVersion(): any;
142
+ createSchema(schema: string, options: sequelize.Logging): Bluebird<T_1>;
143
+ showAllSchemas(options: sequelize.Logging): Bluebird<T_1>;
144
+ dropSchema(schema: string, options: sequelize.Logging): Bluebird<T_1>;
145
+ dropAllSchemas(options: sequelize.Logging): Bluebird<T_1>;
146
+ sync(options?: sequelize.SyncOptions | undefined): Bluebird<T_1>;
147
+ truncate(options?: sequelize.DestroyOptions | undefined): Bluebird<T_1>;
148
+ drop(options?: sequelize.DropOptions | undefined): Bluebird<T_1>;
149
+ authenticate(options?: sequelize.QueryOptions | undefined): Bluebird<T_1>;
150
+ validate(options?: sequelize.QueryOptions | undefined): Bluebird<T_1>;
151
+ transaction<T_4>(options: sequelize.TransactionOptions, autoCallback: (t: sequelize.Transaction) => PromiseLike<T_4>): Bluebird<T_1>;
152
+ transaction<T_5>(autoCallback: (t: sequelize.Transaction) => PromiseLike<T_5>): Bluebird<T_1>;
153
+ transaction(options?: sequelize.TransactionOptions | undefined): Bluebird<T_1>;
154
+ close(): Bluebird<T_1>;
155
+ databaseVersion(): Bluebird<T_1>;
153
156
  addHook<K extends keyof import("sequelize/types/lib/hooks").SequelizeHooks>(hookType: K, name: string, fn: import("sequelize/types/lib/hooks").SequelizeHooks[K]): any;
154
157
  addHook<K_1 extends keyof import("sequelize/types/lib/hooks").SequelizeHooks>(hookType: K_1, fn: import("sequelize/types/lib/hooks").SequelizeHooks[K_1]): any;
155
158
  removeHook<K_2 extends keyof import("sequelize/types/lib/hooks").SequelizeHooks>(hookType: K_2, name: string): any;
156
159
  hasHook<K_3 extends keyof import("sequelize/types/lib/hooks").SequelizeHooks>(hookType: K_3): boolean;
157
160
  hasHooks<K_4 extends keyof import("sequelize/types/lib/hooks").SequelizeHooks>(hookType: K_4): boolean;
158
161
  };
159
- /**
160
- * Connect to DB.
161
- */
162
162
  export default _default;
@@ -94,4 +94,18 @@ export default interface {
94
94
  * @type {number}
95
95
  */
96
96
  expiration: number;
97
+ /**
98
+ * How to determine if it is an ajax request
99
+ * The default is that if there is an XMLHttpRequest in the request header (req.xhr) returns true.
100
+ * For example, if there is no XMLHttpRequest in req(express.Request) and the Ajax endpoint starts with /api, a custom Ajax decision can be made like "return /^\/api\//.test(req.path)".
101
+ *
102
+ * @type {(req: express.Request) => boolean}
103
+ * @example
104
+ * is_ajax: req => {
105
+ * // If the request URL begins with /api, it is assumed to be Ajax.
106
+ * return /^\/api/.test(req.path);
107
+ * // return !!req.xhr;
108
+ * }
109
+ */
110
+ is_ajax: (req: express.Request) => boolean;
97
111
  }
@@ -1,6 +1,8 @@
1
1
  import express from 'express';
2
2
  /**
3
3
  * Incorporate user authentication into your application.
4
+ * If an unauthenticated user makes a request to a URL that allows access only if authenticated, the user will be redirected to the page specified by "failure_redirect".
5
+ * If that access is asynchronous, a 403 error is returned.
4
6
  */
5
7
  export default class {
6
8
  /**
@@ -58,7 +58,6 @@ export declare var dependencies: {
58
58
  passport: string;
59
59
  "passport-local": string;
60
60
  redis: string;
61
- "reflect-metadata": string;
62
61
  sequelize: string;
63
62
  uniqid: string;
64
63
  };
@@ -1,8 +1,8 @@
1
- declare const _default: (value: any) => boolean;
2
1
  /**
3
2
  * Check if param is an array.
4
3
  *
5
4
  * @param {any} value
6
5
  * @returns {boolean}
7
6
  */
7
+ declare const _default: (value: any) => boolean;
8
8
  export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: (value: Function) => boolean;
2
1
  /**
3
2
  * Returns true for asynchronous functions, false otherwise.
4
3
  *
@@ -9,4 +8,5 @@ declare const _default: (value: Function) => boolean;
9
8
  * @param {Function} value
10
9
  * @return {boolean}
11
10
  */
11
+ declare const _default: (value: Function) => boolean;
12
12
  export default _default;
@@ -1,8 +1,8 @@
1
- declare const _default: (value: any) => boolean;
2
1
  /**
3
2
  * Check if param is an object.
4
3
  *
5
4
  * @param {any} value Character strings, arrays, objects, etc. to be checked.
6
5
  * @returns {boolean} Returns true if it is an object.
7
6
  */
7
+ declare const _default: (value: any) => boolean;
8
8
  export default _default;
@@ -1,8 +1,8 @@
1
- declare const _default: (value: any) => boolean;
2
1
  /**
3
2
  * Return true if `val` is a non-empty string.
4
3
  *
5
4
  * @param {any} `val` The value to check
6
5
  * @return {boolean}
7
6
  */
7
+ declare const _default: (value: any) => boolean;
8
8
  export default _default;