jvcs 1.1.2 → 1.1.4

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,4 +1,5 @@
1
- const { drive } = require("../config/drive-config");
1
+ const { getDriveClient } = require("../config/drive-config");
2
+ const drive = getDriveClient()
2
3
 
3
4
  async function getDirectoryStructure(username,reponame,commitId) {
4
5
 
@@ -1,7 +1,8 @@
1
1
  const fs = require("fs")
2
2
  const path = require("path")
3
3
  const chalk = require("chalk")
4
- const { drive } = require("../config/drive-config")
4
+ const { getDriveClient } = require("../config/drive-config");
5
+ const drive = getDriveClient()
5
6
  const { getGlobalConfig, checkGlobalConfig, checkforjvcs } = require("./utility")
6
7
  const getDirectoryStructure = require("./driveUtility")
7
8
  const handleDbForRepo = require("../apicall/handleDbForRepo")
@@ -87,7 +87,7 @@ async function deleteCommitsFromDrive(ids) {
87
87
  folderName = `commit_${id}`
88
88
 
89
89
  const res = await drive.files.list({
90
- q: `name=${folderName} and trashed=false`,
90
+ q: `name='${folderName}' and trashed=false`,
91
91
  fields: "files(id,name)"
92
92
  })
93
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jvcs",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "bin": {
5
5
  "jvcs": "./index.js"
6
6
  },