@azure-tools/test-recorder
Advanced tools
Comparing version 3.5.1 to 3.5.2
@@ -280,6 +280,6 @@ // Copyright (c) Microsoft Corporation. | ||
// Ideally this should be handled by the test-proxy. However, it was suggested that | ||
// there may be scenarios where it is desired to include this header. | ||
// Thus we are ignoring Accept-Language header in recorder for browser. | ||
// there may be scenarios where it is desired to include these headers. | ||
// Thus we are ignoring Accept-Language and Accept-Encountered headers in recorder for browser. | ||
const excludedHeaders = isBrowser | ||
? ((_a = options.excludedHeaders) !== null && _a !== void 0 ? _a : []).concat("Accept-Language") | ||
? ((_a = options.excludedHeaders) !== null && _a !== void 0 ? _a : []).concat("Accept-Language", "Accept-Encoding") | ||
: options.excludedHeaders; | ||
@@ -286,0 +286,0 @@ const updatedOptions = Object.assign(Object.assign({}, options), { excludedHeaders }); |
@@ -943,6 +943,6 @@ 'use strict'; | ||
// Ideally this should be handled by the test-proxy. However, it was suggested that | ||
// there may be scenarios where it is desired to include this header. | ||
// Thus we are ignoring Accept-Language header in recorder for browser. | ||
// there may be scenarios where it is desired to include these headers. | ||
// Thus we are ignoring Accept-Language and Accept-Encountered headers in recorder for browser. | ||
const excludedHeaders = coreUtil.isBrowser | ||
? ((_a = options.excludedHeaders) !== null && _a !== void 0 ? _a : []).concat("Accept-Language") | ||
? ((_a = options.excludedHeaders) !== null && _a !== void 0 ? _a : []).concat("Accept-Language", "Accept-Encoding") | ||
: options.excludedHeaders; | ||
@@ -949,0 +949,0 @@ const updatedOptions = Object.assign(Object.assign({}, options), { excludedHeaders }); |
{ | ||
"name": "@azure-tools/test-recorder", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"sdk-type": "utility", | ||
@@ -5,0 +5,0 @@ "description": "This library provides interfaces and helper methods to provide recording and playback capabilities for the tests in Azure JS/TS SDKs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
379610