@vandenberghinc/volt 1.2.5 → 1.2.6
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/frontend/assets/admin/admin.png +0 -0
- package/frontend/assets/admin/password.webp +0 -0
- package/frontend/assets/icons/arrow.v1.webp +0 -0
- package/frontend/assets/icons/copy.webp +0 -0
- package/frontend/assets/payments/arrow.long.webp +0 -0
- package/frontend/assets/payments/arrow.long2.webp +0 -0
- package/frontend/assets/payments/cancelled.webp +0 -0
- package/frontend/assets/payments/check.sign.webp +0 -0
- package/frontend/assets/payments/check.webp +0 -0
- package/frontend/assets/payments/close.webp +0 -0
- package/frontend/assets/payments/error.webp +0 -0
- package/frontend/assets/payments/exclamation.webp +0 -0
- package/frontend/assets/payments/minus.webp +0 -0
- package/frontend/assets/payments/party.webp +0 -0
- package/frontend/assets/payments/plus.webp +0 -0
- package/frontend/assets/payments/shopping_cart.webp +0 -0
- package/frontend/assets/payments/trash.webp +0 -0
- package/package.json +5 -1
- package/.libris/config.json +0 -82
- package/backend/dist/cjs/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/cjs/backend/src/blacklist.js +0 -78
- package/backend/dist/cjs/backend/src/cli.d.ts +0 -2
- package/backend/dist/cjs/backend/src/cli.js +0 -198
- package/backend/dist/cjs/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/cjs/backend/src/database/collection.js +0 -3301
- package/backend/dist/cjs/backend/src/database/database.d.ts +0 -92
- package/backend/dist/cjs/backend/src/database/database.js +0 -170
- package/backend/dist/cjs/backend/src/database/document.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/document.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/cjs/backend/src/database/filters/filters.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +0 -443
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +0 -355
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/cjs/backend/src/database/flatten.js +0 -53
- package/backend/dist/cjs/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/flatten_test.js +0 -175
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.js +0 -1046
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/cjs/backend/src/database/quota/quota.js +0 -1108
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +0 -1087
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +0 -745
- package/backend/dist/cjs/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/cjs/backend/src/endpoint.js +0 -468
- package/backend/dist/cjs/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/cjs/backend/src/errors/index.js +0 -25
- package/backend/dist/cjs/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/cjs/backend/src/errors/internal_external.js +0 -95
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.js +0 -47
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/cjs/backend/src/errors/system_error.js +0 -436
- package/backend/dist/cjs/backend/src/events.d.ts +0 -97
- package/backend/dist/cjs/backend/src/events.js +0 -15
- package/backend/dist/cjs/backend/src/frontend.d.ts +0 -11
- package/backend/dist/cjs/backend/src/frontend.js +0 -37
- package/backend/dist/cjs/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/cjs/backend/src/image_endpoint.js +0 -185
- package/backend/dist/cjs/backend/src/index.d.ts +0 -23
- package/backend/dist/cjs/backend/src/index.js +0 -70
- package/backend/dist/cjs/backend/src/logger.d.ts +0 -5
- package/backend/dist/cjs/backend/src/logger.js +0 -15
- package/backend/dist/cjs/backend/src/meta.d.ts +0 -112
- package/backend/dist/cjs/backend/src/meta.js +0 -181
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/cjs/backend/src/payments/paddle.js +0 -1996
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.js +0 -295
- package/backend/dist/cjs/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/cjs/backend/src/payments/stripe/customers.js +0 -164
- package/backend/dist/cjs/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/cjs/backend/src/payments/stripe/error.js +0 -64
- package/backend/dist/cjs/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/cjs/backend/src/payments/stripe/events.js +0 -15
- package/backend/dist/cjs/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/meters.js +0 -230
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.js +0 -109
- package/backend/dist/cjs/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/cjs/backend/src/payments/stripe/products.js +0 -650
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.js +0 -468
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.js +0 -557
- package/backend/dist/cjs/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/cjs/backend/src/payments/stripe/utils.js +0 -118
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.js +0 -627
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/browser.js +0 -15
- package/backend/dist/cjs/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/cjs/backend/src/plugins/communication.js +0 -196
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +0 -381
- package/backend/dist/cjs/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/cjs/backend/src/plugins/mail/ui.js +0 -1370
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/pdf.js +0 -1456
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.js +0 -116
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/cjs/backend/src/rate_limit.js +0 -543
- package/backend/dist/cjs/backend/src/route.d.ts +0 -39
- package/backend/dist/cjs/backend/src/route.js +0 -172
- package/backend/dist/cjs/backend/src/server.d.ts +0 -502
- package/backend/dist/cjs/backend/src/server.js +0 -1713
- package/backend/dist/cjs/backend/src/server.old.d.ts +0 -594
- package/backend/dist/cjs/backend/src/server.old.js +0 -2058
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/cjs/backend/src/splash_screen.js +0 -119
- package/backend/dist/cjs/backend/src/status.d.ts +0 -89
- package/backend/dist/cjs/backend/src/status.js +0 -211
- package/backend/dist/cjs/backend/src/stream.d.ts +0 -494
- package/backend/dist/cjs/backend/src/stream.js +0 -1370
- package/backend/dist/cjs/backend/src/users.d.ts +0 -926
- package/backend/dist/cjs/backend/src/users.js +0 -2223
- package/backend/dist/cjs/backend/src/utils.d.ts +0 -22
- package/backend/dist/cjs/backend/src/utils.js +0 -626
- package/backend/dist/cjs/backend/src/view.d.ts +0 -115
- package/backend/dist/cjs/backend/src/view.js +0 -519
- package/backend/dist/cjs/backend/src/vinc.d.ts +0 -6
- package/backend/dist/cjs/backend/src/vinc.js +0 -40
- package/backend/dist/cjs/backend/src/volt.d.ts +0 -24
- package/backend/dist/cjs/backend/src/volt.js +0 -72
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/cjs/frontend/src/modules/request.js +0 -99
- package/backend/dist/cjs/package.json +0 -1
- package/backend/dist/esm/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/esm/backend/src/blacklist.js +0 -52
- package/backend/dist/esm/backend/src/cli.d.ts +0 -2
- package/backend/dist/esm/backend/src/cli.js +0 -211
- package/backend/dist/esm/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/esm/backend/src/database/collection.js +0 -3779
- package/backend/dist/esm/backend/src/database/database.d.ts +0 -92
- package/backend/dist/esm/backend/src/database/database.js +0 -214
- package/backend/dist/esm/backend/src/database/document.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/document.js +0 -558
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/esm/backend/src/database/filters/filters.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +0 -3
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +0 -505
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +0 -712
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +0 -44
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +0 -415
- package/backend/dist/esm/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/esm/backend/src/database/flatten.js +0 -22
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/flatten_test.js +0 -174
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.js +0 -1155
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/esm/backend/src/database/quota/quota.js +0 -1219
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +0 -1242
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +0 -810
- package/backend/dist/esm/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/esm/backend/src/endpoint.js +0 -479
- package/backend/dist/esm/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/esm/backend/src/errors/index.js +0 -7
- package/backend/dist/esm/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/esm/backend/src/errors/internal_external.js +0 -86
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +0 -33
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/esm/backend/src/errors/system_error.js +0 -444
- package/backend/dist/esm/backend/src/events.d.ts +0 -97
- package/backend/dist/esm/backend/src/events.js +0 -5
- package/backend/dist/esm/backend/src/frontend.d.ts +0 -11
- package/backend/dist/esm/backend/src/frontend.js +0 -12
- package/backend/dist/esm/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/esm/backend/src/image_endpoint.js +0 -196
- package/backend/dist/esm/backend/src/index.d.ts +0 -23
- package/backend/dist/esm/backend/src/index.js +0 -26
- package/backend/dist/esm/backend/src/logger.d.ts +0 -5
- package/backend/dist/esm/backend/src/logger.js +0 -8
- package/backend/dist/esm/backend/src/meta.d.ts +0 -112
- package/backend/dist/esm/backend/src/meta.js +0 -152
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/esm/backend/src/payments/paddle.js +0 -2276
- package/backend/dist/esm/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/esm/backend/src/payments/stripe/checkout.js +0 -356
- package/backend/dist/esm/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/esm/backend/src/payments/stripe/customers.js +0 -193
- package/backend/dist/esm/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/esm/backend/src/payments/stripe/error.js +0 -51
- package/backend/dist/esm/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/esm/backend/src/payments/stripe/events.js +0 -5
- package/backend/dist/esm/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/meters.js +0 -318
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.js +0 -135
- package/backend/dist/esm/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/esm/backend/src/payments/stripe/products.js +0 -896
- package/backend/dist/esm/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/esm/backend/src/payments/stripe/stripe.js +0 -464
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.js +0 -754
- package/backend/dist/esm/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/esm/backend/src/payments/stripe/utils.js +0 -131
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.js +0 -752
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/browser.js +0 -170
- package/backend/dist/esm/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/esm/backend/src/plugins/communication.js +0 -169
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +0 -396
- package/backend/dist/esm/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/esm/backend/src/plugins/mail/ui.js +0 -1400
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/pdf.js +0 -1694
- package/backend/dist/esm/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/esm/backend/src/plugins/thread_monitor.js +0 -120
- package/backend/dist/esm/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/esm/backend/src/rate_limit.js +0 -667
- package/backend/dist/esm/backend/src/route.d.ts +0 -39
- package/backend/dist/esm/backend/src/route.js +0 -222
- package/backend/dist/esm/backend/src/server.d.ts +0 -502
- package/backend/dist/esm/backend/src/server.js +0 -2034
- package/backend/dist/esm/backend/src/server.old.d.ts +0 -594
- package/backend/dist/esm/backend/src/server.old.js +0 -2630
- package/backend/dist/esm/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/esm/backend/src/splash_screen.js +0 -156
- package/backend/dist/esm/backend/src/status.d.ts +0 -89
- package/backend/dist/esm/backend/src/status.js +0 -213
- package/backend/dist/esm/backend/src/stream.d.ts +0 -494
- package/backend/dist/esm/backend/src/stream.js +0 -1611
- package/backend/dist/esm/backend/src/users.d.ts +0 -926
- package/backend/dist/esm/backend/src/users.js +0 -2423
- package/backend/dist/esm/backend/src/utils.d.ts +0 -22
- package/backend/dist/esm/backend/src/utils.js +0 -463
- package/backend/dist/esm/backend/src/view.d.ts +0 -115
- package/backend/dist/esm/backend/src/view.js +0 -584
- package/backend/dist/esm/backend/src/vinc.d.ts +0 -6
- package/backend/dist/esm/backend/src/vinc.js +0 -6
- package/backend/dist/esm/backend/src/volt.d.ts +0 -24
- package/backend/dist/esm/backend/src/volt.js +0 -27
- package/backend/dist/esm/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/esm/frontend/src/modules/request.js +0 -117
- package/backend/old/file_watcher.ts +0 -359
- package/backend/old/request.deprc.js +0 -626
- package/backend/old/response.deprc.js +0 -354
- package/frontend/dist/backend/src/database/collection.d.ts +0 -1765
- package/frontend/dist/backend/src/database/collection.js +0 -3779
- package/frontend/dist/backend/src/database/database.d.ts +0 -92
- package/frontend/dist/backend/src/database/database.js +0 -214
- package/frontend/dist/backend/src/database/filters/filters.d.ts +0 -6
- package/frontend/dist/backend/src/database/filters/filters.js +0 -1
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/frontend/dist/backend/src/database/filters/strict_filter.js +0 -3
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +0 -5
- package/frontend/dist/backend/src/database/flatten.d.ts +0 -78
- package/frontend/dist/backend/src/database/flatten.js +0 -22
- package/frontend/dist/backend/src/endpoint.d.ts +0 -346
- package/frontend/dist/backend/src/endpoint.js +0 -479
- package/frontend/dist/backend/src/errors/index.d.ts +0 -7
- package/frontend/dist/backend/src/errors/index.js +0 -7
- package/frontend/dist/backend/src/errors/internal_external.d.ts +0 -52
- package/frontend/dist/backend/src/errors/internal_external.js +0 -86
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +0 -33
- package/frontend/dist/backend/src/errors/system_error.d.ts +0 -261
- package/frontend/dist/backend/src/errors/system_error.js +0 -444
- package/frontend/dist/backend/src/events.d.ts +0 -97
- package/frontend/dist/backend/src/events.js +0 -5
- package/frontend/dist/backend/src/frontend.d.ts +0 -11
- package/frontend/dist/backend/src/frontend.js +0 -12
- package/frontend/dist/backend/src/image_endpoint.d.ts +0 -44
- package/frontend/dist/backend/src/image_endpoint.js +0 -196
- package/frontend/dist/backend/src/meta.d.ts +0 -112
- package/frontend/dist/backend/src/meta.js +0 -152
- package/frontend/dist/backend/src/payments/paddle.d.ts +0 -329
- package/frontend/dist/backend/src/payments/paddle.js +0 -2276
- package/frontend/dist/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/frontend/dist/backend/src/payments/stripe/checkout.js +0 -356
- package/frontend/dist/backend/src/payments/stripe/customers.d.ts +0 -17
- package/frontend/dist/backend/src/payments/stripe/customers.js +0 -193
- package/frontend/dist/backend/src/payments/stripe/error.d.ts +0 -74
- package/frontend/dist/backend/src/payments/stripe/error.js +0 -51
- package/frontend/dist/backend/src/payments/stripe/events.d.ts +0 -155
- package/frontend/dist/backend/src/payments/stripe/events.js +0 -5
- package/frontend/dist/backend/src/payments/stripe/meters.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/meters.js +0 -318
- package/frontend/dist/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/frontend/dist/backend/src/payments/stripe/payment_methods.js +0 -135
- package/frontend/dist/backend/src/payments/stripe/products.d.ts +0 -519
- package/frontend/dist/backend/src/payments/stripe/products.js +0 -896
- package/frontend/dist/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/frontend/dist/backend/src/payments/stripe/stripe.js +0 -464
- package/frontend/dist/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/frontend/dist/backend/src/payments/stripe/subscriptions.js +0 -754
- package/frontend/dist/backend/src/payments/stripe/utils.d.ts +0 -63
- package/frontend/dist/backend/src/payments/stripe/utils.js +0 -131
- package/frontend/dist/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/webhooks.js +0 -752
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +0 -255
- package/frontend/dist/backend/src/plugins/mail/mail.js +0 -396
- package/frontend/dist/backend/src/plugins/mail/ui.d.ts +0 -297
- package/frontend/dist/backend/src/plugins/mail/ui.js +0 -1400
- package/frontend/dist/backend/src/rate_limit.d.ts +0 -148
- package/frontend/dist/backend/src/rate_limit.js +0 -667
- package/frontend/dist/backend/src/route.d.ts +0 -39
- package/frontend/dist/backend/src/route.js +0 -222
- package/frontend/dist/backend/src/server.d.ts +0 -502
- package/frontend/dist/backend/src/server.js +0 -2034
- package/frontend/dist/backend/src/splash_screen.d.ts +0 -93
- package/frontend/dist/backend/src/splash_screen.js +0 -156
- package/frontend/dist/backend/src/status.d.ts +0 -89
- package/frontend/dist/backend/src/status.js +0 -213
- package/frontend/dist/backend/src/stream.d.ts +0 -494
- package/frontend/dist/backend/src/stream.js +0 -1611
- package/frontend/dist/backend/src/users.d.ts +0 -926
- package/frontend/dist/backend/src/users.js +0 -2423
- package/frontend/dist/backend/src/utils.d.ts +0 -22
- package/frontend/dist/backend/src/utils.js +0 -463
- package/frontend/dist/backend/src/view.d.ts +0 -115
- package/frontend/dist/backend/src/view.js +0 -584
- package/frontend/dist/frontend/src/elements/base.d.ts +0 -3743
- package/frontend/dist/frontend/src/elements/base.js +0 -12151
- package/frontend/dist/frontend/src/elements/module.d.ts +0 -95
- package/frontend/dist/frontend/src/elements/module.js +0 -216
- package/frontend/dist/frontend/src/elements/register_element.d.ts +0 -3
- package/frontend/dist/frontend/src/elements/register_element.js +0 -22
- package/frontend/dist/frontend/src/elements/resize_query_manager.d.ts +0 -0
- package/frontend/dist/frontend/src/elements/resize_query_manager.js +0 -150
- package/frontend/dist/frontend/src/elements/types.d.ts +0 -52
- package/frontend/dist/frontend/src/elements/types.js +0 -5
- package/frontend/dist/frontend/src/index.d.ts +0 -21
- package/frontend/dist/frontend/src/index.js +0 -29
- package/frontend/dist/frontend/src/modules/attachment.d.ts +0 -126
- package/frontend/dist/frontend/src/modules/attachment.js +0 -306
- package/frontend/dist/frontend/src/modules/auth.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/auth.js +0 -80
- package/frontend/dist/frontend/src/modules/color.d.ts +0 -160
- package/frontend/dist/frontend/src/modules/color.js +0 -316
- package/frontend/dist/frontend/src/modules/compression.d.ts +0 -39
- package/frontend/dist/frontend/src/modules/compression.js +0 -102
- package/frontend/dist/frontend/src/modules/cookies.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/cookies.js +0 -143
- package/frontend/dist/frontend/src/modules/events.d.ts +0 -31
- package/frontend/dist/frontend/src/modules/events.js +0 -79
- package/frontend/dist/frontend/src/modules/google.d.ts +0 -23
- package/frontend/dist/frontend/src/modules/google.js +0 -52
- package/frontend/dist/frontend/src/modules/meta.d.ts +0 -14
- package/frontend/dist/frontend/src/modules/meta.js +0 -48
- package/frontend/dist/frontend/src/modules/paddle.d.ts +0 -1207
- package/frontend/dist/frontend/src/modules/paddle.js +0 -2594
- package/frontend/dist/frontend/src/modules/request.d.ts +0 -70
- package/frontend/dist/frontend/src/modules/request.js +0 -117
- package/frontend/dist/frontend/src/modules/settings.d.ts +0 -3
- package/frontend/dist/frontend/src/modules/settings.js +0 -5
- package/frontend/dist/frontend/src/modules/statics.d.ts +0 -21
- package/frontend/dist/frontend/src/modules/statics.js +0 -43
- package/frontend/dist/frontend/src/modules/stripe/cart.d.ts +0 -112
- package/frontend/dist/frontend/src/modules/stripe/cart.js +0 -321
- package/frontend/dist/frontend/src/modules/stripe/checkout.d.ts +0 -7
- package/frontend/dist/frontend/src/modules/stripe/checkout.js +0 -37
- package/frontend/dist/frontend/src/modules/stripe/index.m.d.ts +0 -6
- package/frontend/dist/frontend/src/modules/stripe/index.m.js +0 -6
- package/frontend/dist/frontend/src/modules/stripe/payments.d.ts +0 -58
- package/frontend/dist/frontend/src/modules/stripe/payments.js +0 -92
- package/frontend/dist/frontend/src/modules/support.d.ts +0 -30
- package/frontend/dist/frontend/src/modules/support.js +0 -53
- package/frontend/dist/frontend/src/modules/theme.d.ts +0 -133
- package/frontend/dist/frontend/src/modules/theme.js +0 -406
- package/frontend/dist/frontend/src/modules/themes.d.ts +0 -12
- package/frontend/dist/frontend/src/modules/themes.js +0 -22
- package/frontend/dist/frontend/src/modules/user.d.ts +0 -164
- package/frontend/dist/frontend/src/modules/user.js +0 -270
- package/frontend/dist/frontend/src/modules/utils.d.ts +0 -176
- package/frontend/dist/frontend/src/modules/utils.js +0 -569
- package/frontend/dist/frontend/src/types/gradient.d.ts +0 -29
- package/frontend/dist/frontend/src/types/gradient.js +0 -79
- package/frontend/dist/frontend/src/ui/border_button.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/border_button.js +0 -228
- package/frontend/dist/frontend/src/ui/button.d.ts +0 -241
- package/frontend/dist/frontend/src/ui/button.js +0 -682
- package/frontend/dist/frontend/src/ui/canvas.d.ts +0 -138
- package/frontend/dist/frontend/src/ui/canvas.js +0 -444
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +0 -74
- package/frontend/dist/frontend/src/ui/checkbox.js +0 -321
- package/frontend/dist/frontend/src/ui/code.d.ts +0 -235
- package/frontend/dist/frontend/src/ui/code.js +0 -1007
- package/frontend/dist/frontend/src/ui/context_menu.d.ts +0 -36
- package/frontend/dist/frontend/src/ui/context_menu.js +0 -205
- package/frontend/dist/frontend/src/ui/css.d.ts +0 -16
- package/frontend/dist/frontend/src/ui/css.js +0 -48
- package/frontend/dist/frontend/src/ui/divider.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/divider.js +0 -78
- package/frontend/dist/frontend/src/ui/dropdown.d.ts +0 -176
- package/frontend/dist/frontend/src/ui/dropdown.js +0 -481
- package/frontend/dist/frontend/src/ui/for_each.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/for_each.js +0 -92
- package/frontend/dist/frontend/src/ui/form.d.ts +0 -34
- package/frontend/dist/frontend/src/ui/form.js +0 -233
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/frame_modes.js +0 -108
- package/frontend/dist/frontend/src/ui/google_map.d.ts +0 -24
- package/frontend/dist/frontend/src/ui/google_map.js +0 -106
- package/frontend/dist/frontend/src/ui/gradient.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/gradient.js +0 -131
- package/frontend/dist/frontend/src/ui/image.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/image.js +0 -576
- package/frontend/dist/frontend/src/ui/input.d.ts +0 -392
- package/frontend/dist/frontend/src/ui/input.js +0 -1201
- package/frontend/dist/frontend/src/ui/link.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/link.js +0 -140
- package/frontend/dist/frontend/src/ui/list.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/list.js +0 -170
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +0 -80
- package/frontend/dist/frontend/src/ui/loader_button.js +0 -193
- package/frontend/dist/frontend/src/ui/loaders.d.ts +0 -57
- package/frontend/dist/frontend/src/ui/loaders.js +0 -157
- package/frontend/dist/frontend/src/ui/popup.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/popup.js +0 -510
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +0 -44
- package/frontend/dist/frontend/src/ui/pseudo.js +0 -154
- package/frontend/dist/frontend/src/ui/scroller.d.ts +0 -105
- package/frontend/dist/frontend/src/ui/scroller.js +0 -1253
- package/frontend/dist/frontend/src/ui/slider.d.ts +0 -45
- package/frontend/dist/frontend/src/ui/slider.js +0 -217
- package/frontend/dist/frontend/src/ui/spacer.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/spacer.js +0 -78
- package/frontend/dist/frontend/src/ui/span.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/span.js +0 -73
- package/frontend/dist/frontend/src/ui/stack.d.ts +0 -66
- package/frontend/dist/frontend/src/ui/stack.js +0 -335
- package/frontend/dist/frontend/src/ui/steps.d.ts +0 -131
- package/frontend/dist/frontend/src/ui/steps.js +0 -308
- package/frontend/dist/frontend/src/ui/style.d.ts +0 -17
- package/frontend/dist/frontend/src/ui/style.js +0 -73
- package/frontend/dist/frontend/src/ui/switch.d.ts +0 -69
- package/frontend/dist/frontend/src/ui/switch.js +0 -357
- package/frontend/dist/frontend/src/ui/table.d.ts +0 -100
- package/frontend/dist/frontend/src/ui/table.js +0 -405
- package/frontend/dist/frontend/src/ui/tabs.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/tabs.js +0 -424
- package/frontend/dist/frontend/src/ui/text.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/text.js +0 -83
- package/frontend/dist/frontend/src/ui/title.d.ts +0 -91
- package/frontend/dist/frontend/src/ui/title.js +0 -272
- package/frontend/dist/frontend/src/ui/ui.d.ts +0 -35
- package/frontend/dist/frontend/src/ui/ui.js +0 -38
- package/frontend/dist/frontend/src/ui/view.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/view.js +0 -88
- package/frontend/dist/frontend/src/volt.d.ts +0 -20
- package/frontend/dist/frontend/src/volt.js +0 -27
- package/frontend/examples/theme/theme.ts +0 -58
- package/frontend/tools/bundle_d_ts.js +0 -71
- package/frontend/tools/convert_to_jsdoc_input.txt +0 -9452
- package/frontend/tools/convert_to_jsdoc_output.txt +0 -7626
- package/frontend/tools/convert_to_jsdoc_tmp.js +0 -345
- package/frontend/tools/scan_mixed_imports.js +0 -69
- /package/frontend/{dist/frontend/src/css → css}/adyen.css +0 -0
- /package/frontend/{dist/frontend/src/css → css}/volt.css +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
export * from "./errors/index.js";
|
|
6
|
-
export * from "./status.js";
|
|
7
|
-
export * from "./meta.js";
|
|
8
|
-
export * from "./splash_screen.js";
|
|
9
|
-
export * from "./view.js";
|
|
10
|
-
export * from "./stream.js";
|
|
11
|
-
export * from "./endpoint.js";
|
|
12
|
-
export * from "./server.js";
|
|
13
|
-
export * from "./database/database.js";
|
|
14
|
-
export * from "./database/document.js";
|
|
15
|
-
export * from "./database/collection.js";
|
|
16
|
-
export * from "./database/quota/quota.js";
|
|
17
|
-
export * from "./database/quota/safe_int.js";
|
|
18
|
-
export * from "./rate_limit.js";
|
|
19
|
-
export * from "./logger.js";
|
|
20
|
-
export * from "./events.js";
|
|
21
|
-
export { User } from "./users.js";
|
|
22
|
-
export * as Mail from "./plugins/mail/ui.js";
|
|
23
|
-
export * from "./frontend.js";
|
|
24
|
-
export type { Request } from "../../frontend/src/modules/request.js";
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var stdin_exports = {};
|
|
30
|
-
__export(stdin_exports, {
|
|
31
|
-
Mail: () => Mail
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
34
|
-
__reExport(stdin_exports, require("./errors/index.js"), module.exports);
|
|
35
|
-
__reExport(stdin_exports, require("./status.js"), module.exports);
|
|
36
|
-
__reExport(stdin_exports, require("./meta.js"), module.exports);
|
|
37
|
-
__reExport(stdin_exports, require("./splash_screen.js"), module.exports);
|
|
38
|
-
__reExport(stdin_exports, require("./view.js"), module.exports);
|
|
39
|
-
__reExport(stdin_exports, require("./stream.js"), module.exports);
|
|
40
|
-
__reExport(stdin_exports, require("./endpoint.js"), module.exports);
|
|
41
|
-
__reExport(stdin_exports, require("./server.js"), module.exports);
|
|
42
|
-
__reExport(stdin_exports, require("./database/database.js"), module.exports);
|
|
43
|
-
__reExport(stdin_exports, require("./database/document.js"), module.exports);
|
|
44
|
-
__reExport(stdin_exports, require("./database/collection.js"), module.exports);
|
|
45
|
-
__reExport(stdin_exports, require("./database/quota/quota.js"), module.exports);
|
|
46
|
-
__reExport(stdin_exports, require("./database/quota/safe_int.js"), module.exports);
|
|
47
|
-
__reExport(stdin_exports, require("./rate_limit.js"), module.exports);
|
|
48
|
-
__reExport(stdin_exports, require("./logger.js"), module.exports);
|
|
49
|
-
__reExport(stdin_exports, require("./events.js"), module.exports);
|
|
50
|
-
var Mail = __toESM(require("./plugins/mail/ui.js"));
|
|
51
|
-
__reExport(stdin_exports, require("./frontend.js"), module.exports);
|
|
52
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
-
0 && (module.exports = {
|
|
54
|
-
Mail,
|
|
55
|
-
...require("./errors/index.js"),
|
|
56
|
-
...require("./status.js"),
|
|
57
|
-
...require("./meta.js"),
|
|
58
|
-
...require("./splash_screen.js"),
|
|
59
|
-
...require("./view.js"),
|
|
60
|
-
...require("./stream.js"),
|
|
61
|
-
...require("./endpoint.js"),
|
|
62
|
-
...require("./server.js"),
|
|
63
|
-
...require("./database/database.js"),
|
|
64
|
-
...require("./database/document.js"),
|
|
65
|
-
...require("./database/collection.js"),
|
|
66
|
-
...require("./database/quota/quota.js"),
|
|
67
|
-
...require("./database/quota/safe_int.js"),
|
|
68
|
-
...require("./rate_limit.js"),
|
|
69
|
-
...require("./logger.js"),
|
|
70
|
-
...require("./events.js"),
|
|
71
|
-
...require("./frontend.js")
|
|
72
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh.
|
|
4
|
-
*/
|
|
5
|
-
import type { Server } from "../../../backend/src/server.js";
|
|
6
|
-
import type { APIError } from "../../../backend/src/stream.js";
|
|
7
|
-
export declare namespace Request {
|
|
8
|
-
/** The method type. */
|
|
9
|
-
export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
10
|
-
/** The response data template base. */
|
|
11
|
-
type ResponseBodyBase = unknown | null | undefined | number | boolean | string | any[] | Record<string, any>;
|
|
12
|
-
/** The request data template base. */
|
|
13
|
-
type RequestBodyBase = unknown | null | undefined | string | Record<string, any>;
|
|
14
|
-
/**
|
|
15
|
-
* The detailed generic type for providing info for the {@link request} function.
|
|
16
|
-
*/
|
|
17
|
-
export type Info<Method extends Request.Method, Endpoint extends string | RegExp, ParamsBody extends RequestBodyBase, SuccessBody extends ResponseBodyBase, ErrorBody extends ResponseBodyBase> = {
|
|
18
|
-
/** The HTTP method for the request. */
|
|
19
|
-
method: Method;
|
|
20
|
-
/** The route's endpoint or full url with domain, string or regex. */
|
|
21
|
-
endpoint: Endpoint;
|
|
22
|
-
/** The request payload (body) type. */
|
|
23
|
-
payload: ParamsBody;
|
|
24
|
-
/** The success result body type. */
|
|
25
|
-
result: SuccessBody;
|
|
26
|
-
/** The error result body type. */
|
|
27
|
-
error: ErrorBody;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Create request info from a registered endpoint.
|
|
31
|
-
*/
|
|
32
|
-
export type InfoFromEndpoint<E extends Server.RegisteredEndpoint<any, any, any>, SuccessBody extends ResponseBodyBase = undefined, ErrorBody extends ResponseBodyBase = undefined> = E extends Server.RegisteredEndpoint<infer M, infer EP, infer P> ? Info<M extends undefined ? "GET" : M extends Method ? M : never, EP extends string ? EP : never, P, SuccessBody, ErrorBody> : never;
|
|
33
|
-
/** The request options. */
|
|
34
|
-
export interface Opts<Method extends Request.Method = "GET", Url extends string | RegExp = string, // use regex for backend support.
|
|
35
|
-
RequestBody extends RequestBodyBase = unknown> {
|
|
36
|
-
method?: Method;
|
|
37
|
-
url: Url;
|
|
38
|
-
data?: RequestBody;
|
|
39
|
-
json?: boolean;
|
|
40
|
-
credentials?: RequestCredentials;
|
|
41
|
-
headers?: Record<string, string>;
|
|
42
|
-
}
|
|
43
|
-
/** The returned result */
|
|
44
|
-
export type Result<SuccessBody extends ResponseBodyBase = unknown, ErrorBody extends ResponseBodyBase = unknown> = {
|
|
45
|
-
/** The request status. */
|
|
46
|
-
status: number;
|
|
47
|
-
} & ({
|
|
48
|
-
/** The api error from the backend {@link Stream.error}. */
|
|
49
|
-
error: APIError;
|
|
50
|
-
/** The error response body, always optional in case of body parsing failure. */
|
|
51
|
-
data?: ErrorBody;
|
|
52
|
-
} | {
|
|
53
|
-
/** The success response body. */
|
|
54
|
-
data: SuccessBody;
|
|
55
|
-
/** No API error from the backend {@link Stream.error} was found. */
|
|
56
|
-
error?: never;
|
|
57
|
-
});
|
|
58
|
-
/** The returned result by endpoint {@link Info} */
|
|
59
|
-
export type ResultFromInfo<Info extends Request.Info<any, any, any, any, any>> = Info extends Request.Info<any, any, any, infer S, infer E> ? Result<S, E> : never;
|
|
60
|
-
/** A promise to {@link Result}, for convenience. */
|
|
61
|
-
export type ResultPromise<SuccessBody extends ResponseBodyBase = unknown, ErrorBody extends ResponseBodyBase = unknown> = Promise<Result<SuccessBody, ErrorBody>>;
|
|
62
|
-
/** A promise to {@link Result} from endpoint {@link Info}, for convenience. */
|
|
63
|
-
export type ResultPromiseFromInfo<Info extends Request.Info<any, any, any, any, any>> = Info extends Request.Info<any, any, any, infer S, infer E> ? Promise<Result<S, E>> : never;
|
|
64
|
-
export {};
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Make a request with a specific generic typing, optionally passing
|
|
68
|
-
* the request method, endpoint, request body and response body types.
|
|
69
|
-
*/
|
|
70
|
-
export declare function request<Info extends Request.Info<any, any, any, any, any>>(options: Info extends Request.Info<infer M, infer E, infer P, any, any> ? Request.Opts<M, E, P> : never): Promise<Info extends Request.Info<any, any, any, infer S, infer E> ? Request.Result<S, E> : never>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var stdin_exports = {};
|
|
19
|
-
__export(stdin_exports, {
|
|
20
|
-
request: () => request
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
-
async function request(options) {
|
|
24
|
-
const { method = "GET", url = null, data = null, json = true, credentials = "same-origin", headers = {} } = options;
|
|
25
|
-
if (url instanceof RegExp) {
|
|
26
|
-
throw Error("The 'url' parameter cannot be a RegExp.");
|
|
27
|
-
}
|
|
28
|
-
if (json && data != null && !headers["Content-Type"]) {
|
|
29
|
-
headers["Content-Type"] = "application/json";
|
|
30
|
-
}
|
|
31
|
-
let finalUrl = url;
|
|
32
|
-
let body;
|
|
33
|
-
if (data != null && typeof data === "object") {
|
|
34
|
-
if (method.toUpperCase() === "GET") {
|
|
35
|
-
finalUrl = `${url}?${new URLSearchParams(data).toString()}`;
|
|
36
|
-
} else {
|
|
37
|
-
body = JSON.stringify(data);
|
|
38
|
-
}
|
|
39
|
-
} else if (data != null) {
|
|
40
|
-
body = String(data);
|
|
41
|
-
}
|
|
42
|
-
const init = { method, credentials, headers };
|
|
43
|
-
if (body !== void 0)
|
|
44
|
-
init.body = body;
|
|
45
|
-
try {
|
|
46
|
-
const response = await fetch(finalUrl, init);
|
|
47
|
-
const status = response.status;
|
|
48
|
-
let payload;
|
|
49
|
-
const clone = response.clone();
|
|
50
|
-
if (json) {
|
|
51
|
-
try {
|
|
52
|
-
payload = await response.json();
|
|
53
|
-
} catch (e) {
|
|
54
|
-
console.log("[debug] Unable to parse a json from response:", await clone.text(), "- Error: ", JSON.stringify(e, null, 4));
|
|
55
|
-
console.log("[debug] Response:", response);
|
|
56
|
-
return {
|
|
57
|
-
status,
|
|
58
|
-
error: { message: `Failed to parse JSON response: ${e.message}` }
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
try {
|
|
63
|
-
payload = await response.text();
|
|
64
|
-
} catch (e) {
|
|
65
|
-
return {
|
|
66
|
-
status,
|
|
67
|
-
error: { message: `Failed to parse text response: ${e.message}` }
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if (!response.ok) {
|
|
72
|
-
if (payload && typeof payload === "object" && payload.error && typeof payload.error === "object" && typeof payload.error.message === "string") {
|
|
73
|
-
return {
|
|
74
|
-
status,
|
|
75
|
-
error: {
|
|
76
|
-
message: payload.error.message,
|
|
77
|
-
type: typeof payload.error.type === "string" ? payload.error.type : void 0,
|
|
78
|
-
invalid_fields: payload.error.invalid_fields && typeof payload.error.invalid_fields === "object" && !Array.isArray(payload.error.invalid_fields) ? payload.error.invalid_fields : void 0
|
|
79
|
-
},
|
|
80
|
-
data: payload.data
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
const msg = typeof payload === "string" ? payload : payload?.error?.toString() ?? JSON.stringify(payload);
|
|
84
|
-
return {
|
|
85
|
-
status,
|
|
86
|
-
error: { message: msg },
|
|
87
|
-
data: payload.data
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
return { status, data: payload };
|
|
91
|
-
} catch (networkErr) {
|
|
92
|
-
throw networkErr;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
;
|
|
96
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
-
0 && (module.exports = {
|
|
98
|
-
request
|
|
99
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
export declare class Blacklist {
|
|
6
|
-
private api_key;
|
|
7
|
-
private cache;
|
|
8
|
-
constructor({ api_key, }: {
|
|
9
|
-
api_key: string;
|
|
10
|
-
});
|
|
11
|
-
verify(ip: string): Promise<boolean>;
|
|
12
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
import * as vlib from "@vandenberghinc/vlib";
|
|
6
|
-
// ---------------------------------------------------------
|
|
7
|
-
// Blacklist.
|
|
8
|
-
export class Blacklist {
|
|
9
|
-
api_key;
|
|
10
|
-
cache;
|
|
11
|
-
constructor({ api_key, // honey pot api key
|
|
12
|
-
}) {
|
|
13
|
-
// Checks.
|
|
14
|
-
vlib.schema.validate(arguments[0], {
|
|
15
|
-
unknown: false, throw: true,
|
|
16
|
-
schema: {
|
|
17
|
-
api_key: "string",
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
// Arguments.
|
|
21
|
-
this.api_key = api_key;
|
|
22
|
-
// Attributes.
|
|
23
|
-
this.cache = new Map();
|
|
24
|
-
}
|
|
25
|
-
// Verify, returns true on allowed and false on not allowed.
|
|
26
|
-
async verify(ip) {
|
|
27
|
-
throw new Error("Deprecated");
|
|
28
|
-
if (this.cache.has(ip)) {
|
|
29
|
-
return this.cache.get(ip);
|
|
30
|
-
}
|
|
31
|
-
let result;
|
|
32
|
-
await new Promise((resolve) => {
|
|
33
|
-
// @ts-expect-error
|
|
34
|
-
dns.resolveTxt(`${this.api_key}.${ip.split('.').reverse().join('.')}.dnsbl.httpbl.org`, (error, records) => {
|
|
35
|
-
if (error) {
|
|
36
|
-
result = true;
|
|
37
|
-
console.error(error);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
result = true;
|
|
41
|
-
console.log(records);
|
|
42
|
-
}
|
|
43
|
-
resolve();
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
this.cache.set(ip, result);
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
// ---------------------------------------------------------
|
|
51
|
-
// Exports.
|
|
52
|
-
module.exports = Blacklist;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @author Daan van den Bergh
|
|
4
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
5
|
-
*/
|
|
6
|
-
// ---------------------------------------------------------
|
|
7
|
-
// Imports.
|
|
8
|
-
import * as vlib from "@vandenberghinc/vlib";
|
|
9
|
-
import * as vhighlight from "@vandenberghinc/vhighlight";
|
|
10
|
-
import * as volt from "./index.js";
|
|
11
|
-
// ---------------------------------------------------------
|
|
12
|
-
// Global constants.
|
|
13
|
-
const CONFIG_PATHS = [
|
|
14
|
-
"./server.json",
|
|
15
|
-
"./server.js",
|
|
16
|
-
"./server/server.json",
|
|
17
|
-
"./server/server.js",
|
|
18
|
-
];
|
|
19
|
-
// ---------------------------------------------------------
|
|
20
|
-
// CLI.
|
|
21
|
-
/**
|
|
22
|
-
* Initialize the server by resolving a configuration file and returning an initialized `volt.Server`.
|
|
23
|
-
* If `path` is not provided, common configuration subpaths are searched under `source`.
|
|
24
|
-
* @param path Optional path to the configuration file (.json or .js). When null, defaults are searched.
|
|
25
|
-
* @param source Optional base directory used when searching default config subpaths.
|
|
26
|
-
*/
|
|
27
|
-
const initialize_server = async (path = null, source = "") => {
|
|
28
|
-
if (source == null) {
|
|
29
|
-
source = "";
|
|
30
|
-
}
|
|
31
|
-
if (path == null) {
|
|
32
|
-
path = CONFIG_PATHS.iterate((subpath) => {
|
|
33
|
-
let path = new vlib.Path(source + subpath);
|
|
34
|
-
path = path.abs();
|
|
35
|
-
if (path.exists()) {
|
|
36
|
-
return path;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
if (path == null) {
|
|
40
|
-
throw Error(`Unable to find a configuration file, either specify a the path to the configuration file using argument "--config". Or create a configuration file at one of the following sub paths: ${CONFIG_PATHS.join(", ")}.`);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
path = new vlib.Path(path);
|
|
45
|
-
}
|
|
46
|
-
if (!path.exists()) {
|
|
47
|
-
throw new Error(`Server source path "${path.str()}" does not exist.`);
|
|
48
|
-
}
|
|
49
|
-
if (path.extension() == ".js") {
|
|
50
|
-
let config;
|
|
51
|
-
try {
|
|
52
|
-
config = (await import(path.abs().str())).default;
|
|
53
|
-
}
|
|
54
|
-
catch (e) {
|
|
55
|
-
throw new Error(`Failed to import "${path.str()}": ${e.message}`);
|
|
56
|
-
}
|
|
57
|
-
if (config.server) {
|
|
58
|
-
config = config.server;
|
|
59
|
-
}
|
|
60
|
-
if (config instanceof volt.Server) {
|
|
61
|
-
return { path, server: config };
|
|
62
|
-
}
|
|
63
|
-
return { path, server: new volt.Server(config) };
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return { path, server: new volt.Server(path.load_sync({ type: "object" })) };
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* The VWeb CLI.
|
|
71
|
-
* @nav CLI
|
|
72
|
-
* @example
|
|
73
|
-
* $ volt --start
|
|
74
|
-
*/
|
|
75
|
-
const cli = new vlib.CLI({
|
|
76
|
-
name: "volt",
|
|
77
|
-
description: `The volt cli. The cli must be able to access the initialized server instance or its configuration object. This can be achieved in two ways.
|
|
78
|
-
|
|
79
|
-
1. A JSON file can be used to create the settings for the server.
|
|
80
|
-
The file can reside at the following project locations:
|
|
81
|
-
./server.json
|
|
82
|
-
./server/server.json
|
|
83
|
-
|
|
84
|
-
2. Using a JavaScript configuration file.
|
|
85
|
-
The JS server file must export an object with the server's settings (parameters) or an initialized instance of volt.Server.
|
|
86
|
-
Both objects must either be exported as 'module.exports = server' or as 'module.exports = {server: server}'.
|
|
87
|
-
The file can reside at the following project locations:
|
|
88
|
-
./server.js
|
|
89
|
-
./server/server.js
|
|
90
|
-
`,
|
|
91
|
-
version: "1.1.1",
|
|
92
|
-
commands: [
|
|
93
|
-
// Start.
|
|
94
|
-
/**
|
|
95
|
-
* Start the website (daemon).
|
|
96
|
-
* @lang CLI
|
|
97
|
-
* @parent CLI
|
|
98
|
-
* @name --start
|
|
99
|
-
* @param --source The source path to the website; the configuration file will be automatically loaded. It must reside at one of the default config sub paths. Required.
|
|
100
|
-
* @param --config The path to the configuration file. Required.
|
|
101
|
-
* @param --daemon Flag to start the service daemon. Required.
|
|
102
|
-
* @example
|
|
103
|
-
* $ cd path/to/my/website && volt --start
|
|
104
|
-
* @example
|
|
105
|
-
* $ volt --start --source path/to/my/website
|
|
106
|
-
* @example
|
|
107
|
-
* $ volt --start --config path/to/my/website/config.js
|
|
108
|
-
* @docs
|
|
109
|
-
*/
|
|
110
|
-
{
|
|
111
|
-
id: "--start",
|
|
112
|
-
description: "Start the website (daemon).",
|
|
113
|
-
examples: {
|
|
114
|
-
"Start": "cd path/to/my/website && volt --start",
|
|
115
|
-
"Start": "volt --start --source path/to/my/website",
|
|
116
|
-
"Start": "volt --start --config path/to/my/website/config.js",
|
|
117
|
-
},
|
|
118
|
-
args: [
|
|
119
|
-
{ id: "--source", type: "string", description: `The source path to the website, the configuration file will be automatically loaded. It must reside at one of the default config sub paths.` },
|
|
120
|
-
{ id: "--config", type: "string", description: `The path to the configuration file.` },
|
|
121
|
-
{ id: "--daemon", type: "boolean", description: `Flag to start the service daemon.` },
|
|
122
|
-
{ id: "--preview", type: "string", description: `Enable a preview browser in development mode.` },
|
|
123
|
-
],
|
|
124
|
-
callback: async ({ source = null, config = null, daemon = false, preview = null, }) => {
|
|
125
|
-
const { path, server } = await initialize_server(config, source);
|
|
126
|
-
if (preview == null && vlib.cli.present("--preview")) {
|
|
127
|
-
preview = "chrome";
|
|
128
|
-
}
|
|
129
|
-
if (preview) {
|
|
130
|
-
await server.start_browser_preview(preview);
|
|
131
|
-
}
|
|
132
|
-
// Service daemon.
|
|
133
|
-
if (daemon) {
|
|
134
|
-
// Server daemon.
|
|
135
|
-
if (server.db.daemon) {
|
|
136
|
-
await server.db.daemon.stop();
|
|
137
|
-
if (server.db.daemon.exists()) {
|
|
138
|
-
await server.db.daemon.update();
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
await server.db.daemon.create();
|
|
142
|
-
}
|
|
143
|
-
await server.db.daemon.start();
|
|
144
|
-
}
|
|
145
|
-
// Server daemon.
|
|
146
|
-
if (!server.daemon) {
|
|
147
|
-
cli.throw_error("The server service daemon is disabled.");
|
|
148
|
-
}
|
|
149
|
-
await server.daemon.stop();
|
|
150
|
-
if (server.daemon.exists()) {
|
|
151
|
-
await server.daemon.update();
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
await server.daemon.create();
|
|
155
|
-
}
|
|
156
|
-
await server.daemon.start();
|
|
157
|
-
}
|
|
158
|
-
// Development server.
|
|
159
|
-
else {
|
|
160
|
-
if (server.file_watcher) {
|
|
161
|
-
server.file_watcher.config = path.str();
|
|
162
|
-
}
|
|
163
|
-
await server.start();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
// Stop.
|
|
168
|
-
/**
|
|
169
|
-
* Stop the website service daemon.
|
|
170
|
-
* @lang CLI
|
|
171
|
-
* @parent CLI
|
|
172
|
-
* @name --stop
|
|
173
|
-
* @param --source The source path to the website; the configuration file will be automatically loaded. It must reside at one of the default config sub paths. Required.
|
|
174
|
-
* @param --config The path to the configuration file. Required.
|
|
175
|
-
* @example
|
|
176
|
-
* $ volt --stop
|
|
177
|
-
* @example
|
|
178
|
-
* $ volt --stop --source path/to/my/website
|
|
179
|
-
* @example
|
|
180
|
-
* $ volt --stop --config path/to/my/website/config.js
|
|
181
|
-
* @docs
|
|
182
|
-
*/
|
|
183
|
-
{
|
|
184
|
-
id: "--stop",
|
|
185
|
-
description: "Stop the website service daemon.",
|
|
186
|
-
examples: {
|
|
187
|
-
"Stop": "cd path/to/my/website && volt --stop",
|
|
188
|
-
"Stop": "volt --stop --source path/to/my/website",
|
|
189
|
-
"Stop": "volt --stop --config path/to/my/website/config.js",
|
|
190
|
-
},
|
|
191
|
-
args: [
|
|
192
|
-
{ id: "--source", type: "string", description: `The source path to the website, the configuration file will be automatically loaded. It must reside at one of the default config sub paths.` },
|
|
193
|
-
{ id: "--config", type: "string", description: `The path to the configuration file.` },
|
|
194
|
-
],
|
|
195
|
-
callback: async ({ source = null, config = null, }) => {
|
|
196
|
-
const { server } = await initialize_server(config, source);
|
|
197
|
-
// Server daemon.
|
|
198
|
-
if (server.db.daemon) {
|
|
199
|
-
await server.db.daemon.stop();
|
|
200
|
-
}
|
|
201
|
-
// Server daemon.
|
|
202
|
-
if (!server.daemon) {
|
|
203
|
-
cli.throw_error("The server service daemon is disabled.");
|
|
204
|
-
}
|
|
205
|
-
await server.daemon.stop();
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
],
|
|
209
|
-
});
|
|
210
|
-
// Start.
|
|
211
|
-
cli.start();
|