@digilogiclabs/platform-core 1.25.0 → 1.26.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.js CHANGED
@@ -1237,6 +1237,13 @@ async function enforceRateLimit(request, operation, rule, options) {
1237
1237
  }
1238
1238
  );
1239
1239
  }
1240
+ if (options?.returnInfo) {
1241
+ return {
1242
+ limit: result.limit,
1243
+ remaining: result.remaining,
1244
+ resetMs: result.resetAt
1245
+ };
1246
+ }
1240
1247
  return null;
1241
1248
  }
1242
1249
  function errorResponse(error, options) {