valta-sdk 2.1.2 → 2.1.3
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/cli/index.cjs +1 -1
- package/dist/cli/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ function prompt(question) {
|
|
|
41
41
|
async function loginCommand() {
|
|
42
42
|
console.log("\n Valta Login\n");
|
|
43
43
|
const apiKey = await prompt(" API Key: ");
|
|
44
|
-
if (!apiKey || !apiKey.startsWith("
|
|
44
|
+
if (!apiKey || !apiKey.startsWith("sk_valta_")) {
|
|
45
45
|
console.error("\n \u2716 Invalid API key. Keys start with vk_\n");
|
|
46
46
|
process.exit(1);
|
|
47
47
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -43,7 +43,7 @@ function prompt(question) {
|
|
|
43
43
|
async function loginCommand() {
|
|
44
44
|
console.log("\n Valta Login\n");
|
|
45
45
|
const apiKey = await prompt(" API Key: ");
|
|
46
|
-
if (!apiKey || !apiKey.startsWith("
|
|
46
|
+
if (!apiKey || !apiKey.startsWith("sk_valta_")) {
|
|
47
47
|
console.error("\n \u2716 Invalid API key. Keys start with vk_\n");
|
|
48
48
|
process.exit(1);
|
|
49
49
|
}
|