@referalli/cli 0.4.5 → 0.4.6
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/CHANGELOG.md +4 -0
- package/dist/src/commands.js +6 -2
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to `@referalli/cli` are recorded here. The format follows
|
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before 1.0, a minor
|
|
6
6
|
bump may include breaking changes; they are called out under **Changed**.
|
|
7
7
|
|
|
8
|
+
## 0.4.6 - 2026-11-05
|
|
9
|
+
|
|
10
|
+
- `keys create --programs ''` explains itself rather than printing the server's bare 400.
|
|
11
|
+
|
|
8
12
|
## 0.4.5 - 2026-11-05
|
|
9
13
|
|
|
10
14
|
- `keys create` takes `--programs ID,…` and `--expires-at ISO`.
|
package/dist/src/commands.js
CHANGED
|
@@ -352,8 +352,12 @@ export async function keys(io, sub, arg, flags) {
|
|
|
352
352
|
body.expiresInDays = Number(flags['expires-days']);
|
|
353
353
|
if (typeof flags['expires-at'] === 'string')
|
|
354
354
|
body.expiresAt = flags['expires-at'];
|
|
355
|
-
if (
|
|
356
|
-
|
|
355
|
+
if (flags.programs !== undefined) {
|
|
356
|
+
const programIds = String(flags.programs).split(',').map((x) => x.trim()).filter(Boolean);
|
|
357
|
+
if (programIds.length === 0)
|
|
358
|
+
throw new CliError('--programs needs at least one program id');
|
|
359
|
+
body.programIds = programIds;
|
|
360
|
+
}
|
|
357
361
|
const res = await client.request('POST', '/v1/api-keys', body);
|
|
358
362
|
const issued = 'live' in res ? [res.live, res.test] : [res];
|
|
359
363
|
io.out('Each key is shown once. Store it now (a password manager or your secrets store):');
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Kept in step with package.json by test/version.test.ts. */
|
|
2
|
-
export declare const VERSION = "0.4.
|
|
2
|
+
export declare const VERSION = "0.4.6";
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Kept in step with package.json by test/version.test.ts. */
|
|
2
|
-
export const VERSION = '0.4.
|
|
2
|
+
export const VERSION = '0.4.6';
|
package/package.json
CHANGED