Compare commits
12 Commits
v0.0.1
...
v0.0.2-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 880794fe1a | |
Derrick Hammer | d0f2c04819 | |
Derrick Hammer | 252be50f2e | |
Derrick Hammer | 49fc39ab08 | |
Derrick Hammer | da4bda03ee | |
Derrick Hammer | cafa333041 | |
Derrick Hammer | ff6babc53c | |
Derrick Hammer | e54e7e536d | |
Derrick Hammer | 1bb963caa5 | |
Derrick Hammer | 2a5cb534e4 | |
Derrick Hammer | 201d4fe91c | |
Derrick Hammer | f0012ae8cb |
|
@ -0,0 +1,13 @@
|
|||
name: Build/Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- develop-*
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
|
||||
secrets: inherit
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"preset": [
|
||||
"@lumeweb/node-library-preset"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/rpc/compare/v0.0.1...v0.0.2-develop.1) (2023-07-01)
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
Copyright (c) 2022 Hammer Technologies LLC
|
||||
|
||||
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:
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"name": "@lumeweb/rpc",
|
||||
"type": "module",
|
||||
"version": "0.0.2-develop.1",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "gitea@git.lumeweb.com:LumeWeb/rpc.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"compact-encoding": "2.12.0",
|
||||
"protomux-rpc": "1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lumeweb/node-library-preset": "^0.2.7",
|
||||
"presetter": "*"
|
||||
},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"scripts": {
|
||||
"prepare": "presetter bootstrap",
|
||||
"build": "run build",
|
||||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"files": [
|
||||
"lib/**"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
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);
|
||||
}
|
||||
|
||||
async request(method: any, value: any | string = "", options = {}) {
|
||||
return super.request(method, value, options);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue