@vandenberghinc/volt 1.1.26 → 1.1.28
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/backend/dist/cjs/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/cjs/{blacklist.js → backend/src/blacklist.js} +8 -5
- package/backend/dist/cjs/{cli.js → backend/src/cli.js} +29 -47
- package/backend/dist/cjs/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/cjs/backend/src/database/collection.js +3042 -0
- package/backend/dist/cjs/backend/src/database/database.d.ts +66 -0
- package/backend/dist/cjs/{database → backend/src/database}/database.js +48 -43
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/cjs/backend/src/database/filters/filters.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +443 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +355 -0
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/cjs/{logger.js → backend/src/database/flatten.js} +18 -7
- package/backend/dist/cjs/backend/src/database/flatten_test.js +175 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.js +1014 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +1087 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +573 -0
- package/backend/dist/{esm → cjs/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/cjs/{endpoint.js → backend/src/endpoint.js} +87 -101
- package/backend/dist/cjs/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/cjs/backend/src/errors/index.js +25 -0
- package/backend/dist/{esm/utils.d.ts → cjs/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/cjs/backend/src/errors/internal_external.js +85 -0
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/cjs/{mutex.js → backend/src/errors/invalid_usage_error.js} +20 -37
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/cjs/backend/src/errors/system_error.js +393 -0
- package/backend/dist/cjs/backend/src/events.d.ts +54 -0
- package/backend/dist/cjs/backend/src/events.js +15 -0
- package/backend/dist/cjs/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/cjs/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/cjs/{image_endpoint.js → backend/src/image_endpoint.js} +3 -5
- package/backend/dist/cjs/backend/src/logger.d.ts +5 -0
- package/backend/dist/cjs/backend/src/logger.js +15 -0
- package/backend/dist/cjs/backend/src/meta.d.ts +64 -0
- package/backend/dist/cjs/{meta.js → backend/src/meta.js} +9 -12
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/cjs/{payments → backend/src/payments}/paddle.js +377 -327
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/cjs/backend/src/plugins/browser.js +15 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +379 -0
- package/backend/dist/{esm → cjs/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/cjs/backend/src/rate_limit.js +549 -0
- package/backend/dist/cjs/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/cjs/{route.js → backend/src/route.js} +23 -21
- package/backend/dist/cjs/backend/src/server.d.ts +485 -0
- package/backend/dist/cjs/{server.js → backend/src/server.js} +688 -873
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/cjs/{splash_screen.js → backend/src/splash_screen.js} +24 -3
- package/backend/dist/cjs/backend/src/status.d.ts +74 -0
- package/backend/dist/cjs/{status.js → backend/src/status.js} +64 -64
- package/backend/dist/cjs/backend/src/stream.d.ts +376 -0
- package/backend/dist/cjs/{stream.js → backend/src/stream.js} +299 -276
- package/backend/dist/cjs/backend/src/users.d.ts +807 -0
- package/backend/dist/cjs/backend/src/users.js +1971 -0
- package/backend/dist/cjs/backend/src/utils.d.ts +16 -0
- package/backend/dist/cjs/{utils.js → backend/src/utils.js} +14 -77
- package/backend/dist/{esm → cjs/backend/src}/view.d.ts +33 -11
- package/backend/dist/cjs/backend/src/view.js +508 -0
- package/backend/dist/{esm → cjs/backend/src}/volt.d.ts +10 -1
- package/backend/dist/cjs/{volt.js → backend/src/volt.js} +8 -5
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/cjs/frontend/src/modules/request.js +99 -0
- package/backend/dist/esm/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/esm/{blacklist.js → backend/src/blacklist.js} +9 -6
- package/backend/dist/esm/{cli.js → backend/src/cli.js} +43 -60
- package/backend/dist/esm/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/esm/backend/src/database/collection.js +3510 -0
- package/backend/dist/esm/backend/src/database/database.d.ts +66 -0
- package/backend/dist/esm/{database → backend/src/database}/database.js +62 -103
- package/backend/dist/esm/backend/src/database/document.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/document.js +558 -0
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/esm/backend/src/database/filters/filters.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +3 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +505 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +712 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +44 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +405 -0
- package/backend/dist/esm/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/flatten.js +22 -0
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/flatten_test.js +174 -0
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/esm/backend/src/database/quota/quota.js +1118 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +1242 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +602 -0
- package/backend/dist/{cjs → esm/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/esm/{endpoint.js → backend/src/endpoint.js} +136 -127
- package/backend/dist/esm/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/esm/backend/src/errors/index.js +7 -0
- package/backend/dist/{cjs/utils.d.ts → esm/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/esm/backend/src/errors/internal_external.js +70 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +30 -0
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/esm/backend/src/errors/system_error.js +402 -0
- package/backend/dist/esm/backend/src/events.d.ts +54 -0
- package/backend/dist/esm/backend/src/events.js +5 -0
- package/backend/dist/esm/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/esm/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/esm/{image_endpoint.js → backend/src/image_endpoint.js} +16 -20
- package/backend/dist/esm/backend/src/logger.d.ts +5 -0
- package/backend/dist/esm/backend/src/logger.js +8 -0
- package/backend/dist/esm/backend/src/meta.d.ts +64 -0
- package/backend/dist/esm/{meta.js → backend/src/meta.js} +15 -54
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/esm/{payments → backend/src/payments}/paddle.js +417 -452
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/esm/backend/src/plugins/browser.js +170 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +389 -0
- package/backend/dist/{cjs → esm/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/mail/ui.js +3 -6
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/pdf.js +3 -3
- package/backend/dist/esm/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/esm/backend/src/rate_limit.js +667 -0
- package/backend/dist/esm/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/esm/{route.js → backend/src/route.js} +26 -21
- package/backend/dist/esm/backend/src/server.d.ts +485 -0
- package/backend/dist/esm/{server.js → backend/src/server.js} +891 -1441
- package/backend/dist/esm/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/esm/{splash_screen.js → backend/src/splash_screen.js} +42 -55
- package/backend/dist/esm/backend/src/status.d.ts +74 -0
- package/backend/dist/esm/backend/src/status.js +199 -0
- package/backend/dist/esm/backend/src/stream.d.ts +376 -0
- package/backend/dist/esm/{stream.js → backend/src/stream.js} +327 -292
- package/backend/dist/esm/backend/src/users.d.ts +809 -0
- package/backend/dist/esm/backend/src/users.js +2140 -0
- package/backend/dist/esm/backend/src/utils.d.ts +16 -0
- package/backend/dist/esm/{utils.js → backend/src/utils.js} +20 -81
- package/backend/dist/{cjs → esm/backend/src}/view.d.ts +33 -11
- package/backend/dist/esm/{view.js → backend/src/view.js} +266 -86
- package/backend/dist/{cjs → esm/backend/src}/volt.d.ts +10 -1
- package/backend/dist/esm/{volt.js → backend/src/volt.js} +7 -4
- package/backend/dist/esm/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/esm/frontend/src/modules/request.js +117 -0
- package/frontend/dist/backend/src/database/collection.d.ts +1543 -0
- package/frontend/dist/backend/src/database/collection.js +3510 -0
- package/frontend/dist/backend/src/database/database.d.ts +66 -0
- package/frontend/dist/backend/src/database/database.js +196 -0
- package/frontend/dist/backend/src/database/filters/filters.d.ts +6 -0
- package/frontend/dist/backend/src/database/filters/filters.js +1 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.js +3 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +5 -0
- package/frontend/dist/backend/src/database/flatten.d.ts +75 -0
- package/frontend/dist/backend/src/database/flatten.js +22 -0
- package/frontend/dist/backend/src/endpoint.d.ts +204 -0
- package/frontend/dist/backend/src/endpoint.js +570 -0
- package/frontend/dist/backend/src/errors/index.d.ts +7 -0
- package/frontend/dist/backend/src/errors/index.js +7 -0
- package/frontend/dist/backend/src/errors/internal_external.d.ts +38 -0
- package/frontend/dist/backend/src/errors/internal_external.js +70 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +30 -0
- package/frontend/dist/backend/src/errors/system_error.d.ts +230 -0
- package/frontend/dist/backend/src/errors/system_error.js +402 -0
- package/frontend/dist/backend/src/events.d.ts +54 -0
- package/frontend/dist/backend/src/events.js +5 -0
- package/frontend/dist/backend/src/frontend.d.ts +11 -0
- package/frontend/dist/backend/src/frontend.js +12 -0
- package/frontend/dist/backend/src/image_endpoint.d.ts +39 -0
- package/frontend/dist/backend/src/image_endpoint.js +202 -0
- package/frontend/dist/backend/src/meta.d.ts +64 -0
- package/frontend/dist/backend/src/meta.js +110 -0
- package/frontend/dist/backend/src/payments/paddle.d.ts +326 -0
- package/frontend/dist/backend/src/payments/paddle.js +2256 -0
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +248 -0
- package/frontend/dist/backend/src/plugins/mail/mail.js +389 -0
- package/{backend/dist/esm/plugins/mail.d.ts → frontend/dist/backend/src/plugins/mail/ui.d.ts} +23 -0
- package/{backend/dist/esm/plugins/mail.js → frontend/dist/backend/src/plugins/mail/ui.js} +3 -6
- package/frontend/dist/backend/src/rate_limit.d.ts +145 -0
- package/frontend/dist/backend/src/rate_limit.js +673 -0
- package/frontend/dist/backend/src/route.d.ts +35 -0
- package/frontend/dist/backend/src/route.js +212 -0
- package/frontend/dist/backend/src/server.d.ts +485 -0
- package/frontend/dist/backend/src/server.js +2670 -0
- package/frontend/dist/backend/src/splash_screen.d.ts +80 -0
- package/frontend/dist/backend/src/splash_screen.js +135 -0
- package/frontend/dist/backend/src/status.d.ts +74 -0
- package/frontend/dist/backend/src/status.js +199 -0
- package/frontend/dist/backend/src/stream.d.ts +376 -0
- package/frontend/dist/backend/src/stream.js +1007 -0
- package/frontend/dist/backend/src/users.d.ts +807 -0
- package/frontend/dist/backend/src/users.js +2118 -0
- package/frontend/dist/backend/src/utils.d.ts +16 -0
- package/frontend/dist/backend/src/utils.js +241 -0
- package/frontend/dist/backend/src/view.d.ts +162 -0
- package/frontend/dist/backend/src/view.js +720 -0
- package/frontend/dist/frontend/src/elements/base.d.ts +4414 -0
- package/frontend/dist/{elements → frontend/src/elements}/base.js +3624 -260
- package/frontend/dist/frontend/src/elements/module.d.ts +95 -0
- package/frontend/dist/{elements → frontend/src/elements}/module.js +53 -52
- package/frontend/dist/frontend/src/elements/types.d.ts +52 -0
- package/frontend/dist/frontend/src/elements/types.js +5 -0
- package/frontend/dist/frontend/src/modules/attachment.d.ts +126 -0
- package/frontend/dist/frontend/src/modules/attachment.js +306 -0
- package/frontend/dist/frontend/src/modules/auth.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/auth.js +80 -0
- package/frontend/dist/{modules → frontend/src/modules}/color.js +2 -2
- package/frontend/dist/frontend/src/modules/compression.d.ts +39 -0
- package/frontend/dist/frontend/src/modules/compression.js +102 -0
- package/frontend/dist/frontend/src/modules/cookies.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/cookies.js +143 -0
- package/frontend/dist/frontend/src/modules/events.d.ts +31 -0
- package/frontend/dist/frontend/src/modules/events.js +74 -0
- package/frontend/dist/frontend/src/modules/google.d.ts +23 -0
- package/frontend/dist/frontend/src/modules/google.js +52 -0
- package/frontend/dist/frontend/src/modules/meta.d.ts +14 -0
- package/frontend/dist/{modules → frontend/src/modules}/meta.js +9 -7
- package/frontend/dist/{modules → frontend/src/modules}/paddle.d.ts +37 -134
- package/frontend/dist/{modules → frontend/src/modules}/paddle.js +620 -568
- package/frontend/dist/frontend/src/modules/request.d.ts +70 -0
- package/frontend/dist/frontend/src/modules/request.js +117 -0
- package/frontend/dist/frontend/src/modules/settings.d.ts +3 -0
- package/frontend/dist/frontend/src/modules/settings.js +5 -0
- package/frontend/dist/frontend/src/modules/statics.d.ts +21 -0
- package/frontend/dist/{modules → frontend/src/modules}/statics.js +15 -18
- package/frontend/dist/frontend/src/modules/support.d.ts +30 -0
- package/frontend/dist/frontend/src/modules/support.js +53 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.d.ts +67 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.js +68 -38
- package/frontend/dist/frontend/src/modules/themes.d.ts +12 -0
- package/frontend/dist/frontend/src/modules/themes.js +22 -0
- package/frontend/dist/frontend/src/modules/user.d.ts +164 -0
- package/frontend/dist/frontend/src/modules/user.js +268 -0
- package/frontend/dist/frontend/src/modules/utils.d.ts +176 -0
- package/frontend/dist/frontend/src/modules/utils.js +569 -0
- package/frontend/dist/frontend/src/types/gradient.d.ts +29 -0
- package/frontend/dist/{types → frontend/src/types}/gradient.js +14 -18
- package/frontend/dist/frontend/src/ui/border_button.d.ts +94 -0
- package/frontend/dist/{ui → frontend/src/ui}/border_button.js +7 -13
- package/frontend/dist/frontend/src/ui/button.d.ts +28 -0
- package/frontend/dist/{ui → frontend/src/ui}/button.js +21 -12
- package/frontend/dist/frontend/src/ui/canvas.d.ts +138 -0
- package/frontend/dist/{ui → frontend/src/ui}/canvas.js +88 -55
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +74 -0
- package/frontend/dist/{ui → frontend/src/ui}/checkbox.js +80 -41
- package/frontend/dist/{ui → frontend/src/ui}/code.d.ts +73 -6
- package/frontend/dist/{ui → frontend/src/ui}/code.js +55 -52
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.js +12 -17
- package/frontend/dist/{ui → frontend/src/ui}/css.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/css.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/divider.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/divider.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.d.ts +57 -2
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.js +87 -94
- package/frontend/dist/{ui → frontend/src/ui}/for_each.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/for_each.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/form.d.ts +6 -2
- package/frontend/dist/{ui → frontend/src/ui}/form.js +10 -7
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +37 -0
- package/frontend/dist/{ui → frontend/src/ui}/frame_modes.js +16 -22
- package/frontend/dist/{ui → frontend/src/ui}/google_map.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/google_map.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/gradient.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/gradient.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/image.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/image.js +5 -5
- package/frontend/dist/frontend/src/ui/input.d.ts +392 -0
- package/frontend/dist/{ui → frontend/src/ui}/input.js +346 -360
- package/frontend/dist/{ui → frontend/src/ui}/link.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/link.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/list.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/list.js +12 -6
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +80 -0
- package/frontend/dist/{ui → frontend/src/ui}/loader_button.js +35 -47
- package/frontend/dist/frontend/src/ui/loaders.d.ts +57 -0
- package/frontend/dist/{ui → frontend/src/ui}/loaders.js +11 -11
- package/frontend/dist/{ui → frontend/src/ui}/popup.d.ts +11 -6
- package/frontend/dist/{ui → frontend/src/ui}/popup.js +32 -18
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +44 -0
- package/frontend/dist/{ui → frontend/src/ui}/pseudo.js +84 -8
- package/frontend/dist/{ui → frontend/src/ui}/scroller.d.ts +14 -2
- package/frontend/dist/{ui → frontend/src/ui}/scroller.js +37 -43
- package/frontend/dist/{ui → frontend/src/ui}/slider.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/slider.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/spacer.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/spacer.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/span.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/span.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/stack.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/stack.js +3 -9
- package/frontend/dist/frontend/src/ui/steps.d.ts +131 -0
- package/frontend/dist/{ui → frontend/src/ui}/steps.js +30 -45
- package/frontend/dist/{ui → frontend/src/ui}/style.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/style.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/switch.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/switch.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/table.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/table.js +6 -6
- package/frontend/dist/{ui → frontend/src/ui}/tabs.d.ts +45 -3
- package/frontend/dist/{ui → frontend/src/ui}/tabs.js +65 -40
- package/frontend/dist/{ui → frontend/src/ui}/text.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/text.js +3 -3
- package/frontend/dist/frontend/src/ui/title.d.ts +91 -0
- package/frontend/dist/frontend/src/ui/title.js +272 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.js +3 -3
- package/frontend/dist/{volt.d.ts → frontend/src/volt.d.ts} +3 -0
- package/frontend/dist/{volt.js → frontend/src/volt.js} +4 -0
- package/frontend/tools/bundle_d_ts.js +71 -0
- package/frontend/tools/convert_to_jsdoc_input.txt +9452 -0
- package/frontend/tools/convert_to_jsdoc_output.txt +7626 -0
- package/frontend/tools/convert_to_jsdoc_tmp.js +345 -0
- package/package.json +11 -12
- package/backend/dist/cjs/database/collection.d.ts +0 -160
- package/backend/dist/cjs/database/collection.js +0 -842
- package/backend/dist/cjs/database/database.d.ts +0 -121
- package/backend/dist/cjs/database/document.d.ts +0 -131
- package/backend/dist/cjs/database/document.js +0 -224
- package/backend/dist/cjs/database.d.ts +0 -502
- package/backend/dist/cjs/database.js +0 -2248
- package/backend/dist/cjs/logger.d.ts +0 -3
- package/backend/dist/cjs/meta.d.ts +0 -50
- package/backend/dist/cjs/mutex.d.ts +0 -24
- package/backend/dist/cjs/payments/paddle.d.ts +0 -160
- package/backend/dist/cjs/plugins/browser.d.ts +0 -36
- package/backend/dist/cjs/plugins/browser.js +0 -198
- package/backend/dist/cjs/plugins/css.d.ts +0 -11
- package/backend/dist/cjs/plugins/css.js +0 -80
- package/backend/dist/cjs/plugins/mail.d.ts +0 -277
- package/backend/dist/cjs/plugins/mail.js +0 -1370
- package/backend/dist/cjs/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/cjs/plugins/ts/compiler.js +0 -750
- package/backend/dist/cjs/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/cjs/plugins/ts/preprocessing.js +0 -440
- package/backend/dist/cjs/rate_limit.d.ts +0 -63
- package/backend/dist/cjs/rate_limit.js +0 -348
- package/backend/dist/cjs/request.deprc.d.ts +0 -48
- package/backend/dist/cjs/request.deprc.js +0 -572
- package/backend/dist/cjs/response.deprc.d.ts +0 -55
- package/backend/dist/cjs/response.deprc.js +0 -275
- package/backend/dist/cjs/server.d.ts +0 -342
- package/backend/dist/cjs/splash_screen.d.ts +0 -35
- package/backend/dist/cjs/status.d.ts +0 -61
- package/backend/dist/cjs/stream.d.ts +0 -79
- package/backend/dist/cjs/users.d.ts +0 -111
- package/backend/dist/cjs/users.js +0 -1817
- package/backend/dist/cjs/view.js +0 -352
- package/backend/dist/cjs/vinc.dev.d.ts +0 -3
- package/backend/dist/cjs/vinc.dev.js +0 -7
- package/backend/dist/css/adyen.css +0 -92
- package/backend/dist/css/volt.css +0 -70
- package/backend/dist/esm/database/collection.d.ts +0 -160
- package/backend/dist/esm/database/collection.js +0 -1328
- package/backend/dist/esm/database/database.d.ts +0 -121
- package/backend/dist/esm/database/document.d.ts +0 -131
- package/backend/dist/esm/database/document.js +0 -247
- package/backend/dist/esm/database.d.ts +0 -502
- package/backend/dist/esm/database.js +0 -2423
- package/backend/dist/esm/file_watcher.js +0 -329
- package/backend/dist/esm/logger.d.ts +0 -3
- package/backend/dist/esm/logger.js +0 -11
- package/backend/dist/esm/meta.d.ts +0 -50
- package/backend/dist/esm/mutex.d.ts +0 -24
- package/backend/dist/esm/mutex.js +0 -48
- package/backend/dist/esm/payments/paddle.d.ts +0 -160
- package/backend/dist/esm/plugins/browser.d.ts +0 -36
- package/backend/dist/esm/plugins/browser.js +0 -176
- package/backend/dist/esm/plugins/css.d.ts +0 -11
- package/backend/dist/esm/plugins/css.js +0 -90
- package/backend/dist/esm/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/esm/plugins/ts/compiler.js +0 -1194
- package/backend/dist/esm/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/esm/plugins/ts/preprocessing.js +0 -726
- package/backend/dist/esm/rate_limit.d.ts +0 -63
- package/backend/dist/esm/rate_limit.js +0 -417
- package/backend/dist/esm/request.deprc.d.ts +0 -48
- package/backend/dist/esm/request.deprc.js +0 -572
- package/backend/dist/esm/response.deprc.d.ts +0 -55
- package/backend/dist/esm/response.deprc.js +0 -275
- package/backend/dist/esm/server.d.ts +0 -342
- package/backend/dist/esm/splash_screen.d.ts +0 -35
- package/backend/dist/esm/status.d.ts +0 -61
- package/backend/dist/esm/status.js +0 -197
- package/backend/dist/esm/stream.d.ts +0 -79
- package/backend/dist/esm/users.d.ts +0 -111
- package/backend/dist/esm/users.js +0 -1935
- package/backend/dist/esm/vinc.dev.d.ts +0 -3
- package/backend/dist/esm/vinc.dev.js +0 -7
- package/frontend/dist/elements/base.d.ts +0 -9889
- package/frontend/dist/elements/module.d.ts +0 -30
- package/frontend/dist/modules/array.d.ts +0 -94
- package/frontend/dist/modules/array.js +0 -634
- package/frontend/dist/modules/auth.d.ts +0 -46
- package/frontend/dist/modules/auth.js +0 -139
- package/frontend/dist/modules/colors.d.ts +0 -1
- package/frontend/dist/modules/colors.js +0 -417
- package/frontend/dist/modules/compression.d.ts +0 -6
- package/frontend/dist/modules/compression.js +0 -999
- package/frontend/dist/modules/cookies.d.ts +0 -18
- package/frontend/dist/modules/cookies.js +0 -167
- package/frontend/dist/modules/date.d.ts +0 -142
- package/frontend/dist/modules/date.js +0 -493
- package/frontend/dist/modules/events.d.ts +0 -8
- package/frontend/dist/modules/events.js +0 -91
- package/frontend/dist/modules/google.d.ts +0 -11
- package/frontend/dist/modules/google.js +0 -54
- package/frontend/dist/modules/meta.d.ts +0 -10
- package/frontend/dist/modules/mutex.d.ts +0 -7
- package/frontend/dist/modules/mutex.js +0 -51
- package/frontend/dist/modules/number.d.ts +0 -16
- package/frontend/dist/modules/number.js +0 -23
- package/frontend/dist/modules/object.d.ts +0 -52
- package/frontend/dist/modules/object.js +0 -383
- package/frontend/dist/modules/scheme.d.ts +0 -227
- package/frontend/dist/modules/scheme.js +0 -531
- package/frontend/dist/modules/settings.d.ts +0 -3
- package/frontend/dist/modules/settings.js +0 -4
- package/frontend/dist/modules/statics.d.ts +0 -5
- package/frontend/dist/modules/string.d.ts +0 -124
- package/frontend/dist/modules/string.js +0 -745
- package/frontend/dist/modules/support.d.ts +0 -19
- package/frontend/dist/modules/support.js +0 -103
- package/frontend/dist/modules/themes.d.ts +0 -8
- package/frontend/dist/modules/themes.js +0 -18
- package/frontend/dist/modules/user.d.ts +0 -59
- package/frontend/dist/modules/user.js +0 -280
- package/frontend/dist/modules/utils.d.ts +0 -87
- package/frontend/dist/modules/utils.js +0 -923
- package/frontend/dist/types/gradient.d.ts +0 -12
- package/frontend/dist/ui/border_button.d.ts +0 -152
- package/frontend/dist/ui/button.d.ts +0 -21
- package/frontend/dist/ui/canvas.d.ts +0 -56
- package/frontend/dist/ui/checkbox.d.ts +0 -52
- package/frontend/dist/ui/frame_modes.d.ts +0 -25
- package/frontend/dist/ui/input.d.ts +0 -241
- package/frontend/dist/ui/loader_button.d.ts +0 -93
- package/frontend/dist/ui/loaders.d.ts +0 -57
- package/frontend/dist/ui/pseudo.d.ts +0 -16
- package/frontend/dist/ui/steps.d.ts +0 -59
- package/frontend/dist/ui/title.d.ts +0 -21
- package/frontend/dist/ui/title.js +0 -121
- package/frontend/examples/dashboard/dashboard.ts +0 -776
- /package/backend/dist/cjs/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.d.ts → backend/src/database/document.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.js → backend/src/database/document.js} +0 -0
- /package/backend/dist/cjs/{plugins/pdf.d.ts → backend/src/database/filters/strict_filter_test.d.ts} +0 -0
- /package/backend/dist/{esm/file_watcher.d.ts → cjs/backend/src/database/filters/strict_filter_test_v0.d.ts} +0 -0
- /package/backend/dist/{esm/plugins/pdf.d.ts → cjs/backend/src/database/flatten_test.d.ts} +0 -0
- /package/backend/dist/cjs/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/mail/ui.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/pdf.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/cjs/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/cjs/{vinc.js → backend/src/vinc.js} +0 -0
- /package/backend/dist/esm/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/esm/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/esm/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/esm/{vinc.js → backend/src/vinc.js} +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.d.ts +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.js +0 -0
- /package/frontend/dist/{modules → frontend/src/modules}/color.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.js +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
+
*/
|
|
1
5
|
import { View } from './view.js';
|
|
2
6
|
import * as vlib from "@vandenberghinc/vlib";
|
|
3
|
-
import {
|
|
7
|
+
import { RateLimitGroup, RateLimitData } from "./rate_limit.js";
|
|
4
8
|
import { Stream, AuthStream } from "./stream.js";
|
|
5
9
|
import type { Server } from "./server.js";
|
|
6
10
|
import { Route } from './route.js';
|
|
@@ -93,8 +97,7 @@ import { Route } from './route.js';
|
|
|
93
97
|
* and only have to be assigned once. The assigned attributes will be overridden when
|
|
94
98
|
* these attributes are reassigned for the same group.
|
|
95
99
|
*/
|
|
96
|
-
export declare class Endpoint<const S extends vlib.
|
|
97
|
-
static rate_limits: Map<string, any>;
|
|
100
|
+
export declare class Endpoint<const M extends Endpoint.Method = "GET", const E extends string | RegExp = string, const S extends vlib.Schema.Entries.Opts = {}> {
|
|
98
101
|
static compressed_content_types: string[];
|
|
99
102
|
/** Route attributes */
|
|
100
103
|
id: string;
|
|
@@ -102,17 +105,19 @@ export declare class Endpoint<const S extends vlib.scheme.Infer.Scheme.S = {}> {
|
|
|
102
105
|
/** Requires authentication */
|
|
103
106
|
authenticated: boolean;
|
|
104
107
|
/** Parameter scheme validator */
|
|
105
|
-
|
|
108
|
+
params_schema?: vlib.Schema.Validator<object>;
|
|
106
109
|
/** The default response headers */
|
|
107
110
|
headers: [string, string][];
|
|
108
111
|
/** Option 1) User callback - defined as method so a derived endpoint can do that as well. */
|
|
109
|
-
callback?(stream: Stream, params: vlib.
|
|
110
|
-
callback?(stream: AuthStream, params: vlib.
|
|
112
|
+
callback?(stream: Stream, params: vlib.Schema.Entries.Infer<S>): any;
|
|
113
|
+
callback?(stream: AuthStream, params: vlib.Schema.Entries.Infer<S>): any;
|
|
111
114
|
/** Option 2) View based endpoint */
|
|
112
115
|
view?: View;
|
|
113
116
|
/** Option 3) Data endpoint, raw */
|
|
114
|
-
data
|
|
117
|
+
data?: Buffer | string | any[] | Record<any, any>;
|
|
115
118
|
raw_data?: Buffer | string | any[] | Record<any, any>;
|
|
119
|
+
/** Option 4 Data endpoint by file path. */
|
|
120
|
+
file_path?: vlib.Path;
|
|
116
121
|
/** Content length & type */
|
|
117
122
|
content_length?: number;
|
|
118
123
|
content_type?: string;
|
|
@@ -122,60 +127,78 @@ export declare class Endpoint<const S extends vlib.scheme.Infer.Scheme.S = {}> {
|
|
|
122
127
|
allow_sitemap: boolean;
|
|
123
128
|
allow_robots: boolean;
|
|
124
129
|
/** Rate limit groups for internal use. */
|
|
125
|
-
rate_limit_groups:
|
|
130
|
+
rate_limit_groups: RateLimitData[];
|
|
126
131
|
/** Private attributes */
|
|
127
132
|
private _compress;
|
|
128
133
|
private _cache;
|
|
129
|
-
_static_path?: string;
|
|
130
|
-
private _templates;
|
|
131
134
|
private ip_whitelist?;
|
|
132
135
|
private _is_compressed?;
|
|
133
136
|
private _initialized;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
compress, cache, ip_whitelist, sitemap, robots, allow_unknown_params,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
/** A reference to the server. */
|
|
138
|
+
server?: Server;
|
|
139
|
+
constructor({ method, endpoint, authenticated, rate_limit, params, compress, cache, ip_whitelist, sitemap, robots, allow_unknown_params, _is_static, callback, view, data, file_path, content_type, }: Endpoint.Opts<M, E, S>);
|
|
140
|
+
/** Initialize with server. */
|
|
141
|
+
_initialize(server: Server): this;
|
|
142
|
+
_dynamic_initialize(): Promise<void>;
|
|
143
|
+
_set_headers(stream: Stream): void;
|
|
144
|
+
_serve_options(stream: Stream): Promise<void>;
|
|
145
|
+
_serve(stream: Stream, status_code?: number): Promise<void>;
|
|
146
|
+
private _load_data_by_path;
|
|
147
|
+
}
|
|
148
|
+
export declare namespace Endpoint {
|
|
149
|
+
/** The endpoint method. */
|
|
150
|
+
type Method = "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | "OPTIONS";
|
|
151
|
+
/** Options for constructing an endpoint. */
|
|
152
|
+
type Opts<M extends Method = Method, E extends string | RegExp = string, S extends vlib.Schema.Entries.Opts = {}> = {
|
|
153
|
+
/**
|
|
154
|
+
* The endpoint method.
|
|
155
|
+
* @default "GET"
|
|
156
|
+
*/
|
|
157
|
+
method?: M extends undefined ? "GET" : M;
|
|
158
|
+
endpoint: E;
|
|
159
|
+
rate_limit?: string | RateLimitGroup | (string | RateLimitGroup)[];
|
|
142
160
|
params?: S;
|
|
143
|
-
callback?: ((stream: Stream, params: vlib.scheme.Infer.Scheme<S>) => any) | ((stream: AuthStream, params: vlib.scheme.Infer.Scheme<S>) => any);
|
|
144
|
-
data?: any;
|
|
145
161
|
compress?: "auto" | boolean;
|
|
146
162
|
cache?: boolean | number;
|
|
147
163
|
ip_whitelist?: string[];
|
|
148
164
|
sitemap?: boolean;
|
|
149
165
|
robots?: boolean;
|
|
150
|
-
_templates?: Record<string, any>;
|
|
151
|
-
_static_path?: string;
|
|
152
166
|
_is_static?: boolean;
|
|
153
167
|
allow_unknown_params?: boolean;
|
|
154
168
|
} & ({
|
|
155
|
-
|
|
156
|
-
|
|
169
|
+
data?: Buffer | string | any[] | Record<any, any>;
|
|
170
|
+
file_path?: never;
|
|
171
|
+
view?: never;
|
|
172
|
+
authenticated?: boolean;
|
|
173
|
+
callback?: never;
|
|
174
|
+
content_type: string;
|
|
175
|
+
} | {
|
|
176
|
+
data?: never;
|
|
177
|
+
file_path: string | vlib.Path;
|
|
178
|
+
authenticated?: boolean;
|
|
179
|
+
callback?: never;
|
|
180
|
+
view?: never;
|
|
181
|
+
content_type: string;
|
|
157
182
|
} | {
|
|
158
|
-
|
|
183
|
+
data?: never;
|
|
184
|
+
file_path?: never;
|
|
185
|
+
authenticated?: false;
|
|
186
|
+
callback: ((stream: Stream, params: vlib.Schema.Entries.Infer<S>) => any);
|
|
187
|
+
view?: never;
|
|
159
188
|
content_type: string;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
_serve_options(stream: Stream): Promise<void>;
|
|
176
|
-
_serve(stream: Stream, status_code?: number): Promise<void>;
|
|
177
|
-
}
|
|
178
|
-
export declare namespace Endpoint {
|
|
179
|
-
/** Constructor options without the `_server` attribute. */
|
|
180
|
-
type Opts<S extends vlib.scheme.Infer.Scheme.S = {}> = ConstructorParameters<typeof Endpoint<S>>[0];
|
|
189
|
+
} | {
|
|
190
|
+
data?: never;
|
|
191
|
+
file_path?: never;
|
|
192
|
+
authenticated: true;
|
|
193
|
+
callback: ((stream: AuthStream, params: vlib.Schema.Entries.Infer<S>) => any);
|
|
194
|
+
view?: never;
|
|
195
|
+
content_type: string;
|
|
196
|
+
} | {
|
|
197
|
+
data?: never;
|
|
198
|
+
file_path?: never;
|
|
199
|
+
authenticated?: boolean;
|
|
200
|
+
callback?: never;
|
|
201
|
+
view: View | View.Opts;
|
|
202
|
+
content_type?: string;
|
|
203
|
+
});
|
|
181
204
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
4
|
*/
|
|
5
5
|
// ---------------------------------------------------------
|
|
6
6
|
// Imports.
|
|
@@ -8,13 +8,11 @@ import CleanCSS from 'clean-css';
|
|
|
8
8
|
import zlib from 'zlib';
|
|
9
9
|
import { View } from './view.js';
|
|
10
10
|
import * as vlib from "@vandenberghinc/vlib";
|
|
11
|
-
import {
|
|
11
|
+
import { ExternalError, InternalError } from "./errors/internal_external.js";
|
|
12
12
|
import { Status } from "./status.js";
|
|
13
|
-
import { logger } from "./logger.js";
|
|
14
13
|
import { RateLimits } from "./rate_limit.js";
|
|
15
14
|
import { Route } from './route.js';
|
|
16
15
|
import Meta from './meta.js';
|
|
17
|
-
const { log, error, warn } = logger;
|
|
18
16
|
const { debug } = vlib;
|
|
19
17
|
// ---------------------------------------------------------
|
|
20
18
|
// Endpoint
|
|
@@ -109,7 +107,6 @@ const { debug } = vlib;
|
|
|
109
107
|
*/
|
|
110
108
|
export class Endpoint {
|
|
111
109
|
// Static attributes.
|
|
112
|
-
static rate_limits = new Map();
|
|
113
110
|
static compressed_content_types = [
|
|
114
111
|
// Image formats (often already compressed)
|
|
115
112
|
"image/jpeg",
|
|
@@ -167,7 +164,7 @@ export class Endpoint {
|
|
|
167
164
|
/** Requires authentication */
|
|
168
165
|
authenticated;
|
|
169
166
|
/** Parameter scheme validator */
|
|
170
|
-
|
|
167
|
+
params_schema;
|
|
171
168
|
/** The default response headers */
|
|
172
169
|
headers;
|
|
173
170
|
/** Option 2) View based endpoint */
|
|
@@ -175,6 +172,8 @@ export class Endpoint {
|
|
|
175
172
|
/** Option 3) Data endpoint, raw */
|
|
176
173
|
data;
|
|
177
174
|
raw_data;
|
|
175
|
+
/** Option 4 Data endpoint by file path. */
|
|
176
|
+
file_path;
|
|
178
177
|
/** Content length & type */
|
|
179
178
|
content_length;
|
|
180
179
|
content_type;
|
|
@@ -188,17 +187,17 @@ export class Endpoint {
|
|
|
188
187
|
/** Private attributes */
|
|
189
188
|
_compress;
|
|
190
189
|
_cache;
|
|
191
|
-
_static_path;
|
|
192
|
-
_templates;
|
|
193
190
|
ip_whitelist;
|
|
194
191
|
_is_compressed;
|
|
195
192
|
_initialized = false;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
compress = "auto", cache = true, ip_whitelist = undefined, sitemap = undefined, robots = undefined, allow_unknown_params = false,
|
|
199
|
-
|
|
193
|
+
/** A reference to the server. */
|
|
194
|
+
server;
|
|
195
|
+
constructor({ method, endpoint, authenticated = false, rate_limit = undefined, params = undefined, compress = "auto", cache = true, ip_whitelist = undefined, sitemap = undefined, robots = undefined, allow_unknown_params = false, _is_static = false,
|
|
196
|
+
// mode options.
|
|
197
|
+
callback = undefined, view = undefined, data = undefined, file_path = undefined, content_type, // = "text/plain",
|
|
198
|
+
}) {
|
|
200
199
|
// Attributes.
|
|
201
|
-
this.route = new Route(method, endpoint);
|
|
200
|
+
this.route = new Route(method ?? "GET", endpoint);
|
|
202
201
|
this.id = this.route.id;
|
|
203
202
|
this.authenticated = authenticated;
|
|
204
203
|
if (this.callback === undefined) { // only assign when undefined, so derived classes can also define the callback function.
|
|
@@ -209,8 +208,7 @@ export class Endpoint {
|
|
|
209
208
|
this._cache = cache;
|
|
210
209
|
this.allow_sitemap = sitemap ?? true;
|
|
211
210
|
this.allow_robots = robots ?? true;
|
|
212
|
-
this.
|
|
213
|
-
this._static_path = _static_path == null ? undefined : new vlib.Path(_static_path).abs().str(); // use abs, is automatically assigned for static files.
|
|
211
|
+
this.file_path = file_path == null ? file_path : new vlib.Path(file_path).abs();
|
|
214
212
|
this.ip_whitelist = Array.isArray(ip_whitelist) ? ip_whitelist : undefined;
|
|
215
213
|
this.is_static = _is_static;
|
|
216
214
|
this.headers = [];
|
|
@@ -265,11 +263,22 @@ export class Endpoint {
|
|
|
265
263
|
this.rate_limit_groups = [];
|
|
266
264
|
if (Array.isArray(rate_limit)) {
|
|
267
265
|
rate_limit.forEach((item) => {
|
|
268
|
-
|
|
266
|
+
if (typeof item === "string") {
|
|
267
|
+
const group = RateLimits.groups.get(item);
|
|
268
|
+
if (!group)
|
|
269
|
+
throw new Error(`Rate limit group "${item}" does not exist.`);
|
|
270
|
+
this.rate_limit_groups.push(group);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
this.rate_limit_groups.push(RateLimits.add(item));
|
|
274
|
+
}
|
|
269
275
|
});
|
|
270
276
|
}
|
|
271
277
|
else if (typeof rate_limit === "string") {
|
|
272
|
-
|
|
278
|
+
const group = RateLimits.groups.get(rate_limit);
|
|
279
|
+
if (!group)
|
|
280
|
+
throw new Error(`Rate limit group "${rate_limit}" does not exist.`);
|
|
281
|
+
this.rate_limit_groups.push(group);
|
|
273
282
|
}
|
|
274
283
|
else if (typeof rate_limit === "object" && rate_limit != null) {
|
|
275
284
|
this.rate_limit_groups.push(RateLimits.add(rate_limit));
|
|
@@ -290,9 +299,9 @@ export class Endpoint {
|
|
|
290
299
|
}
|
|
291
300
|
// Initialize the parameter scheme validator.
|
|
292
301
|
if (params_scheme != null) {
|
|
293
|
-
this.
|
|
294
|
-
|
|
295
|
-
|
|
302
|
+
this.params_schema = new vlib.Schema.Validator({
|
|
303
|
+
schema: params_scheme,
|
|
304
|
+
unknown: !allow_unknown_params,
|
|
296
305
|
parent: this.route.id + ":",
|
|
297
306
|
throw: false,
|
|
298
307
|
});
|
|
@@ -301,7 +310,7 @@ export class Endpoint {
|
|
|
301
310
|
/** Initialize with server. */
|
|
302
311
|
_initialize(server) {
|
|
303
312
|
// Assign attribute.
|
|
304
|
-
this.
|
|
313
|
+
this.server = server;
|
|
305
314
|
// Initialize view.
|
|
306
315
|
if (this.view != null) {
|
|
307
316
|
this.view._initialize(server, this);
|
|
@@ -317,114 +326,42 @@ export class Endpoint {
|
|
|
317
326
|
}
|
|
318
327
|
return this;
|
|
319
328
|
}
|
|
320
|
-
/**
|
|
321
|
-
* Convert a RegExp into a readable path:
|
|
322
|
-
* - strips ^…$ anchors
|
|
323
|
-
* - unescapes `\/` → `/`
|
|
324
|
-
* - `(?<name>…)` → `:name`
|
|
325
|
-
* - anonymous captures `(…)` → `:param1`, `:param2`, …
|
|
326
|
-
*/
|
|
327
|
-
_stringify_endpoint_regex(re) {
|
|
328
|
-
let src = re.source;
|
|
329
|
-
// 1) strip anchors
|
|
330
|
-
src = src.replace(/^\^/, "").replace(/\$$/, "");
|
|
331
|
-
// 2) unescape slashes
|
|
332
|
-
src = src.replace(/\\\//g, "/");
|
|
333
|
-
// 3) named capture groups → :name
|
|
334
|
-
src = src.replace(/\(\?<([^>]+)>[^)]+\)/g, (_match, name) => `:${name}`);
|
|
335
|
-
// 4) anonymous captures → :paramN
|
|
336
|
-
let idx = 1;
|
|
337
|
-
src = src.replace(/\((?!\?)[^)]+\)/g, () => `:param${idx++}`);
|
|
338
|
-
return src;
|
|
339
|
-
}
|
|
340
|
-
// Load data by path.
|
|
341
|
-
_load_data_by_path(server) {
|
|
342
|
-
// Load data.
|
|
343
|
-
const path = new vlib.Path(this._static_path);
|
|
344
|
-
let data;
|
|
345
|
-
if (path.extension() === ".js") {
|
|
346
|
-
data = path.load_sync();
|
|
347
|
-
// @deprecated compile using vhighlight, now esbuild is used for bundling, callback is not supported yet.
|
|
348
|
-
// const hash = server.hash(data);
|
|
349
|
-
// // Check cache for restarts by file watcher.
|
|
350
|
-
// const {cache_path, cache_hash, cache_data} = Utils.get_compiled_cache(server.domain, "GET", path.str());
|
|
351
|
-
// if (cache_data && hash === cache_hash) {
|
|
352
|
-
// data = cache_data;
|
|
353
|
-
// }
|
|
354
|
-
// // Compile.
|
|
355
|
-
// else {
|
|
356
|
-
// const compiler = new vhighlight.JSCompiler({
|
|
357
|
-
// line_breaks: true,
|
|
358
|
-
// double_line_breaks: false,
|
|
359
|
-
// comments: false,
|
|
360
|
-
// white_space: false,
|
|
361
|
-
// })
|
|
362
|
-
// data = compiler.compile_code(data, path.str());
|
|
363
|
-
// // Cache for restarts.
|
|
364
|
-
// Utils.set_compiled_cache(cache_path, data, hash);
|
|
365
|
-
// }
|
|
366
|
-
}
|
|
367
|
-
else if (path.extension() === ".css") {
|
|
368
|
-
const minifier = new CleanCSS();
|
|
369
|
-
data = minifier.minify(path.load_sync()).styles;
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
data = path.load_sync({ type: "buffer" });
|
|
373
|
-
}
|
|
374
|
-
// Fill templates.
|
|
375
|
-
if (this._templates && typeof data === "string") {
|
|
376
|
-
data = Utils.fill_templates(data, this._templates);
|
|
377
|
-
}
|
|
378
|
-
// Assign.
|
|
379
|
-
this.data = data;
|
|
380
|
-
return this;
|
|
381
|
-
}
|
|
382
|
-
// Set default headers.
|
|
383
|
-
_set_headers(stream) {
|
|
384
|
-
this.headers.forEach((item) => {
|
|
385
|
-
stream.set_header(item[0], item[1]);
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
// Refresh for file watcher.
|
|
389
|
-
async _refresh(server) {
|
|
390
|
-
// Not in production.
|
|
391
|
-
if (server.production) {
|
|
392
|
-
throw new Error("This function is not designed for production mode.");
|
|
393
|
-
}
|
|
394
|
-
// Build html code of view.
|
|
395
|
-
if (this.view != null) {
|
|
396
|
-
await this.view._build_html();
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
329
|
// Initialize.
|
|
400
330
|
async _dynamic_initialize() {
|
|
401
|
-
if (!this.
|
|
331
|
+
if (!this.server) {
|
|
402
332
|
throw new Error(`Endpoint "${this.id}" is not initialized by the server yet.`);
|
|
403
333
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
334
|
+
/**
|
|
335
|
+
* Load data by file path
|
|
336
|
+
* @todo in the future we should not load all of the data but just send it to the client in chunks
|
|
337
|
+
* but we need to account for compression and content length when implementing this.
|
|
338
|
+
*/
|
|
339
|
+
if (this.file_path != null) {
|
|
340
|
+
this._load_data_by_path(this.server);
|
|
407
341
|
}
|
|
408
342
|
// Compression enabled.
|
|
409
|
-
if (this.
|
|
343
|
+
if (this.server.production && this.callback == null && this._compress) {
|
|
410
344
|
this._is_compressed = true;
|
|
411
345
|
if (this.data != null && (this.data instanceof Buffer || typeof this.data === "string")) {
|
|
412
346
|
this.raw_data = this.data;
|
|
413
347
|
this.data = zlib.gzipSync(this.data, { level: zlib.constants.Z_BEST_COMPRESSION });
|
|
414
348
|
this.content_length = this.data.length;
|
|
415
349
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
350
|
+
// cant compress view html here since it contains unique nonces.
|
|
351
|
+
// else if (this.view != null) {
|
|
352
|
+
// this.view.raw_html = this.view.html;
|
|
353
|
+
// this.view.html = zlib.gzipSync(this.view.html as any, {level: zlib.constants.Z_BEST_COMPRESSION});
|
|
354
|
+
// this.content_length = this.view.html.length;
|
|
355
|
+
// }
|
|
421
356
|
debug(2, this.route.id, ": ", "Compressed - content_length:", this.content_length);
|
|
422
357
|
}
|
|
423
358
|
// Set cache headers.
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (
|
|
359
|
+
if (!this.server.production) {
|
|
360
|
+
this._cache = false; // @todo @tmp
|
|
361
|
+
}
|
|
362
|
+
if (
|
|
363
|
+
// (this.callback == null || this.is_image_endpoint) &&
|
|
364
|
+
(typeof this._cache === "number" || this._cache === true)) {
|
|
428
365
|
if (this._cache === 1 || this._cache === true) {
|
|
429
366
|
this.headers.push(["Cache-Control", "max-age=86400"]);
|
|
430
367
|
}
|
|
@@ -450,6 +387,12 @@ export class Endpoint {
|
|
|
450
387
|
}
|
|
451
388
|
this._initialized = true;
|
|
452
389
|
}
|
|
390
|
+
// Set default headers.
|
|
391
|
+
_set_headers(stream) {
|
|
392
|
+
this.headers.forEach((item) => {
|
|
393
|
+
stream.set_header(item[0], item[1]);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
453
396
|
// Serve a client.
|
|
454
397
|
async _serve_options(stream) {
|
|
455
398
|
if (!this._initialized) {
|
|
@@ -458,14 +401,19 @@ export class Endpoint {
|
|
|
458
401
|
try {
|
|
459
402
|
// Check IP whitelist.
|
|
460
403
|
if (this.ip_whitelist && !this.ip_whitelist.includes(stream.ip)) {
|
|
461
|
-
stream.
|
|
404
|
+
stream.error({
|
|
462
405
|
status: Status.unauthorized,
|
|
463
|
-
|
|
406
|
+
type: "Unauthorized",
|
|
407
|
+
message: "Unauthorized.",
|
|
464
408
|
});
|
|
465
409
|
return;
|
|
466
410
|
}
|
|
467
411
|
// Set headers.
|
|
468
412
|
this._set_headers(stream);
|
|
413
|
+
// Compute content length on view & when not defined.
|
|
414
|
+
if (this.content_length == null && this.view != null) {
|
|
415
|
+
stream.set_header("Content-Length", (await this.view.content_length()).toString());
|
|
416
|
+
}
|
|
469
417
|
// Send.
|
|
470
418
|
stream.send({ status: Status.no_content });
|
|
471
419
|
}
|
|
@@ -480,7 +428,7 @@ export class Endpoint {
|
|
|
480
428
|
try {
|
|
481
429
|
// Check IP whitelist.
|
|
482
430
|
if (this.ip_whitelist && !this.ip_whitelist.includes(stream.ip)) {
|
|
483
|
-
log(2, this.route.id, ": ", "Blocking ip ", stream.ip, " per ip whitelist.");
|
|
431
|
+
this.server?.log(2, this.route.id, ": ", "Blocking ip ", stream.ip, " per ip whitelist.");
|
|
484
432
|
stream.send({
|
|
485
433
|
status: Status.unauthorized,
|
|
486
434
|
data: "Unauthorized.",
|
|
@@ -491,9 +439,9 @@ export class Endpoint {
|
|
|
491
439
|
this._set_headers(stream);
|
|
492
440
|
// Callback.
|
|
493
441
|
if (this.callback != null) {
|
|
494
|
-
log(3, this.route.id, ": ", "Serving endpoint in callback mode.");
|
|
495
|
-
if (this.
|
|
496
|
-
const { error, invalid_fields } = this.
|
|
442
|
+
this.server?.log(3, this.route.id, ": ", "Serving endpoint in callback mode.");
|
|
443
|
+
if (this.params_schema != null) {
|
|
444
|
+
const { error, invalid_fields } = this.params_schema.validate(stream.params ?? {});
|
|
497
445
|
if (error) {
|
|
498
446
|
stream.send({
|
|
499
447
|
status: Status.bad_request,
|
|
@@ -508,7 +456,7 @@ export class Endpoint {
|
|
|
508
456
|
}
|
|
509
457
|
try {
|
|
510
458
|
let promise;
|
|
511
|
-
if (this.
|
|
459
|
+
if (this.params_schema != null) {
|
|
512
460
|
promise = this.callback(stream, (stream.params ?? {}));
|
|
513
461
|
}
|
|
514
462
|
else {
|
|
@@ -530,19 +478,19 @@ export class Endpoint {
|
|
|
530
478
|
type: "InternalServerError",
|
|
531
479
|
});
|
|
532
480
|
}
|
|
533
|
-
error(`${this.id}: `, err); // after sending the response since this edits the error.
|
|
481
|
+
this.server?.log.error(`${this.id}: `, err); // after sending the response since this edits the error.
|
|
534
482
|
}
|
|
535
483
|
return;
|
|
536
484
|
}
|
|
537
485
|
// View.
|
|
538
486
|
else if (this.view != null) {
|
|
539
|
-
log(3, this.route.id, ": ", "Serving endpoint in view mode.");
|
|
540
|
-
this.view._serve(stream, status_code);
|
|
487
|
+
this.server?.log(3, this.route.id, ": ", "Serving endpoint in view mode.");
|
|
488
|
+
await this.view._serve(stream, status_code, { compress: this._compress });
|
|
541
489
|
return;
|
|
542
490
|
}
|
|
543
491
|
// Data.
|
|
544
492
|
else if (this.data != null) {
|
|
545
|
-
log(3, this.route.id, ": ", "Serving endpoint in data mode.");
|
|
493
|
+
this.server?.log(3, this.route.id, ": ", "Serving endpoint in data mode.");
|
|
546
494
|
stream.send({
|
|
547
495
|
status: status_code,
|
|
548
496
|
data: this.data,
|
|
@@ -558,4 +506,65 @@ export class Endpoint {
|
|
|
558
506
|
throw err; // must have another catch block here otherwise when an error occurs in here it is somehow not catched by the try and catch block from Server._serve which will cause the program to crash.
|
|
559
507
|
}
|
|
560
508
|
}
|
|
509
|
+
// Load data by path.
|
|
510
|
+
_load_data_by_path(server) {
|
|
511
|
+
if (!this.file_path) {
|
|
512
|
+
throw new Error(`Endpoint "${this.id}" has no file path assigned.`);
|
|
513
|
+
}
|
|
514
|
+
// Load data.
|
|
515
|
+
const path = new vlib.Path(this.file_path);
|
|
516
|
+
let data;
|
|
517
|
+
if (path.extension() === ".js") {
|
|
518
|
+
data = path.load_sync();
|
|
519
|
+
// @deprecated compile using vhighlight, now esbuild is used for bundling, callback is not supported yet.
|
|
520
|
+
// const hash = server.hash(data);
|
|
521
|
+
// // Check cache for restarts by file watcher.
|
|
522
|
+
// const {cache_path, cache_hash, cache_data} = Utils.get_compiled_cache(server.domain, "GET", path.str());
|
|
523
|
+
// if (cache_data && hash === cache_hash) {
|
|
524
|
+
// data = cache_data;
|
|
525
|
+
// }
|
|
526
|
+
// // Compile.
|
|
527
|
+
// else {
|
|
528
|
+
// const compiler = new vhighlight.JSCompiler({
|
|
529
|
+
// line_breaks: true,
|
|
530
|
+
// double_line_breaks: false,
|
|
531
|
+
// comments: false,
|
|
532
|
+
// white_space: false,
|
|
533
|
+
// })
|
|
534
|
+
// data = compiler.compile_code(data, path.str());
|
|
535
|
+
// // Cache for restarts.
|
|
536
|
+
// Utils.set_compiled_cache(cache_path, data, hash);
|
|
537
|
+
// }
|
|
538
|
+
}
|
|
539
|
+
else if (path.extension() === ".css") {
|
|
540
|
+
const minifier = new CleanCSS();
|
|
541
|
+
data = minifier.minify(path.load_sync()).styles;
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
data = path.load_sync({ type: "buffer" });
|
|
545
|
+
}
|
|
546
|
+
// Assign.
|
|
547
|
+
this.data = data;
|
|
548
|
+
return this;
|
|
549
|
+
}
|
|
561
550
|
}
|
|
551
|
+
// const e = new Endpoint({
|
|
552
|
+
// method: "POST",
|
|
553
|
+
// endpoint: "/api/docs/feedback",
|
|
554
|
+
// content_type: "application/json",
|
|
555
|
+
// params: {
|
|
556
|
+
// /** The user id. */
|
|
557
|
+
// uid: "string",
|
|
558
|
+
// /** The project name. */
|
|
559
|
+
// project: "string",
|
|
560
|
+
// /** The project version. */
|
|
561
|
+
// version: "string",
|
|
562
|
+
// /** The document id. */
|
|
563
|
+
// id: "string",
|
|
564
|
+
// /** Whether the feedback is positive or negative. */
|
|
565
|
+
// positive: "boolean",
|
|
566
|
+
// },
|
|
567
|
+
// rate_limit: "global",
|
|
568
|
+
// async callback(stream, params) {
|
|
569
|
+
// }
|
|
570
|
+
// })
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh.
|
|
4
|
+
*/
|
|
5
|
+
import type { Stream } from "../stream.js";
|
|
2
6
|
/**
|
|
3
7
|
* The base class for internal and external errors.
|
|
4
8
|
*/
|
|
@@ -7,40 +11,28 @@ declare class BaseError extends Error {
|
|
|
7
11
|
status: number;
|
|
8
12
|
data?: any[] | Record<string, any>;
|
|
9
13
|
invalid_fields: Record<string, string>;
|
|
10
|
-
constructor({ type, message, status, data, invalid_fields }: {
|
|
11
|
-
type?: string;
|
|
14
|
+
constructor({ type, message, status, data, invalid_fields, cause }: {
|
|
12
15
|
message: string;
|
|
16
|
+
type?: string;
|
|
13
17
|
status?: number;
|
|
14
|
-
data?: any
|
|
18
|
+
data?: any[] | Record<string, any>;
|
|
15
19
|
invalid_fields?: Record<string, string>;
|
|
20
|
+
cause?: unknown;
|
|
16
21
|
});
|
|
17
22
|
serve(stream: Stream): this;
|
|
18
23
|
}
|
|
19
24
|
/**
|
|
20
|
-
* Thrown
|
|
25
|
+
* Thrown internal errors are not presented to the user, isntead an internal server error message is shown.
|
|
21
26
|
*/
|
|
22
|
-
export declare class
|
|
27
|
+
export declare class InternalError extends BaseError {
|
|
23
28
|
constructor(args: ConstructorParameters<typeof BaseError>[0]);
|
|
24
29
|
serve(stream: Stream): this;
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
|
-
* Thrown
|
|
32
|
+
* Thrown external errors are presented to the user.
|
|
28
33
|
*/
|
|
29
|
-
export declare class
|
|
34
|
+
export declare class ExternalError extends BaseError {
|
|
30
35
|
constructor(args: ConstructorParameters<typeof BaseError>[0]);
|
|
31
36
|
serve(stream: Stream): this;
|
|
32
37
|
}
|
|
33
|
-
|
|
34
|
-
"APIError": typeof ExternalError;
|
|
35
|
-
fill_templates(data: string, templates: Record<string, any>, curly_style?: boolean): string;
|
|
36
|
-
get_currency_symbol(currency: string): string | null;
|
|
37
|
-
get_compiled_cache(domain: string, method: string, endpoint: string): {
|
|
38
|
-
cache_path: any;
|
|
39
|
-
cache_hash: any;
|
|
40
|
-
cache_data: any;
|
|
41
|
-
};
|
|
42
|
-
set_compiled_cache(path: any, data: string, hash: string): void;
|
|
43
|
-
}
|
|
44
|
-
export declare const Utils: UtilsInt;
|
|
45
|
-
export { Utils as utils };
|
|
46
|
-
export default Utils;
|
|
38
|
+
export {};
|