move getStats to adapter.js

Let's reject if they're both undefined, e.g.
```typescript
R(new Error('could not parse getStats report`));
```