(components: DsnComponents)
| 69 | } |
| 70 | |
| 71 | function dsnFromComponents(components: DsnComponents): DsnComponents { |
| 72 | return { |
| 73 | protocol: components.protocol, |
| 74 | publicKey: components.publicKey || '', |
| 75 | pass: components.pass || '', |
| 76 | host: components.host, |
| 77 | port: components.port || '', |
| 78 | path: components.path || '', |
| 79 | projectId: components.projectId, |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | function validateDsn(dsn: DsnComponents): boolean { |
| 84 | if (!DEBUG_BUILD) { |
no outgoing calls
no test coverage detected