@barchart/portfolio-client-js 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/example.js +2 -2
- package/lib/gateway/PortfolioGateway.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/example/example.js
CHANGED
|
@@ -194,7 +194,7 @@ module.exports = function () {
|
|
|
194
194
|
_this._readPortfoliosEndpoint = EndpointBuilder.for('read-portfolios', 'read portfolios').withVerb(VerbType.GET).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
|
|
195
195
|
pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false);
|
|
196
196
|
}).withHeadersBuilder(function (hb) {
|
|
197
|
-
hb.withLiteralParameter('Accept-Encoding', 'gzip');
|
|
197
|
+
hb.withLiteralParameter('Accept-Encoding', 'Accept-Encoding', 'gzip');
|
|
198
198
|
}).withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPortfolioDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
|
|
199
199
|
|
|
200
200
|
_this._createPortfolioEndpoint = EndpointBuilder.for('create-portfolio', 'create portfolio').withVerb(VerbType.POST).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
|
|
@@ -1324,7 +1324,7 @@ module.exports = function () {
|
|
|
1324
1324
|
return {
|
|
1325
1325
|
JwtGateway: JwtGateway,
|
|
1326
1326
|
PortfolioGateway: PortfolioGateway,
|
|
1327
|
-
version: '1.2.
|
|
1327
|
+
version: '1.2.13'
|
|
1328
1328
|
};
|
|
1329
1329
|
}();
|
|
1330
1330
|
|
|
@@ -67,7 +67,7 @@ module.exports = (() => {
|
|
|
67
67
|
.withVariableParameter('portfolio', 'portfolio', 'portfolio', false);
|
|
68
68
|
})
|
|
69
69
|
.withHeadersBuilder((hb) => {
|
|
70
|
-
hb.withLiteralParameter('Accept-Encoding', 'gzip')
|
|
70
|
+
hb.withLiteralParameter('Accept-Encoding', 'Accept-Encoding', 'gzip')
|
|
71
71
|
})
|
|
72
72
|
.withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE)
|
|
73
73
|
.withRequestInterceptor(requestInterceptorToUse)
|
package/lib/index.js
CHANGED