Skip to content

Commit

Permalink
fix lodash requires
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrayson committed Jan 29, 2025
1 parent 8f0e66d commit 44d88eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/response.js
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -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)) {
Expand Down

0 comments on commit 44d88eb

Please sign in to comment.