This commit is contained in:
Raven Scott
2026-05-20 22:56:32 -04:00
parent b8c335adee
commit dd384eb944
321 changed files with 7484 additions and 3793 deletions
@@ -1,8 +1,12 @@
require('bare-process/global')
const { HyperP2PCrdtVersionVector } = require('../index.js')
const { HyperP2PCrdtVersionVector, compareVectors } = require('../index.js')
async function main () {
const m = new HyperP2PCrdtVersionVector()
console.log('[scaffold]', m.getStats())
const vv = new HyperP2PCrdtVersionVector()
vv.increment('local')
vv.merge({ remote: 3 })
console.log(vv.toJSON(), compareVectors(vv.toJSON(), { local: 1 }), vv.getStats())
await vv.close()
}
main().catch(console.error)