UNPKG

json-crdt-server

Version:

JSON CRDT server and syncing local-first browser client

33 lines (32 loc) 1.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.block = void 0; const new_1 = require("./methods/new"); const get_1 = require("./methods/get"); const view_1 = require("./methods/view"); const upd_1 = require("./methods/upd"); const del_1 = require("./methods/del"); const scan_1 = require("./methods/scan"); const listen_1 = require("./methods/listen"); const schema_1 = require("./schema"); const pull_1 = require("./methods/pull"); const block = (d) => (r) => { const { system } = d; system.alias('BlockId', schema_1.BlockId); system.alias('BlockCur', schema_1.BlockCur); system.alias('BlockBatchSeq', schema_1.BlockBatchSeq); system.alias('Block', schema_1.Block); system.alias('BlockSnapshotReturn', schema_1.BlockSnapshotReturn); system.alias('BlockSnapshot', schema_1.BlockSnapshot); system.alias('NewBlockSnapshotResponse', schema_1.NewBlockSnapshotResponse); system.alias('BlockPatch', schema_1.BlockPatch); system.alias('BlockPatchPartial', schema_1.BlockPatchPartial); system.alias('BlockPatchPartialReturn', schema_1.BlockPatchPartialReturn); system.alias('BlockBatch', schema_1.BlockBatch); system.alias('BlockBatchPartial', schema_1.BlockBatchPartial); system.alias('BlockBatchPartialReturn', schema_1.BlockBatchPartialReturn); system.alias('BlockEvent', schema_1.BlockEvent); // biome-ignore format: each on its own line return (((0, new_1.new_)(d)((0, get_1.get)(d)((0, view_1.view)(d)((0, upd_1.upd)(d)((0, del_1.del)(d)((0, listen_1.listen)(d)((0, scan_1.scan)(d)((0, pull_1.pull)(d)(r)))))))))); }; exports.block = block;