Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Wetiontop 2021-12-26 18:09:31 +08:00
commit 6517259363
14 changed files with 87 additions and 74 deletions

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,12 +4,13 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"test": "mocha test/**/*.test.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"build": "tsrpc build"
},
"devDependencies": {
"@types/mocha": "^8.2.3",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -5,7 +5,7 @@ import { serviceProto } from "./shared/protocols/serviceProto";
// Create the Server
const server = new HttpServer(serviceProto, {
port: 3000,
cors: '*'
json: true
});
// Entry function

View File

@ -4,7 +4,8 @@ import { serviceProto } from './shared/protocols/serviceProto';
// Create the Client
let client = new HttpClient(serviceProto, {
server: 'http://127.0.0.1:3000',
logger: console
json: true,
// logger: console
});
async function test() {

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/mocha": "^8.2.3",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",

View File

@ -4,11 +4,12 @@
"main": "index.js",
"private": true,
"scripts": {
"proto": "tsrpc proto --config tsrpc.config.ts",
"sync": "tsrpc sync --config tsrpc.config.ts",
"api": "tsrpc api --config tsrpc.config.ts",
"dev": "tsrpc dev --config tsrpc.config.ts",
"build": "tsrpc build --config tsrpc.config.ts"
"proto": "tsrpc proto",
"sync": "tsrpc sync",
"api": "tsrpc api",
"doc": "tsrpc doc",
"dev": "tsrpc dev",
"build": "tsrpc build"
},
"devDependencies": {
"@types/node": "^15.14.9",