mappersmith
Advanced tools
Comparing version 2.9.0 to 2.9.1
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85749
1698