@gocommerce/utils
Advanced tools
Comparing version 0.6.11 to 0.6.12
@@ -15,5 +15,5 @@ 'use strict'; | ||
var _extends3 = require('babel-runtime/helpers/extends'); | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends4 = _interopRequireDefault(_extends3); | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
@@ -64,10 +64,10 @@ var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); | ||
withCredentials: true, | ||
headers: (0, _extends4.default)((0, _defineProperty3.default)({ | ||
headers: (0, _extends3.default)({ | ||
'Proxy-Authorization': ctx.vtex.authToken, | ||
'Cache-Control': 'public, max-age=3' | ||
}, 'X-OperationId', (operationId && operationId[0]) + '|' + (operationId && parseInt(operationId[1]) + 1)), !isGraphql && { Cookie: ctx.request.header.cookie || '' }, (0, _functions.getSubset)(['referer', 'x-forwarded-for', 'x-forwarded-host'], ctx.request.header), isHttps && { 'X-Vtex-Use-Https': true }, adicionalHeaders) | ||
}, operationId && (0, _defineProperty3.default)({}, 'X-OperationId', operationId[0] + '|' + (parseInt(operationId[1]) + 1)), !isGraphql && { Cookie: ctx.request.header.cookie || '' }, (0, _functions.getSubset)(['referer', 'x-forwarded-for', 'x-forwarded-host'], ctx.request.header), isHttps && { 'X-Vtex-Use-Https': true }, adicionalHeaders) | ||
}; | ||
_metricLogger = function _metricLogger(action, adicionalInformation) { | ||
return (0, _metricLogger3.default)(metricId, ctx, action, (0, _extends4.default)({ | ||
return (0, _metricLogger3.default)(metricId, ctx, action, (0, _extends3.default)({ | ||
requestUrl: requestParams.baseURL + requestParams.url, | ||
@@ -74,0 +74,0 @@ method: requestParams.method, |
{ | ||
"name": "@gocommerce/utils", | ||
"version": "0.6.11", | ||
"version": "0.6.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
30908
14