@cero-base/core 2.2.1 → 2.3.1
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/README.md +32 -212
- package/package.json +18 -9
- package/src/blobs/index.js +9 -0
- package/src/blobs/server.js +2 -0
- package/src/database/changes.js +1 -1
- package/src/database/dispatch.js +341 -209
- package/src/database/encryption.js +83 -33
- package/src/database/index.js +188 -84
- package/src/database/rotation.js +43 -30
- package/src/identity/index.js +20 -78
- package/src/index.js +3 -10
- package/src/lib/constants.js +2 -0
- package/src/lib/errors.js +3 -11
- package/src/lib/spec/index.js +136 -132
- package/src/lib/spec/schema.json +84 -99
- package/src/lib/utils.js +57 -3
- package/src/mailbox/inbox.js +103 -0
- package/src/mailbox/index.js +146 -0
- package/src/mailbox/post.js +69 -0
- package/src/network/discovery.js +26 -1
- package/src/network/index.js +105 -64
- package/src/network/presence.js +6 -2
- package/src/pairing/index.js +330 -254
- package/src/pairing/invite.js +83 -144
- package/src/pairing/request.js +54 -56
- package/src/rpc/index.js +18 -93
- package/src/rpc/peer.js +4 -1
- package/src/storage/index.js +78 -39
- package/types/blobs/index.d.ts +22 -9
- package/types/blobs/server.d.ts +4 -2
- package/types/database/changes.d.ts +2 -2
- package/types/database/dispatch.d.ts +19 -13
- package/types/database/encryption.d.ts +67 -29
- package/types/database/index.d.ts +144 -119
- package/types/database/rotation.d.ts +32 -13
- package/types/identity/index.d.ts +6 -47
- package/types/index.d.ts +3 -16
- package/types/lib/constants.d.ts +1 -0
- package/types/lib/errors.d.ts +3 -9
- package/types/lib/spec/index.d.ts +52 -16
- package/types/lib/utils.d.ts +40 -8
- package/types/mailbox/inbox.d.ts +52 -0
- package/types/mailbox/index.d.ts +111 -0
- package/types/mailbox/post.d.ts +37 -0
- package/types/network/discovery.d.ts +21 -5
- package/types/network/index.d.ts +64 -48
- package/types/network/presence.d.ts +17 -4
- package/types/pairing/index.d.ts +143 -134
- package/types/pairing/invite.d.ts +70 -114
- package/types/pairing/request.d.ts +58 -98
- package/types/rpc/index.d.ts +26 -44
- package/types/rpc/peer.d.ts +10 -7
- package/types/storage/index.d.ts +64 -54
- package/src/pairing/candidate.js +0 -123
- package/types/pairing/candidate.d.ts +0 -36
package/src/lib/spec/index.js
CHANGED
|
@@ -1,105 +1,157 @@
|
|
|
1
1
|
// This file is autogenerated by the hyperschema compiler
|
|
2
|
-
// Schema Version:
|
|
2
|
+
// Schema Version: 1
|
|
3
3
|
/* eslint-disable camelcase */
|
|
4
4
|
/* eslint-disable quotes */
|
|
5
5
|
/* eslint-disable space-before-function-paren */
|
|
6
6
|
|
|
7
7
|
import { c } from 'hyperschema/runtime'
|
|
8
8
|
|
|
9
|
-
const VERSION =
|
|
9
|
+
const VERSION = 1
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line no-unused-vars
|
|
12
12
|
let version = VERSION
|
|
13
13
|
|
|
14
|
-
// @cero/
|
|
14
|
+
// @cero/link
|
|
15
15
|
const encoding0 = {
|
|
16
|
+
preencode(state, m) {
|
|
17
|
+
c.fixed32.preencode(state, m.key)
|
|
18
|
+
c.uint.preencode(state, m.length)
|
|
19
|
+
},
|
|
20
|
+
encode(state, m) {
|
|
21
|
+
c.fixed32.encode(state, m.key)
|
|
22
|
+
c.uint.encode(state, m.length)
|
|
23
|
+
},
|
|
24
|
+
decode(state) {
|
|
25
|
+
const r0 = c.fixed32.decode(state)
|
|
26
|
+
const r1 = c.uint.decode(state)
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
key: r0,
|
|
30
|
+
length: r1
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @cero/invite
|
|
36
|
+
const encoding1 = {
|
|
16
37
|
preencode(state, m) {
|
|
17
38
|
c.uint.preencode(state, m.version)
|
|
18
|
-
c.fixed32.preencode(state, m.publicKey)
|
|
19
|
-
c.string.preencode(state, m.role)
|
|
20
39
|
c.uint.preencode(state, m.expires)
|
|
40
|
+
c.fixed32.preencode(state, m.key)
|
|
41
|
+
c.fixed32.preencode(state, m.address)
|
|
42
|
+
c.fixed32.preencode(state, m.seed)
|
|
43
|
+
encoding0.preencode(state, m.link)
|
|
21
44
|
state.end++ // max flag is 1 so always one byte
|
|
22
45
|
|
|
23
46
|
if (m.data) c.buffer.preencode(state, m.data)
|
|
24
|
-
c.buffer.preencode(state, m.blind)
|
|
25
47
|
},
|
|
26
48
|
encode(state, m) {
|
|
27
49
|
const flags = m.data ? 1 : 0
|
|
28
50
|
|
|
29
51
|
c.uint.encode(state, m.version)
|
|
30
|
-
c.fixed32.encode(state, m.publicKey)
|
|
31
|
-
c.string.encode(state, m.role)
|
|
32
52
|
c.uint.encode(state, m.expires)
|
|
53
|
+
c.fixed32.encode(state, m.key)
|
|
54
|
+
c.fixed32.encode(state, m.address)
|
|
55
|
+
c.fixed32.encode(state, m.seed)
|
|
56
|
+
encoding0.encode(state, m.link)
|
|
33
57
|
c.uint.encode(state, flags)
|
|
34
58
|
|
|
35
59
|
if (m.data) c.buffer.encode(state, m.data)
|
|
36
|
-
c.buffer.encode(state, m.blind)
|
|
37
60
|
},
|
|
38
61
|
decode(state) {
|
|
39
62
|
const r0 = c.uint.decode(state)
|
|
40
|
-
const r1 = c.
|
|
41
|
-
const r2 = c.
|
|
42
|
-
const r3 = c.
|
|
63
|
+
const r1 = c.uint.decode(state)
|
|
64
|
+
const r2 = c.fixed32.decode(state)
|
|
65
|
+
const r3 = c.fixed32.decode(state)
|
|
66
|
+
const r4 = c.fixed32.decode(state)
|
|
67
|
+
const r5 = encoding0.decode(state)
|
|
43
68
|
const flags = c.uint.decode(state)
|
|
44
69
|
|
|
45
70
|
return {
|
|
46
71
|
version: r0,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
72
|
+
expires: r1,
|
|
73
|
+
key: r2,
|
|
74
|
+
address: r3,
|
|
75
|
+
seed: r4,
|
|
76
|
+
link: r5,
|
|
77
|
+
data: (flags & 1) !== 0 ? c.buffer.decode(state) : null
|
|
52
78
|
}
|
|
53
79
|
}
|
|
54
80
|
}
|
|
55
81
|
|
|
56
|
-
// @cero/
|
|
57
|
-
const
|
|
82
|
+
// @cero/join
|
|
83
|
+
const encoding2 = {
|
|
58
84
|
preencode(state, m) {
|
|
59
|
-
c.
|
|
60
|
-
c.fixed32.preencode(state, m.
|
|
61
|
-
c.
|
|
62
|
-
c.
|
|
85
|
+
c.fixed32.preencode(state, m.invite)
|
|
86
|
+
c.fixed32.preencode(state, m.reply)
|
|
87
|
+
c.fixed64.preencode(state, m.proof)
|
|
88
|
+
c.fixed32.preencode(state, m.identity)
|
|
89
|
+
c.fixed64.preencode(state, m.signature)
|
|
63
90
|
state.end++ // max flag is 1 so always one byte
|
|
64
91
|
|
|
65
|
-
if (m.
|
|
66
|
-
c.buffer.preencode(state, m.blind)
|
|
67
|
-
c.fixed64.preencode(state, m.sig)
|
|
92
|
+
if (m.ts) c.uint.preencode(state, m.ts)
|
|
68
93
|
},
|
|
69
94
|
encode(state, m) {
|
|
70
|
-
const flags = m.
|
|
95
|
+
const flags = m.ts ? 1 : 0
|
|
71
96
|
|
|
72
|
-
c.
|
|
73
|
-
c.fixed32.encode(state, m.
|
|
74
|
-
c.
|
|
75
|
-
c.
|
|
97
|
+
c.fixed32.encode(state, m.invite)
|
|
98
|
+
c.fixed32.encode(state, m.reply)
|
|
99
|
+
c.fixed64.encode(state, m.proof)
|
|
100
|
+
c.fixed32.encode(state, m.identity)
|
|
101
|
+
c.fixed64.encode(state, m.signature)
|
|
76
102
|
c.uint.encode(state, flags)
|
|
77
103
|
|
|
78
|
-
if (m.
|
|
79
|
-
c.buffer.encode(state, m.blind)
|
|
80
|
-
c.fixed64.encode(state, m.sig)
|
|
104
|
+
if (m.ts) c.uint.encode(state, m.ts)
|
|
81
105
|
},
|
|
82
106
|
decode(state) {
|
|
83
|
-
const r0 = c.
|
|
107
|
+
const r0 = c.fixed32.decode(state)
|
|
84
108
|
const r1 = c.fixed32.decode(state)
|
|
85
|
-
const r2 = c.
|
|
86
|
-
const r3 = c.
|
|
109
|
+
const r2 = c.fixed64.decode(state)
|
|
110
|
+
const r3 = c.fixed32.decode(state)
|
|
111
|
+
const r4 = c.fixed64.decode(state)
|
|
87
112
|
const flags = c.uint.decode(state)
|
|
88
113
|
|
|
89
114
|
return {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
115
|
+
invite: r0,
|
|
116
|
+
reply: r1,
|
|
117
|
+
proof: r2,
|
|
118
|
+
identity: r3,
|
|
119
|
+
signature: r4,
|
|
120
|
+
ts: (flags & 1) !== 0 ? c.uint.decode(state) : 0
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// @cero/epoch
|
|
126
|
+
const encoding3 = {
|
|
127
|
+
preencode(state, m) {
|
|
128
|
+
c.uint.preencode(state, m.epoch)
|
|
129
|
+
c.uint.preencode(state, m.stamp)
|
|
130
|
+
c.fixed32.preencode(state, m.entropy)
|
|
131
|
+
},
|
|
132
|
+
encode(state, m) {
|
|
133
|
+
c.uint.encode(state, m.epoch)
|
|
134
|
+
c.uint.encode(state, m.stamp)
|
|
135
|
+
c.fixed32.encode(state, m.entropy)
|
|
136
|
+
},
|
|
137
|
+
decode(state) {
|
|
138
|
+
const r0 = c.uint.decode(state)
|
|
139
|
+
const r1 = c.uint.decode(state)
|
|
140
|
+
const r2 = c.fixed32.decode(state)
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
epoch: r0,
|
|
144
|
+
stamp: r1,
|
|
145
|
+
entropy: r2
|
|
97
146
|
}
|
|
98
147
|
}
|
|
99
148
|
}
|
|
100
149
|
|
|
150
|
+
// @cero/confirm.epochs
|
|
151
|
+
const encoding4_4 = c.array(encoding3)
|
|
152
|
+
|
|
101
153
|
// @cero/confirm
|
|
102
|
-
const
|
|
154
|
+
const encoding4 = {
|
|
103
155
|
preencode(state, m) {
|
|
104
156
|
c.uint.preencode(state, m.status)
|
|
105
157
|
state.end++ // max flag is 8 so always one byte
|
|
@@ -107,11 +159,11 @@ const encoding2 = {
|
|
|
107
159
|
if (m.reason) c.string.preencode(state, m.reason)
|
|
108
160
|
if (m.key) c.fixed32.preencode(state, m.key)
|
|
109
161
|
if (m.encryptionKey) c.buffer.preencode(state, m.encryptionKey)
|
|
110
|
-
if (m.
|
|
162
|
+
if (m.epochs) encoding4_4.preencode(state, m.epochs)
|
|
111
163
|
},
|
|
112
164
|
encode(state, m) {
|
|
113
165
|
const flags =
|
|
114
|
-
(m.reason ? 1 : 0) | (m.key ? 2 : 0) | (m.encryptionKey ? 4 : 0) | (m.
|
|
166
|
+
(m.reason ? 1 : 0) | (m.key ? 2 : 0) | (m.encryptionKey ? 4 : 0) | (m.epochs ? 8 : 0)
|
|
115
167
|
|
|
116
168
|
c.uint.encode(state, m.status)
|
|
117
169
|
c.uint.encode(state, flags)
|
|
@@ -119,7 +171,7 @@ const encoding2 = {
|
|
|
119
171
|
if (m.reason) c.string.encode(state, m.reason)
|
|
120
172
|
if (m.key) c.fixed32.encode(state, m.key)
|
|
121
173
|
if (m.encryptionKey) c.buffer.encode(state, m.encryptionKey)
|
|
122
|
-
if (m.
|
|
174
|
+
if (m.epochs) encoding4_4.encode(state, m.epochs)
|
|
123
175
|
},
|
|
124
176
|
decode(state) {
|
|
125
177
|
const r0 = c.uint.decode(state)
|
|
@@ -130,115 +182,96 @@ const encoding2 = {
|
|
|
130
182
|
reason: (flags & 1) !== 0 ? c.string.decode(state) : null,
|
|
131
183
|
key: (flags & 2) !== 0 ? c.fixed32.decode(state) : null,
|
|
132
184
|
encryptionKey: (flags & 4) !== 0 ? c.buffer.decode(state) : null,
|
|
133
|
-
|
|
185
|
+
epochs: (flags & 8) !== 0 ? encoding4_4.decode(state) : null
|
|
134
186
|
}
|
|
135
187
|
}
|
|
136
188
|
}
|
|
137
189
|
|
|
138
190
|
// @cero/rows.data
|
|
139
|
-
const
|
|
191
|
+
const encoding5_0 = c.array(c.buffer)
|
|
140
192
|
|
|
141
193
|
// @cero/rows
|
|
142
|
-
const
|
|
194
|
+
const encoding5 = {
|
|
143
195
|
preencode(state, m) {
|
|
144
196
|
state.end++ // max flag is 1 so always one byte
|
|
145
197
|
|
|
146
|
-
if (m.data)
|
|
198
|
+
if (m.data) encoding5_0.preencode(state, m.data)
|
|
147
199
|
},
|
|
148
200
|
encode(state, m) {
|
|
149
201
|
const flags = m.data ? 1 : 0
|
|
150
202
|
|
|
151
203
|
c.uint.encode(state, flags)
|
|
152
204
|
|
|
153
|
-
if (m.data)
|
|
205
|
+
if (m.data) encoding5_0.encode(state, m.data)
|
|
154
206
|
},
|
|
155
207
|
decode(state) {
|
|
156
208
|
const flags = c.uint.decode(state)
|
|
157
209
|
|
|
158
210
|
return {
|
|
159
|
-
data: (flags & 1) !== 0 ?
|
|
211
|
+
data: (flags & 1) !== 0 ? encoding5_0.decode(state) : null
|
|
160
212
|
}
|
|
161
213
|
}
|
|
162
214
|
}
|
|
163
215
|
|
|
164
|
-
// @cero/
|
|
165
|
-
const
|
|
216
|
+
// @cero/changes.prev
|
|
217
|
+
const encoding6_0 = encoding5_0
|
|
218
|
+
// @cero/changes.next
|
|
219
|
+
const encoding6_1 = encoding5_0
|
|
220
|
+
|
|
221
|
+
// @cero/changes
|
|
222
|
+
const encoding6 = {
|
|
166
223
|
preencode(state, m) {
|
|
167
|
-
state.end++ // max flag is
|
|
168
|
-
|
|
169
|
-
if (m.
|
|
170
|
-
if (m.
|
|
171
|
-
if (m.lt) c.string.preencode(state, m.lt)
|
|
172
|
-
if (m.lte) c.string.preencode(state, m.lte)
|
|
173
|
-
if (m.limit) c.uint.preencode(state, m.limit)
|
|
174
|
-
if (m.data) c.json.preencode(state, m.data)
|
|
224
|
+
state.end++ // max flag is 2 so always one byte
|
|
225
|
+
|
|
226
|
+
if (m.prev) encoding6_0.preencode(state, m.prev)
|
|
227
|
+
if (m.next) encoding6_1.preencode(state, m.next)
|
|
175
228
|
},
|
|
176
229
|
encode(state, m) {
|
|
177
|
-
const flags =
|
|
178
|
-
(m.gt ? 1 : 0) |
|
|
179
|
-
(m.gte ? 2 : 0) |
|
|
180
|
-
(m.lt ? 4 : 0) |
|
|
181
|
-
(m.lte ? 8 : 0) |
|
|
182
|
-
(m.limit ? 16 : 0) |
|
|
183
|
-
(m.reverse ? 32 : 0) |
|
|
184
|
-
(m.data ? 64 : 0)
|
|
230
|
+
const flags = (m.prev ? 1 : 0) | (m.next ? 2 : 0)
|
|
185
231
|
|
|
186
232
|
c.uint.encode(state, flags)
|
|
187
233
|
|
|
188
|
-
if (m.
|
|
189
|
-
if (m.
|
|
190
|
-
if (m.lt) c.string.encode(state, m.lt)
|
|
191
|
-
if (m.lte) c.string.encode(state, m.lte)
|
|
192
|
-
if (m.limit) c.uint.encode(state, m.limit)
|
|
193
|
-
if (m.data) c.json.encode(state, m.data)
|
|
234
|
+
if (m.prev) encoding6_0.encode(state, m.prev)
|
|
235
|
+
if (m.next) encoding6_1.encode(state, m.next)
|
|
194
236
|
},
|
|
195
237
|
decode(state) {
|
|
196
238
|
const flags = c.uint.decode(state)
|
|
197
239
|
|
|
198
240
|
return {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
lt: (flags & 4) !== 0 ? c.string.decode(state) : null,
|
|
202
|
-
lte: (flags & 8) !== 0 ? c.string.decode(state) : null,
|
|
203
|
-
limit: (flags & 16) !== 0 ? c.uint.decode(state) : 0,
|
|
204
|
-
reverse: (flags & 32) !== 0,
|
|
205
|
-
data: (flags & 64) !== 0 ? c.json.decode(state) : null
|
|
241
|
+
prev: (flags & 1) !== 0 ? encoding6_0.decode(state) : null,
|
|
242
|
+
next: (flags & 2) !== 0 ? encoding6_1.decode(state) : null
|
|
206
243
|
}
|
|
207
244
|
}
|
|
208
245
|
}
|
|
209
246
|
|
|
210
247
|
// @cero/create
|
|
211
|
-
const
|
|
248
|
+
const encoding7 = {
|
|
212
249
|
preencode(state, m) {
|
|
213
|
-
state.end++ // max flag is
|
|
250
|
+
state.end++ // max flag is 2 so always one byte
|
|
214
251
|
|
|
215
252
|
if (m.id) c.string.preencode(state, m.id)
|
|
216
253
|
if (m.name) c.string.preencode(state, m.name)
|
|
217
|
-
if (m.role) c.string.preencode(state, m.role)
|
|
218
254
|
},
|
|
219
255
|
encode(state, m) {
|
|
220
|
-
const flags = (m.id ? 1 : 0) | (m.name ? 2 : 0)
|
|
256
|
+
const flags = (m.id ? 1 : 0) | (m.name ? 2 : 0)
|
|
221
257
|
|
|
222
258
|
c.uint.encode(state, flags)
|
|
223
259
|
|
|
224
260
|
if (m.id) c.string.encode(state, m.id)
|
|
225
261
|
if (m.name) c.string.encode(state, m.name)
|
|
226
|
-
if (m.role) c.string.encode(state, m.role)
|
|
227
262
|
},
|
|
228
263
|
decode(state) {
|
|
229
264
|
const flags = c.uint.decode(state)
|
|
230
265
|
|
|
231
266
|
return {
|
|
232
267
|
id: (flags & 1) !== 0 ? c.string.decode(state) : null,
|
|
233
|
-
name: (flags & 2) !== 0 ? c.string.decode(state) : null
|
|
234
|
-
role: (flags & 4) !== 0 ? c.string.decode(state) : null,
|
|
235
|
-
noAccept: (flags & 8) !== 0
|
|
268
|
+
name: (flags & 2) !== 0 ? c.string.decode(state) : null
|
|
236
269
|
}
|
|
237
270
|
}
|
|
238
271
|
}
|
|
239
272
|
|
|
240
273
|
// @cero/blob-id
|
|
241
|
-
const
|
|
274
|
+
const encoding8 = {
|
|
242
275
|
preencode(state, m) {
|
|
243
276
|
c.fixed32.preencode(state, m.coreKey)
|
|
244
277
|
c.uint.preencode(state, m.blockOffset)
|
|
@@ -274,37 +307,6 @@ const encoding6 = {
|
|
|
274
307
|
}
|
|
275
308
|
}
|
|
276
309
|
|
|
277
|
-
// @cero/changes.prev
|
|
278
|
-
const encoding7_0 = encoding3_0
|
|
279
|
-
// @cero/changes.next
|
|
280
|
-
const encoding7_1 = encoding3_0
|
|
281
|
-
|
|
282
|
-
// @cero/changes
|
|
283
|
-
const encoding7 = {
|
|
284
|
-
preencode(state, m) {
|
|
285
|
-
state.end++ // max flag is 2 so always one byte
|
|
286
|
-
|
|
287
|
-
if (version >= 2 && m.prev) encoding7_0.preencode(state, m.prev)
|
|
288
|
-
if (version >= 2 && m.next) encoding7_1.preencode(state, m.next)
|
|
289
|
-
},
|
|
290
|
-
encode(state, m) {
|
|
291
|
-
const flags = ((version >= 2 && m.prev) ? 1 : 0) | ((version >= 2 && m.next) ? 2 : 0)
|
|
292
|
-
|
|
293
|
-
c.uint.encode(state, flags)
|
|
294
|
-
|
|
295
|
-
if (version >= 2 && m.prev) encoding7_0.encode(state, m.prev)
|
|
296
|
-
if (version >= 2 && m.next) encoding7_1.encode(state, m.next)
|
|
297
|
-
},
|
|
298
|
-
decode(state) {
|
|
299
|
-
const flags = c.uint.decode(state)
|
|
300
|
-
|
|
301
|
-
return {
|
|
302
|
-
prev: (version >= 2 && (flags & 1) !== 0) ? encoding7_0.decode(state) : null,
|
|
303
|
-
next: (version >= 2 && (flags & 2) !== 0) ? encoding7_1.decode(state) : null
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
310
|
function setVersion(v) {
|
|
309
311
|
version = v
|
|
310
312
|
}
|
|
@@ -328,22 +330,24 @@ function getEnum(name) {
|
|
|
328
330
|
|
|
329
331
|
function getEncoding(name) {
|
|
330
332
|
switch (name) {
|
|
331
|
-
case '@cero/
|
|
333
|
+
case '@cero/link':
|
|
332
334
|
return encoding0
|
|
333
335
|
case '@cero/invite':
|
|
334
336
|
return encoding1
|
|
335
|
-
case '@cero/
|
|
337
|
+
case '@cero/join':
|
|
336
338
|
return encoding2
|
|
337
|
-
case '@cero/
|
|
339
|
+
case '@cero/epoch':
|
|
338
340
|
return encoding3
|
|
339
|
-
case '@cero/
|
|
341
|
+
case '@cero/confirm':
|
|
340
342
|
return encoding4
|
|
341
|
-
case '@cero/
|
|
343
|
+
case '@cero/rows':
|
|
342
344
|
return encoding5
|
|
343
|
-
case '@cero/blob-id':
|
|
344
|
-
return encoding6
|
|
345
345
|
case '@cero/changes':
|
|
346
|
+
return encoding6
|
|
347
|
+
case '@cero/create':
|
|
346
348
|
return encoding7
|
|
349
|
+
case '@cero/blob-id':
|
|
350
|
+
return encoding8
|
|
347
351
|
default:
|
|
348
352
|
throw new Error('Encoder not found ' + name)
|
|
349
353
|
}
|