alurkerja-cli 1.0.5 → 1.0.6

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/index.js CHANGED
@@ -56,12 +56,10 @@ function getVersion() {
56
56
  */
57
57
  async function downloadBinary(version, platform) {
58
58
  const binaryName = `alurkerja-${platform.os}-${platform.arch}${platform.os === 'windows' ? '.exe' : ''}`;
59
- // Use GitLab API v4 for raw file download to get actual binary
60
- const encodedPath = encodeURIComponent(`dist/${binaryName}`);
61
- const encodedProject = encodeURIComponent('alurkerja/on-premises/toolkits/alurkerja-cli');
62
- const downloadUrl = `https://gitlab.javan.co.id/api/v4/projects/${encodedProject}/repository/files/${encodedPath}/raw?ref=master`;
59
+ // Use GitLab raw file download with correct parameters
60
+ const downloadUrl = `${GITLAB_BASE}/-/raw/master/dist/${binaryName}?ref_type=heads&inline=false`;
63
61
 
64
- console.log(`📥 Downloading Alurkerja CLI ${version}...`);
62
+ console.log(`📥 Downloading Alurkerja CLI For ${platform.os}-${platform.arch} ${version}...`);
65
63
 
66
64
  // Ensure install directory exists
67
65
  fs.mkdirSync(INSTALL_DIR, { recursive: true });
package/index.js.backup CHANGED
@@ -56,12 +56,10 @@ function getVersion() {
56
56
  */
57
57
  async function downloadBinary(version, platform) {
58
58
  const binaryName = `alurkerja-${platform.os}-${platform.arch}${platform.os === 'windows' ? '.exe' : ''}`;
59
- // Use GitLab API v4 for raw file download to get actual binary
60
- const encodedPath = encodeURIComponent(`dist/${binaryName}`);
61
- const encodedProject = encodeURIComponent('alurkerja/on-premises/toolkits/alurkerja-cli');
62
- const downloadUrl = `https://gitlab.javan.co.id/api/v4/projects/${encodedProject}/repository/files/${encodedPath}/raw?ref=master`;
59
+ // Use GitLab raw file download with correct parameters
60
+ const downloadUrl = `${GITLAB_BASE}/-/raw/master/dist/${binaryName}?ref_type=heads&inline=false`;
63
61
 
64
- console.log(`📥 Downloading Alurkerja CLI ${version}...`);
62
+ console.log(`📥 Downloading Alurkerja CLI For ${platform.os}-${platform.arch} ${version}...`);
65
63
 
66
64
  // Ensure install directory exists
67
65
  fs.mkdirSync(INSTALL_DIR, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alurkerja-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Alurkerja CLI - npx wrapper for Go binary",
5
5
  "main": "index.js",
6
6
  "private": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alurkerja-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Alurkerja CLI - npx wrapper for Go binary",
5
5
  "main": "index.js",
6
6
  "private": false,