@hasna/connectors 1.1.2 → 1.1.3

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/bin/index.js CHANGED
@@ -12361,7 +12361,7 @@ var PRESETS = {
12361
12361
  commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
12362
12362
  };
12363
12363
  var program2 = new Command;
12364
- program2.name("connectors").description("Install API connectors for your project").version("1.1.2").enablePositionalOptions();
12364
+ program2.name("connectors").description("Install API connectors for your project").version("1.1.3").enablePositionalOptions();
12365
12365
  program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
12366
12366
  if (!isTTY) {
12367
12367
  console.log(`Non-interactive environment detected. Use a subcommand:
package/bin/mcp.js CHANGED
@@ -25829,7 +25829,7 @@ async function getConnectorCommandHelp(name, command) {
25829
25829
  loadConnectorVersions();
25830
25830
  var server = new McpServer({
25831
25831
  name: "connectors",
25832
- version: "1.1.2"
25832
+ version: "1.1.3"
25833
25833
  });
25834
25834
  server.registerTool("search_connectors", {
25835
25835
  title: "Search Connectors",
@@ -49,16 +49,20 @@ export function markdownToHtml(markdown: string): string {
49
49
  html = html.replace(/^> (.+)$/gm, '<blockquote style="border-left:4px solid #ddd;margin:0;padding-left:16px;color:#666;">$1</blockquote>');
50
50
 
51
51
  // Unordered lists
52
- html = html.replace(/^[\*\-] (.+)$/gm, '<li>$1</li>');
53
- html = html.replace(/(<li>.*<\/li>\n?)+/g, '<ul style="margin:8px 0;">$&</ul>');
52
+ html = html.replace(/^[\*\-] (.+)$/gm, '<li style="margin:0;padding:0;">$1</li>');
53
+ html = html.replace(/(<li style[^>]*>.*?<\/li>\n?)+/g, '<ul style="margin:4px 0;padding-left:20px;">$&</ul>');
54
54
 
55
55
  // Ordered lists
56
- html = html.replace(/^\d+\. (.+)$/gm, '<li>$1</li>');
56
+ html = html.replace(/^\d+\. (.+)$/gm, '<li style="margin:0;padding:0;">$1</li>');
57
57
 
58
58
  // Paragraphs (double newlines)
59
59
  html = html.replace(/\n\n+/g, '</p><p>');
60
60
  html = `<p>${html}</p>`;
61
61
 
62
+ // Remove newlines between list items (prevent <br> between <li> elements)
63
+ html = html.replace(/<\/li>\n<li/g, '</li><li');
64
+ html = html.replace(/<\/li>\n<\/ul>/g, '</li></ul>');
65
+
62
66
  // Single line breaks to <br>
63
67
  html = html.replace(/\n/g, '<br>');
64
68
 
@@ -85,8 +89,13 @@ export function wrapInEmailTemplate(html: string): string {
85
89
  <html>
86
90
  <head>
87
91
  <meta charset="UTF-8">
92
+ <style>
93
+ ul, ol { margin: 4px 0; padding-left: 20px; }
94
+ li { margin: 0; padding: 0; line-height: 1.5; }
95
+ p { margin: 0 0 8px 0; }
96
+ </style>
88
97
  </head>
89
- <body>
98
+ <body style="font-family:Arial,sans-serif;font-size:14px;line-height:1.6;color:#202124;">
90
99
  ${html}
91
100
  </body>
92
101
  </html>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {