aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-18 20:07:19 +0800
committerGitHub <noreply@github.com>2019-01-18 20:07:19 +0800
commitbf653327638149816769027b0fde2d2e44a6fed0 (patch)
tree954985c17cf11eb5321b48a377523565bbf09733 /packages/pipeline
parente6fe728bcbbab0c500fc7adee1439505282e8eca (diff)
parent3973dec9944a10c62ec6c3d15d973a00a6ea45a6 (diff)
downloaddexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.tar
dexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.tar.gz
dexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.tar.bz2
dexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.tar.lz
dexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.tar.xz
dexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.tar.zst
dexon-sol-tools-bf653327638149816769027b0fde2d2e44a6fed0.zip
Merge branch 'development' into feature/new-ganache
Diffstat (limited to 'packages/pipeline')
-rw-r--r--packages/pipeline/package.json2
-rw-r--r--packages/pipeline/src/utils/transformers/number_to_bigint.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json
index 988dd8b74..908734687 100644
--- a/packages/pipeline/package.json
+++ b/packages/pipeline/package.json
@@ -32,7 +32,7 @@
"@types/ramda": "^0.25.38",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
- "chai-bignumber": "^2.0.2",
+ "chai-bignumber": "^3.0.0",
"dirty-chai": "^2.0.1",
"mocha": "^5.2.0",
"tslint": "5.11.0",
diff --git a/packages/pipeline/src/utils/transformers/number_to_bigint.ts b/packages/pipeline/src/utils/transformers/number_to_bigint.ts
index 9736d7c18..8fbd52093 100644
--- a/packages/pipeline/src/utils/transformers/number_to_bigint.ts
+++ b/packages/pipeline/src/utils/transformers/number_to_bigint.ts
@@ -19,7 +19,7 @@ export class NumberToBigIntTransformer implements ValueTransformer {
// tslint:disable-next-line:prefer-function-over-method
public from(value: string): number {
- if (new BigNumber(value).greaterThan(Number.MAX_SAFE_INTEGER)) {
+ if (new BigNumber(value).isGreaterThan(Number.MAX_SAFE_INTEGER)) {
throw new Error(
`Attempted to convert PostgreSQL bigint value (${value}) to JavaScript number type but it is too big to safely convert`,
);