antenna-fyi 1.3.35 → 1.3.36
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/lib/cli.js +3 -1
- package/lib/core.js +2 -0
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -80,7 +80,9 @@ export async function handleProfile(f) {
|
|
|
80
80
|
if (f["more-information"] !== undefined) payload.matching_context = f["more-information"];
|
|
81
81
|
if (f.contact !== undefined) payload.contact_info = f.contact;
|
|
82
82
|
if (f.slug !== undefined) payload.profile_slug = f.slug;
|
|
83
|
-
|
|
83
|
+
if (visible !== undefined) payload.visible = visible;
|
|
84
|
+
const config = loadConfig();
|
|
85
|
+
if (config.key) payload.api_key = config.key;
|
|
84
86
|
const data = await setProfile(payload);
|
|
85
87
|
if (data?.error) {
|
|
86
88
|
console.error("❌ " + data.error);
|
package/lib/core.js
CHANGED
|
@@ -258,6 +258,7 @@ export async function setProfile({
|
|
|
258
258
|
profile_slug,
|
|
259
259
|
is_active,
|
|
260
260
|
archetype_override,
|
|
261
|
+
api_key,
|
|
261
262
|
supabaseUrl,
|
|
262
263
|
supabaseKey,
|
|
263
264
|
}) {
|
|
@@ -308,6 +309,7 @@ export async function setProfile({
|
|
|
308
309
|
p_visible: visible,
|
|
309
310
|
p_matching_context: contextJson || null,
|
|
310
311
|
p_contact_info: contact_info || null,
|
|
312
|
+
...(api_key ? { p_api_key: api_key } : {}),
|
|
311
313
|
});
|
|
312
314
|
if (error) throw new Error(error.message);
|
|
313
315
|
|