nucleus-core-ts 0.9.927 → 0.9.929

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/.build-ok CHANGED
@@ -1 +1 @@
1
- 0.9.927
1
+ 0.9.929
@@ -25,6 +25,7 @@ export function usePubSub(config: any): {
25
25
  getEventsByTopic: (topic: any) => never[];
26
26
  };
27
27
  export var serverFetch: ServerFetch;
28
+ export function requiredBodyCeiling(input: any): number | null;
28
29
  declare function parseCron2(expression: any): {
29
30
  ok: boolean;
30
31
  error: string;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,16 @@ import 'reflect-metadata';
2
2
  export * from './src/Client';
3
3
  export type { SystemAddressEntity, SystemClaimEntity, SystemFileEntity, SystemMonitoringMetricEntity, SystemPaymentCustomerEntity, SystemPaymentInvoiceEntity, SystemPaymentMethodEntity, SystemPaymentPriceEntity, SystemPaymentProductEntity, SystemPaymentSubscriptionEntity, SystemPaymentTransactionEntity, SystemPaymentWebhookLogEntity, SystemPhoneEntity, SystemProfileEntity, SystemRoleClaimEntity, SystemRoleEntity, SystemUserCohortEntity, SystemUserEntity, SystemUserRoleEntity, } from './src/Client/ApiCaller/types';
4
4
  export { NucleusElysiaPlugin } from './src/ElysiaPlugin';
5
+ /**
6
+ * The request-body ceiling an install's own upload settings imply.
7
+ *
8
+ * Exported because only the HOST constructs the Elysia instance, and Bun's
9
+ * body limit is a constructor argument: `new Elysia({ serve: { maxRequestBodySize } })`.
10
+ * Without it Bun's 128 MiB default applies below every configured number, and
11
+ * a large upload dies on the wire with nothing to show. The plugin says so at
12
+ * boot when it is missing; this is what makes it easy to get right.
13
+ */
14
+ export { requiredBodyCeiling } from './src/ElysiaPlugin/routes/shared/bodyCeiling';
5
15
  export type { NucleusContext, NucleusRuntime } from './src/ElysiaPlugin/runtime';
6
16
  export type { AuthorizationCheckResult, AuthorizationConfig, Claim, Role, RoleClaim, UserRole, } from './src/Services/Authorization/types';
7
17
  export type { AzureEmailServiceConfig } from './src/Services/Email/AzureEmailService';