@barchart/portfolio-api-common 1.0.92 → 1.0.93
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.
|
@@ -58,7 +58,7 @@ module.exports = (() => {
|
|
|
58
58
|
this._dataFormat.total = null;
|
|
59
59
|
this._dataFormat.totalNegative = false;
|
|
60
60
|
this._dataFormat.summaryTotalCurrent = null;
|
|
61
|
-
this._dataActual.
|
|
61
|
+
this._dataActual.summaryTotalCurrentNegative = false;
|
|
62
62
|
this._dataFormat.summaryTotalPrevious = null;
|
|
63
63
|
|
|
64
64
|
this._dataFormat.unrealizedTodayNegative = false;
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -1038,7 +1038,7 @@ module.exports = (() => {
|
|
|
1038
1038
|
this._dataFormat.total = null;
|
|
1039
1039
|
this._dataFormat.totalNegative = false;
|
|
1040
1040
|
this._dataFormat.summaryTotalCurrent = null;
|
|
1041
|
-
this._dataActual.
|
|
1041
|
+
this._dataActual.summaryTotalCurrentNegative = false;
|
|
1042
1042
|
this._dataFormat.summaryTotalPrevious = null;
|
|
1043
1043
|
|
|
1044
1044
|
this._dataFormat.unrealizedTodayNegative = false;
|
|
@@ -3222,9 +3222,9 @@ module.exports = function () {
|
|
|
3222
3222
|
assert.argumentIsRequired(a, 'a', Decimal, 'Decimal');
|
|
3223
3223
|
assert.argumentIsRequired(b, 'b', Decimal, 'Decimal');
|
|
3224
3224
|
|
|
3225
|
-
if (a._big.gt(b)) {
|
|
3225
|
+
if (a._big.gt(b._big)) {
|
|
3226
3226
|
return 1;
|
|
3227
|
-
} else if (a._big.lt(b)) {
|
|
3227
|
+
} else if (a._big.lt(b._big)) {
|
|
3228
3228
|
return -1;
|
|
3229
3229
|
} else {
|
|
3230
3230
|
return 0;
|