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
2
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.6.1 to 0.7.0

2

dist/mockserver.d.ts

@@ -26,2 +26,4 @@ import { RequestHandler } from 'express';

patch(path: PathParams, response: (RequestHandler | object)): EndpointRecord;
put(path: PathParams, response: (RequestHandler | object)): EndpointRecord;
delete(path: PathParams, response: (RequestHandler | object)): EndpointRecord;
start(): Promise<{}>;

@@ -28,0 +30,0 @@ stop(): Promise<{}>;

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

Method["PATCH"] = "PATCH";
Method["PUT"] = "PUT";
Method["DELETE"] = "DELETE";
})(Method || (Method = {}));

@@ -78,2 +80,8 @@ var MockServer = /** @class */ (function () {

};
MockServer.prototype.put = function (path, response) {
return this.createEndpoint(Method.PUT, path, response);
};
MockServer.prototype["delete"] = function (path, response) {
return this.createEndpoint(Method.DELETE, path, response);
};
MockServer.prototype.start = function () {

@@ -149,2 +157,8 @@ return __awaiter(this, void 0, void 0, function () {

break;
case Method.PUT:
_this.router.put(path, middleware_1.recordCalls(endpoint.record.calls), endpoint.handler);
break;
case Method.DELETE:
_this.router["delete"](path, middleware_1.recordCalls(endpoint.record.calls), endpoint.handler);
break;
}

@@ -151,0 +165,0 @@ });

5

package.json
{
"name": "@kaluza/mock-server",
"version": "0.6.1",
"version": "0.7.0",
"main": "dist/mockserver.js",

@@ -37,3 +37,6 @@ "types": "dist/index.d.ts",

"typescript": "^3.3.3"
},
"publishConfig": {
"registry": "https://registry.npmjs.com/"
}
}
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