Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 4.0.4 to 4.1.0

4

lib/fake-server/index.js

@@ -147,3 +147,3 @@ "use strict";

var self = this;
var whitelist = {
var allowlist = {
autoRespond: true,

@@ -161,3 +161,3 @@ autoRespondAfter: true,

Object.keys(config).forEach(function(setting) {
if (setting in whitelist) {
if (setting in allowlist) {
self[setting] = config[setting];

@@ -164,0 +164,0 @@ }

@@ -807,2 +807,4 @@ "use strict";

this.setResponseBody(body || "");
this.responseURL = this.url;
},

@@ -809,0 +811,0 @@

{
"name": "nise",
"version": "4.0.4",
"version": "4.1.0",
"description": "Fake XHR and server",

@@ -22,2 +22,4 @@ "keywords": [

"lint": "eslint .",
"prettier:check": "prettier --check '**/*.{js,css,md}'",
"prettier:write": "prettier --write '**/*.{js,css,md}'",
"prepublish": "npm run bundle",

@@ -58,2 +60,3 @@ "prepublishOnly": "mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin",

"jsdom-global": "3.0.2",
"lint-staged": "^10.5.3",
"mocha": "^7.0.1",

@@ -75,8 +78,11 @@ "mochify": "^6.6.0",

},
"lint-staged": {
"*.{js,css,md}": "prettier --check",
"*.js": "eslint"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint -- --fix && npm run test",
"pre-push": "npm run lint && npm run test"
"pre-commit": "lint-staged"
}
}
}

@@ -47,3 +47,2 @@ # nise (偽)

## Sponsors

@@ -50,0 +49,0 @@

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