fetch-mock
Advanced tools
Comparing version 7.5.0 to 7.5.1
@@ -48,3 +48,5 @@ 'use strict'; | ||
// Do not include this class in the stacktrace | ||
Error.captureStackTrace(_this, _this.constructor); | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(_this, _this.constructor); | ||
} | ||
return _this; | ||
@@ -51,0 +53,0 @@ } |
{ | ||
"name": "fetch-mock", | ||
"version": "7.5.0", | ||
"version": "7.5.1", | ||
"description": "Mock http requests made using fetch (or isomorphic-fetch)", | ||
@@ -5,0 +5,0 @@ "main": "src/server.js", |
@@ -14,3 +14,5 @@ const responseBuilder = require('./response-builder'); | ||
// Do not include this class in the stacktrace | ||
Error.captureStackTrace(this, this.constructor); | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(this, this.constructor); | ||
} | ||
} | ||
@@ -17,0 +19,0 @@ } |
Sorry, the diff of this file is too big to display
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
1446553
9490