Comparing version 12.0.0 to 12.0.1
@@ -439,4 +439,4 @@ 'use strict' | ||
switch (true) { | ||
case _.isNumber(value): // fall-through | ||
case _.isBoolean(value): | ||
case typeof value === 'number': // fall-through | ||
case typeof value === 'boolean': | ||
value = value.toString() | ||
@@ -443,0 +443,0 @@ break |
@@ -105,3 +105,6 @@ 'use strict' | ||
_.defaults(this.options, this.scope.scopeOptions) | ||
this.options = { | ||
...this.scope.scopeOptions, | ||
...this.options, | ||
} | ||
@@ -136,3 +139,6 @@ this.scope.add(this._key, this) | ||
_.defaults(this.options, this.scope.scopeOptions) | ||
this.options = { | ||
...this.scope.scopeOptions, | ||
...this.options, | ||
} | ||
@@ -562,3 +568,3 @@ this.rawHeaders = common.headersInputToRawArray(rawHeaders) | ||
let bodyDelay | ||
if (_.isNumber(opts)) { | ||
if (typeof opts === 'number') { | ||
headDelay = opts | ||
@@ -565,0 +571,0 @@ bodyDelay = 0 |
@@ -10,3 +10,2 @@ 'use strict' | ||
const url = require('url') | ||
const _ = require('lodash') | ||
const debug = require('debug')('nock.scope') | ||
@@ -188,3 +187,3 @@ const { EventEmitter } = require('events') | ||
} | ||
} else if (_.isFunction(arguments[0])) { | ||
} else if (typeof arguments[0] === 'function') { | ||
return arguments[0] | ||
@@ -361,5 +360,6 @@ } | ||
} else { | ||
response = _.isString(nockDef.response) | ||
? tryJsonParse(nockDef.response) | ||
: nockDef.response | ||
response = | ||
typeof nockDef.response === 'string' | ||
? tryJsonParse(nockDef.response) | ||
: nockDef.response | ||
} | ||
@@ -366,0 +366,0 @@ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>", | ||
@@ -36,3 +36,3 @@ "repository": { | ||
"dirty-chai": "^2.0.1", | ||
"dtslint": "^2.0.5", | ||
"dtslint": "^3.0.0", | ||
"eslint": "^6.0.0", | ||
@@ -56,3 +56,3 @@ "eslint-config-prettier": "^6.0.0", | ||
"semantic-release": "^17.0.2", | ||
"sinon": "^8.1.1", | ||
"sinon": "^9.0.0", | ||
"sinon-chai": "^3.3.0", | ||
@@ -70,3 +70,3 @@ "superagent": "^5.0.2", | ||
"semantic-release": "semantic-release", | ||
"test": "run-p test:mocha test:tap", | ||
"test": "run-s test:mocha test:tap", | ||
"test:coverage": "tap --coverage-report=html && open coverage/lcov-report/index.html", | ||
@@ -73,0 +73,0 @@ "test:mocha": "nyc mocha $(grep -lr '^\\s*it(' tests)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170014
3400