@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.
@@ -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 position summaries', e);
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.48'
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 position summaries', e);
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
@@ -7,6 +7,6 @@ module.exports = (() => {
7
7
  return {
8
8
  JwtGateway: JwtGateway,
9
9
  PortfolioGateway: PortfolioGateway,
10
- version: '1.1.48'
10
+ version: '1.1.50'
11
11
  };
12
12
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-client-js",
3
- "version": "1.1.48",
3
+ "version": "1.1.50",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",