thinkncollab-cli 0.0.56 → 0.0.58

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.
@@ -4,7 +4,7 @@ import axios from "axios";
4
4
  import os from "os";
5
5
 
6
6
  const homeDir = os.homedir();
7
- const url = "http://localhost:3001/cli/mytasks"; // backend endpoint
7
+ const url = "https://thinkncollab.in/cli/mytasks"; // backend endpoint
8
8
 
9
9
  // Get saved email from ~/.tncrc
10
10
  async function getEmail() {
@@ -21,7 +21,7 @@ async function getEmail() {
21
21
  }
22
22
  async function getToken() {
23
23
  const rcFile = path.join(homeDir, '.tncrc');
24
- if(!fx.readFileSync(rcFile)){
24
+ if(!fs.readFileSync(rcFile)){
25
25
  console.log("⚠️ Please login first! ")
26
26
  }
27
27
  const content = fs.readFileSync(rcFile, 'utf-8');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thinkncollab-cli",
3
3
  "author": "Raman Singh",
4
- "version": "0.0.56",
4
+ "version": "0.0.58",
5
5
  "description": "CLI tool for ThinkNCollab",
6
6
  "main": "index.js",
7
7
  "bin": {