Ver código fonte

tempalte strings & bugfixes

master
peter 4 anos atrás
pai
commit
fa45dc6b4f
3 arquivos alterados com 1128 adições e 53 exclusões
  1. 1122
    48
      package-lock.json
  2. 2
    1
      package.json
  3. 4
    4
      test/Test.ts

+ 1122
- 48
package-lock.json
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 2
- 1
package.json Ver arquivo

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "rpclibrary",
3
-  "version": "1.6.1",
3
+  "version": "1.6.2",
4 4
   "description": "rpclibrary is a websocket on steroids!",
5 5
   "main": "./js/Index.js",
6 6
   "repository": {
@@ -39,6 +39,7 @@
39 39
     "@types/mocha": "^5.2.7",
40 40
     "@types/node": "^11.13.19",
41 41
     "mocha": "^6.2.0",
42
+    "nyc": "^15.0.0",
42 43
     "ts-loader": "^5.3.3",
43 44
     "ts-mocha": "^6.0.0",
44 45
     "typedoc": "^0.15.0",

+ 4
- 4
test/Test.ts Ver arquivo

@@ -8,7 +8,7 @@ import { Socket } from "dgram";
8 8
 const add = (...args:number[]) => {return args.reduce((a,b)=>a+b, 0)}
9 9
 function makeServer(){
10 10
     let subcallback
11
-    return new RPCServer<{ topic: string }>(21000, [{
11
+    return new RPCServer<{ topic: string }>(21010, [{
12 12
         name: "test",
13 13
         exportRPCs: () => [
14 14
             {
@@ -109,7 +109,7 @@ describe('RPCSocket', () => {
109 109
 
110 110
     before(async() => {
111 111
         server = makeServer()
112
-        client = new RPCSocket(21000, "localhost")
112
+        client = new RPCSocket(21010, "localhost")
113 113
         return await client.connect()
114 114
     })
115 115
 
@@ -178,7 +178,7 @@ describe('It should do unhook', () => {
178 178
     let server: RPCServer<{topic: string}> 
179 179
 
180 180
     before(async() => {
181
-        server = new RPCServer<{ topic: string }>(21000, [{
181
+        server = new RPCServer<{ topic: string }>(21010, [{
182 182
             name: "test",
183 183
             exportRPCs: () => [{
184 184
                 name: 'subscribe',
@@ -199,7 +199,7 @@ describe('It should do unhook', () => {
199 199
             closeHandler: (socket) => { },
200 200
             errorHandler: (socket, err) => { throw err }
201 201
         })
202
-        client = new RPCSocket(21000, "localhost")
202
+        client = new RPCSocket(21010, "localhost")
203 203
         return await client.connect()
204 204
     })
205 205
 

Carregando…
Cancelar
Salvar