@mantiq/auth 0.5.5 → 0.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantiq/auth",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "Session & token auth, guards, providers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -66,7 +66,9 @@ export class AuthServiceProvider extends ServiceProvider {
66
66
  kernel.registerMiddleware('abilities', CheckAbilities as any)
67
67
  kernel.registerMiddleware('ability', CheckForAnyAbility as any)
68
68
  } catch {
69
- // HttpKernel may not be available in non-HTTP contexts (e.g., CLI)
69
+ if (process.env.APP_DEBUG === 'true') {
70
+ console.warn('[Mantiq] AuthServiceProvider: HttpKernel not available, auth middleware not registered')
71
+ }
70
72
  }
71
73
  }
72
74
  }