@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
|
@@ -4020,6 +4020,9 @@ function mergeTxfData(local, remote) {
|
|
|
4020
4020
|
const localNametags = local._nametags ?? [];
|
|
4021
4021
|
const remoteNametags = remote._nametags ?? [];
|
|
4022
4022
|
const mergedNametags = mergeNametagsByName(localNametags, remoteNametags);
|
|
4023
|
+
const localHistory = local._history ?? [];
|
|
4024
|
+
const remoteHistory = remote._history ?? [];
|
|
4025
|
+
const mergedHistory = mergeArrayById(localHistory, remoteHistory, "dedupKey");
|
|
4023
4026
|
const merged = {
|
|
4024
4027
|
_meta: mergedMeta,
|
|
4025
4028
|
_tombstones: mergedTombstones.length > 0 ? mergedTombstones : void 0,
|
|
@@ -4027,6 +4030,7 @@ function mergeTxfData(local, remote) {
|
|
|
4027
4030
|
_outbox: mergedOutbox.length > 0 ? mergedOutbox : void 0,
|
|
4028
4031
|
_sent: mergedSent.length > 0 ? mergedSent : void 0,
|
|
4029
4032
|
_invalid: mergedInvalid.length > 0 ? mergedInvalid : void 0,
|
|
4033
|
+
_history: mergedHistory.length > 0 ? mergedHistory : void 0,
|
|
4030
4034
|
...mergedTokens
|
|
4031
4035
|
};
|
|
4032
4036
|
return { merged, added, removed, conflicts };
|
|
@@ -4053,7 +4057,8 @@ function getTokenKeys(data) {
|
|
|
4053
4057
|
"_nametags",
|
|
4054
4058
|
"_mintOutbox",
|
|
4055
4059
|
"_invalidatedNametags",
|
|
4056
|
-
"_integrity"
|
|
4060
|
+
"_integrity",
|
|
4061
|
+
"_history"
|
|
4057
4062
|
]);
|
|
4058
4063
|
const keys = /* @__PURE__ */ new Set();
|
|
4059
4064
|
for (const key of Object.keys(data)) {
|