Socket
Socket
Sign inDemoInstall

mappersmith

Package Overview
Dependencies
Maintainers
1
Versions
121
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.9.0 to 2.9.1

7

middlewares/basic-auth.js

@@ -1,2 +0,2 @@

"use strict";
'use strict';

@@ -6,2 +6,5 @@ Object.defineProperty(exports, "__esModule", {

});
var _utils = require('../utils');
/**

@@ -26,3 +29,3 @@ * Automatically configure your requests with basic auth

return !auth // Keep the override
? _request.enhance({ auth: authConfig }) : _request;
? _request.enhance({ auth: (0, _utils.assign)({}, authConfig) }) : _request;
}

@@ -29,0 +32,0 @@ };

{
"name": "mappersmith",
"version": "2.9.0",
"version": "2.9.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>",

@@ -18,5 +18,8 @@ 'use strict';

if (originalRequest.requestParams && originalRequest.requestParams.auth) {
(0, _utils.assign)(originalRequest.requestParams.auth, { password: '***' });
var maskedAuth = (0, _utils.assign)({}, originalRequest.requestParams.auth, { password: '***' });
this.originalRequest = originalRequest.enhance({ auth: maskedAuth });
} else {
this.originalRequest = originalRequest;
}
this.originalRequest = originalRequest;
this.responseStatus = responseStatus;

@@ -23,0 +26,0 @@ this.responseData = responseData !== undefined ? responseData : null;

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