nock 14.0.11 → 14.0.12

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.
Files changed (2) hide show
  1. package/lib/common.js +2 -0
  2. package/package.json +2 -2
package/lib/common.js CHANGED
@@ -682,6 +682,8 @@ const expand = input => {
682
682
  } else {
683
683
  resultPtr[part] = {}
684
684
  }
685
+ } else if (typeof resultPtr[part] !== 'object') {
686
+ return undefined
685
687
  }
686
688
  resultPtr = resultPtr[part]
687
689
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "testing",
8
8
  "isolation"
9
9
  ],
10
- "version": "14.0.11",
10
+ "version": "14.0.12",
11
11
  "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
12
  "repository": {
13
13
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "propagate": "^2.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@definitelytyped/dtslint": "^0.0.163",
30
+ "@definitelytyped/dtslint": "^0.2.39",
31
31
  "@sinonjs/fake-timers": "^11.2.2",
32
32
  "assert-rejects": "^1.0.0",
33
33
  "chai": "^4.1.2",