@digilogiclabs/platform-core 1.17.3 → 1.18.0

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/auth.mjs CHANGED
@@ -1598,6 +1598,9 @@ function createSecureHandlerFactory(factoryConfig) {
1598
1598
  const ct = request.headers.get("content-type");
1599
1599
  input = ct?.includes("application/json") ? await request.json() : {};
1600
1600
  }
1601
+ if (factoryConfig.sanitizeNullBytes !== false) {
1602
+ input = stripNullBytesDeep(input);
1603
+ }
1601
1604
  const result = routeConfig.validate.safeParse(input);
1602
1605
  if (!result.success) {
1603
1606
  const fieldErrors = result.error?.flatten ? result.error.flatten().fieldErrors : void 0;