@restura/core 0.1.0-alpha.22 → 0.1.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -711,9 +711,7 @@ function addApiResponseFunctions(req, res, next) {
711
711
  function authenticateUser(applicationAuthenticateHandler) {
712
712
  return (req, res, next) => {
713
713
  applicationAuthenticateHandler(req, res, (userDetails) => {
714
- req.requesterDetails.host = req.hostname;
715
- req.requesterDetails.ipAddress = req.ip || "";
716
- req.requesterDetails = __spreadValues(__spreadValues({}, req.requesterDetails), userDetails);
714
+ req.requesterDetails = __spreadValues({ host: req.hostname, ipAddress: req.ip || "" }, userDetails);
717
715
  next();
718
716
  });
719
717
  };