@barchart/portfolio-api-common 1.0.49 → 1.0.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.
@@ -100,7 +100,11 @@ module.exports = (() => {
100
100
  }, { });
101
101
 
102
102
  const getIndex = (description) => {
103
- return ordering[description] || Math.MAX_VALUE;
103
+ if (ordering.hasOwnProperty(description)) {
104
+ return ordering[description];
105
+ } else {
106
+ return Number.MAX_VALUE;
107
+ }
104
108
  };
105
109
 
106
110
  builder = ComparatorBuilder.startWith((a, b) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -615,7 +615,11 @@ module.exports = (() => {
615
615
  }, { });
616
616
 
617
617
  const getIndex = (description) => {
618
- return ordering[description] || Math.MAX_VALUE;
618
+ if (ordering.hasOwnProperty(description)) {
619
+ return ordering[description];
620
+ } else {
621
+ return Number.MAX_VALUE;
622
+ }
619
623
  };
620
624
 
621
625
  builder = ComparatorBuilder.startWith((a, b) => {