@barchart/portfolio-api-common 1.0.7 → 1.0.8

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.
@@ -62,9 +62,9 @@ module.exports = (() => {
62
62
  transaction.formatted = formatted;
63
63
 
64
64
  return transaction;
65
+ } else {
66
+ return formatted;
65
67
  }
66
-
67
- return formatted;
68
68
  });
69
69
  }
70
70
 
@@ -81,9 +81,11 @@ module.exports = (() => {
81
81
  instrument: t.instrument
82
82
  };
83
83
 
84
- delete basic.instrument.id;
84
+ if (basic.instrument) {
85
+ delete basic.instrument.id;
86
+ }
85
87
 
86
- return instrument;
88
+ return basic;
87
89
  };
88
90
 
89
91
  const formatters = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",