buckyos 0.7.135 → 0.7.136

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.
@@ -774,6 +774,9 @@ function getBrowserIdentityRaw() {
774
774
  return null;
775
775
  }
776
776
  }
777
+ function clearBrowserIdentity() {
778
+ localStorage.removeItem(BROWSER_IDENTITY_STORAGE_KEY);
779
+ }
777
780
  const DID_OBJECT_SERVICE_TYPE = "DIDObjectService";
778
781
  const DID_OBJECT_SERVICE_ID = "#did-object";
779
782
  const NODE_IDENTITY_SCHEMA_V2 = "buckyos.node_identity.v2";
@@ -3760,47 +3763,48 @@ const ndn_types = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
3760
3763
  verifyNamedObjectFromStr
3761
3764
  }, Symbol.toStringTag, { value: "Module" }));
3762
3765
  export {
3763
- parseOODDescription as $,
3766
+ oodDescriptionToString as $,
3764
3767
  getBrowserUserInfo as A,
3765
- saveLocalAccountInfo as B,
3766
- cleanLocalAccountInfo as C,
3768
+ clearBrowserIdentity as B,
3769
+ saveLocalAccountInfo as C,
3767
3770
  DID_OBJECT_SERVICE_TYPE as D,
3768
- canonicalize$1 as E,
3769
- signJwtEdDSA as F,
3770
- ChunkId as G,
3771
- FileObject as H,
3772
- sha256Bytes as I,
3773
- DirObject as J,
3774
- newDeviceDocumentByJwk as K,
3775
- verifyJwtEdDSA as L,
3776
- deviceDocumentToOrderedJson as M,
3771
+ cleanLocalAccountInfo as E,
3772
+ canonicalize$1 as F,
3773
+ signJwtEdDSA as G,
3774
+ ChunkId as H,
3775
+ FileObject as I,
3776
+ sha256Bytes as J,
3777
+ DirObject as K,
3778
+ newDeviceDocumentByJwk as L,
3779
+ verifyJwtEdDSA as M,
3777
3780
  NODE_IDENTITY_SCHEMA_V2 as N,
3778
3781
  ObjId as O,
3779
- decodeJwtClaimWithoutVerify as P,
3780
- commonjsGlobal as Q,
3781
- DEFAULT_EXPIRE_TIME as R,
3782
+ deviceDocumentToOrderedJson as P,
3783
+ decodeJwtClaimWithoutVerify as Q,
3784
+ commonjsGlobal as R,
3782
3785
  SimpleChunkList as S,
3783
- buckyosGetUnixTimestamp as T,
3784
- getPublicKeyXFromPrivatePem as U,
3785
- getXFromJwk as V,
3786
- createJwkByX as W,
3787
- newOwnerDocument as X,
3788
- ownerDocumentSetDefaultZoneDid as Y,
3789
- ownerDocumentToOrderedJson as Z,
3790
- oodDescriptionToString as _,
3786
+ DEFAULT_EXPIRE_TIME as T,
3787
+ buckyosGetUnixTimestamp as U,
3788
+ getPublicKeyXFromPrivatePem as V,
3789
+ getXFromJwk as W,
3790
+ createJwkByX as X,
3791
+ newOwnerDocument as Y,
3792
+ ownerDocumentSetDefaultZoneDid as Z,
3793
+ ownerDocumentToOrderedJson as _,
3791
3794
  ndn_types as a,
3792
- encodeZoneBootDocument as a0,
3793
- newZoneBootDocument as a1,
3794
- encodeDeviceDocument as a2,
3795
- newDeviceMiniDocumentByDeviceDocument as a3,
3796
- deviceMiniDocumentToJwt as a4,
3797
- newZoneDocument as a5,
3798
- encodeZoneDocument as a6,
3799
- zoneDocumentToOrderedJson as a7,
3800
- newDeviceMiniDocument as a8,
3801
- newDeviceDocumentByMiniDocument as a9,
3802
- buildNamedObjectByJson as aa,
3803
- getDefaultExportFromCjs as ab,
3795
+ parseOODDescription as a0,
3796
+ encodeZoneBootDocument as a1,
3797
+ newZoneBootDocument as a2,
3798
+ encodeDeviceDocument as a3,
3799
+ newDeviceMiniDocumentByDeviceDocument as a4,
3800
+ deviceMiniDocumentToJwt as a5,
3801
+ newZoneDocument as a6,
3802
+ encodeZoneDocument as a7,
3803
+ zoneDocumentToOrderedJson as a8,
3804
+ newDeviceMiniDocument as a9,
3805
+ newDeviceDocumentByMiniDocument as aa,
3806
+ buildNamedObjectByJson as ab,
3807
+ getDefaultExportFromCjs as ac,
3804
3808
  DID_OBJECT_SERVICE_ID as b,
3805
3809
  isBuckyOSOwnerDocument as c,
3806
3810
  isBuckyOSDeviceMiniDocument as d,
@@ -3827,4 +3831,4 @@ export {
3827
3831
  saveBrowserIdentity as y,
3828
3832
  saveBrowserUserInfo as z
3829
3833
  };
3830
- //# sourceMappingURL=ndn_types-395be6e1.mjs.map
3834
+ //# sourceMappingURL=ndn_types-ac9c1e48.mjs.map