git0 0.2.8 → 0.2.10

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git0",
3
3
  "description": "CLI tool to search GitHub repositories, download source & releases for your system, and instantly set up, then install dependencies and open code editor.",
4
- "version": "0.2.8",
4
+ "version": "0.2.10",
5
5
  "author": "vtempest",
6
6
  "dependencies": {
7
7
  "chalk": "^5.4.1",
package/src/git0.js CHANGED
@@ -112,7 +112,7 @@ async function showPackageMenu(selectedRepo) {
112
112
  const downloadDir = path.resolve(process.cwd());
113
113
  fs.mkdirSync(downloadDir, { recursive: true });
114
114
 
115
- const downloadPath = path.join(downloadDir, asset.name);
115
+ const downloadPath = path.join(downloadDir, selectedPackage.asset.name);
116
116
  await Github.downloadPackage(selectedPackage.asset.browser_download_url, downloadPath);
117
117
  }
118
118
 
package/src/github-api.js CHANGED
@@ -213,7 +213,7 @@ class GithubAPI {
213
213
  }
214
214
 
215
215
  // Provide installation instructions
216
- this._provideInstallationInstructions(downloadPath, asset);
216
+ this._provideInstallationInstructions(downloadPath, fileName);
217
217
 
218
218
  return downloadPath;
219
219
  } catch (error) {
@@ -430,8 +430,7 @@ class GithubAPI {
430
430
  * @param {Object} asset - GitHub release asset object
431
431
  * @param {string} asset.name - Name of the asset file
432
432
  */
433
- _provideInstallationInstructions(filePath, asset) {
434
- const fileName = asset.name;
433
+ _provideInstallationInstructions(filePath, fileName) {
435
434
  const platform = this.getCurrentPlatform();
436
435
 
437
436
  if (platform.platform === 'win32') {