Package Exports
- @segment/loosely-validate-event
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@segment/loosely-validate-event) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@segment/loosely-validate-event
Loosely validate an event.
Example
const validate = require('@segment/loosely-validate-event')
const event = {
type: 'track',
userId: 'abc123',
properties: {
foo: 'bar'
}
}
validate(event) // throws if `event` does not pass validation