git0 0.2.9 → 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.9",
4
+ "version": "0.2.10",
5
5
  "author": "vtempest",
6
6
  "dependencies": {
7
7
  "chalk": "^5.4.1",
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') {