Comparing version 5.1.0 to 5.1.1
@@ -116,2 +116,14 @@ "use strict"; | ||
} | ||
} else if (responseType === "blob") { | ||
if ( | ||
!isString && | ||
!(body instanceof ArrayBuffer) && | ||
supportsBlob && | ||
!(body instanceof Blob) | ||
) { | ||
error = new Error( | ||
`Attempted to respond to fake XMLHttpRequest with ${body}, which is not a string, ArrayBuffer, or Blob.` | ||
); | ||
error.name = "InvalidBodyException"; | ||
} | ||
} else if (!isString) { | ||
@@ -357,2 +369,6 @@ error = new Error( | ||
} else if (supportsBlob && responseType === "blob") { | ||
if (body instanceof Blob) { | ||
return body; | ||
} | ||
var blobOptions = {}; | ||
@@ -359,0 +375,0 @@ if (contentType) { |
{ | ||
"name": "nise", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Fake XHR and server", | ||
@@ -48,4 +48,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@sinonjs/eslint-config": "^4.0.0", | ||
"@sinonjs/referee": "^5.0.0", | ||
"@sinonjs/eslint-config": "^4.0.5", | ||
"@sinonjs/referee": "^9.1.1", | ||
"browserify": "^16.2.3", | ||
@@ -63,7 +63,7 @@ "husky": "^4.2.1", | ||
"proxyquireify": "^3.2.1", | ||
"sinon": "^9.0.0" | ||
"sinon": ">=9" | ||
}, | ||
"dependencies": { | ||
"@sinonjs/commons": "^1.7.0", | ||
"@sinonjs/fake-timers": "^7.0.4", | ||
"@sinonjs/commons": "^1.8.3", | ||
"@sinonjs/fake-timers": ">=5", | ||
"@sinonjs/text-encoding": "^0.7.1", | ||
@@ -70,0 +70,0 @@ "just-extend": "^4.0.2", |
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
1029505
23
15066
+ Added@sinonjs/commons@3.0.1(transitive)
+ Added@sinonjs/fake-timers@13.0.2(transitive)
- Removed@sinonjs/fake-timers@7.1.2(transitive)
Updated@sinonjs/commons@^1.8.3
Updated@sinonjs/fake-timers@>=5