jvcs 1.1.5 → 1.1.7

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.
@@ -1,7 +1,7 @@
1
1
  const fs = require("fs")
2
2
  const path = require("path")
3
3
  const chalk = require("chalk")
4
- const { getDriveClient } = require("../config/drive-config");
4
+ const { getDriveClient } = require("../config/drive-config")
5
5
  const drive = getDriveClient()
6
6
  const { getGlobalConfig, checkGlobalConfig, checkforjvcs } = require("./utility")
7
7
  const getDirectoryStructure = require("./driveUtility")
@@ -47,7 +47,7 @@ function buildCommitMap(commitFolder) {
47
47
  const metaPath = path.join(commitFolder,dir,"meta.json")
48
48
  if(fs.existsSync(metaPath)) {
49
49
  const data = JSON.parse(fs.readFileSync(metaPath,"utf-8"))
50
- map[dir] = data.parent
50
+ map[dir] = data.parentId
51
51
  }
52
52
  }
53
53
 
@@ -57,6 +57,7 @@ function buildCommitMap(commitFolder) {
57
57
  function getCommitsToDelete(commitFolder,currentCommit,targetCommit) {
58
58
 
59
59
  const commitMap = buildCommitMap(commitFolder)
60
+ console.log("Commit Map:", commitMap); // 👈 debug log
60
61
  const toDelete = []
61
62
 
62
63
  while(currentCommit && currentCommit !== targetCommit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jvcs",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "bin": {
5
5
  "jvcs": "./index.js"
6
6
  },
package/.jvcs/HEAD DELETED
@@ -1 +0,0 @@
1
- 38954e15-be97-42ba-9f2a-385340973ddf
@@ -1,6 +0,0 @@
1
- {
2
- "package.json": {
3
- "hash": "df702008d62e5264f9bab745797686305122bbeb653770823df99b2ba766c6ba",
4
- "time": "2025-10-29T06:04:28.739Z"
5
- }
6
- }
@@ -1,7 +0,0 @@
1
- {
2
- "author": "jagdish",
3
- "id": "38954e15-be97-42ba-9f2a-385340973ddf",
4
- "message": "m1",
5
- "timeStamp": "2025-10-29T06:04:37.715Z",
6
- "parentId": null
7
- }
@@ -1,20 +0,0 @@
1
- {
2
- "name": "jvcs",
3
- "version": "1.1.0",
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
- }
package/.jvcs/config.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "repoName": "backend2",
3
- "createdAt": "2025-10-29T06:04:12.977Z",
4
- "remote": null,
5
- "owner": {
6
- "username": "jagdish",
7
- "email": "pathakjijagdish1@gmail.com"
8
- }
9
- }
@@ -1,6 +0,0 @@
1
- {
2
- "package.json": {
3
- "hash": "df702008d62e5264f9bab745797686305122bbeb653770823df99b2ba766c6ba",
4
- "time": "2025-10-29T06:04:28.739Z"
5
- }
6
- }
@@ -1,20 +0,0 @@
1
- {
2
- "name": "jvcs",
3
- "version": "1.1.0",
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
- }