Browse Source

make makeUnique more unique

master
peter 4 years ago
parent
commit
daf9ccc133
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      package.json
  2. 1
    1
      src/Frontend.ts
  3. 1
    1
      src/Utils.ts

+ 1
- 1
package.json View File

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

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

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

Loading…
Cancel
Save