From 201d4fe91cb5359d58ec49b6f30ee0ff5551fb14 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 14 Nov 2022 11:09:45 -0500 Subject: [PATCH] *add dist --- dist/index.d.ts | 5 +++++ dist/index.d.ts.map | 1 + dist/index.js | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 dist/index.d.ts create mode 100644 dist/index.d.ts.map create mode 100644 dist/index.js diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..c4c2f4a --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,5 @@ +import ProtomuxRPC from "protomux-rpc"; +export default class RPC extends ProtomuxRPC { + constructor(stream: any, options?: {}); +} +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map new file mode 100644 index 0000000..26ac068 --- /dev/null +++ b/dist/index.d.ts.map @@ -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"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..c7c6740 --- /dev/null +++ b/dist/index.js @@ -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); + } +}