Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gocommerce/utils

Package Overview
Dependencies
Maintainers
5
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gocommerce/utils - npm Package Compare versions

Comparing version 0.6.11 to 0.6.12

10

dist/makeApiCall.js

@@ -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",

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