lsh-framework 3.2.0 → 3.2.1
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/lib/ipfs-sync.js +5 -2
- package/package.json +1 -1
package/dist/lib/ipfs-sync.js
CHANGED
|
@@ -350,9 +350,12 @@ export class IPFSSync {
|
|
|
350
350
|
*/
|
|
351
351
|
async publishToIPNS(cid, keyName) {
|
|
352
352
|
try {
|
|
353
|
-
|
|
353
|
+
// allow-offline=true stores the record locally and returns immediately;
|
|
354
|
+
// the daemon propagates it to the DHT in the background.
|
|
355
|
+
// Without this, first publishes can take 60-90s for DHT propagation.
|
|
356
|
+
const response = await fetch(`${this.LOCAL_IPFS_API}/name/publish?arg=${cid}&key=${encodeURIComponent(keyName)}&lifetime=87600h&resolve=false&offline=true`, {
|
|
354
357
|
method: 'POST',
|
|
355
|
-
signal: AbortSignal.timeout(
|
|
358
|
+
signal: AbortSignal.timeout(15000),
|
|
356
359
|
});
|
|
357
360
|
if (!response.ok) {
|
|
358
361
|
const errorText = await response.text();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lsh-framework",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Simple, cross-platform encrypted secrets manager with automatic sync, IPFS audit logs, and multi-environment support. Just run lsh sync and start managing your secrets.",
|
|
5
5
|
"main": "dist/app.js",
|
|
6
6
|
"bin": {
|