(token)
| 76 | }; |
| 77 | |
| 78 | function validateToken(token) { |
| 79 | if (!token.keyId) { |
| 80 | throw new Error("token.keyId is missing"); |
| 81 | } else if(typeof token.keyId !== "string") { |
| 82 | throw new Error("token.keyId must be a string"); |
| 83 | } |
| 84 | |
| 85 | if (!token.teamId) { |
| 86 | throw new Error("token.teamId is missing"); |
| 87 | } else if(typeof token.teamId !== "string") { |
| 88 | throw new Error("token.teamId must be a string"); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | function configureAddress(options) { |
| 93 | if (!options.address) { |
no outgoing calls
no test coverage detected
searching dependent graphs…