@niledatabase/server 2.3.0-alpha.0 → 2.3.0-alpha.2

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.
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('dotenv/config');
6
- var isEmpty = require('lodash/isEmpty');
7
- var isObject = require('lodash/isObject');
8
6
  var jose = require('jose');
9
7
  var pg = require('pg');
10
8
 
@@ -1236,7 +1234,7 @@ var Requester = /*#__PURE__*/function (_Config) {
1236
1234
  case 13:
1237
1235
  if (
1238
1236
  // is just headers for a GET request
1239
- req instanceof Headers || isEmpty(req) || isObject(req) && Object.values(req).length === 0) {
1237
+ req instanceof Headers || JSON.stringify(req) === '{}' || req && typeof req === 'object' && Object.values(req).length === 0) {
1240
1238
  body = undefined;
1241
1239
  }
1242
1240
  case 14: