@juspay/neurolink 9.68.15 → 9.68.17

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/browser/neurolink.min.js +333 -333
  3. package/dist/lib/providers/cloudflare.js +2 -1
  4. package/dist/lib/providers/cohere.d.ts +18 -16
  5. package/dist/lib/providers/cohere.js +76 -153
  6. package/dist/lib/providers/deepseek.js +2 -1
  7. package/dist/lib/providers/fireworks.js +2 -1
  8. package/dist/lib/providers/groq.js +2 -1
  9. package/dist/lib/providers/huggingFace.js +2 -1
  10. package/dist/lib/providers/litellm.js +2 -1
  11. package/dist/lib/providers/llamaCpp.js +1 -6
  12. package/dist/lib/providers/lmStudio.js +3 -2
  13. package/dist/lib/providers/nvidiaNim.js +2 -1
  14. package/dist/lib/providers/openAI.js +2 -1
  15. package/dist/lib/providers/openaiCompatible.js +3 -2
  16. package/dist/lib/providers/perplexity.js +2 -1
  17. package/dist/lib/providers/togetherAi.js +2 -1
  18. package/dist/lib/providers/xai.js +2 -1
  19. package/dist/lib/utils/logSanitize.d.ts +14 -0
  20. package/dist/lib/utils/logSanitize.js +16 -0
  21. package/dist/providers/cloudflare.js +2 -1
  22. package/dist/providers/cohere.d.ts +18 -16
  23. package/dist/providers/cohere.js +76 -153
  24. package/dist/providers/deepseek.js +2 -1
  25. package/dist/providers/fireworks.js +2 -1
  26. package/dist/providers/groq.js +2 -1
  27. package/dist/providers/huggingFace.js +2 -1
  28. package/dist/providers/litellm.js +2 -1
  29. package/dist/providers/llamaCpp.js +1 -6
  30. package/dist/providers/lmStudio.js +3 -2
  31. package/dist/providers/nvidiaNim.js +2 -1
  32. package/dist/providers/openAI.js +2 -1
  33. package/dist/providers/openaiCompatible.js +3 -2
  34. package/dist/providers/perplexity.js +2 -1
  35. package/dist/providers/togetherAi.js +2 -1
  36. package/dist/providers/xai.js +2 -1
  37. package/dist/utils/logSanitize.d.ts +14 -0
  38. package/dist/utils/logSanitize.js +16 -0
  39. package/package.json +1 -1
@@ -26,6 +26,20 @@
26
26
  * @param maxLen - Maximum number of characters to keep (default 500).
27
27
  */
28
28
  export declare function sanitizeForLog(text: string, maxLen?: number): string;
29
+ /**
30
+ * Strip embedded `user:pass@` credentials from a URL's authority component
31
+ * before logging it or surfacing it in a user-facing error.
32
+ *
33
+ * Turns `https://user:secret@host/path` into `https://***@host/path` while
34
+ * leaving credential-free URLs untouched, so the host/port/path stay useful
35
+ * for diagnostics. Use this for any `baseURL`/endpoint a caller may have
36
+ * supplied with inline credentials. The match is global, so every `//…@`
37
+ * authority in the string is redacted (e.g. a proxy chain or a URL embedded
38
+ * in a query parameter), not just the first.
39
+ *
40
+ * @param url - The URL (or URL-shaped string) to redact.
41
+ */
42
+ export declare function redactUrlCredentials(url: string): string;
29
43
  /**
30
44
  * Recursively sanitize a record/array, returning a structurally identical
31
45
  * value with sensitive keys redacted and string values run through
@@ -91,6 +91,22 @@ export function sanitizeForLog(text, maxLen = 500) {
91
91
  }
92
92
  return text.slice(0, maxLen).replace(SECRET_PATTERN, "***");
93
93
  }
94
+ /**
95
+ * Strip embedded `user:pass@` credentials from a URL's authority component
96
+ * before logging it or surfacing it in a user-facing error.
97
+ *
98
+ * Turns `https://user:secret@host/path` into `https://***@host/path` while
99
+ * leaving credential-free URLs untouched, so the host/port/path stay useful
100
+ * for diagnostics. Use this for any `baseURL`/endpoint a caller may have
101
+ * supplied with inline credentials. The match is global, so every `//…@`
102
+ * authority in the string is redacted (e.g. a proxy chain or a URL embedded
103
+ * in a query parameter), not just the first.
104
+ *
105
+ * @param url - The URL (or URL-shaped string) to redact.
106
+ */
107
+ export function redactUrlCredentials(url) {
108
+ return url.replace(/\/\/[^/@]+@/g, "//***@");
109
+ }
94
110
  /**
95
111
  * Recursively sanitize a record/array, returning a structurally identical
96
112
  * value with sensitive keys redacted and string values run through
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "9.68.15",
3
+ "version": "9.68.17",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applications with 21+ providers: OpenAI, Anthropic, Google AI Studio, Google Vertex, AWS Bedrock, Azure OpenAI, Mistral, LiteLLM, SageMaker, Hugging Face, Ollama, OpenAI-compatible, OpenRouter, DeepSeek, NVIDIA NIM, LM Studio, llama.cpp, plus voice (OpenAI TTS, ElevenLabs, Deepgram, Azure Speech).",
6
6
  "author": {