New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kaluza/mock-server

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaluza/mock-server - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

1

dist/mockserver.d.ts

@@ -7,2 +7,3 @@ import { RequestHandler } from 'express';

sslCertDir?: string;
middleware?: RequestHandler[];
}

@@ -9,0 +10,0 @@ declare enum Method {

7

dist/mockserver.js

@@ -54,3 +54,2 @@ "use strict";

var https = require("https");
var bodyParser = require("body-parser");
var fs = require("fs");

@@ -187,3 +186,7 @@ var filePath = require("path");

this.router.use(middleware_1.logger(this.log.bind(this)));
this.router.use(bodyParser.json());
this.router.use(express.json());
this.router.use(express.text());
if (this.config.middleware) {
this.config.middleware.forEach(function (middleware) { return _this.router.use(middleware); });
}
this.endpoints.forEach(function (_a) {

@@ -190,0 +193,0 @@ var record = _a.record, handler = _a.handler, path = _a.path, method = _a.method;

{
"name": "@kaluza/mock-server",
"version": "0.11.0",
"version": "0.12.0",
"main": "dist/mockserver.js",

@@ -12,3 +12,4 @@ "types": "dist/mockserver.d.ts",

"test": "export NODE_TLS_REJECT_UNAUTHORIZED=0 && jest",
"prepublishOnly": "yarn build"
"prepublishOnly": "yarn build",
"version-bump": "bump --commit --tag"
},

@@ -19,3 +20,2 @@ "files": [

"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1"

@@ -33,3 +33,4 @@ },

"ts-jest": "^24.3.0",
"typescript": "^3.9.7"
"typescript": "^3.9.7",
"version-bump-prompt": "^6.1.0"
},

@@ -50,5 +51,8 @@ "jest": {

"rules": {
"import/extensions": ["error", "never"]
"import/extensions": [
"error",
"never"
]
}
}
}

@@ -44,2 +44,3 @@ # Node Mock Server

- `sslCertDir` - the directory the https server looks in for the self-signed certificate files `server.key` and `server.cert`.
- `middleware` - an array of [Express middleware](http://expressjs.com/en/guide/using-middleware.html) that will be applied to all routes in the server.

@@ -46,0 +47,0 @@ ### MockServer

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