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.2 to 4.0.3

lib/fake-server/log.js

13

lib/fake-server/index.js

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

var push = [].push;
var format = require("./format");
var log = require("./log");
var configureLogError = require("../configure-logger");

@@ -208,13 +208,4 @@ var pathToRegexp = require("path-to-regexp");

log: function log(response, request) {
var str;
log: log,
str = "Request:\n" + format(request) + "\n\n";
str += "Response:\n" + format(response) + "\n\n";
if (typeof this.logger === "function") {
this.logger(str);
}
},
respondWith: function respondWith(method, url, body) {

@@ -221,0 +212,0 @@ if (arguments.length === 1 && typeof method !== "function") {

{
"name": "nise",
"version": "4.0.2",
"version": "4.0.3",
"description": "Fake XHR and server",

@@ -69,3 +69,2 @@ "keywords": [

"@sinonjs/fake-timers": "^6.0.0",
"@sinonjs/formatio": "^5.0.1",
"@sinonjs/text-encoding": "^0.7.1",

@@ -72,0 +71,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