percher 0.5.1 → 0.5.2
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/bin/percher.js +22 -2
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/bin/percher.js
CHANGED
|
@@ -112525,7 +112525,27 @@ async function handleAnonymousPublish(ctx, config2, input, tarball) {
|
|
|
112525
112525
|
powSolution: solution
|
|
112526
112526
|
});
|
|
112527
112527
|
} catch (err) {
|
|
112528
|
+
const httpStatus = err.status;
|
|
112528
112529
|
const code = err.code;
|
|
112530
|
+
if (httpStatus === 429) {
|
|
112531
|
+
return {
|
|
112532
|
+
status: "failed",
|
|
112533
|
+
fileCount: tarball.fileCount,
|
|
112534
|
+
bytes: tarball.bytes,
|
|
112535
|
+
error: {
|
|
112536
|
+
title: "Too many anonymous deploys",
|
|
112537
|
+
explanation: "Anonymous publishing is rate-limited per network to deter abuse. Wait a bit and try again, or log in to publish with an account.",
|
|
112538
|
+
suggestion: "Retry in a little while, or run percher login to publish with an account."
|
|
112539
|
+
},
|
|
112540
|
+
recovery: recoveryAsk({
|
|
112541
|
+
prompt: "Anonymous publishing is rate-limited per network. Wait and retry, or run `percher login` to publish with an account.",
|
|
112542
|
+
reasonCode: "quota_exceeded"
|
|
112543
|
+
}),
|
|
112544
|
+
summary: "Rate limited — too many anonymous deploys from your network. Try again later.",
|
|
112545
|
+
configPath: tomlPathFor2(ctx.cwd),
|
|
112546
|
+
bundle: { fileCount: tarball.fileCount, bytes: tarball.bytes }
|
|
112547
|
+
};
|
|
112548
|
+
}
|
|
112529
112549
|
const detail = code === "ANON_CAPACITY" ? "Anonymous capacity is full right now." : "Anonymous deploys are not enabled on this instance.";
|
|
112530
112550
|
return {
|
|
112531
112551
|
status: "needs_login",
|
|
@@ -115832,7 +115852,7 @@ async function renderError(stderr, error48) {
|
|
|
115832
115852
|
// package.json
|
|
115833
115853
|
var package_default = {
|
|
115834
115854
|
name: "percher",
|
|
115835
|
-
version: "0.5.
|
|
115855
|
+
version: "0.5.2",
|
|
115836
115856
|
description: "CLI for the Percher hosting platform — publish apps with one command",
|
|
115837
115857
|
type: "module",
|
|
115838
115858
|
bin: {
|
|
@@ -115857,7 +115877,7 @@ var package_default = {
|
|
|
115857
115877
|
},
|
|
115858
115878
|
dependencies: {
|
|
115859
115879
|
"@percher/client": "^0.2.10",
|
|
115860
|
-
"@percher/core": "^0.4.
|
|
115880
|
+
"@percher/core": "^0.4.5",
|
|
115861
115881
|
"@percher/toml": "^0.1.5",
|
|
115862
115882
|
cac: "^7.0.0",
|
|
115863
115883
|
picocolors: "^1.1.1"
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "percher",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "CLI for the Percher hosting platform — publish apps with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@percher/client": "^0.2.10",
|
|
28
|
-
"@percher/core": "^0.4.
|
|
28
|
+
"@percher/core": "^0.4.5",
|
|
29
29
|
"@percher/toml": "^0.1.5",
|
|
30
30
|
"cac": "^7.0.0",
|
|
31
31
|
"picocolors": "^1.1.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "percher",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "CLI for the Percher hosting platform — publish apps with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@percher/client": "^0.2.10",
|
|
28
|
-
"@percher/core": "^0.4.
|
|
28
|
+
"@percher/core": "^0.4.5",
|
|
29
29
|
"@percher/toml": "^0.1.5",
|
|
30
30
|
"cac": "^7.0.0",
|
|
31
31
|
"picocolors": "^1.1.1"
|