@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.
- package/dist/cli/upload.js +4 -0
- package/dist/config.json +1 -1
- package/package.json +2 -2
package/dist/cli/upload.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airmoney-degn/airmoney-cli",
|
|
3
|
-
"version": "0.24.
|
|
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
|
+
}
|