Socket
Socket
Sign inDemoInstall

mappersmith

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mappersmith - npm Package Compare versions

Comparing version 2.27.0 to 2.27.1

4

gateway/mock.js

@@ -40,4 +40,4 @@ "use strict";

return (0, _test.lookupResponseAsync)(this.request).then(function (request) {
return _this.dispatchResponse(request);
return (0, _test.lookupResponseAsync)(this.request).then(function (response) {
return _this.dispatchResponse(response);
}).catch(function (e) {

@@ -44,0 +44,0 @@ return _this.dispatchClientError(e.message, e);

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

/* global VERSION */
var version = "2.27.0";
var version = "2.27.1";
exports.version = version;

@@ -19,0 +19,0 @@ var configs = {

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

_this3.mockRequest.url = urlMatcher;
_this3.mockRequest.body = finalRequest.body();
_this3.pendingMiddlewareExecution = false;

@@ -213,14 +214,7 @@ }

* @private
* It never runs the middleware stack
*/
createRequest: function createRequest() {
var methodDescriptor = this.manifest.createMethodDescriptor(this.resourceName, this.methodName);
var initialRequest = new _request.default(methodDescriptor, this.requestParams);
var middleware = this.manifest.createMiddleware({
resourceName: this.resourceName,
resourceMethod: this.methodName,
mockRequest: true
});
return middleware.reduce(function (request, middleware) {
return middleware.request(request);
}, initialRequest);
return new _request.default(methodDescriptor, this.requestParams);
},

@@ -230,2 +224,3 @@

* @private
* Always runs the middleware stack
*/

@@ -232,0 +227,0 @@ createAsyncRequest: function createAsyncRequest() {

{
"name": "mappersmith",
"version": "2.27.0",
"version": "2.27.1",
"description": "It is a lightweight rest client for node.js and the browser",

@@ -5,0 +5,0 @@ "author": "Tulio Ornelas <ornelas.tulio@gmail.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc