@airmoney-degn/airmoney-cli 0.24.0 → 0.24.1

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.
@@ -186,6 +186,10 @@ async function uploadPackageToServer(network, userId, apiKey, meta, pkgPath, fil
186
186
  });
187
187
  const text = await res.text();
188
188
  if (!res.ok) {
189
+ if (res.status === 403 && text.includes('package is belong to someone else')) {
190
+ (0, LogService_1.log)(`Error: The package '${meta.name}' is already owned by another user.`).red();
191
+ throw new Error(`Upload failed: Package name '${meta.name}' is already taken.`);
192
+ }
189
193
  (0, LogService_1.log)(`Error uploading package: ${text}`).red();
190
194
  throw new Error(`Upload failed: ${text}`);
191
195
  }
package/dist/config.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.24.0"
2
+ "version": "0.24.1"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airmoney-degn/airmoney-cli",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "airmoney-cli is a command-line interface tool designed to facilitate the development and management of decentralized applications (DApps) for Airmoney.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -71,4 +71,4 @@
71
71
  "typescript": "^5.0.4"
72
72
  },
73
73
  "packageManager": "npm@>=10.9.3 <11"
74
- }
74
+ }