@mastra/deployer 1.46.0-alpha.1 → 1.46.0-alpha.2
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/server/index.js
CHANGED
|
@@ -3236,7 +3236,7 @@ var MastraServer = class extends MastraServer$1 {
|
|
|
3236
3236
|
// Standard Request object with headers/cookies
|
|
3237
3237
|
};
|
|
3238
3238
|
const requestContext = c.get("requestContext");
|
|
3239
|
-
const hasAuth = this.mastra.getStudio()?.auth || this.mastra.getServer()?.auth;
|
|
3239
|
+
const hasAuth = this.mastra.getStudio?.()?.auth || this.mastra.getServer()?.auth;
|
|
3240
3240
|
if (hasAuth) {
|
|
3241
3241
|
const hasPermission = await loadHasPermission();
|
|
3242
3242
|
if (hasPermission) {
|
|
@@ -3334,7 +3334,7 @@ var MastraServer = class extends MastraServer$1 {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
3336
|
const requestContext = c.get("requestContext");
|
|
3337
|
-
const hasAuth = this.mastra.getStudio()?.auth || this.mastra.getServer()?.auth;
|
|
3337
|
+
const hasAuth = this.mastra.getStudio?.()?.auth || this.mastra.getServer()?.auth;
|
|
3338
3338
|
if (hasAuth) {
|
|
3339
3339
|
const hasPermission = await loadHasPermission();
|
|
3340
3340
|
if (hasPermission) {
|