From 44d88ebd47a84a970d63012d922a2cb815eaad26 Mon Sep 17 00:00:00 2001 From: Chris Grayson Date: Wed, 29 Jan 2025 10:08:49 -0600 Subject: [PATCH] fix lodash requires --- lib/response.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/response.js b/lib/response.js index 4f8ca2e..5d029d1 100644 --- a/lib/response.js +++ b/lib/response.js @@ -1,5 +1,4 @@ const _ = require('lodash'); -const {isPlainObject} = require("lodash"); const mimecontent = require('mime-content'); const { parseMimeType } = require('mimeparse'); const dotWild = require('dot-wild'); @@ -17,7 +16,7 @@ const { ensureArray, inverseOutcome, toRegex } = require('./helpers'); * { foo: { '1984': { id: 1984, name: 'Van Halen' } } } */ const quoteNumericAttributes = function (obj) { - if (!isPlainObject(obj)) { return obj; } + if (!_.isPlainObject(obj)) { return obj; } const newObj = {}; for (let key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) {