@better-sol/cli 0.1.0-alpha.8 → 0.1.0-alpha.9
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/README.md +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ Save your compiler API key.
|
|
|
102
102
|
npx @better-sol/cli@alpha login <api-key>
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
Get an API key at https://better-sol.fun/dash. Saves your key to `.better-sol/auth.json`.
|
|
105
|
+
Get an API key at https://better-sol.fun/dash. Saves your key to `.better-sol/auth.json`. Because Better Sol is still experimental, compiler usage is rate limited: without a key you get 20 compiles per hour, and with a key you get 100 per hour.
|
|
106
106
|
|
|
107
107
|
### `verify`
|
|
108
108
|
|
package/dist/index.js
CHANGED
|
@@ -1299,7 +1299,7 @@ async function readJson(response) {
|
|
|
1299
1299
|
return await response.json();
|
|
1300
1300
|
}
|
|
1301
1301
|
function formatRateLimitError(error, hasApiKey) {
|
|
1302
|
-
return `Rate limit exceeded.${error.retryAfterSeconds !== void 0 ? ` Try again in ${formatDuration(error.retryAfterSeconds)}.` : " Try again later."}${hasApiKey ? " Your API key has reached
|
|
1302
|
+
return `Rate limit exceeded.${error.retryAfterSeconds !== void 0 ? ` Try again in ${formatDuration(error.retryAfterSeconds)}.` : " Try again later."}${hasApiKey ? " Your API key has reached the experimental compiler limit of 100 compiles per hour." : ` You are using the anonymous experimental compiler limit of 20 compiles per hour. Get an API key at ${API_KEYS_URL}, then run \`${CLI_COMMAND} login <api-key>\` for 100 compiles per hour.`}`;
|
|
1303
1303
|
}
|
|
1304
1304
|
function formatDuration(totalSeconds) {
|
|
1305
1305
|
const seconds = Math.max(0, Math.ceil(totalSeconds));
|
|
@@ -69336,7 +69336,7 @@ async function gitCommit() {
|
|
|
69336
69336
|
//#endregion
|
|
69337
69337
|
//#region src/index.ts
|
|
69338
69338
|
const cli = new Command();
|
|
69339
|
-
cli.name("better-sol").description("TypeScript-first Solana program tooling — run with npx @better-sol/cli@alpha").version("0.1.0-alpha.
|
|
69339
|
+
cli.name("better-sol").description("TypeScript-first Solana program tooling — run with npx @better-sol/cli@alpha").version("0.1.0-alpha.9");
|
|
69340
69340
|
cli.command("init").description("Initialize a better-sol project").option("--force", "overwrite existing files", false).option("--skip-install", "skip installing dependencies", false).action((options) => run(() => init(options)));
|
|
69341
69341
|
cli.command("create").description("Create a new better-sol program").argument("[name]", "program name").option("--dir <dir>", "program directory", "programs").option("--force", "overwrite existing files", false).action((name, options) => run(() => create(name, options)));
|
|
69342
69342
|
cli.command("login").description("Save your compiler API key").argument("[apiKey]", "compiler API key").action((apiKey) => run(() => login(apiKey)));
|