@hasna/connectors 0.3.7 → 0.3.8

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
@@ -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.7");
6704
+ program2.name("connectors").description("Install API connectors for your project").version("0.3.8");
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
@@ -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.7"
20312
+ version: "0.3.8"
20313
20313
  });
20314
20314
  server.registerTool("search_connectors", {
20315
20315
  title: "Search Connectors",
@@ -345,7 +345,8 @@ export function getAccessToken(): string | undefined {
345
345
  // ============================================
346
346
 
347
347
  export function getApiKey(): string | undefined {
348
- return process.env.NOTION_API_KEY || loadConfig().accessToken;
348
+ const config = loadConfig();
349
+ return process.env.NOTION_API_KEY || config.accessToken || (config as Record<string, unknown>).apiKey as string | undefined;
349
350
  }
350
351
 
351
352
  export function setApiKey(apiKey: string): void {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {