Compare commits

..

No commits in common. "201d4fe91cb5359d58ec49b6f30ee0ff5551fb14" and "bffc58ccc1e29631adb244640fff4880bd9e042b" have entirely different histories.

7 changed files with 1 additions and 77 deletions

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Hammer Technologies LLC
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

5
dist/index.d.ts vendored
View File

@ -1,5 +0,0 @@
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
View File

@ -1 +0,0 @@
{"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
View File

@ -1,17 +0,0 @@
// @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);
}
}

View File

@ -1,11 +0,0 @@
{
"name": "@lumeweb/rpc",
"type": "module",
"version": "0.1.0",
"dependencies": {
"protomux-rpc": "^1.3.0"
},
"devDependencies": {
"@types/b4a": "^1.6.0"
}
}

View File

@ -1,19 +0,0 @@
// @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: any, options = {}) {
options = {
...{
id: ID,
valueEncoding: c.json
}, ...options
};
super(stream, options);
}
}

View File

@ -1,23 +0,0 @@
{
"compilerOptions": {
"declaration": true,
"strict": true,
"module": "esnext",
"target": "esnext",
"esModuleInterop": true,
"sourceMap": false,
"rootDir": "src",
"outDir": "dist",
"typeRoots": [
"node_modules/@types",
],
"moduleResolution": "node",
"declarationMap": true,
"declarationDir": "dist",
"emitDeclarationOnly": false,
"allowJs": true
},
"include": [
"src"
]
}