@bodidata/events
Advanced tools
Comparing version 1.4.0-3 to 1.10.0
@@ -6,7 +6,6 @@ 'use strict'; | ||
}); | ||
exports.Employee = undefined; | ||
var _BodiDataEvent2 = require('./BodiDataEvent'); | ||
var _BodiDataEvent = require('./BodiDataEvent'); | ||
Object.keys(_BodiDataEvent2).forEach(function (key) { | ||
Object.keys(_BodiDataEvent).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
@@ -16,3 +15,3 @@ Object.defineProperty(exports, key, { | ||
get: function () { | ||
return _BodiDataEvent2[key]; | ||
return _BodiDataEvent[key]; | ||
} | ||
@@ -22,25 +21,24 @@ }); | ||
var _Employee = require('./Employee'); | ||
var _scanner = require('./scanner'); | ||
Object.defineProperty(exports, 'Employee', { | ||
enumerable: true, | ||
get: function () { | ||
return _Employee.Employee; | ||
} | ||
Object.keys(_scanner).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _scanner[key]; | ||
} | ||
}); | ||
}); | ||
exports.assert = assert; | ||
var _flowRuntime = require('flow-runtime'); | ||
var _uniform = require('./uniform'); | ||
var _flowRuntime2 = _interopRequireDefault(_flowRuntime); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/* flow-runtime */ | ||
const BodiDataEvent = _flowRuntime2.default.tdz(() => _BodiDataEvent2.BodiDataEvent); | ||
function assert(event) { | ||
return event; | ||
} | ||
_flowRuntime2.default.annotate(assert, _flowRuntime2.default.function(_flowRuntime2.default.param('event', _flowRuntime2.default.ref(BodiDataEvent)), _flowRuntime2.default.return(_flowRuntime2.default.ref(BodiDataEvent)))); | ||
Object.keys(_uniform).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _uniform[key]; | ||
} | ||
}); | ||
}); |
{ | ||
"name": "@bodidata/events", | ||
"version": "1.4.0-3", | ||
"version": "1.10.0", | ||
"description": "strongly typed events dictionary", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -17,20 +17,28 @@ /* @flow */ | ||
|}; | ||
export type Events$EmployeeUpdated = EventTemplate<'EMPLOYEE_UPDATED', {| | ||
employee: Employee, | ||
company_id: number, | ||
|}, DefaultMeta>; | ||
export type Events$EmployeeUpdated = EventTemplate< | ||
'EMPLOYEE_UPDATED', | ||
{| | ||
employee: Employee, | ||
company_id: number, | ||
|}, | ||
DefaultMeta | ||
>; | ||
export type Events$SizingRecommendationComputed = EventTemplate<'SIZING_RECOMMENDATION_COMPUTED', {| | ||
employee_id: string, | ||
company: number, | ||
products: Array<string>, | ||
resp: { | ||
data: { | ||
[productID: string]: { | ||
status: 'no_fit' | 'good_fit' | 'not_found' | 'not_applicable', | ||
size: string | null, | ||
export type Events$SizingRecommendationComputed = EventTemplate< | ||
'SIZING_RECOMMENDATION_COMPUTED', | ||
{| | ||
employee_id: string, | ||
company: number, | ||
products: Array<string>, | ||
resp: { | ||
data: { | ||
[productID: string]: { | ||
status: 'no_fit' | 'good_fit' | 'not_found' | 'not_applicable', | ||
size: string | null, | ||
}, | ||
}, | ||
}, | ||
}, | ||
|}, DefaultMeta>; | ||
|}, | ||
DefaultMeta | ||
>; | ||
@@ -37,0 +45,0 @@ export type BodiDataEvent = |
/* @flow */ | ||
/* flow-runtime */ | ||
import type { BodiDataEvent } from './BodiDataEvent'; | ||
export * from './BodiDataEvent'; | ||
export * from './scanner'; | ||
export * from './uniform'; | ||
export type { Employee } from './Employee'; | ||
export function assert(event: BodiDataEvent): BodiDataEvent { | ||
return event; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
100304
20
269
1
1