"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mirror = mirror;
function mirror(a, b) {
    a.subscribe([], '*', async (type, path, key, data) => {
        const specId = path[0] ?? key;
        if (!(await b.hasKey(specId))) {
            b.dispatch(type, path, key, data);
        }
    });
}
//# sourceMappingURL=mirror.js.map