Socket
Socket
Sign inDemoInstall

nise

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nise - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

lib/configure-logger/index.test.js

16

lib/fake-xhr/index.js

@@ -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) {

12

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc