@hasna/connectors 0.3.5 → 0.3.6

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
@@ -4280,8 +4280,8 @@ function saveApiKey(name, key, field) {
4280
4280
  writeFileSync2(configFile, JSON.stringify(config, null, 2));
4281
4281
  return;
4282
4282
  }
4283
- mkdirSync2(join3(configDir, "profiles"), { recursive: true });
4284
- writeFileSync2(profileFile, JSON.stringify({ [keyField]: key }, null, 2));
4283
+ mkdirSync2(profileDir, { recursive: true });
4284
+ writeFileSync2(join3(profileDir, "config.json"), JSON.stringify({ [keyField]: key }, null, 2));
4285
4285
  }
4286
4286
  function guessKeyField(name) {
4287
4287
  const docs = getConnectorDocs(name);
@@ -6701,7 +6701,7 @@ var PRESETS = {
6701
6701
  commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
6702
6702
  };
6703
6703
  var program2 = new Command;
6704
- program2.name("connectors").description("Install API connectors for your project").version("0.3.5");
6704
+ program2.name("connectors").description("Install API connectors for your project").version("0.3.6");
6705
6705
  program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
6706
6706
  if (!isTTY) {
6707
6707
  console.log(`Non-interactive environment detected. Use a subcommand:
package/bin/mcp.js CHANGED
@@ -20188,8 +20188,8 @@ function saveApiKey(name, key, field) {
20188
20188
  writeFileSync2(configFile, JSON.stringify(config2, null, 2));
20189
20189
  return;
20190
20190
  }
20191
- mkdirSync2(join3(configDir, "profiles"), { recursive: true });
20192
- writeFileSync2(profileFile, JSON.stringify({ [keyField]: key }, null, 2));
20191
+ mkdirSync2(profileDir, { recursive: true });
20192
+ writeFileSync2(join3(profileDir, "config.json"), JSON.stringify({ [keyField]: key }, null, 2));
20193
20193
  }
20194
20194
  function guessKeyField(name) {
20195
20195
  const docs = getConnectorDocs(name);
@@ -20309,7 +20309,7 @@ async function getConnectorCommandHelp(name, command) {
20309
20309
  loadConnectorVersions();
20310
20310
  var server = new McpServer({
20311
20311
  name: "connectors",
20312
- version: "0.3.5"
20312
+ version: "0.3.6"
20313
20313
  });
20314
20314
  server.registerTool("search_connectors", {
20315
20315
  title: "Search Connectors",
package/bin/serve.js CHANGED
@@ -790,8 +790,8 @@ function saveApiKey(name, key, field) {
790
790
  writeFileSync2(configFile, JSON.stringify(config, null, 2));
791
791
  return;
792
792
  }
793
- mkdirSync2(join3(configDir, "profiles"), { recursive: true });
794
- writeFileSync2(profileFile, JSON.stringify({ [keyField]: key }, null, 2));
793
+ mkdirSync2(profileDir, { recursive: true });
794
+ writeFileSync2(join3(profileDir, "config.json"), JSON.stringify({ [keyField]: key }, null, 2));
795
795
  }
796
796
  function guessKeyField(name) {
797
797
  const docs = getConnectorDocs(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {