@podium/client
Advanced tools
Comparing version 3.0.0-beta.3 to 3.0.0-beta.4
@@ -102,5 +102,5 @@ /* eslint-disable no-param-reassign */ | ||
const headers = { | ||
const headers = Object.assign({}, state.reqOptions.headers, { | ||
'User-Agent': UA_STRING, | ||
}; | ||
}); | ||
@@ -107,0 +107,0 @@ putils.serializeContext( |
@@ -32,3 +32,3 @@ /* eslint-disable no-underscore-dangle */ | ||
this.reqOptions = Object.assign( | ||
{ pathname: '', query: {} }, | ||
{ pathname: '', query: {}, headers: {} }, | ||
reqOptions, | ||
@@ -35,0 +35,0 @@ ); |
{ | ||
"name": "@podium/client", | ||
"version": "3.0.0-beta.3", | ||
"version": "3.0.0-beta.4", | ||
"main": "lib/client.js", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
@@ -294,2 +294,3 @@ # @podium/client | ||
- `pathname` - {String} - A path which will be appended to the content root of the component when requested. | ||
- `headers` - {Object} - An Object which will be appended as http headers to the request to fetch the component's content. | ||
- `query` - {Object} - An Object which will be appended as query parameters to the request to fetch the component's content. | ||
@@ -310,2 +311,3 @@ | ||
- `pathname` - {String} - A path which will be appended to the content root of the component when requested. | ||
- `headers` - {Object} - An Object which will be appended as http headers to the request to fetch the component's content. | ||
- `query` - {Object} - An Object which will be appended as query parameters to the request to fetch the component's content. | ||
@@ -312,0 +314,0 @@ |
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
57970
428