jvcs 1.2.7 → 1.2.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/.env ADDED
@@ -0,0 +1,4 @@
1
+ CLIENT_ID=835069827989-3spob55ioa2ocudi3mo8u2ni2ecqohh7.apps.googleusercontent.com
2
+ CLIENT_SECRET=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
3
+ REDIRECT_URI=https://developers.google.com/oauthplayground
4
+ REFRESH_TOKEN=1//04dWkzGCpoIgACgYIARAAGAQSNwF-L9IrRV-B67zRcIkhs7USx3vLewtE764bZPv7d5d7hAlH7QThZxj2CQUr5flQIG12Ad64dQI
@@ -28,4 +28,4 @@ async function handleDbForRepo(reponame,driveId,parentId,Content,token) {
28
28
 
29
29
  }
30
30
 
31
- module.exports = handleDbForRepo
31
+ module.exports = handleDbForRepo
@@ -13,7 +13,6 @@ const credFile = path.join(credDir, "config.json");
13
13
  function getDriveClient() {
14
14
 
15
15
  if(!fs.existsSync(credFile)) {
16
- console.log(chalk.red("No credentials found. Please login/signup."));
17
16
  return null;
18
17
  }
19
18
 
@@ -21,7 +20,6 @@ function getDriveClient() {
21
20
  const { CLIENT_ID, CLIENT_SECRET, REDIRECT_URI, REFRESH_TOKEN } = data;
22
21
 
23
22
  if(!CLIENT_ID || !CLIENT_SECRET || !REFRESH_TOKEN) {
24
- console.log(chalk.red("Incomplete credentials in ~/.jvcs/config.json"));
25
23
  return null;
26
24
  }
27
25
 
@@ -145,4 +145,4 @@ async function cloneCmd(username,reponame) {
145
145
  console.log(chalk.green(`Repository cloned successfully into ./${reponame}`));
146
146
  }
147
147
 
148
- module.exports = cloneCmd
148
+ module.exports = cloneCmd
@@ -30,4 +30,4 @@ async function login(loginData) {
30
30
  }
31
31
  }
32
32
 
33
- module.exports = login
33
+ module.exports = login
@@ -205,4 +205,4 @@ async function revertCmd(commitId) {
205
205
  console.log(chalk.green(`Successfully reverted to commit ${commitId}`));
206
206
  }
207
207
 
208
- module.exports = revertCmd
208
+ module.exports = revertCmd
@@ -25,4 +25,4 @@ async function signup(signupData) {
25
25
  }
26
26
  }
27
27
 
28
- module.exports = signup
28
+ module.exports = signup
@@ -52,4 +52,4 @@ async function verifyOtp(signupData) {
52
52
 
53
53
  }
54
54
 
55
- module.exports = verifyOtp
55
+ module.exports = verifyOtp
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const yargs = require("yargs");
4
4
  const { hideBin } = require("yargs/helpers");
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "name": "jvcs",
3
- "version": "1.2.7",
4
- "bin": {
5
- "jvcs": "./index.js"
6
- },
7
- "keywords": [],
8
- "author": "",
9
- "license": "ISC",
10
- "dependencies": {
11
- "chalk": "^4.1.2",
12
- "crypto": "^1.0.1",
13
- "dotenv": "^17.2.3",
14
- "googleapis": "^164.1.0",
15
- "inquirer": "^8.2.7",
16
- "uuid": "^13.0.0",
17
- "validator": "^13.15.20",
18
- "yargs": "^18.0.0"
19
- }
1
+ {
2
+ "name": "jvcs",
3
+ "version": "1.2.8",
4
+ "bin": {
5
+ "jvcs": "./index.js"
6
+ },
7
+ "keywords": [],
8
+ "author": "",
9
+ "license": "ISC",
10
+ "dependencies": {
11
+ "chalk": "^4.1.2",
12
+ "crypto": "^1.0.1",
13
+ "dotenv": "^17.2.3",
14
+ "googleapis": "^164.1.0",
15
+ "inquirer": "^8.2.7",
16
+ "uuid": "^13.0.0",
17
+ "validator": "^13.15.20",
18
+ "yargs": "^18.0.0"
19
+ }
20
20
  }