@getxflow/cli 0.5.0 → 0.5.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/limits.js +8 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/limits.js
CHANGED
|
@@ -17,9 +17,14 @@ const DENIAL_LABELS = {
|
|
|
17
17
|
/** Why repeating the same command will not help. */
|
|
18
18
|
function limitLine(detail) {
|
|
19
19
|
const label = DENIAL_LABELS[detail.code] ?? detail.code;
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const counted = detail.used !== undefined && detail.limit !== undefined;
|
|
21
|
+
// An interval is not a tally: "5 of 60 used" reads as five minutes spent out
|
|
22
|
+
// of sixty, when it means a run every five minutes against a sixty minimum.
|
|
23
|
+
const numbers = !counted
|
|
24
|
+
? ''
|
|
25
|
+
: detail.code === 'limit_schedule_interval'
|
|
26
|
+
? `, every ${detail.used} min against a ${detail.limit} min minimum`
|
|
27
|
+
: `, ${detail.used} of ${detail.limit} used`;
|
|
23
28
|
return `Plan limit: ${label}${numbers}. Repeating the same command will not help.`;
|
|
24
29
|
}
|
|
25
30
|
const QUOTA_ORDER = [
|
package/dist/version.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
|
|
4
4
|
/** Keep in sync with cli/package.json. */
|
|
5
|
-
exports.CLI_VERSION = '0.5.
|
|
5
|
+
exports.CLI_VERSION = '0.5.1';
|
|
6
6
|
/** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
|
|
7
7
|
exports.DEFAULT_API_URL = 'https://app.getxflow.com';
|