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 6.0.0 to 6.0.1

9

lib/fake-server/index.js

@@ -253,4 +253,6 @@ "use strict";

if (/\*/.test(url)) {
// Uses the new syntax for repeating parameters in path-to-regexp,
// see https://github.com/pillarjs/path-to-regexp#unexpected--or-
// eslint-disable-next-line no-param-reassign
url = url.replace(/\/\*/g, "/(.*)");
url = url.replace(/\/\*/g, "/*path");
}

@@ -265,7 +267,8 @@

}
push.call(this.responses, {
method: method,
url:
typeof url === "string" && url !== "" ? pathToRegexp(url) : url,
typeof url === "string" && url !== ""
? pathToRegexp(url).regexp
: url,
response: typeof body === "function" ? body : responseArray(body),

@@ -272,0 +275,0 @@ });

{
"name": "nise",
"version": "6.0.0",
"version": "6.0.1",
"description": "Fake XHR and server",

@@ -25,3 +25,3 @@ "keywords": [

"prepare": "npm run bundle",
"prepublishOnly": "mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin",
"prepublishOnly": "git pull && mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin",
"test": "mocha lib/**/*.test.js",

@@ -71,3 +71,3 @@ "test:coverage": "nyc --reporter=lcov --reporter=text --all npm test -- --reporter dot",

"just-extend": "^6.2.0",
"path-to-regexp": "^6.2.1"
"path-to-regexp": "^8.1.0"
},

@@ -74,0 +74,0 @@ "lint-staged": {

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