*add dist

This commit is contained in:
Derrick Hammer 2022-11-14 11:09:45 -05:00
parent f0012ae8cb
commit 201d4fe91c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 23 additions and 0 deletions

5
dist/index.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import ProtomuxRPC from "protomux-rpc";
export default class RPC extends ProtomuxRPC {
constructor(stream: any, options?: {});
}
//# sourceMappingURL=index.d.ts.map

1
dist/index.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,cAAc,CAAA;AAOtC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;gBAC5B,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK;CASxC"}

17
dist/index.js vendored Normal file
View File

@ -0,0 +1,17 @@
// @ts-ignore
import ProtomuxRPC from "protomux-rpc";
// @ts-ignore
import c from "compact-encoding";
import b4a from "b4a";
const ID = b4a.from("lumeweb");
export default class RPC extends ProtomuxRPC {
constructor(stream, options = {}) {
options = {
...{
id: ID,
valueEncoding: c.json
}, ...options
};
super(stream, options);
}
}