Pārlūkot izejas kodu

make makeUnique more unique

master
peter 4 gadus atpakaļ
vecāks
revīzija
daf9ccc133
3 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1
    1
      package.json
  2. 1
    1
      src/Frontend.ts
  3. 1
    1
      src/Utils.ts

+ 1
- 1
package.json Parādīt failu

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "rpclibrary",
3
-  "version": "1.5.2",
3
+  "version": "1.5.3",
4 4
   "description": "rpclibrary is a websocket on steroids!",
5 5
   "main": "./js/Index.js",
6 6
   "repository": {

+ 1
- 1
src/Frontend.ts Parādīt failu

@@ -114,7 +114,7 @@ export class RPCSocket implements I.Socket{
114 114
             this[i.owner][i.name] = f
115 115
             this[i.owner][i.name].bind(this)
116 116
         })
117
-        return <RPCSocket & T.RPCInterface<T>> <any> this
117
+        return <RPCSocket & T.RPCInterface<T>> (this as any) 
118 118
     }
119 119
 
120 120
     /**

+ 1
- 1
src/Utils.ts Parādīt failu

@@ -62,9 +62,9 @@ export function rpcHooker<SubResT = {}>(socket: I.Socket, exporter:I.RPCExporter
62 62
     const RPCs = [...exporter.exportRPCs()]
63 63
 
64 64
 
65
-    const suffix = makeUnique?"-"+uuidv4().substr(0,4):""
66 65
     return RPCs.map(rpc => rpcToRpcinfo(rpc, owner, sesame))
67 66
     .map(info => {
67
+        const suffix = makeUnique?"-"+uuidv4().substr(0,4):""
68 68
         const ret:any = info
69 69
         ret.uniqueName = info.name+suffix
70 70
 

Notiek ielāde…
Atcelt
Saglabāt