@barchart/portfolio-client-js 1.1.48 → 1.1.50
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 +4 -4
- package/lib/gateway/PortfolioGateway.js +3 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/example/example.js
CHANGED
|
@@ -744,7 +744,7 @@ module.exports = function () {
|
|
|
744
744
|
try {
|
|
745
745
|
return JSON.parse(response.data, PositionSchema.CLIENT.schema.getReviver());
|
|
746
746
|
} catch (e) {
|
|
747
|
-
console.log('Error deserializing
|
|
747
|
+
console.log('Error deserializing positions', e);
|
|
748
748
|
}
|
|
749
749
|
});
|
|
750
750
|
|
|
@@ -779,8 +779,8 @@ module.exports = function () {
|
|
|
779
779
|
replaced: response.data.replaced
|
|
780
780
|
};
|
|
781
781
|
|
|
782
|
-
if (response.transactions) {
|
|
783
|
-
returnRef.transactions = response.transactions;
|
|
782
|
+
if (response.data.transactions) {
|
|
783
|
+
returnRef.transactions = response.data.transactions;
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
return returnRef;
|
|
@@ -1169,7 +1169,7 @@ module.exports = function () {
|
|
|
1169
1169
|
return {
|
|
1170
1170
|
JwtGateway: JwtGateway,
|
|
1171
1171
|
PortfolioGateway: PortfolioGateway,
|
|
1172
|
-
version: '1.1.
|
|
1172
|
+
version: '1.1.50'
|
|
1173
1173
|
};
|
|
1174
1174
|
}();
|
|
1175
1175
|
|
|
@@ -687,7 +687,7 @@ module.exports = (() => {
|
|
|
687
687
|
try {
|
|
688
688
|
return JSON.parse(response.data, PositionSchema.CLIENT.schema.getReviver());
|
|
689
689
|
} catch (e) {
|
|
690
|
-
console.log('Error deserializing
|
|
690
|
+
console.log('Error deserializing positions', e);
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
|
|
@@ -718,8 +718,8 @@ module.exports = (() => {
|
|
|
718
718
|
replaced: response.data.replaced
|
|
719
719
|
};
|
|
720
720
|
|
|
721
|
-
if (response.transactions) {
|
|
722
|
-
returnRef.transactions = response.transactions;
|
|
721
|
+
if (response.data.transactions) {
|
|
722
|
+
returnRef.transactions = response.data.transactions;
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
return returnRef;
|
package/lib/index.js
CHANGED