chore: Review fixes at #378 (#383)

* Review fixes

* remove logs

* Fixes

* Todo to remove prefix later

* Refactor service signatures

* Fixes

* Update lock file

* Fix lockfile

* Update deps

* More fixes and renames

* Fix compiler

* Peer refactoring and cutting onConnectionChange API

* Revert deleted API
This commit is contained in:
Akim
2023-11-23 04:18:10 +07:00
committed by GitHub
parent f4a550dd22
commit 98462bfdf6
34 changed files with 2413 additions and 585 deletions

View File

@ -311,12 +311,8 @@ export const builtInServices: Record<
return success(args.length === 0 ? {} : args[0]);
}),
concat: withSchema(z.array(z.array(z.unknown())))((args) => {
// Schema is used with unknown type to prevent useless runtime check
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
const arr = args as never[][];
return success(arr.flat());
concat: withSchema(z.array(z.array(z.any())))((args) => {
return success(args.flat());
}),
string_to_b58: withSchema(z.tuple([z.string()]))(([input]) => {