diff --git a/@vates/decorate-with/index.js b/@vates/decorate-with/index.js index 6c99c5878..c44577de1 100644 --- a/@vates/decorate-with/index.js +++ b/@vates/decorate-with/index.js @@ -1,4 +1,6 @@ -exports.decorateWith = (fn, ...args) => (target, name, descriptor) => ({ - ...descriptor, - value: fn(descriptor.value, ...args), -}) +exports.decorateWith = function decorateWith(fn, ...args) { + return (target, name, descriptor) => ({ + ...descriptor, + value: fn(descriptor.value, ...args), + }) +}