qiwi / event-transmitter

Async adapter to save & deliver front-end events to some back-end
MIT License
3 stars 0 forks source link

Add deviceInfoPipe #6

Closed antongolub closed 4 years ago

antongolub commented 4 years ago
import {createDeviceInfoPipe} from '@qiwi/event-transmitter'

const devicePipe = createDeviceInfoPipe()

// Which is smth like 
async (event) => {
event.meta.deviceInfo = {
   os: ...
   model: ...
   browser: ...,
  ...
}

return [null, event]
}
qiwibot commented 4 years ago

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: