@suronai/sdk 0.1.13 → 0.1.15
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/package.json +1 -1
- package/src/vault.js +3 -3
package/package.json
CHANGED
package/src/vault.js
CHANGED
|
@@ -113,14 +113,14 @@ export async function vault(options = {}) {
|
|
|
113
113
|
|
|
114
114
|
const requestId = await requestAccess(apiUrl, config.id);
|
|
115
115
|
|
|
116
|
-
process.stdout.write(
|
|
116
|
+
process.stdout.write(`\n △ Suron — waiting for Telegram approval\n │ App: ${config.app}\n │ Tap ✅ Approve in Telegram to continue.\n\n`);
|
|
117
117
|
|
|
118
118
|
await pollUntilApproved(apiUrl, requestId, timeout, pollInterval);
|
|
119
119
|
|
|
120
120
|
const privateKey = await fetchKey(apiUrl, requestId);
|
|
121
121
|
decryptEnv(privateKey, configPath);
|
|
122
122
|
// Note: JS strings are immutable — there is no way to scrub the value from
|
|
123
|
-
// heap memory. The reference is dropped here and will be GC
|
|
123
|
+
// heap memory. The reference is dropped here and will be GC’d normally.
|
|
124
124
|
|
|
125
|
-
process.stdout.write(`
|
|
125
|
+
process.stdout.write(` ✔ Suron — secrets loaded for “${config.app}”\n\n`);
|
|
126
126
|
}
|