make makeUnique more unique
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rpclibrary",
|
||||
"version": "1.5.2",
|
||||
"version": "1.5.3",
|
||||
"description": "rpclibrary is a websocket on steroids!",
|
||||
"main": "./js/Index.js",
|
||||
"repository": {
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ export class RPCSocket implements I.Socket{
|
||||
this[i.owner][i.name] = f
|
||||
this[i.owner][i.name].bind(this)
|
||||
})
|
||||
return <RPCSocket & T.RPCInterface<T>> <any> this
|
||||
return <RPCSocket & T.RPCInterface<T>> (this as any)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -62,9 +62,9 @@ export function rpcHooker<SubResT = {}>(socket: I.Socket, exporter:I.RPCExporter
|
||||
const RPCs = [...exporter.exportRPCs()]
|
||||
|
||||
|
||||
const suffix = makeUnique?"-"+uuidv4().substr(0,4):""
|
||||
return RPCs.map(rpc => rpcToRpcinfo(rpc, owner, sesame))
|
||||
.map(info => {
|
||||
const suffix = makeUnique?"-"+uuidv4().substr(0,4):""
|
||||
const ret:any = info
|
||||
ret.uniqueName = info.name+suffix
|
||||
|
||||
|
||||
Reference in New Issue
Block a user