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
 {
1
 {
2
   "name": "rpclibrary",
2
   "name": "rpclibrary",
3
-  "version": "1.5.2",
3
+  "version": "1.5.3",
4
   "description": "rpclibrary is a websocket on steroids!",
4
   "description": "rpclibrary is a websocket on steroids!",
5
   "main": "./js/Index.js",
5
   "main": "./js/Index.js",
6
   "repository": {
6
   "repository": {

+ 1
- 1
src/Frontend.ts View File

114
             this[i.owner][i.name] = f
114
             this[i.owner][i.name] = f
115
             this[i.owner][i.name].bind(this)
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
     const RPCs = [...exporter.exportRPCs()]
62
     const RPCs = [...exporter.exportRPCs()]
63
 
63
 
64
 
64
 
65
-    const suffix = makeUnique?"-"+uuidv4().substr(0,4):""
66
     return RPCs.map(rpc => rpcToRpcinfo(rpc, owner, sesame))
65
     return RPCs.map(rpc => rpcToRpcinfo(rpc, owner, sesame))
67
     .map(info => {
66
     .map(info => {
67
+        const suffix = makeUnique?"-"+uuidv4().substr(0,4):""
68
         const ret:any = info
68
         const ret:any = info
69
         ret.uniqueName = info.name+suffix
69
         ret.uniqueName = info.name+suffix
70
 
70
 

Loading…
Cancel
Save