trackly-cli 0.1.9 → 0.1.10
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/bin/trackly +6 -2
- package/package.json +1 -1
- package/server.json +2 -2
package/bin/trackly
CHANGED
|
@@ -611,8 +611,12 @@ async function cmdConfig(args) {
|
|
|
611
611
|
|
|
612
612
|
if (args['api-key'] !== undefined) {
|
|
613
613
|
const keyValue = String(args['api-key']).trim();
|
|
614
|
-
if (
|
|
615
|
-
|
|
614
|
+
if (keyValue.startsWith('trk_') && keyValue.length < 14) {
|
|
615
|
+
failNow('Invalid API key: trk_ keys must be at least 14 characters (trk_ + 10). Run "trackly api-key create" to generate a valid key.');
|
|
616
|
+
} else if (!keyValue.startsWith('trk_') && keyValue.length < 20) {
|
|
617
|
+
failNow('Invalid API key: key does not start with trk_ and is too short (must be 20+ characters). Run "trackly api-key create" to generate a valid key.');
|
|
618
|
+
} else if (!keyValue.startsWith('trk_')) {
|
|
619
|
+
console.log(color('yellow', 'Warning: API key does not start with trk_ prefix. Saving as legacy/JWT key.'));
|
|
616
620
|
}
|
|
617
621
|
const hadToken = Boolean(config.token);
|
|
618
622
|
config.apiKey = keyValue;
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"sizes": ["512x512"]
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"version": "0.1.
|
|
18
|
+
"version": "0.1.10",
|
|
19
19
|
"packages": [
|
|
20
20
|
{
|
|
21
21
|
"registryType": "npm",
|
|
22
22
|
"identifier": "trackly-cli",
|
|
23
|
-
"version": "0.1.
|
|
23
|
+
"version": "0.1.10",
|
|
24
24
|
"runtimeHint": "npx",
|
|
25
25
|
"runtimeArguments": [
|
|
26
26
|
{
|