mongossee 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +12 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,13 +2,24 @@
2
2
 
3
3
  const path = require('path');
4
4
  // 👇 Ye nayi line .env file ko sahi jagah (jaha script hai waha) dhoondhegi
5
- require('dotenv').config({ path: path.join(__dirname, '.env') });
5
+ require('dotenv').config({ path: path.join(process.cwd(), '.env') });
6
6
 
7
7
  const fs = require('fs'); // Node.js File System
8
8
  //const path = require('path'); // Node.js Path module
9
9
  const yargs = require('yargs/yargs');
10
10
  const { hideBin } = require('yargs/helpers');
11
11
 
12
+
13
+
14
+ console.log("Looking for .env at:", path.join(__dirname, '.env'));
15
+ const result = require('dotenv').config({ path: path.join(__dirname, '.env') });
16
+
17
+ if (result.error) {
18
+ console.log("❌ Dotenv Error:", result.error.message);
19
+ } else {
20
+ console.log("✅ Dotenv Loaded:", result.parsed);
21
+ }
22
+
12
23
  // ⚠️ Paste your official Google Gemini API key here.
13
24
  //const API_KEY = "AIzaSyARf-2uyW5cmwm8tJMBdcbLGIqPWcBZIJQ";
14
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongossee",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {