-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97f4de9
commit 1cc27fc
Showing
5 changed files
with
135 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export interface IAddress { | ||
address1?: string; | ||
address2?: string; | ||
city?: string; | ||
state?: string; | ||
zip_code?: string; | ||
address1?: string | null; | ||
address2?: string | null; | ||
city?: string | null; | ||
state?: string | null; | ||
zip_code?: string | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,11 @@ var parser = _interopDefault(require('html-react-parser')); | |
var lodash = require('lodash'); | ||
|
||
/* | ||
* | ||
* decimal.js v10.0.2 | ||
* decimal.js v10.1.1 | ||
* An arbitrary-precision Decimal type for JavaScript. | ||
* https://github.com/MikeMcl/decimal.js | ||
* Copyright (c) 2018 Michael Mclaughlin <[email protected]> | ||
* Copyright (c) 2019 Michael Mclaughlin <[email protected]> | ||
* MIT Licence | ||
* https://github.com/MikeMcl/decimal.js/LICENCE | ||
* | ||
*/ | ||
|
||
|
||
|
@@ -4271,8 +4268,27 @@ function clone(obj) { | |
// Duplicate. | ||
if (v instanceof Decimal) { | ||
x.s = v.s; | ||
x.e = v.e; | ||
x.d = (v = v.d) ? v.slice() : v; | ||
|
||
if (external) { | ||
if (!v.d || v.e > Decimal.maxE) { | ||
|
||
// Infinity. | ||
x.e = NaN; | ||
x.d = null; | ||
} else if (v.e < Decimal.minE) { | ||
|
||
// Zero. | ||
x.e = 0; | ||
x.d = [0]; | ||
} else { | ||
x.e = v.e; | ||
x.d = v.d.slice(); | ||
} | ||
} else { | ||
x.e = v.e; | ||
x.d = v.d ? v.d.slice() : v.d; | ||
} | ||
|
||
return; | ||
} | ||
|
||
|
@@ -4296,8 +4312,23 @@ function clone(obj) { | |
// Fast path for small integers. | ||
if (v === ~~v && v < 1e7) { | ||
for (e = 0, i = v; i >= 10; i /= 10) e++; | ||
x.e = e; | ||
x.d = [v]; | ||
|
||
if (external) { | ||
if (e > Decimal.maxE) { | ||
x.e = NaN; | ||
x.d = null; | ||
} else if (e < Decimal.minE) { | ||
x.e = 0; | ||
x.d = [0]; | ||
} else { | ||
x.e = e; | ||
x.d = [v]; | ||
} | ||
} else { | ||
x.e = e; | ||
x.d = [v]; | ||
} | ||
|
||
return; | ||
|
||
// Infinity, NaN. | ||
|
@@ -4800,6 +4831,9 @@ function trunc(x) { | |
} | ||
|
||
|
||
P[Symbol.for('nodejs.util.inspect.custom')] = P.toString; | ||
P[Symbol.toStringTag] = 'Decimal'; | ||
|
||
// Create and configure initial Decimal constructor. | ||
var Decimal = clone(DEFAULTS); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,11 @@ import parser from 'html-react-parser'; | |
import { isString, isNumber, has, result, get, times, isBoolean, escape, startCase, sortBy, map, reject, mapValues } from 'lodash'; | ||
|
||
/* | ||
* | ||
* decimal.js v10.0.2 | ||
* decimal.js v10.1.1 | ||
* An arbitrary-precision Decimal type for JavaScript. | ||
* https://github.com/MikeMcl/decimal.js | ||
* Copyright (c) 2018 Michael Mclaughlin <[email protected]> | ||
* Copyright (c) 2019 Michael Mclaughlin <[email protected]> | ||
* MIT Licence | ||
* https://github.com/MikeMcl/decimal.js/LICENCE | ||
* | ||
*/ | ||
|
||
|
||
|
@@ -4264,8 +4261,27 @@ function clone(obj) { | |
// Duplicate. | ||
if (v instanceof Decimal) { | ||
x.s = v.s; | ||
x.e = v.e; | ||
x.d = (v = v.d) ? v.slice() : v; | ||
|
||
if (external) { | ||
if (!v.d || v.e > Decimal.maxE) { | ||
|
||
// Infinity. | ||
x.e = NaN; | ||
x.d = null; | ||
} else if (v.e < Decimal.minE) { | ||
|
||
// Zero. | ||
x.e = 0; | ||
x.d = [0]; | ||
} else { | ||
x.e = v.e; | ||
x.d = v.d.slice(); | ||
} | ||
} else { | ||
x.e = v.e; | ||
x.d = v.d ? v.d.slice() : v.d; | ||
} | ||
|
||
return; | ||
} | ||
|
||
|
@@ -4289,8 +4305,23 @@ function clone(obj) { | |
// Fast path for small integers. | ||
if (v === ~~v && v < 1e7) { | ||
for (e = 0, i = v; i >= 10; i /= 10) e++; | ||
x.e = e; | ||
x.d = [v]; | ||
|
||
if (external) { | ||
if (e > Decimal.maxE) { | ||
x.e = NaN; | ||
x.d = null; | ||
} else if (e < Decimal.minE) { | ||
x.e = 0; | ||
x.d = [0]; | ||
} else { | ||
x.e = e; | ||
x.d = [v]; | ||
} | ||
} else { | ||
x.e = e; | ||
x.d = [v]; | ||
} | ||
|
||
return; | ||
|
||
// Infinity, NaN. | ||
|
@@ -4793,6 +4824,9 @@ function trunc(x) { | |
} | ||
|
||
|
||
P[Symbol.for('nodejs.util.inspect.custom')] = P.toString; | ||
P[Symbol.toStringTag] = 'Decimal'; | ||
|
||
// Create and configure initial Decimal constructor. | ||
var Decimal = clone(DEFAULTS); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,11 @@ | |
parser = parser && parser.hasOwnProperty('default') ? parser['default'] : parser; | ||
|
||
/* | ||
* | ||
* decimal.js v10.0.2 | ||
* decimal.js v10.1.1 | ||
* An arbitrary-precision Decimal type for JavaScript. | ||
* https://github.com/MikeMcl/decimal.js | ||
* Copyright (c) 2018 Michael Mclaughlin <[email protected]> | ||
* Copyright (c) 2019 Michael Mclaughlin <[email protected]> | ||
* MIT Licence | ||
* https://github.com/MikeMcl/decimal.js/LICENCE | ||
* | ||
*/ | ||
|
||
|
||
|
@@ -4265,8 +4262,27 @@ | |
// Duplicate. | ||
if (v instanceof Decimal) { | ||
x.s = v.s; | ||
x.e = v.e; | ||
x.d = (v = v.d) ? v.slice() : v; | ||
|
||
if (external) { | ||
if (!v.d || v.e > Decimal.maxE) { | ||
|
||
// Infinity. | ||
x.e = NaN; | ||
x.d = null; | ||
} else if (v.e < Decimal.minE) { | ||
|
||
// Zero. | ||
x.e = 0; | ||
x.d = [0]; | ||
} else { | ||
x.e = v.e; | ||
x.d = v.d.slice(); | ||
} | ||
} else { | ||
x.e = v.e; | ||
x.d = v.d ? v.d.slice() : v.d; | ||
} | ||
|
||
return; | ||
} | ||
|
||
|
@@ -4290,8 +4306,23 @@ | |
// Fast path for small integers. | ||
if (v === ~~v && v < 1e7) { | ||
for (e = 0, i = v; i >= 10; i /= 10) e++; | ||
x.e = e; | ||
x.d = [v]; | ||
|
||
if (external) { | ||
if (e > Decimal.maxE) { | ||
x.e = NaN; | ||
x.d = null; | ||
} else if (e < Decimal.minE) { | ||
x.e = 0; | ||
x.d = [0]; | ||
} else { | ||
x.e = e; | ||
x.d = [v]; | ||
} | ||
} else { | ||
x.e = e; | ||
x.d = [v]; | ||
} | ||
|
||
return; | ||
|
||
// Infinity, NaN. | ||
|
@@ -4794,6 +4825,9 @@ | |
} | ||
|
||
|
||
P[Symbol.for('nodejs.util.inspect.custom')] = P.toString; | ||
P[Symbol.toStringTag] = 'Decimal'; | ||
|
||
// Create and configure initial Decimal constructor. | ||
var Decimal = clone(DEFAULTS); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters