nock 9.2.4 → 9.2.5

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/lib/match_body.js CHANGED
@@ -58,7 +58,7 @@ function matchBody(spec, body) {
58
58
  }
59
59
 
60
60
  if (isUrlencoded) {
61
- spec = mapValuesDeep(spec, (val) => {
61
+ spec = mapValuesDeep(spec, function(val) {
62
62
  if (_.isRegExp(val)) {
63
63
  return val
64
64
  }
@@ -76,10 +76,14 @@ function matchBody(spec, body) {
76
76
  */
77
77
  function mapValuesDeep(obj, cb) {
78
78
  if (_.isArray(obj)) {
79
- return obj.map((v) => mapValuesDeep(v, cb))
79
+ return obj.map(function(v) {
80
+ return mapValuesDeep(v, cb)
81
+ })
80
82
  }
81
83
  if (_.isPlainObject(obj)) {
82
- return _.mapValues(obj, (v) => mapValuesDeep(v, cb))
84
+ return _.mapValues(obj, function(v) {
85
+ return mapValuesDeep(v, cb)
86
+ })
83
87
  }
84
88
  return cb(obj)
85
89
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "testing",
8
8
  "isolation"
9
9
  ],
10
- "version": "9.2.4",
10
+ "version": "9.2.5",
11
11
  "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
12
  "contributors": [
13
13
  {