mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-27 04:07:05 +00:00
📦 chore: Bump @librechat/agents to v3.1.56 (#12258)
* 📦 chore: Bump `@librechat/agents` to v3.1.56
* chore: resolve type error, URL property check in isMCPDomainAllowed function
This commit is contained in:
parent
acd07e8085
commit
8271055c2d
4 changed files with 11 additions and 8 deletions
|
|
@ -485,7 +485,9 @@ export async function isMCPDomainAllowed(
|
|||
const hasAllowlist = Array.isArray(allowedDomains) && allowedDomains.length > 0;
|
||||
|
||||
const hasExplicitUrl =
|
||||
Object.hasOwn(config, 'url') && typeof config.url === 'string' && config.url.trim().length > 0;
|
||||
Object.prototype.hasOwnProperty.call(config, 'url') &&
|
||||
typeof config.url === 'string' &&
|
||||
config.url.trim().length > 0;
|
||||
|
||||
if (!domain && hasExplicitUrl && hasAllowlist) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue