@cipherstash/stack 0.5.0 → 0.6.0
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 +6 -0
- package/dist/bin/stash.js +5 -5
- package/dist/bin/stash.js.map +1 -1
- package/dist/{client-BVQvgvdY.d.cts → client-CJueivkw.d.cts} +1 -1
- package/dist/{client-BFrHTgC6.d.ts → client-hHEpZIZH.d.ts} +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/drizzle/index.d.cts +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/dynamodb/index.d.cts +2 -2
- package/dist/dynamodb/index.d.ts +2 -2
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/secrets/index.d.cts +1 -1
- package/dist/secrets/index.d.ts +1 -1
- package/dist/supabase/index.d.cts +2 -2
- package/dist/supabase/index.d.ts +2 -2
- package/dist/{types-public-dKxDzTIL.d.cts → types-public-07ilcGY-.d.cts} +1 -1
- package/dist/{types-public-dKxDzTIL.d.ts → types-public-07ilcGY-.d.ts} +1 -1
- package/dist/types-public.d.cts +1 -1
- package/dist/types-public.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/bin/stash.js
CHANGED
|
@@ -1448,7 +1448,10 @@ function resolveProvider(flags) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
async function initCommand(flags) {
|
|
1450
1450
|
const provider = resolveProvider(flags);
|
|
1451
|
-
Ie(
|
|
1451
|
+
Ie("CipherStash Stack Setup");
|
|
1452
|
+
M2.warn(
|
|
1453
|
+
"This command is a prototype and a sneak peek at what's next. It doesn't perform any actual setup yet."
|
|
1454
|
+
);
|
|
1452
1455
|
M2.info(provider.introMessage);
|
|
1453
1456
|
let state = {};
|
|
1454
1457
|
try {
|
|
@@ -4646,13 +4649,11 @@ function getConfig(environment) {
|
|
|
4646
4649
|
const workspaceCRN = process.env.CS_WORKSPACE_CRN;
|
|
4647
4650
|
const clientId = process.env.CS_CLIENT_ID;
|
|
4648
4651
|
const clientKey = process.env.CS_CLIENT_KEY;
|
|
4649
|
-
const apiKey = process.env.CS_CLIENT_ACCESS_KEY;
|
|
4650
4652
|
const accessKey = process.env.CS_ACCESS_KEY;
|
|
4651
4653
|
const missing = [];
|
|
4652
4654
|
if (!workspaceCRN) missing.push("CS_WORKSPACE_CRN");
|
|
4653
4655
|
if (!clientId) missing.push("CS_CLIENT_ID");
|
|
4654
4656
|
if (!clientKey) missing.push("CS_CLIENT_KEY");
|
|
4655
|
-
if (!apiKey) missing.push("CS_CLIENT_ACCESS_KEY");
|
|
4656
4657
|
if (missing.length > 0) {
|
|
4657
4658
|
console.error(
|
|
4658
4659
|
style.error(
|
|
@@ -4668,14 +4669,13 @@ ${style.info("Please set the following environment variables:")}`
|
|
|
4668
4669
|
}
|
|
4669
4670
|
process.exit(1);
|
|
4670
4671
|
}
|
|
4671
|
-
if (!workspaceCRN || !clientId || !clientKey || !
|
|
4672
|
+
if (!workspaceCRN || !clientId || !clientKey || !accessKey) {
|
|
4672
4673
|
throw new Error("Missing required configuration");
|
|
4673
4674
|
}
|
|
4674
4675
|
return {
|
|
4675
4676
|
workspaceCRN,
|
|
4676
4677
|
clientId,
|
|
4677
4678
|
clientKey,
|
|
4678
|
-
apiKey,
|
|
4679
4679
|
accessKey,
|
|
4680
4680
|
environment
|
|
4681
4681
|
};
|