@dxos/feed-store 2.33.5-dev.0a40e013 → 2.33.5-dev.61c93034
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/src/benchmark.js +21 -25
- package/dist/src/benchmark.js.map +1 -1
- package/dist/src/create-batch-stream.d.ts +1 -1
- package/dist/src/create-batch-stream.d.ts.map +1 -1
- package/dist/src/create-batch-stream.js +14 -14
- package/dist/src/create-batch-stream.js.map +1 -1
- package/dist/src/create-batch-stream.test.js +1 -3
- package/dist/src/create-batch-stream.test.js.map +1 -1
- package/dist/src/feed-descriptor.test.js +3 -3
- package/dist/src/feed-descriptor.test.js.map +1 -1
- package/dist/src/feed-store.js +2 -2
- package/dist/src/feed-store.js.map +1 -1
- package/dist/src/feed-store.test.js +12 -22
- package/dist/src/feed-store.test.js.map +1 -1
- package/dist/src/stream.d.ts +4 -4
- package/dist/src/stream.d.ts.map +1 -1
- package/dist/src/stream.js +34 -42
- package/dist/src/stream.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/benchmark.ts +23 -27
- package/src/create-batch-stream.test.ts +1 -3
- package/src/create-batch-stream.ts +15 -15
- package/src/feed-descriptor.test.ts +3 -3
- package/src/feed-store.test.ts +15 -25
- package/src/feed-store.ts +2 -2
- package/src/stream.ts +32 -40
package/dist/src/benchmark.js
CHANGED
|
@@ -19,37 +19,33 @@ void (async () => {
|
|
|
19
19
|
};
|
|
20
20
|
const fs = new feed_store_1.FeedStore((0, random_access_multi_storage_1.createStorage)('.benchmark'), { valueEncoding: 'utf8' });
|
|
21
21
|
const suite = new benchmark_suite_1.Suite(fs, { maxFeeds, maxMessages });
|
|
22
|
-
suite.beforeAll(() => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
feed.append(`${name}/${i}`, (err) => {
|
|
30
|
-
if (err) {
|
|
31
|
-
return reject(err);
|
|
32
|
-
}
|
|
33
|
-
resolve();
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return feed;
|
|
38
|
-
}));
|
|
39
|
-
});
|
|
40
|
-
suite.test('getBatch', async () => {
|
|
41
|
-
let count = 0;
|
|
42
|
-
await Promise.all(Array.from(fs._descriptors.values()).map(({ feed }) => {
|
|
43
|
-
return new Promise((resolve, reject) => {
|
|
44
|
-
feed.getBatch(0, maxMessages, (err, result) => {
|
|
45
|
-
count += result.length;
|
|
22
|
+
suite.beforeAll(() => Promise.all(range(maxFeeds).map(async (i) => {
|
|
23
|
+
const name = `feed/${i}`;
|
|
24
|
+
const { publicKey, secretKey } = (0, crypto_1.createKeyPair)();
|
|
25
|
+
const { feed } = await fs.openReadWriteFeed(crypto_1.PublicKey.from(publicKey), secretKey);
|
|
26
|
+
for (let i = 0; i < maxMessages; i++) {
|
|
27
|
+
await new Promise((resolve, reject) => {
|
|
28
|
+
feed.append(`${name}/${i}`, (err) => {
|
|
46
29
|
if (err) {
|
|
47
30
|
return reject(err);
|
|
48
31
|
}
|
|
49
32
|
resolve();
|
|
50
33
|
});
|
|
51
34
|
});
|
|
52
|
-
}
|
|
35
|
+
}
|
|
36
|
+
return feed;
|
|
37
|
+
})));
|
|
38
|
+
suite.test('getBatch', async () => {
|
|
39
|
+
let count = 0;
|
|
40
|
+
await Promise.all(Array.from(fs._descriptors.values()).map(({ feed }) => new Promise((resolve, reject) => {
|
|
41
|
+
feed.getBatch(0, maxMessages, (err, result) => {
|
|
42
|
+
count += result.length;
|
|
43
|
+
if (err) {
|
|
44
|
+
return reject(err);
|
|
45
|
+
}
|
|
46
|
+
resolve();
|
|
47
|
+
});
|
|
48
|
+
})));
|
|
53
49
|
check(count);
|
|
54
50
|
});
|
|
55
51
|
const results = await suite.run();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../src/benchmark.ts"],"names":[],"mappings":";A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AAC;IACd,CAAC,CAAC,CAAC,CAAC,CAAC;IAEL,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,EAAU,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3H,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,GAAU,EAAE,MAAW,EAAE,EAAE;gBACxD,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC;gBACvB,IAAI,GAAG,EAAE;oBACP,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;iBACpB;gBACD,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC,CAAC,CAAC;QAEL,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC;IAElC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACvB,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -9,5 +9,5 @@ export interface CreateBatchStreamOptions {
|
|
|
9
9
|
metadata?: any;
|
|
10
10
|
tail?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createBatchStream: (feed: HypercoreFeed, opts?: CreateBatchStreamOptions) => NodeJS.ReadableStream;
|
|
13
13
|
//# sourceMappingURL=create-batch-stream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-batch-stream.d.ts","sourceRoot":"","sources":["../../src/create-batch-stream.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,
|
|
1
|
+
{"version":3,"file":"create-batch-stream.d.ts","sourceRoot":"","sources":["../../src/create-batch-stream.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,eAAO,MAAM,iBAAiB,SAAU,aAAa,SAAQ,wBAAwB,0BA8HpF,CAAC"}
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.createBatchStream = void 0;
|
|
10
10
|
const assert_1 = __importDefault(require("assert"));
|
|
11
11
|
const from2_1 = __importDefault(require("from2"));
|
|
12
|
-
|
|
12
|
+
const createBatchStream = (feed, opts = {}) => {
|
|
13
13
|
(0, assert_1.default)(!opts.batch || opts.batch > 0, 'batch must be major or equal to 1');
|
|
14
14
|
let start = opts.start || 0;
|
|
15
15
|
let end = typeof opts.end === 'number' ? opts.end : -1;
|
|
@@ -23,8 +23,7 @@ function createBatchStream(feed, opts = {}) {
|
|
|
23
23
|
let first = true;
|
|
24
24
|
let firstSyncEnd = end;
|
|
25
25
|
let range = feed.download({ start, end, linear: true });
|
|
26
|
-
|
|
27
|
-
function read(size, cb) {
|
|
26
|
+
const read = (size, cb) => {
|
|
28
27
|
if (!feed.opened) {
|
|
29
28
|
return open(size, cb);
|
|
30
29
|
}
|
|
@@ -85,8 +84,8 @@ function createBatchStream(feed, opts = {}) {
|
|
|
85
84
|
}
|
|
86
85
|
cb(null, messages.map(buildMessage));
|
|
87
86
|
});
|
|
88
|
-
}
|
|
89
|
-
|
|
87
|
+
};
|
|
88
|
+
const buildMessage = (data) => {
|
|
90
89
|
const message = {
|
|
91
90
|
key: feed.key,
|
|
92
91
|
seq: seq++,
|
|
@@ -95,23 +94,23 @@ function createBatchStream(feed, opts = {}) {
|
|
|
95
94
|
...metadata
|
|
96
95
|
};
|
|
97
96
|
return message;
|
|
98
|
-
}
|
|
99
|
-
|
|
97
|
+
};
|
|
98
|
+
const cleanup = () => {
|
|
100
99
|
if (!range) {
|
|
101
100
|
return;
|
|
102
101
|
}
|
|
103
102
|
feed.undownload(range);
|
|
104
103
|
range = null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
feed.ready(
|
|
104
|
+
};
|
|
105
|
+
const open = (size, cb) => {
|
|
106
|
+
feed.ready((err) => {
|
|
108
107
|
if (err) {
|
|
109
108
|
return cb(err);
|
|
110
109
|
}
|
|
111
110
|
read(size, cb);
|
|
112
111
|
});
|
|
113
|
-
}
|
|
114
|
-
|
|
112
|
+
};
|
|
113
|
+
const setStart = (value) => {
|
|
115
114
|
const prevStart = start;
|
|
116
115
|
start = value;
|
|
117
116
|
range.start = start;
|
|
@@ -119,7 +118,8 @@ function createBatchStream(feed, opts = {}) {
|
|
|
119
118
|
range.iterator.start = start;
|
|
120
119
|
}
|
|
121
120
|
return prevStart;
|
|
122
|
-
}
|
|
123
|
-
|
|
121
|
+
};
|
|
122
|
+
return from2_1.default.obj(read).on('end', cleanup).on('close', cleanup);
|
|
123
|
+
};
|
|
124
124
|
exports.createBatchStream = createBatchStream;
|
|
125
125
|
//# sourceMappingURL=create-batch-stream.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-batch-stream.js","sourceRoot":"","sources":["../../src/create-batch-stream.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,kDAA+B;
|
|
1
|
+
{"version":3,"file":"create-batch-stream.js","sourceRoot":"","sources":["../../src/create-batch-stream.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,kDAA+B;AAcxB,MAAM,iBAAiB,GAAG,CAAC,IAAmB,EAAE,OAAiC,EAAE,EAAE,EAAE;IAC5F,IAAA,gBAAM,EAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,mCAAmC,CAAC,CAAC;IAE3E,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;IAC5B,IAAI,GAAG,GAAG,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,GAAG,CAAC;IAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC;IACrC,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,GAAG,GAAG,KAAK,CAAC;IAChB,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,YAAY,GAAG,GAAG,CAAC;IAEvB,IAAI,KAAK,GAAG,IAAI,CAAC,QAA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A,iBAAiB,qBA8H5B"}
|
|
@@ -18,9 +18,7 @@ const createFeed = async () => {
|
|
|
18
18
|
const { feed } = await feedStore.openReadWriteFeed(crypto_1.PublicKey.from(publicKey), secretKey);
|
|
19
19
|
return feed;
|
|
20
20
|
};
|
|
21
|
-
const append = (feed, message) =>
|
|
22
|
-
return (0, pify_1.default)(feed.append.bind(feed))(message);
|
|
23
|
-
};
|
|
21
|
+
const append = (feed, message) => (0, pify_1.default)(feed.append.bind(feed))(message);
|
|
24
22
|
describe('Batch stream', () => {
|
|
25
23
|
test('Single message', async () => {
|
|
26
24
|
const feed = await createFeed();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-batch-stream.test.js","sourceRoot":"","sources":["../../src/create-batch-stream.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,gDAAwB;AACxB,sEAA4C;AAE5C,yCAAwD;AACxD,mFAA+E;AAE/E,+DAA0D;AAC1D,6CAAyC;AAGzC,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;IAC5B,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAA,2CAAa,EAAC,EAAE,EAAE,yCAAW,CAAC,GAAG,CAAC,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;IAChG,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,GAAE,CAAC;IACjD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,SAAS,CAAC,iBAAiB,CAAC,kBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;IACzF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,IAAmB,EAAE,OAAY,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"create-batch-stream.test.js","sourceRoot":"","sources":["../../src/create-batch-stream.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0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,CAAC,CAAC,CAAC"}
|
|
@@ -127,11 +127,11 @@ describe('FeedDescriptor', () => {
|
|
|
127
127
|
secretKey,
|
|
128
128
|
hypercore: () => ({
|
|
129
129
|
opened: true,
|
|
130
|
-
on() { },
|
|
131
|
-
ready(cb) {
|
|
130
|
+
on: () => { },
|
|
131
|
+
ready: (cb) => {
|
|
132
132
|
cb();
|
|
133
133
|
},
|
|
134
|
-
close() {
|
|
134
|
+
close: () => {
|
|
135
135
|
throw new Error('close error');
|
|
136
136
|
}
|
|
137
137
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-descriptor.test.js","sourceRoot":"","sources":["../../src/feed-descriptor.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,0CAA0C;AAE1C,oDAA4B;AAC5B,0DAAyC;AACzC,gDAAwB;AACxB,kDAA0B;AAE1B,yCAAwD;AACxD,mFAA+E;AAE/E,wEAA+C;AAE/C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,EAAkB,CAAC;IAEvB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,GAAE,CAAC;QACjD,EAAE,GAAG,IAAI,yBAAc,CAAC;YACtB,OAAO,EAAE,IAAA,2CAAa,EAAC,EAAE,EAAE,yCAAW,CAAC,GAAG,CAAC;YAC3C,GAAG,EAAE,kBAAS,CAAC,IAAI,CAAC,SAAS,CAAC;YAC9B,SAAS;YACT,SAAS,EAAE,mBAAgB;SAC5B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE;QAClB,MAAM,CAAC,EAAE,CAAC,CAAC,cAAc,CA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C,CAAC;YAChC,CAAC;SACF,CAAC,CAAC;QAEH,MAAM,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;QAC3D,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,GAAE,CAAC;QACjD,MAAM,EAAE,GAAG,IAAI,yBAAc,CAAC;YAC5B,OAAO,EAAE,IAAA,2CAAa,EAAC,EAAE,EAAE,yCAAW,CAAC,GAAG,CAAC;YAC3C,GAAG,EAAE,kBAAS,CAAC,IAAI,CAAC,SAAS,CAAC;YAC9B,SAAS;YACT,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;gBAChB,MAAM,EAAE,IAAI;gBACZ,EAAE,EAAE,GAAG,EAAE,GAAE,CAAC;gBACZ,KAAK,EAAE,CAAC,EAAc,EAAE,EAAE;oBACxB,EAAE,EAAE,CAAC;gBACP,CAAC;gBACD,KAAK,EAAE,GAAG,EAAE;oBACV,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;gBACjC,CAAC;aACM,CAAA;SACV,CAAC,CAAC;QAEH,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;QAEhB,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/src/feed-store.js
CHANGED
|
@@ -90,7 +90,7 @@ __decorate([
|
|
|
90
90
|
async_1.synchronized
|
|
91
91
|
], FeedStore.prototype, "close", null);
|
|
92
92
|
exports.FeedStore = FeedStore;
|
|
93
|
-
|
|
93
|
+
const patchBufferCodec = (encoding) => {
|
|
94
94
|
if (typeof encoding === 'string') {
|
|
95
95
|
return encoding;
|
|
96
96
|
}
|
|
@@ -98,5 +98,5 @@ function patchBufferCodec(encoding) {
|
|
|
98
98
|
encode: (x) => Buffer.from(encoding.encode(x)),
|
|
99
99
|
decode: encoding.decode.bind(encoding)
|
|
100
100
|
};
|
|
101
|
-
}
|
|
101
|
+
};
|
|
102
102
|
//# sourceMappingURL=feed-store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-store.js","sourceRoot":"","sources":["../../src/feed-store.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;AAEF,oDAA4B;AAC5B,0DAAyC;AAEzC,uCAAkD;AAIlD,wEAA+C;AA6B/C;;;;;GAKG;AACH,MAAa,SAAS;IAWpB;;;OAGG;IACH,YAAa,OAAgB,EAAE,UAA4B,EAAE;QAT7D;;WAEG;QACM,oBAAe,GAAG,IAAI,aAAK,EAAkB,CAAC;QAOrD,IAAA,gBAAM,EAAC,OAAO,EAAE,0BAA0B,CAAC,CAAC;QAE5C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,MAAM,EACJ,aAAa,EACb,SAAS,GAAG,mBAAgB,EAC7B,GAAG,OAAO,CAAC;QACZ,IAAI,CAAC,cAAc,GAAG,aAAa,IAAI,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAEvE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAChG,IAAI,CAAC,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C,CAAC,CAAC;QACnD,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -21,28 +21,20 @@ const createFeedStore = (storage, options = {}) => {
|
|
|
21
21
|
const feedStore = new feed_store_1.FeedStore(storage, options);
|
|
22
22
|
return feedStore;
|
|
23
23
|
};
|
|
24
|
-
async
|
|
24
|
+
const createDefault = async () => {
|
|
25
25
|
const directory = tempy_1.default.directory();
|
|
26
26
|
return {
|
|
27
27
|
directory,
|
|
28
28
|
feedStore: createFeedStore((0, random_access_multi_storage_1.createStorage)(directory, random_access_multi_storage_1.StorageType.NODE), { valueEncoding: 'utf-8' })
|
|
29
29
|
};
|
|
30
|
-
}
|
|
31
|
-
async function defaultFeeds(feedStore, keys) {
|
|
32
|
-
return Object.fromEntries(await Promise.all(Object.entries(keys).map(async ([feed, keyPair]) => [feed, await feedStore.openReadWriteFeed(keyPair.key, keyPair.secretKey)])));
|
|
33
|
-
}
|
|
34
|
-
function append(feed, message) {
|
|
35
|
-
return (0, pify_1.default)(feed.append.bind(feed))(message);
|
|
36
|
-
}
|
|
37
|
-
function head(feed) {
|
|
38
|
-
return (0, pify_1.default)(feed.head.bind(feed))();
|
|
39
|
-
}
|
|
40
|
-
const createKeyPairs = () => {
|
|
41
|
-
return Object.fromEntries(feedNames.map(feed => {
|
|
42
|
-
const { publicKey, secretKey } = (0, crypto_1.createKeyPair)();
|
|
43
|
-
return [feed, { key: crypto_1.PublicKey.from(publicKey), secretKey }];
|
|
44
|
-
}));
|
|
45
30
|
};
|
|
31
|
+
const defaultFeeds = async (feedStore, keys) => Object.fromEntries(await Promise.all(Object.entries(keys).map(async ([feed, keyPair]) => [feed, await feedStore.openReadWriteFeed(keyPair.key, keyPair.secretKey)])));
|
|
32
|
+
const append = (feed, message) => (0, pify_1.default)(feed.append.bind(feed))(message);
|
|
33
|
+
const head = (feed) => (0, pify_1.default)(feed.head.bind(feed))();
|
|
34
|
+
const createKeyPairs = () => Object.fromEntries(feedNames.map(feed => {
|
|
35
|
+
const { publicKey, secretKey } = (0, crypto_1.createKeyPair)();
|
|
36
|
+
return [feed, { key: crypto_1.PublicKey.from(publicKey), secretKey }];
|
|
37
|
+
}));
|
|
46
38
|
describe('FeedStore', () => {
|
|
47
39
|
const keys = createKeyPairs();
|
|
48
40
|
test('Config default', async () => {
|
|
@@ -52,9 +44,7 @@ describe('FeedStore', () => {
|
|
|
52
44
|
expect(feedStore2).toBeInstanceOf(feed_store_1.FeedStore);
|
|
53
45
|
});
|
|
54
46
|
test('Config default + custom database + custom hypercore', async () => {
|
|
55
|
-
const customHypercore = jest.fn((...args) =>
|
|
56
|
-
return (0, hypercore_1.default)(args[0], args[1], args[2]);
|
|
57
|
-
});
|
|
47
|
+
const customHypercore = jest.fn((...args) => (0, hypercore_1.default)(args[0], args[1], args[2]));
|
|
58
48
|
const storage = (0, random_access_multi_storage_1.createStorage)('', random_access_multi_storage_1.StorageType.RAM);
|
|
59
49
|
const database = (0, hypertrie_1.default)(storage.createOrOpen.bind(storage), { valueEncoding: 'json' });
|
|
60
50
|
database.list = jest.fn((_, cb) => cb(null, []));
|
|
@@ -128,11 +118,11 @@ describe('FeedStore', () => {
|
|
|
128
118
|
const feedStore = createFeedStore((0, random_access_multi_storage_1.createStorage)('feed', random_access_multi_storage_1.StorageType.RAM), {
|
|
129
119
|
hypercore: () => ({
|
|
130
120
|
opened: true,
|
|
131
|
-
ready(cb) {
|
|
121
|
+
ready: (cb) => {
|
|
132
122
|
cb();
|
|
133
123
|
},
|
|
134
|
-
on() { },
|
|
135
|
-
close() {
|
|
124
|
+
on: () => { },
|
|
125
|
+
close: () => {
|
|
136
126
|
throw new Error('close error');
|
|
137
127
|
}
|
|
138
128
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-store.test.js","sourceRoot":"","sources":["../../src/feed-store.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0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,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/src/stream.d.ts
CHANGED
|
@@ -6,21 +6,21 @@ import type { HypercoreFeed } from './hypercore-types';
|
|
|
6
6
|
* @param feed
|
|
7
7
|
* @returns {NodeJS.WritableStream}
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
9
|
+
export declare const createWritableFeedStream: (feed: HypercoreFeed) => Writable;
|
|
10
10
|
/**
|
|
11
11
|
* Creates a readStream stream that can be used as a buffer into which messages can be pushed.
|
|
12
12
|
*/
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createReadable: () => Readable;
|
|
14
14
|
/**
|
|
15
15
|
* Creates a writeStream object stream.
|
|
16
16
|
* @param callback
|
|
17
17
|
*/
|
|
18
|
-
export declare
|
|
18
|
+
export declare const createWritable: <T>(callback: (message: T) => Promise<void>) => NodeJS.WritableStream;
|
|
19
19
|
/**
|
|
20
20
|
* Creates a transform object stream.
|
|
21
21
|
* @param callback
|
|
22
22
|
*/
|
|
23
|
-
export declare
|
|
23
|
+
export declare const createTransform: <R, W>(callback: (message: R) => Promise<W | undefined>) => Transform;
|
|
24
24
|
/**
|
|
25
25
|
* Wriable stream that collects objects (e.g., for testing).
|
|
26
26
|
*/
|
package/dist/src/stream.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/stream.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AASvD;;;;GAIG;AAEH,
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/stream.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AASvD;;;;GAIG;AAEH,eAAO,MAAM,wBAAwB,SAAU,aAAa,aAK1D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,QAAO,QAGhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,gCAAiC,QAAQ,IAAI,CAAC,KAAG,OAAO,cAWjF,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe,8DAA6D,SAWvF,CAAC;AAEH;;GAEG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,QAAQ;IAC5C,QAAQ,EAAE,CAAC,EAAE,CAAM;;IAMnB,KAAK;IAIL,IAAI,OAAO,QAEV;IAEQ,MAAM,CAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI;CAI7F"}
|
package/dist/src/stream.js
CHANGED
|
@@ -20,64 +20,56 @@ const error = (0, debug_1.default)('dxos:stream:error');
|
|
|
20
20
|
* @returns {NodeJS.WritableStream}
|
|
21
21
|
*/
|
|
22
22
|
// TODO(burdon): Move to @dxos/codec.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
}
|
|
23
|
+
const createWritableFeedStream = (feed) => new stream_1.Writable({
|
|
24
|
+
objectMode: true,
|
|
25
|
+
write: (message, _, callback) => {
|
|
26
|
+
feed.append(message, callback);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
31
29
|
exports.createWritableFeedStream = createWritableFeedStream;
|
|
32
30
|
/**
|
|
33
31
|
* Creates a readStream stream that can be used as a buffer into which messages can be pushed.
|
|
34
32
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
}
|
|
33
|
+
const createReadable = () => new stream_1.Readable({
|
|
34
|
+
objectMode: true,
|
|
35
|
+
read: () => { }
|
|
36
|
+
});
|
|
41
37
|
exports.createReadable = createReadable;
|
|
42
38
|
/**
|
|
43
39
|
* Creates a writeStream object stream.
|
|
44
40
|
* @param callback
|
|
45
41
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
next();
|
|
53
|
-
}
|
|
54
|
-
catch (err) {
|
|
55
|
-
error(err);
|
|
56
|
-
next(err);
|
|
57
|
-
}
|
|
42
|
+
const createWritable = (callback) => new stream_1.Writable({
|
|
43
|
+
objectMode: true,
|
|
44
|
+
write: async (message, _, next) => {
|
|
45
|
+
try {
|
|
46
|
+
await callback(message);
|
|
47
|
+
next();
|
|
58
48
|
}
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
catch (err) {
|
|
50
|
+
error(err);
|
|
51
|
+
next(err);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
61
55
|
exports.createWritable = createWritable;
|
|
62
56
|
/**
|
|
63
57
|
* Creates a transform object stream.
|
|
64
58
|
* @param callback
|
|
65
59
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
next(null, response);
|
|
73
|
-
}
|
|
74
|
-
catch (err) {
|
|
75
|
-
error(err);
|
|
76
|
-
next(err);
|
|
77
|
-
}
|
|
60
|
+
const createTransform = (callback) => new stream_1.Transform({
|
|
61
|
+
objectMode: true,
|
|
62
|
+
transform: async (message, _, next) => {
|
|
63
|
+
try {
|
|
64
|
+
const response = await callback(message);
|
|
65
|
+
next(null, response);
|
|
78
66
|
}
|
|
79
|
-
|
|
80
|
-
|
|
67
|
+
catch (err) {
|
|
68
|
+
error(err);
|
|
69
|
+
next(err);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
81
73
|
exports.createTransform = createTransform;
|
|
82
74
|
/**
|
|
83
75
|
* Wriable stream that collects objects (e.g., for testing).
|
package/dist/src/stream.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../src/stream.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAA0B;AAC1B,mCAAuD;AAIvD,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,mBAAmB,CAAC,CAAC;AAEzC;;;GAGG;AAEH;;;;GAIG;AACH,qCAAqC;
|
|
1
|
+
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../src/stream.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAA0B;AAC1B,mCAAuD;AAIvD,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,mBAAmB,CAAC,CAAC;AAEzC;;;GAGG;AAEH;;;;GAIG;AACH,qCAAqC;AAC9B,MAAM,wBAAwB,GAAG,CAAC,IAAmB,EAAE,EAAE,CAAC,IAAI,iBAAQ,CAAC;IAC5E,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE;QAC9B,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACjC,CAAC;CACF,CAAC,CAAC;AALU,QAAA,wBAAwB,4BAKlC;AAEH;;GAEG;AACI,MAAM,cAAc,GAAG,GAAa,EAAE,CAAC,IAAI,iBAAQ,CAAC;IACzD,UAAU,EAAE,IAAI;IAChB,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;CACf,CAAC,CAAC;AAHU,QAAA,cAAc,kBAGxB;AAEH;;;GAGG;AACI,MAAM,cAAc,GAAG,CAAI,QAAuC,EAAyB,EAAE,CAAC,IAAI,iBAAQ,CAAC;IAChH,UAAU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F;AAnBD,sCAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../common/crypto/dist/src/encrypt.d.ts","../../../common/crypto/dist/src/hash.d.ts","../../../common/crypto/dist/src/human-hash.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert/strict.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/diagnostics_channel.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/consumers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/web.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/index.d.ts","../../../common/crypto/dist/src/public-key.d.ts","../../../common/crypto/dist/src/keys.d.ts","../../../common/crypto/dist/src/seedphrase.d.ts","../../../common/crypto/dist/src/validator.d.ts","../../../common/crypto/dist/src/index.d.ts","../../../common/random-access-multi-storage/dist/src/types.d.ts","../../../common/random-access-multi-storage/dist/src/internal/FileInternal.d.ts","../../../common/random-access-multi-storage/dist/src/internal/index.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/File.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/storage-types.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/Storage.d.ts","../../../common/random-access-multi-storage/dist/src/node.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/index.d.ts","../../../common/random-access-multi-storage/dist/src/index.d.ts","../../../common/async/dist/src/async.d.ts","../../../common/async/dist/src/event.d.ts","../../../common/async/dist/src/events.d.ts","../../../common/async/dist/src/latch.d.ts","../../../common/async/dist/src/lock.d.ts","../../../common/async/dist/src/sink.d.ts","../../../common/async/dist/src/trigger.d.ts","../../../common/async/dist/src/types.d.ts","../../../common/async/dist/src/callback.d.ts","../../../common/async/dist/src/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+pify@3.0.2/node_modules/@types/pify/index.d.ts","../src/hypercore-types.ts","../src/types.ts","../src/feed-descriptor.ts","../src/feed-store.ts","../src/benchmark.ts","../../../../common/temp/node_modules/.pnpm/wait-for-expect@3.0.2/node_modules/wait-for-expect/lib/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+from2@2.3.1/node_modules/@types/from2/index.d.ts","../src/create-batch-stream.ts","../src/create-batch-stream.test.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/basic.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/except.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/mutable.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/merge.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/merge-exclusive.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/require-at-least-one.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/require-exactly-one.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/partial-deep.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/readonly-deep.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/literal-union.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/promisable.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/opaque.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/set-optional.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/set-required.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/value-of.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/promise-value.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/async-return-type.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/conditional-keys.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/conditional-except.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/conditional-pick.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/union-to-intersection.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/stringified.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/fixed-length-array.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/package-json.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/tsconfig-json.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/index.d.ts","../../../../common/temp/node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.d.ts","../src/feed-descriptor.test.ts","../src/feed-store.test.ts","../../../../common/temp/node_modules/.pnpm/@types+ms@0.7.31/node_modules/@types/ms/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+debug@4.1.7/node_modules/@types/debug/index.d.ts","../src/stream.ts","../src/index.ts","../src/shims.d.ts","../../../../common/temp/node_modules/.pnpm/@types+end-of-stream@1.4.1/node_modules/@types/end-of-stream/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@26.0.24/node_modules/@types/jest/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+pump@1.1.1/node_modules/@types/pump/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+through2@2.0.36/node_modules/@types/through2/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"a42919e6cb602e7e8ef516c6dd7966994340d429a43f95f88ef92482057b52d4","aae72031068e978fc1b48ffba8a7884c5aa7ee19e0550060d6cf70a04b55afdd","fccc3ab2eb7278d4597fd8b2ae645ace954f1cb9d523acef67d876ed2b66e728","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","3c8c1a880d61c6ad2d46d9f63caaa17d94fceee883d5defa5446d083ca37315a","fa732bf42055dfd0a5a45a573e39f3bc0f71ab0f968015f6c19913ebaa253bcd","2fbbee972d3da84ef0e21546d43924fa02b0b49de1ec1b5b2f800e182373a7d1","830b201ad1bf6541b32ecb644a7f22102f2de52c3ce298be461d19fcdc69cc86","031401b9afec14ada845cfd7f16642df9b5ef001c74a6e0fd1f646654406372f","e6b8b2435a2e3c7b7329c9ed92c5dd11aa254efe5e289499123b686302c9037e","ea20223570611b1ffad8e6a82236ecbec8650433de56ba618831d71e0627cf18","bedbf1770f50c9905291c96992acd50da7a8c68d631c5d6b35f5a294f5b33f54","73e8caae656fbfee846a56d254e7052b9d8932bcd7692fb682dd66a8d9df1441","58d590871da3b448207d4c57cd8196b171f00febe488ed16ad094b54fbf3d09b","6893b31c56949607f5522d94ef3c1a28122a4e323782affee9d8b3ee7377104c","d4cb3805d8d2d4b83d1e188b7806f2e26bfda5956c33b45a0fadee936a599f67","fed5ed50e672fcae1d11bc4b9c0e70e60af5c1de1781e0cdb10a5b45ecae289d","1523fe6a5b265a4edb37c1417de0fe8252f85354803b78a9d4b808c6d5aef8b9","c87085285d6c052f422ab0713098bc72c9f276ccb48337b471f277ab24e134e9","1610f2eadec0c6fc891f89330502bb099b539771a13746807e5d3b40180ec901","17d12583fd6c710f4a422192477b796d726c2a5a16cca6f2b8dc5fbdcf79a656","4d5f1e0f924758e43db4a47e4bb73c94790851b5c542a3eafd342dc5922693bc","7ddaa1a9e903fed42dac0b9abcb5a2c53dca4ba00187b51ad84694db52f5ff4e","d88cf802778f5dd1b7afd9422aa492fc55ca9168ce750e76f717c81e689bedec","61359ee515b08c71b7eaa3a7a26571f1408e13108f060c57a83e429298c5c03b","d0e37049ec98567321a991657d1605336463b9959c7b3a28b86d8834dc0786e3","9d347130d3dade8c804698d3f1ed7fa35799098480c0015ae647e5d38da4d424","e97b15d7d01903fdc959930f53f7319bb74004462508aaaaf95d230519dbfa65","de0419d54dd252b174c36d93cccab2446a1d154d551ac78c0a31d14015ffa993","48897785cd0b3e200a8c224fec9ece9f636df85537ad97ce599b67d89ef8b129","27e706c18de004a4fc4c403d4397c24bbaf3a6d7f5f773921c306cb15abb8c43","7b04e614b040549b25c58e7113bddabf2c2e52405ee57a3528eb24b349191ad8","dcca573861599cba025f1a1697e7012351b7843799b98b8cf7a283c925900926","dc3ad9a240980393baf9629a6caa2da6e8ff59af3803196790423dd921da8bc1","095b817a5042af7140cc5c6a59d84fe731156193191b4ec39a37d23e526cc653","70a8b28ff28708343b51689f1cd08b63c081fe418b555fec4296be36fead5a06","d8e45fabe12b03e61125bab9ce8bf68514f696242f2936da86126e6bc7dee85b","5595c6be5fcb6340643423cbfdd9af320e4f2e1d2300c0e18a335baa395fba1f",{"version":"f20c9c09c8a0fea4784952305a937bdb092417908bad669dc789d3e54d8a5386","affectsGlobalScope":true},"c58be3e560989a877531d3ff7c9e5db41c5dd9282480ccf197abfcc708a95b8d","91f23ddc3971b1c8938c638fb55601a339483953e1eb800675fa5b5e8113db72","50d22844db90a0dcd359afeb59dd1e9a384d977b4b363c880b4e65047237a29e","d33782b82eea0ee17b99ca563bd19b38259a3aaf096d306ceaf59cd4422629be","7f7f1420c69806e268ab7820cbe31a2dcb2f836f28b3d09132a2a95b4a454b80","2d14198b25428b7b8010a895085add8edfaae476ab863c0c15fe2867fc214fe4","61046f12c3cfafd353d2d03febc96b441c1a0e3bb82a5a88de78cc1be9e10520","f4e7f5824ac7b35539efc3bef36b3e6be89603b88224cb5c0ad3526a454fc895","091af8276fbc70609a00e296840bd284a2fe29df282f0e8dae2de9f0a706685f","537aff717746703d2157ec563b5de4f6393ce9f69a84ae62b49e9b6c80b6e587","d4220a16027ddf0cc7d105d80cbb01f5070ca7ddd8b2d007cfb024b27e22b912","fb3aa3fb5f4fcd0d57d389a566c962e92dbfdaea3c38e3eaf27d466e168871c6","0af1485d84516c1a080c1f4569fea672caac8051e29f33733bf8d01df718d213","69630ad0e50189fb7a6b8f138c5492450394cb45424a903c8b53b2d5dd1dbce2","c585e44fdf120eba5f6b12c874966f152792af727115570b21cb23574f465ce1","8e067d3c170e56dfe3502fc8ebd092ae76a5235baad6f825726f3bbcc8a3836a","ae7f57067310d6c4acbc4862b91b5799e88831f4ab77f865443a9bc5057b540a","955d0c60502897e9735fcd08d2c1ad484b6166786328b89386074aebcd735776","2fa69d202a513f2a6553f263d473cba85d598ce250261715d78e8aab42df6b93","55480aa69f3984607fa60b3862b5cd24c2ee7bdd4edaed1eef6a8b46554e947f","3c19e77a05c092cab5f4fd57f6864aa2657f3ad524882f917a05fdb025905199","708350608d7483a4c585233b95d2dc86d992d36e7da312d5802e9a8837b5829d","75ff90ce3a6a52fbecc41c369de5082d8918f1e856bfce3651be2bfca4c2b91d","8e358d80ac052e9f4e5cc16d06c946628834b47718a4bd101ef2087603b8e5c7","aa6b17a3d65d7ac911240711b2fc885bf3e14af9025c38fcc9371b9ea586aeb6","7bbf8889032feca0f50f86dfea1efd6fe8ddfc048e174ed3ccdbb0c6c19c5526","8556e5086671adee23923efbda79c82263d7773cf734c1efee7297a26b189dba","dc8909fc7e8c4717e51a15dc029b6b97fd53e255e4a4fb6ad38098ec16dfc442","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","97bd77bd96d5dd98d0f156893d5c7704ade03c8150a73401bfd1d7f97c96cad6","4244e8dfdc41dfb490d4a2f772c2f87c82fc48adb3242a54a6e37bea1c00b867",{"version":"a6be0c28bf10f8a2173187c125de6c43f696b43672e85f34851b25420a1c78e0","affectsGlobalScope":true},"0c68ec1112f19739aa32b6f7244c1be707c6efdc3018a6262dca66adec6ac29d","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"701597ff3f5c4cc2b67a12c1b5aa2703711be9b6da1c93be0b0188ae865aec21","14b3ffccc3162874ab00655027dbc598d358fd7dc08fa29df07a4b93f2214690"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[91,162],[91,98],[80,91,98],[91,172,174],[91],[48,91],[51,91],[52,57,91],[53,63,64,71,80,90,91],[53,54,63,71,91],[55,91],[56,57,64,72,91],[57,80,87,91],[58,60,63,71,91],[59,91],[60,61,91],[62,63,91],[63,91],[63,64,65,80,90,91],[63,64,65,80,91],[66,71,80,90,91],[63,64,66,67,71,80,87,90,91],[66,68,80,87,90,91],[48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],[63,69,91],[70,90,91],[60,63,71,80,91],[72,91],[73,91],[51,74,91],[75,89,91,95],[76,91],[77,91],[63,78,91],[78,79,91,93],[63,80,81,82,91],[80,82,91],[80,81,91],[83,91],[84,91],[63,85,86,91],[85,86,91],[57,71,87,91],[88,91],[71,89,91],[52,66,77,90,91],[57,91],[80,91,92],[91,93],[91,94],[52,57,63,65,74,80,90,91,93,95],[80,91,96],[91,168,169],[91,168,169,170,171],[91,173],[91,98,158],[91,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[91,148],[91,134,150],[91,150],[91,133],[91,134],[91,142],[91,113,114,115,116,117,118,119,120,121],[45,46,47,91,99,100,101,102],[47,91,98,99],[91,100],[91,108,109,110,111],[91,98,104,106],[91,107,108],[91,107,108,109],[91,98,104],[91,105],[91,108,109],[91,103,112,127,166],[91,103,112,123,124,127,129,131],[48,91,124,130],[48,91,103,112,123,126,159,166],[48,91,103,112,122,123,124,125,166],[48,91,103,112,122,123,124,126,127,159,166],[48,91,103,112,122,124,125,126,166],[91,124,126,127,131,164],[80,91,124,163]],"referencedMap":[[163,1],[167,2],[130,3],[175,4],[162,5],[48,6],[49,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,16],[62,17],[63,18],[64,19],[65,20],[50,5],[97,5],[66,21],[67,22],[68,23],[98,24],[69,25],[70,26],[71,27],[72,28],[73,29],[74,30],[75,31],[76,32],[77,33],[78,34],[79,35],[80,36],[82,37],[81,38],[83,39],[84,40],[85,41],[86,42],[87,43],[88,44],[89,45],[90,46],[91,47],[92,48],[93,49],[94,50],[95,51],[96,52],[123,5],[176,2],[177,3],[168,5],[170,53],[172,54],[171,53],[169,5],[174,55],[173,5],[159,56],[158,57],[149,58],[133,5],[151,59],[150,5],[152,60],[134,5],[155,5],[142,61],[137,5],[136,62],[135,5],[144,5],[156,63],[140,61],[143,5],[148,5],[141,61],[138,62],[139,5],[145,62],[146,62],[154,5],[157,5],[153,5],[147,5],[11,5],[10,5],[2,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[3,5],[4,5],[23,5],[20,5],[21,5],[22,5],[24,5],[25,5],[26,5],[5,5],[27,5],[28,5],[29,5],[30,5],[6,5],[31,5],[32,5],[33,5],[34,5],[7,5],[39,5],[35,5],[36,5],[37,5],[38,5],[8,5],[43,5],[40,5],[41,5],[42,5],[1,5],[9,5],[44,5],[129,5],[113,5],[121,5],[114,5],[115,5],[122,64],[116,5],[117,5],[118,18],[119,5],[120,5],[45,5],[46,5],[47,5],[103,65],[100,66],[99,2],[101,67],[102,2],[112,68],[107,69],[109,70],[111,71],[108,5],[105,72],[106,73],[110,74],[104,5],[128,75],[132,76],[131,77],[160,78],[126,79],[161,80],[127,81],[124,5],[165,82],[166,5],[164,83],[125,5]],"exportedModulesMap":[[163,1],[167,2],[130,3],[175,4],[162,5],[48,6],[49,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,16],[62,17],[63,18],[64,19],[65,20],[50,5],[97,5],[66,21],[67,22],[68,23],[98,24],[69,25],[70,26],[71,27],[72,28],[73,29],[74,30],[75,31],[76,32],[77,33],[78,34],[79,35],[80,36],[82,37],[81,38],[83,39],[84,40],[85,41],[86,42],[87,43],[88,44],[89,45],[90,46],[91,47],[92,48],[93,49],[94,50],[95,51],[96,52],[123,5],[176,2],[177,3],[168,5],[170,53],[172,54],[171,53],[169,5],[174,55],[173,5],[159,56],[158,57],[149,58],[133,5],[151,59],[150,5],[152,60],[134,5],[155,5],[142,61],[137,5],[136,62],[135,5],[144,5],[156,63],[140,61],[143,5],[148,5],[141,61],[138,62],[139,5],[145,62],[146,62],[154,5],[157,5],[153,5],[147,5],[11,5],[10,5],[2,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[3,5],[4,5],[23,5],[20,5],[21,5],[22,5],[24,5],[25,5],[26,5],[5,5],[27,5],[28,5],[29,5],[30,5],[6,5],[31,5],[32,5],[33,5],[34,5],[7,5],[39,5],[35,5],[36,5],[37,5],[38,5],[8,5],[43,5],[40,5],[41,5],[42,5],[1,5],[9,5],[44,5],[129,5],[113,5],[121,5],[114,5],[115,5],[122,64],[116,5],[117,5],[118,18],[119,5],[120,5],[45,5],[46,5],[47,5],[103,65],[100,66],[99,2],[101,67],[102,2],[112,68],[107,69],[109,70],[111,71],[108,5],[105,72],[106,73],[110,74],[104,5],[128,75],[132,76],[131,77],[160,78],[126,79],[161,80],[127,81],[124,5],[165,82],[166,5],[164,83],[125,5]],"semanticDiagnosticsPerFile":[163,167,130,175,162,48,49,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,50,97,66,67,68,98,69,70,71,72,73,74,75,76,77,78,79,80,82,81,83,84,85,86,87,88,89,90,91,92,93,94,95,96,123,176,177,168,170,172,171,169,174,173,159,158,149,133,151,150,152,134,155,142,137,136,135,144,156,140,143,148,141,138,139,145,146,154,157,153,147,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,43,40,41,42,1,9,44,129,113,121,114,115,122,116,117,118,119,120,45,46,47,103,100,99,101,102,112,107,109,111,108,105,106,110,104,128,132,131,160,126,161,127,124,165,166,164,125]},"version":"4.5.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../common/crypto/dist/src/encrypt.d.ts","../../../common/crypto/dist/src/hash.d.ts","../../../common/crypto/dist/src/human-hash.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert/strict.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/diagnostics_channel.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/consumers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/web.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/index.d.ts","../../../common/crypto/dist/src/public-key.d.ts","../../../common/crypto/dist/src/keys.d.ts","../../../common/crypto/dist/src/seedphrase.d.ts","../../../common/crypto/dist/src/validator.d.ts","../../../common/crypto/dist/src/index.d.ts","../../../common/random-access-multi-storage/dist/src/types.d.ts","../../../common/random-access-multi-storage/dist/src/internal/FileInternal.d.ts","../../../common/random-access-multi-storage/dist/src/internal/index.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/File.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/storage-types.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/Storage.d.ts","../../../common/random-access-multi-storage/dist/src/node.d.ts","../../../common/random-access-multi-storage/dist/src/interfaces/index.d.ts","../../../common/random-access-multi-storage/dist/src/index.d.ts","../../../common/async/dist/src/async.d.ts","../../../common/async/dist/src/event.d.ts","../../../common/async/dist/src/events.d.ts","../../../common/async/dist/src/latch.d.ts","../../../common/async/dist/src/lock.d.ts","../../../common/async/dist/src/sink.d.ts","../../../common/async/dist/src/trigger.d.ts","../../../common/async/dist/src/types.d.ts","../../../common/async/dist/src/callback.d.ts","../../../common/async/dist/src/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+pify@3.0.2/node_modules/@types/pify/index.d.ts","../src/hypercore-types.ts","../src/types.ts","../src/feed-descriptor.ts","../src/feed-store.ts","../src/benchmark.ts","../../../../common/temp/node_modules/.pnpm/wait-for-expect@3.0.2/node_modules/wait-for-expect/lib/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+from2@2.3.1/node_modules/@types/from2/index.d.ts","../src/create-batch-stream.ts","../src/create-batch-stream.test.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/basic.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/except.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/mutable.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/merge.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/merge-exclusive.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/require-at-least-one.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/require-exactly-one.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/partial-deep.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/readonly-deep.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/literal-union.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/promisable.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/opaque.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/set-optional.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/set-required.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/value-of.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/promise-value.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/async-return-type.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/conditional-keys.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/conditional-except.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/conditional-pick.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/union-to-intersection.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/stringified.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/fixed-length-array.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/package-json.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/source/tsconfig-json.d.ts","../../../../common/temp/node_modules/.pnpm/type-fest@0.16.0/node_modules/type-fest/index.d.ts","../../../../common/temp/node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.d.ts","../src/feed-descriptor.test.ts","../src/feed-store.test.ts","../../../../common/temp/node_modules/.pnpm/@types+ms@0.7.31/node_modules/@types/ms/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+debug@4.1.7/node_modules/@types/debug/index.d.ts","../src/stream.ts","../src/index.ts","../src/shims.d.ts","../../../../common/temp/node_modules/.pnpm/@types+end-of-stream@1.4.1/node_modules/@types/end-of-stream/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@26.0.24/node_modules/@types/jest/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+pump@1.1.1/node_modules/@types/pump/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+through2@2.0.36/node_modules/@types/through2/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"0e6c82eab84a7ea274f61068f4db4ab85ce1eb64e4b630d427f47061423d6e56","aae72031068e978fc1b48ffba8a7884c5aa7ee19e0550060d6cf70a04b55afdd","fccc3ab2eb7278d4597fd8b2ae645ace954f1cb9d523acef67d876ed2b66e728","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","3c8c1a880d61c6ad2d46d9f63caaa17d94fceee883d5defa5446d083ca37315a","d044199ee2bf86629e566c226794bb6841d9546e3fd5732a3c7d6228169ff638","2fbbee972d3da84ef0e21546d43924fa02b0b49de1ec1b5b2f800e182373a7d1","830b201ad1bf6541b32ecb644a7f22102f2de52c3ce298be461d19fcdc69cc86","031401b9afec14ada845cfd7f16642df9b5ef001c74a6e0fd1f646654406372f","e6b8b2435a2e3c7b7329c9ed92c5dd11aa254efe5e289499123b686302c9037e","ea20223570611b1ffad8e6a82236ecbec8650433de56ba618831d71e0627cf18","bedbf1770f50c9905291c96992acd50da7a8c68d631c5d6b35f5a294f5b33f54","73e8caae656fbfee846a56d254e7052b9d8932bcd7692fb682dd66a8d9df1441","58d590871da3b448207d4c57cd8196b171f00febe488ed16ad094b54fbf3d09b","6893b31c56949607f5522d94ef3c1a28122a4e323782affee9d8b3ee7377104c","d4cb3805d8d2d4b83d1e188b7806f2e26bfda5956c33b45a0fadee936a599f67","fed5ed50e672fcae1d11bc4b9c0e70e60af5c1de1781e0cdb10a5b45ecae289d","1523fe6a5b265a4edb37c1417de0fe8252f85354803b78a9d4b808c6d5aef8b9","c87085285d6c052f422ab0713098bc72c9f276ccb48337b471f277ab24e134e9","1610f2eadec0c6fc891f89330502bb099b539771a13746807e5d3b40180ec901","17d12583fd6c710f4a422192477b796d726c2a5a16cca6f2b8dc5fbdcf79a656","4d5f1e0f924758e43db4a47e4bb73c94790851b5c542a3eafd342dc5922693bc","7ddaa1a9e903fed42dac0b9abcb5a2c53dca4ba00187b51ad84694db52f5ff4e","d88cf802778f5dd1b7afd9422aa492fc55ca9168ce750e76f717c81e689bedec","61359ee515b08c71b7eaa3a7a26571f1408e13108f060c57a83e429298c5c03b","d0e37049ec98567321a991657d1605336463b9959c7b3a28b86d8834dc0786e3","7d946dbc2ec536a4505d248cb71c667c75b5bf5bdd2e770b35f23a8617929b42","e97b15d7d01903fdc959930f53f7319bb74004462508aaaaf95d230519dbfa65","de0419d54dd252b174c36d93cccab2446a1d154d551ac78c0a31d14015ffa993","48897785cd0b3e200a8c224fec9ece9f636df85537ad97ce599b67d89ef8b129","27e706c18de004a4fc4c403d4397c24bbaf3a6d7f5f773921c306cb15abb8c43","7b04e614b040549b25c58e7113bddabf2c2e52405ee57a3528eb24b349191ad8","105abbd7265e98bb265af103707356010b9dbe05f182eccd0f3f5ae15a98d75e","587ca1862cd68e0b63bc81dbefcbac4933223517b3884812cf7607a3d5391fc7","095b817a5042af7140cc5c6a59d84fe731156193191b4ec39a37d23e526cc653","70a8b28ff28708343b51689f1cd08b63c081fe418b555fec4296be36fead5a06","db0a15056e9b80d2fb388c35d1b94c15f8c127f8a536d3a062cba708e701490b","ccc650fa8f20cc743cebafb5cb1af59e9c42a5728571730bc7407d79187f1ee1",{"version":"f20c9c09c8a0fea4784952305a937bdb092417908bad669dc789d3e54d8a5386","affectsGlobalScope":true},"c58be3e560989a877531d3ff7c9e5db41c5dd9282480ccf197abfcc708a95b8d","91f23ddc3971b1c8938c638fb55601a339483953e1eb800675fa5b5e8113db72","50d22844db90a0dcd359afeb59dd1e9a384d977b4b363c880b4e65047237a29e","d33782b82eea0ee17b99ca563bd19b38259a3aaf096d306ceaf59cd4422629be","7f7f1420c69806e268ab7820cbe31a2dcb2f836f28b3d09132a2a95b4a454b80","2d14198b25428b7b8010a895085add8edfaae476ab863c0c15fe2867fc214fe4","61046f12c3cfafd353d2d03febc96b441c1a0e3bb82a5a88de78cc1be9e10520","f4e7f5824ac7b35539efc3bef36b3e6be89603b88224cb5c0ad3526a454fc895","091af8276fbc70609a00e296840bd284a2fe29df282f0e8dae2de9f0a706685f","537aff717746703d2157ec563b5de4f6393ce9f69a84ae62b49e9b6c80b6e587","d4220a16027ddf0cc7d105d80cbb01f5070ca7ddd8b2d007cfb024b27e22b912","fb3aa3fb5f4fcd0d57d389a566c962e92dbfdaea3c38e3eaf27d466e168871c6","0af1485d84516c1a080c1f4569fea672caac8051e29f33733bf8d01df718d213","69630ad0e50189fb7a6b8f138c5492450394cb45424a903c8b53b2d5dd1dbce2","c585e44fdf120eba5f6b12c874966f152792af727115570b21cb23574f465ce1","8e067d3c170e56dfe3502fc8ebd092ae76a5235baad6f825726f3bbcc8a3836a","ae7f57067310d6c4acbc4862b91b5799e88831f4ab77f865443a9bc5057b540a","955d0c60502897e9735fcd08d2c1ad484b6166786328b89386074aebcd735776","2fa69d202a513f2a6553f263d473cba85d598ce250261715d78e8aab42df6b93","55480aa69f3984607fa60b3862b5cd24c2ee7bdd4edaed1eef6a8b46554e947f","3c19e77a05c092cab5f4fd57f6864aa2657f3ad524882f917a05fdb025905199","708350608d7483a4c585233b95d2dc86d992d36e7da312d5802e9a8837b5829d","75ff90ce3a6a52fbecc41c369de5082d8918f1e856bfce3651be2bfca4c2b91d","8e358d80ac052e9f4e5cc16d06c946628834b47718a4bd101ef2087603b8e5c7","aa6b17a3d65d7ac911240711b2fc885bf3e14af9025c38fcc9371b9ea586aeb6","7bbf8889032feca0f50f86dfea1efd6fe8ddfc048e174ed3ccdbb0c6c19c5526","ab04c815a49716e4ac5a1859a64f38fbdc0d901aabbda3658e5b11459928e11d","50b66126d91f5e23c0d3f97d454022158f5c2910cce478eca53ea96dfe79c6b7","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","9ad8e5cfdfbed80fb87131f7329d1007adfe7dccbfe2b78e17acd0cbd118af07","4244e8dfdc41dfb490d4a2f772c2f87c82fc48adb3242a54a6e37bea1c00b867",{"version":"a6be0c28bf10f8a2173187c125de6c43f696b43672e85f34851b25420a1c78e0","affectsGlobalScope":true},"0c68ec1112f19739aa32b6f7244c1be707c6efdc3018a6262dca66adec6ac29d","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"701597ff3f5c4cc2b67a12c1b5aa2703711be9b6da1c93be0b0188ae865aec21","14b3ffccc3162874ab00655027dbc598d358fd7dc08fa29df07a4b93f2214690"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[91,162],[91,98],[80,91,98],[91,172,174],[91],[48,91],[51,91],[52,57,91],[53,63,64,71,80,90,91],[53,54,63,71,91],[55,91],[56,57,64,72,91],[57,80,87,91],[58,60,63,71,91],[59,91],[60,61,91],[62,63,91],[63,91],[63,64,65,80,90,91],[63,64,65,80,91],[66,71,80,90,91],[63,64,66,67,71,80,87,90,91],[66,68,80,87,90,91],[48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],[63,69,91],[70,90,91],[60,63,71,80,91],[72,91],[73,91],[51,74,91],[75,89,91,95],[76,91],[77,91],[63,78,91],[78,79,91,93],[63,80,81,82,91],[80,82,91],[80,81,91],[83,91],[84,91],[63,85,86,91],[85,86,91],[57,71,87,91],[88,91],[71,89,91],[52,66,77,90,91],[57,91],[80,91,92],[91,93],[91,94],[52,57,63,65,74,80,90,91,93,95],[80,91,96],[91,168,169],[91,168,169,170,171],[91,173],[91,98,158],[91,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[91,148],[91,134,150],[91,150],[91,133],[91,134],[91,142],[91,113,114,115,116,117,118,119,120,121],[45,46,47,91,99,100,101,102],[47,91,98,99],[91,100],[91,108,109,110,111],[91,98,104,106],[91,107,108],[91,107,108,109],[91,98,104],[91,105],[91,108,109],[91,103,112,127,166],[91,103,112,123,124,127,129,131],[48,91,124,130],[48,91,103,112,123,126,159,166],[48,91,103,112,122,123,124,125,166],[48,91,103,112,122,123,124,126,127,159,166],[48,91,103,112,122,124,125,126,166],[91,124,126,127,131,164],[80,91,124,163]],"referencedMap":[[163,1],[167,2],[130,3],[175,4],[162,5],[48,6],[49,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,16],[62,17],[63,18],[64,19],[65,20],[50,5],[97,5],[66,21],[67,22],[68,23],[98,24],[69,25],[70,26],[71,27],[72,28],[73,29],[74,30],[75,31],[76,32],[77,33],[78,34],[79,35],[80,36],[82,37],[81,38],[83,39],[84,40],[85,41],[86,42],[87,43],[88,44],[89,45],[90,46],[91,47],[92,48],[93,49],[94,50],[95,51],[96,52],[123,5],[176,2],[177,3],[168,5],[170,53],[172,54],[171,53],[169,5],[174,55],[173,5],[159,56],[158,57],[149,58],[133,5],[151,59],[150,5],[152,60],[134,5],[155,5],[142,61],[137,5],[136,62],[135,5],[144,5],[156,63],[140,61],[143,5],[148,5],[141,61],[138,62],[139,5],[145,62],[146,62],[154,5],[157,5],[153,5],[147,5],[11,5],[10,5],[2,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[3,5],[4,5],[23,5],[20,5],[21,5],[22,5],[24,5],[25,5],[26,5],[5,5],[27,5],[28,5],[29,5],[30,5],[6,5],[31,5],[32,5],[33,5],[34,5],[7,5],[39,5],[35,5],[36,5],[37,5],[38,5],[8,5],[43,5],[40,5],[41,5],[42,5],[1,5],[9,5],[44,5],[129,5],[113,5],[121,5],[114,5],[115,5],[122,64],[116,5],[117,5],[118,18],[119,5],[120,5],[45,5],[46,5],[47,5],[103,65],[100,66],[99,2],[101,67],[102,2],[112,68],[107,69],[109,70],[111,71],[108,5],[105,72],[106,73],[110,74],[104,5],[128,75],[132,76],[131,77],[160,78],[126,79],[161,80],[127,81],[124,5],[165,82],[166,5],[164,83],[125,5]],"exportedModulesMap":[[163,1],[167,2],[130,3],[175,4],[162,5],[48,6],[49,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,16],[62,17],[63,18],[64,19],[65,20],[50,5],[97,5],[66,21],[67,22],[68,23],[98,24],[69,25],[70,26],[71,27],[72,28],[73,29],[74,30],[75,31],[76,32],[77,33],[78,34],[79,35],[80,36],[82,37],[81,38],[83,39],[84,40],[85,41],[86,42],[87,43],[88,44],[89,45],[90,46],[91,47],[92,48],[93,49],[94,50],[95,51],[96,52],[123,5],[176,2],[177,3],[168,5],[170,53],[172,54],[171,53],[169,5],[174,55],[173,5],[159,56],[158,57],[149,58],[133,5],[151,59],[150,5],[152,60],[134,5],[155,5],[142,61],[137,5],[136,62],[135,5],[144,5],[156,63],[140,61],[143,5],[148,5],[141,61],[138,62],[139,5],[145,62],[146,62],[154,5],[157,5],[153,5],[147,5],[11,5],[10,5],[2,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[3,5],[4,5],[23,5],[20,5],[21,5],[22,5],[24,5],[25,5],[26,5],[5,5],[27,5],[28,5],[29,5],[30,5],[6,5],[31,5],[32,5],[33,5],[34,5],[7,5],[39,5],[35,5],[36,5],[37,5],[38,5],[8,5],[43,5],[40,5],[41,5],[42,5],[1,5],[9,5],[44,5],[129,5],[113,5],[121,5],[114,5],[115,5],[122,64],[116,5],[117,5],[118,18],[119,5],[120,5],[45,5],[46,5],[47,5],[103,65],[100,66],[99,2],[101,67],[102,2],[112,68],[107,69],[109,70],[111,71],[108,5],[105,72],[106,73],[110,74],[104,5],[128,75],[132,76],[131,77],[160,78],[126,79],[161,80],[127,81],[124,5],[165,82],[166,5],[164,83],[125,5]],"semanticDiagnosticsPerFile":[163,167,130,175,162,48,49,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,50,97,66,67,68,98,69,70,71,72,73,74,75,76,77,78,79,80,82,81,83,84,85,86,87,88,89,90,91,92,93,94,95,96,123,176,177,168,170,172,171,169,174,173,159,158,149,133,151,150,152,134,155,142,137,136,135,144,156,140,143,148,141,138,139,145,146,154,157,153,147,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,43,40,41,42,1,9,44,129,113,121,114,115,122,116,117,118,119,120,45,46,47,103,100,99,101,102,112,107,109,111,108,105,106,110,104,128,132,131,160,126,161,127,124,165,166,164,125]},"version":"4.5.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/feed-store",
|
|
3
|
-
"version": "2.33.5-dev.
|
|
3
|
+
"version": "2.33.5-dev.61c93034",
|
|
4
4
|
"description": "A consistent store for your hypercore feeds.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dxos/async": "2.33.5-dev.
|
|
14
|
-
"@dxos/util": "2.33.5-dev.
|
|
13
|
+
"@dxos/async": "2.33.5-dev.61c93034",
|
|
14
|
+
"@dxos/util": "2.33.5-dev.61c93034",
|
|
15
15
|
"buffer-json-encoding": "^1.0.2",
|
|
16
16
|
"debug": "^4.3.3",
|
|
17
17
|
"end-of-stream": "^1.4.1",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@dxos/benchmark-suite": "^1.0.0-beta.1",
|
|
26
26
|
"@dxos/browser-runner": "^1.0.0-beta.13",
|
|
27
|
-
"@dxos/crypto": "2.33.5-dev.
|
|
28
|
-
"@dxos/eslint-plugin": "~1.0.
|
|
27
|
+
"@dxos/crypto": "2.33.5-dev.61c93034",
|
|
28
|
+
"@dxos/eslint-plugin": "~1.0.31",
|
|
29
29
|
"@dxos/protocols-toolchain": "2.33.4",
|
|
30
|
-
"@dxos/random-access-multi-storage": "2.33.5-dev.
|
|
30
|
+
"@dxos/random-access-multi-storage": "2.33.5-dev.61c93034",
|
|
31
31
|
"@types/debug": "^4.1.7",
|
|
32
32
|
"@types/end-of-stream": "^1.4.0",
|
|
33
33
|
"@types/from2": "~2.3.1",
|
package/src/benchmark.ts
CHANGED
|
@@ -24,41 +24,37 @@ void (async () => {
|
|
|
24
24
|
const fs = new FeedStore(createStorage('.benchmark'), { valueEncoding: 'utf8' });
|
|
25
25
|
const suite = new Suite(fs, { maxFeeds, maxMessages });
|
|
26
26
|
|
|
27
|
-
suite.beforeAll(() => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const { feed } = await fs.openReadWriteFeed(PublicKey.from(publicKey), secretKey);
|
|
27
|
+
suite.beforeAll(() => Promise.all(range(maxFeeds).map(async i => {
|
|
28
|
+
const name = `feed/${i}`;
|
|
29
|
+
const { publicKey, secretKey } = createKeyPair();
|
|
30
|
+
const { feed } = await fs.openReadWriteFeed(PublicKey.from(publicKey), secretKey);
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
32
|
+
for (let i = 0; i < maxMessages; i++) {
|
|
33
|
+
await new Promise<void>((resolve, reject) => {
|
|
34
|
+
feed.append(`${name}/${i}`, (err) => {
|
|
35
|
+
if (err) {
|
|
36
|
+
return reject(err);
|
|
37
|
+
}
|
|
38
|
+
resolve();
|
|
41
39
|
});
|
|
42
|
-
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
43
|
+
return feed;
|
|
44
|
+
})));
|
|
47
45
|
|
|
48
46
|
suite.test('getBatch', async () => {
|
|
49
47
|
let count = 0;
|
|
50
48
|
|
|
51
|
-
await Promise.all(Array.from((fs as any)._descriptors.values()).map(({ feed }: any) => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
resolve();
|
|
59
|
-
});
|
|
49
|
+
await Promise.all(Array.from((fs as any)._descriptors.values()).map(({ feed }: any) => new Promise<void>((resolve, reject) => {
|
|
50
|
+
feed.getBatch(0, maxMessages, (err: Error, result: any) => {
|
|
51
|
+
count += result.length;
|
|
52
|
+
if (err) {
|
|
53
|
+
return reject(err);
|
|
54
|
+
}
|
|
55
|
+
resolve();
|
|
60
56
|
});
|
|
61
|
-
}));
|
|
57
|
+
})));
|
|
62
58
|
|
|
63
59
|
check(count);
|
|
64
60
|
});
|
|
@@ -19,9 +19,7 @@ const createFeed = async () => {
|
|
|
19
19
|
return feed;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
const append = (feed: HypercoreFeed, message: any) =>
|
|
23
|
-
return pify(feed.append.bind(feed))(message);
|
|
24
|
-
};
|
|
22
|
+
const append = (feed: HypercoreFeed, message: any) => pify(feed.append.bind(feed))(message);
|
|
25
23
|
|
|
26
24
|
describe('Batch stream', () => {
|
|
27
25
|
test('Single message', async () => {
|
|
@@ -17,7 +17,7 @@ export interface CreateBatchStreamOptions {
|
|
|
17
17
|
tail?: boolean
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export
|
|
20
|
+
export const createBatchStream = (feed: HypercoreFeed, opts: CreateBatchStreamOptions = {}) => {
|
|
21
21
|
assert(!opts.batch || opts.batch > 0, 'batch must be major or equal to 1');
|
|
22
22
|
|
|
23
23
|
let start = opts.start || 0;
|
|
@@ -34,9 +34,7 @@ export function createBatchStream (feed: HypercoreFeed, opts: CreateBatchStreamO
|
|
|
34
34
|
|
|
35
35
|
let range = feed.download({ start, end, linear: true });
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function read (size: any, cb?: any) {
|
|
37
|
+
const read = (size: any, cb?: any) => {
|
|
40
38
|
if (!feed.opened) {
|
|
41
39
|
return open(size, cb);
|
|
42
40
|
}
|
|
@@ -103,9 +101,9 @@ export function createBatchStream (feed: HypercoreFeed, opts: CreateBatchStreamO
|
|
|
103
101
|
|
|
104
102
|
cb(null, messages.map(buildMessage));
|
|
105
103
|
});
|
|
106
|
-
}
|
|
104
|
+
};
|
|
107
105
|
|
|
108
|
-
|
|
106
|
+
const buildMessage = (data: object) => {
|
|
109
107
|
const message = {
|
|
110
108
|
key: feed.key,
|
|
111
109
|
seq: seq++,
|
|
@@ -115,26 +113,26 @@ export function createBatchStream (feed: HypercoreFeed, opts: CreateBatchStreamO
|
|
|
115
113
|
};
|
|
116
114
|
|
|
117
115
|
return message;
|
|
118
|
-
}
|
|
116
|
+
};
|
|
119
117
|
|
|
120
|
-
|
|
118
|
+
const cleanup = () => {
|
|
121
119
|
if (!range) {
|
|
122
120
|
return;
|
|
123
121
|
}
|
|
124
122
|
feed.undownload(range);
|
|
125
123
|
range = null;
|
|
126
|
-
}
|
|
124
|
+
};
|
|
127
125
|
|
|
128
|
-
|
|
129
|
-
feed.ready(
|
|
126
|
+
const open = (size: any, cb: (err: Error) => void) => {
|
|
127
|
+
feed.ready((err: Error) => {
|
|
130
128
|
if (err) {
|
|
131
129
|
return cb(err);
|
|
132
130
|
}
|
|
133
131
|
read(size, cb);
|
|
134
132
|
});
|
|
135
|
-
}
|
|
133
|
+
};
|
|
136
134
|
|
|
137
|
-
|
|
135
|
+
const setStart = (value: number) => {
|
|
138
136
|
const prevStart = start;
|
|
139
137
|
start = value;
|
|
140
138
|
range.start = start;
|
|
@@ -142,5 +140,7 @@ export function createBatchStream (feed: HypercoreFeed, opts: CreateBatchStreamO
|
|
|
142
140
|
range.iterator.start = start;
|
|
143
141
|
}
|
|
144
142
|
return prevStart;
|
|
145
|
-
}
|
|
146
|
-
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
return streamFrom.obj(read).on('end', cleanup).on('close', cleanup);
|
|
146
|
+
};
|
|
@@ -154,11 +154,11 @@ describe('FeedDescriptor', () => {
|
|
|
154
154
|
secretKey,
|
|
155
155
|
hypercore: () => ({
|
|
156
156
|
opened: true,
|
|
157
|
-
on () {},
|
|
158
|
-
ready (cb: () => void) {
|
|
157
|
+
on: () => {},
|
|
158
|
+
ready: (cb: () => void) => {
|
|
159
159
|
cb();
|
|
160
160
|
},
|
|
161
|
-
close () {
|
|
161
|
+
close: () => {
|
|
162
162
|
throw new Error('close error');
|
|
163
163
|
}
|
|
164
164
|
} as any)
|
package/src/feed-store.test.ts
CHANGED
|
@@ -30,35 +30,27 @@ const createFeedStore = (storage: Storage, options = {}) => {
|
|
|
30
30
|
return feedStore;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const createDefault = async () => {
|
|
34
34
|
const directory = tempy.directory();
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
37
|
directory,
|
|
38
38
|
feedStore: createFeedStore(createStorage(directory, StorageType.NODE), { valueEncoding: 'utf-8' })
|
|
39
39
|
};
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
)));
|
|
46
|
-
}
|
|
42
|
+
const defaultFeeds = async (feedStore: FeedStore, keys: Record<string, KeyPair>): Promise<Record<string, FeedDescriptor>> => Object.fromEntries(await Promise.all(Object.entries<KeyPair>(keys).map(async ([feed, keyPair]) =>
|
|
43
|
+
[feed, await feedStore.openReadWriteFeed(keyPair.key, keyPair.secretKey)]
|
|
44
|
+
)));
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
return pify(feed.append.bind(feed))(message);
|
|
50
|
-
}
|
|
46
|
+
const append = (feed: HypercoreFeed, message: any) => pify(feed.append.bind(feed))(message);
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
return pify(feed.head.bind(feed))();
|
|
54
|
-
}
|
|
48
|
+
const head = (feed: HypercoreFeed) => pify(feed.head.bind(feed))();
|
|
55
49
|
|
|
56
|
-
const createKeyPairs = () => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}));
|
|
61
|
-
};
|
|
50
|
+
const createKeyPairs = () => Object.fromEntries<KeyPair>(feedNames.map(feed => {
|
|
51
|
+
const { publicKey, secretKey } = createKeyPair();
|
|
52
|
+
return [feed, { key: PublicKey.from(publicKey), secretKey }];
|
|
53
|
+
}));
|
|
62
54
|
|
|
63
55
|
describe('FeedStore', () => {
|
|
64
56
|
const keys = createKeyPairs();
|
|
@@ -72,9 +64,7 @@ describe('FeedStore', () => {
|
|
|
72
64
|
});
|
|
73
65
|
|
|
74
66
|
test('Config default + custom database + custom hypercore', async () => {
|
|
75
|
-
const customHypercore = jest.fn((...args) =>
|
|
76
|
-
return hypercore(args[0], args[1], args[2]);
|
|
77
|
-
});
|
|
67
|
+
const customHypercore = jest.fn((...args) => hypercore(args[0], args[1], args[2]));
|
|
78
68
|
|
|
79
69
|
const storage = createStorage('', StorageType.RAM);
|
|
80
70
|
const database = hypertrie(storage.createOrOpen.bind(storage), { valueEncoding: 'json' });
|
|
@@ -175,11 +165,11 @@ describe('FeedStore', () => {
|
|
|
175
165
|
const feedStore = createFeedStore(createStorage('feed', StorageType.RAM), {
|
|
176
166
|
hypercore: () => ({
|
|
177
167
|
opened: true,
|
|
178
|
-
ready (cb: () => void) {
|
|
168
|
+
ready: (cb: () => void) => {
|
|
179
169
|
cb();
|
|
180
170
|
},
|
|
181
|
-
on () {},
|
|
182
|
-
close () {
|
|
171
|
+
on: () => {},
|
|
172
|
+
close: () => {
|
|
183
173
|
throw new Error('close error');
|
|
184
174
|
}
|
|
185
175
|
})
|
package/src/feed-store.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class FeedStore {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
const patchBufferCodec = (encoding: ValueEncoding): ValueEncoding => {
|
|
137
137
|
if (typeof encoding === 'string') {
|
|
138
138
|
return encoding;
|
|
139
139
|
}
|
|
@@ -141,4 +141,4 @@ function patchBufferCodec (encoding: ValueEncoding): ValueEncoding {
|
|
|
141
141
|
encode: (x: any) => Buffer.from(encoding.encode(x)),
|
|
142
142
|
decode: encoding.decode.bind(encoding)
|
|
143
143
|
};
|
|
144
|
-
}
|
|
144
|
+
};
|
package/src/stream.ts
CHANGED
|
@@ -20,62 +20,54 @@ const error = debug('dxos:stream:error');
|
|
|
20
20
|
* @returns {NodeJS.WritableStream}
|
|
21
21
|
*/
|
|
22
22
|
// TODO(burdon): Move to @dxos/codec.
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
}
|
|
23
|
+
export const createWritableFeedStream = (feed: HypercoreFeed) => new Writable({
|
|
24
|
+
objectMode: true,
|
|
25
|
+
write: (message, _, callback) => {
|
|
26
|
+
feed.append(message, callback);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* Creates a readStream stream that can be used as a buffer into which messages can be pushed.
|
|
34
32
|
*/
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
}
|
|
33
|
+
export const createReadable = (): Readable => new Readable({
|
|
34
|
+
objectMode: true,
|
|
35
|
+
read: () => {}
|
|
36
|
+
});
|
|
41
37
|
|
|
42
38
|
/**
|
|
43
39
|
* Creates a writeStream object stream.
|
|
44
40
|
* @param callback
|
|
45
41
|
*/
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
next(err);
|
|
56
|
-
}
|
|
42
|
+
export const createWritable = <T>(callback: (message: T) => Promise<void>): NodeJS.WritableStream => new Writable({
|
|
43
|
+
objectMode: true,
|
|
44
|
+
write: async (message: T, _, next) => {
|
|
45
|
+
try {
|
|
46
|
+
await callback(message);
|
|
47
|
+
next();
|
|
48
|
+
} catch (err: any) {
|
|
49
|
+
error(err);
|
|
50
|
+
next(err);
|
|
57
51
|
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
60
54
|
|
|
61
55
|
/**
|
|
62
56
|
* Creates a transform object stream.
|
|
63
57
|
* @param callback
|
|
64
58
|
*/
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
next(err);
|
|
75
|
-
}
|
|
59
|
+
export const createTransform = <R, W>(callback: (message: R) => Promise<W | undefined>): Transform => new Transform({
|
|
60
|
+
objectMode: true,
|
|
61
|
+
transform: async (message: R, _, next) => {
|
|
62
|
+
try {
|
|
63
|
+
const response = await callback(message);
|
|
64
|
+
next(null, response);
|
|
65
|
+
} catch (err: any) {
|
|
66
|
+
error(err);
|
|
67
|
+
next(err);
|
|
76
68
|
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
79
71
|
|
|
80
72
|
/**
|
|
81
73
|
* Wriable stream that collects objects (e.g., for testing).
|