@le-space/rootfs 0.3.27 → 0.3.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@le-space/rootfs",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Shared rootfs contract parsing, reference profile assets, and build helpers.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -246,13 +246,13 @@ def build_post_content(
246
246
  owner_authorization: dict[str, object] | None,
247
247
  relay_proof: dict[str, object],
248
248
  now_ms: int,
249
+ now_seconds: float,
249
250
  ref: str,
250
251
  post_type: str,
251
252
  ) -> dict[str, object]:
252
253
  content = {
253
254
  "peerId": peer_id,
254
255
  "multiaddrs": multiaddrs,
255
- "browserMultiaddrs": browser_multiaddrs if browser_multiaddrs else None,
256
256
  "registrationId": registration_id,
257
257
  "profile": profile,
258
258
  "version": version,
@@ -266,12 +266,14 @@ def build_post_content(
266
266
  "relayProof": relay_proof,
267
267
  "updatedAt": now_ms,
268
268
  }
269
+ if browser_multiaddrs:
270
+ content["browserMultiaddrs"] = browser_multiaddrs
269
271
  return {
270
272
  "type": post_type,
271
273
  "address": sender,
272
274
  "ref": ref,
273
275
  "content": content,
274
- "time": now_ms,
276
+ "time": now_seconds,
275
277
  }
276
278
 
277
279
 
@@ -532,6 +534,7 @@ def main() -> None:
532
534
  owner_authorization,
533
535
  relay_proof,
534
536
  now_ms,
537
+ now_seconds,
535
538
  ref,
536
539
  post_type,
537
540
  )