@cipherstash/stack 0.5.0 → 0.7.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 +12 -0
- package/dist/bin/stash.js +13 -5
- package/dist/bin/stash.js.map +1 -1
- package/dist/{chunk-TGUELLJS.js → chunk-H7IHWDZI.js} +9 -1
- package/dist/chunk-H7IHWDZI.js.map +1 -0
- package/dist/{chunk-YLISU7FD.js → chunk-URZNWMOO.js} +2 -2
- package/dist/{client-BVQvgvdY.d.cts → client-DQMy1ux5.d.cts} +7 -1
- package/dist/{client-BFrHTgC6.d.ts → client-zxrOpegN.d.ts} +7 -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.cjs +8 -0
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/encryption/index.js +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/secrets/index.cjs +8 -0
- package/dist/secrets/index.cjs.map +1 -1
- package/dist/secrets/index.d.cts +1 -1
- package/dist/secrets/index.d.ts +1 -1
- package/dist/secrets/index.js +2 -2
- package/dist/supabase/index.d.cts +2 -2
- package/dist/supabase/index.d.ts +2 -2
- package/dist/{types-public-dKxDzTIL.d.ts → types-public-07ilcGY-.d.cts} +1 -1
- package/dist/{types-public-dKxDzTIL.d.cts → 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/dist/chunk-TGUELLJS.js.map +0 -1
- /package/dist/{chunk-YLISU7FD.js.map → chunk-URZNWMOO.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @cipherstash/stack
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1be8f81: Exposed a public method on the Encryption client to expose the build Encryption schema.
|
|
8
|
+
|
|
9
|
+
## 0.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 0b9fd7a: Add notes to CLI about init in prototype phase.
|
|
14
|
+
|
|
3
15
|
## 0.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
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 {
|
|
@@ -4258,6 +4261,14 @@ var EncryptionClient = class {
|
|
|
4258
4261
|
workspaceId: this.workspaceId
|
|
4259
4262
|
};
|
|
4260
4263
|
}
|
|
4264
|
+
/**
|
|
4265
|
+
* Get the encrypt config object.
|
|
4266
|
+
*
|
|
4267
|
+
* @returns The encrypt config object.
|
|
4268
|
+
*/
|
|
4269
|
+
getEncryptConfig() {
|
|
4270
|
+
return this.encryptConfig;
|
|
4271
|
+
}
|
|
4261
4272
|
};
|
|
4262
4273
|
var Encryption = async (config3) => {
|
|
4263
4274
|
const { schemas, config: clientConfig } = config3;
|
|
@@ -4646,13 +4657,11 @@ function getConfig(environment) {
|
|
|
4646
4657
|
const workspaceCRN = process.env.CS_WORKSPACE_CRN;
|
|
4647
4658
|
const clientId = process.env.CS_CLIENT_ID;
|
|
4648
4659
|
const clientKey = process.env.CS_CLIENT_KEY;
|
|
4649
|
-
const apiKey = process.env.CS_CLIENT_ACCESS_KEY;
|
|
4650
4660
|
const accessKey = process.env.CS_ACCESS_KEY;
|
|
4651
4661
|
const missing = [];
|
|
4652
4662
|
if (!workspaceCRN) missing.push("CS_WORKSPACE_CRN");
|
|
4653
4663
|
if (!clientId) missing.push("CS_CLIENT_ID");
|
|
4654
4664
|
if (!clientKey) missing.push("CS_CLIENT_KEY");
|
|
4655
|
-
if (!apiKey) missing.push("CS_CLIENT_ACCESS_KEY");
|
|
4656
4665
|
if (missing.length > 0) {
|
|
4657
4666
|
console.error(
|
|
4658
4667
|
style.error(
|
|
@@ -4668,14 +4677,13 @@ ${style.info("Please set the following environment variables:")}`
|
|
|
4668
4677
|
}
|
|
4669
4678
|
process.exit(1);
|
|
4670
4679
|
}
|
|
4671
|
-
if (!workspaceCRN || !clientId || !clientKey || !
|
|
4680
|
+
if (!workspaceCRN || !clientId || !clientKey || !accessKey) {
|
|
4672
4681
|
throw new Error("Missing required configuration");
|
|
4673
4682
|
}
|
|
4674
4683
|
return {
|
|
4675
4684
|
workspaceCRN,
|
|
4676
4685
|
clientId,
|
|
4677
4686
|
clientKey,
|
|
4678
|
-
apiKey,
|
|
4679
4687
|
accessKey,
|
|
4680
4688
|
environment
|
|
4681
4689
|
};
|