From 5229f6c9096c58a83bec4e17f3ac5c4f47214bb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2020 12:27:18 +0000 Subject: [PATCH 1/4] Bump object-path from 0.11.4 to 0.11.5 Bumps [object-path](https://github.com/mariocasciaro/object-path) from 0.11.4 to 0.11.5. - [Release notes](https://github.com/mariocasciaro/object-path/releases) - [Commits](https://github.com/mariocasciaro/object-path/commits) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 76a0628..80afc8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2663,9 +2663,9 @@ object-keys@^1.0.11, object-keys@^1.0.12: integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== object-path@^0.11.4: - version "0.11.4" - resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.4.tgz#370ae752fbf37de3ea70a861c23bba8915691949" - integrity sha1-NwrnUvvzfePqcKhhwju6iRVpGUk= + version "0.11.5" + resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.5.tgz#d4e3cf19601a5140a55a16ad712019a9c50b577a" + integrity sha512-jgSbThcoR/s+XumvGMTMf81QVBmah+/Q7K7YduKeKVWL7N111unR2d6pZZarSk6kY/caeNxUDyxOvMWyzoU2eg== object-resolve-path@^1.1.1: version "1.1.1" From a1e8e6aa687b832773bf9a7b0e78b62635f650c1 Mon Sep 17 00:00:00 2001 From: dmarzzz Date: Thu, 10 Dec 2020 17:01:15 -0500 Subject: [PATCH 2/4] change contractCall handling --- src/transactions.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/transactions.ts b/src/transactions.ts index da67715..24c7631 100644 --- a/src/transactions.ts +++ b/src/transactions.ts @@ -32,9 +32,13 @@ export function handlePreFlightEvent( status } = preflightEvent - const contract = { - methodName: contractCall.methodName, - parameters: contractCall.params + let contract + + if (contractCall != undefined) { + contract = { + methodName: contractCall.methodName, + parameters: contractCall.params + } } blocknative.event({ @@ -42,14 +46,14 @@ export function handlePreFlightEvent( eventCode, transaction: txDetails, wallet: { balance }, - contract + contract: contractCall ? contract : undefined }) const transaction = { ...txDetails, eventCode, status, - contractCall + contractCall: contract ? contractCall : undefined } const emitterResult = emitter.emit(transaction) From 9fb65ddea39f921054af687efea1d731cdf13291 Mon Sep 17 00:00:00 2001 From: dmarzzz Date: Thu, 10 Dec 2020 18:16:14 -0500 Subject: [PATCH 3/4] change contractCall check --- src/transactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transactions.ts b/src/transactions.ts index 24c7631..02576c0 100644 --- a/src/transactions.ts +++ b/src/transactions.ts @@ -34,7 +34,7 @@ export function handlePreFlightEvent( let contract - if (contractCall != undefined) { + if (contractCall) { contract = { methodName: contractCall.methodName, parameters: contractCall.params From 503e3c57aa096dbc3bb41770ed69d63107958fc8 Mon Sep 17 00:00:00 2001 From: Dmarz Date: Wed, 16 Dec 2020 16:26:10 -0500 Subject: [PATCH 4/4] Version 1.5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d250541..f54af97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.5.0", + "version": "1.5.1", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum",