amalgm 0.1.204 → 0.1.205
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
|
@@ -257,6 +257,15 @@ test('a repo project appends immutable machine records', async () => {
|
|
|
257
257
|
null,
|
|
258
258
|
);
|
|
259
259
|
assert.equal(publishedCardFor(refreshed.cards[0]).positionVersion, 1);
|
|
260
|
+
const readyObjects = {
|
|
261
|
+
...refreshed.cards[0],
|
|
262
|
+
objects: { kind: 'bundle' },
|
|
263
|
+
refs: refreshed.cards[0].refs.map((ref) => ({
|
|
264
|
+
...ref,
|
|
265
|
+
objects: { kind: 'bundle' },
|
|
266
|
+
})),
|
|
267
|
+
};
|
|
268
|
+
assert.equal(publishedCardFor(readyObjects), null);
|
|
260
269
|
|
|
261
270
|
const again = publishWall(repoKey);
|
|
262
271
|
assert.equal(again.published, false);
|
|
@@ -194,6 +194,7 @@ function publishedCardFor(card) {
|
|
|
194
194
|
|| published.head?.branch !== card.head?.branch
|
|
195
195
|
|| published.head?.oid !== card.head?.oid
|
|
196
196
|
|| Boolean(published.head?.detached) !== Boolean(card.head?.detached)
|
|
197
|
+
|| hasObjectUpgrade(card, { card: published, branches: published.branches })
|
|
197
198
|
) return null;
|
|
198
199
|
return published;
|
|
199
200
|
}
|