@syncagent/js
Advanced tools
+2
-1
@@ -75,2 +75,3 @@ "use strict"; | ||
| // src/client.ts | ||
| var SYNCAGENT_API_URL = "https://syncagentdev.vercel.app"; | ||
| var SyncAgentClient = class { | ||
@@ -81,3 +82,3 @@ constructor(config) { | ||
| this.apiKey = config.apiKey; | ||
| this.baseUrl = (config.baseUrl || "https://syncagent.dev").replace(/\/$/, ""); | ||
| this.baseUrl = (SYNCAGENT_API_URL || config.baseUrl).replace(/\/$/, ""); | ||
| this.connectionString = config.connectionString; | ||
@@ -84,0 +85,0 @@ this.tools = config.tools || {}; |
+2
-1
@@ -49,2 +49,3 @@ // src/stream.ts | ||
| // src/client.ts | ||
| var SYNCAGENT_API_URL = "https://syncagentdev.vercel.app"; | ||
| var SyncAgentClient = class { | ||
@@ -55,3 +56,3 @@ constructor(config) { | ||
| this.apiKey = config.apiKey; | ||
| this.baseUrl = (config.baseUrl || "https://syncagent.dev").replace(/\/$/, ""); | ||
| this.baseUrl = (SYNCAGENT_API_URL || config.baseUrl).replace(/\/$/, ""); | ||
| this.connectionString = config.connectionString; | ||
@@ -58,0 +59,0 @@ this.tools = config.tools || {}; |
+1
-1
| { | ||
| "name": "@syncagent/js", | ||
| "version": "0.2.6", | ||
| "version": "0.2.7", | ||
| "description": "SyncAgent JavaScript SDK — AI database agent for any app", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
30138
0.35%526
0.38%