UNPKG
@royli/hygen
Version:
latest (6.2.0)
6.2.0
5.0.4
The scalable code generator that saves you time.
github.com/jondot/hygen
jondot/hygen
@royli/hygen
/
dist
/
ops
/
result.js
6 lines
(5 loc)
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
(
type
, subject, start =
new
Date
()
) =>
(
status, payload =
null
, end =
new
Date
()
) =>
(
Object
.
assign
({
type
, subject, status,
timing
: end.
getTime
() - start.
getTime
() }, (payload && { payload })));