refactor: update deps and use new ci process

This commit is contained in:
Derrick Hammer 2023-07-01 03:22:15 -04:00
parent 252be50f2e
commit d0f2c04819
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
9 changed files with 19214 additions and 57 deletions

13
.github/workflows/ci.yml vendored Normal file
View File

@ -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

5
.presetterrc.json Normal file
View File

@ -0,0 +1,5 @@
{
"preset": [
"@lumeweb/node-library-preset"
]
}

6
dist/index.d.ts vendored
View File

@ -1,6 +0,0 @@
import ProtomuxRPC from "protomux-rpc";
export default class RPC extends ProtomuxRPC {
constructor(stream: any, options?: {});
request(method: any, value?: any | string, options?: {}): Promise<any>;
}
//# 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,CAAC;AAOvC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;gBAC9B,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK;IAW/B,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,GAAE,GAAG,GAAG,MAAW,EAAE,OAAO,KAAK;CAGlE"}

21
dist/index.js vendored
View File

@ -1,21 +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);
}
async request(method, value = "", options = {}) {
return super.request(method, value, options);
}
}

19174
npm-shrinkwrap.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,13 +2,30 @@
"name": "@lumeweb/rpc",
"type": "module",
"version": "0.1.0",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "gitea@git.lumeweb.com:LumeWeb/rpc.git"
},
"dependencies": {
"compact-encoding": "^2.11.0",
"protomux-rpc": "^1.3.0"
"compact-encoding": "2.12.0",
"protomux-rpc": "1.4.0"
},
"devDependencies": {
"@types/b4a": "^1.6.0",
"prettier": "^2.8.0"
"@lumeweb/node-library-preset": "^0.2.7",
"presetter": "*"
},
"readme": "ERROR: No README data found!",
"_id": "@lumeweb/rpc@0.1.0",
"scripts": {
"prepare": "presetter bootstrap",
"build": "run build",
"semantic-release": "semantic-release"
},
"files": [
"lib/**"
],
"publishConfig": {
"access": "public"
}
}

View File

@ -1,4 +1,3 @@
// @ts-ignore
import ProtomuxRPC from "protomux-rpc";
// @ts-ignore
import c from "compact-encoding";

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"
]
}