whoburnedmore 0.8.5 → 0.8.7
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/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80,6 +80,9 @@ async function anonSubmit(anonKey, payload) {
|
|
|
80
80
|
function claimUrl(dashboardUrl, anonKey) {
|
|
81
81
|
return `${dashboardUrl}#k=${encodeURIComponent(anonKey)}`;
|
|
82
82
|
}
|
|
83
|
+
function boardClaimUrl(boardUrl, slug, anonKey) {
|
|
84
|
+
return `${boardUrl}#k=${encodeURIComponent(anonKey)}&u=${encodeURIComponent(slug)}`;
|
|
85
|
+
}
|
|
83
86
|
async function anonVisibility(anonKey, listed) {
|
|
84
87
|
const { status, body } = await post(
|
|
85
88
|
"/v1/anon/visibility",
|
|
@@ -5906,7 +5909,7 @@ async function run(flags) {
|
|
|
5906
5909
|
recordSync();
|
|
5907
5910
|
} catch {
|
|
5908
5911
|
}
|
|
5909
|
-
const target = result.boardUrl
|
|
5912
|
+
const target = result.boardUrl ? boardClaimUrl(result.boardUrl, result.slug, anonKey) : claimUrl(result.dashboardUrl, anonKey);
|
|
5910
5913
|
if (!flags.quiet) {
|
|
5911
5914
|
console.log(
|
|
5912
5915
|
pc2.green(" \u2713 Synced securely.") + pc2.dim(" Only your daily totals left this machine \u2014 never your prompts, code, or file names.")
|