@unicitylabs/sphere-sdk 0.5.2 → 0.5.3
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/core/index.cjs +54 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +8 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.js +54 -2
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +6 -1
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +6 -1
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/browser/ipfs.cjs +6 -1
- package/dist/impl/browser/ipfs.cjs.map +1 -1
- package/dist/impl/browser/ipfs.js +6 -1
- package/dist/impl/browser/ipfs.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +6 -1
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +1 -0
- package/dist/impl/nodejs/index.d.ts +1 -0
- package/dist/impl/nodejs/index.js +6 -1
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +54 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +54 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3983,6 +3983,9 @@ function mergeTxfData(local, remote) {
|
|
|
3983
3983
|
const localNametags = local._nametags ?? [];
|
|
3984
3984
|
const remoteNametags = remote._nametags ?? [];
|
|
3985
3985
|
const mergedNametags = mergeNametagsByName(localNametags, remoteNametags);
|
|
3986
|
+
const localHistory = local._history ?? [];
|
|
3987
|
+
const remoteHistory = remote._history ?? [];
|
|
3988
|
+
const mergedHistory = mergeArrayById(localHistory, remoteHistory, "dedupKey");
|
|
3986
3989
|
const merged = {
|
|
3987
3990
|
_meta: mergedMeta,
|
|
3988
3991
|
_tombstones: mergedTombstones.length > 0 ? mergedTombstones : void 0,
|
|
@@ -3990,6 +3993,7 @@ function mergeTxfData(local, remote) {
|
|
|
3990
3993
|
_outbox: mergedOutbox.length > 0 ? mergedOutbox : void 0,
|
|
3991
3994
|
_sent: mergedSent.length > 0 ? mergedSent : void 0,
|
|
3992
3995
|
_invalid: mergedInvalid.length > 0 ? mergedInvalid : void 0,
|
|
3996
|
+
_history: mergedHistory.length > 0 ? mergedHistory : void 0,
|
|
3993
3997
|
...mergedTokens
|
|
3994
3998
|
};
|
|
3995
3999
|
return { merged, added, removed, conflicts };
|
|
@@ -4016,7 +4020,8 @@ function getTokenKeys(data) {
|
|
|
4016
4020
|
"_nametags",
|
|
4017
4021
|
"_mintOutbox",
|
|
4018
4022
|
"_invalidatedNametags",
|
|
4019
|
-
"_integrity"
|
|
4023
|
+
"_integrity",
|
|
4024
|
+
"_history"
|
|
4020
4025
|
]);
|
|
4021
4026
|
const keys = /* @__PURE__ */ new Set();
|
|
4022
4027
|
for (const key of Object.keys(data)) {
|