(protocol)
| 13 | } |
| 14 | |
| 15 | function normalizedProtocol(protocol) { |
| 16 | if (typeof protocol === 'string') { |
| 17 | var segments = protocol.split('.'); |
| 18 | protocol = { |
| 19 | major: segments[0], |
| 20 | minor: segments[1] |
| 21 | }; |
| 22 | } |
| 23 | |
| 24 | return { |
| 25 | major: +(protocol.protocol || protocol.major || 0), |
| 26 | minor: +(protocol.protocolMinor || protocol.minor || 0) |
| 27 | }; |
| 28 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…