diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-05 08:10:56 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-05 08:10:56 +0800 |
commit | a138ee7e836a2ddb7a2ae317fe56dddaca5703ff (patch) | |
tree | 17193e4600609bc7b5d48dec815fc5be790146e0 /packages/instant/src/util/analytics.ts | |
parent | 1cc043d7a9d2c7bbdfc6b692ca30b8af8d6b8606 (diff) | |
download | dexon-0x-contracts-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.gz dexon-0x-contracts-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.zst dexon-0x-contracts-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.zip |
Add GIT_SHA and NPM_VERSION constants, report git and npm version in error
Diffstat (limited to 'packages/instant/src/util/analytics.ts')
-rw-r--r-- | packages/instant/src/util/analytics.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts index 760ec8b5c..b7cbfa82a 100644 --- a/packages/instant/src/util/analytics.ts +++ b/packages/instant/src/util/analytics.ts @@ -2,7 +2,7 @@ import { BuyQuote } from '@0x/asset-buyer'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { HEAP_ENABLED, INSTANT_DISCHARGE_TARGET } from '../constants'; +import { GIT_SHA, HEAP_ENABLED, INSTANT_DISCHARGE_TARGET, NPM_PACKAGE_VERSION } from '../constants'; import { AffiliateInfo, Asset, @@ -145,8 +145,8 @@ export const analytics = { embeddedUrl: window.location.href, networkId: network, providerName: providerState.name, - gitSha: process.env.GIT_SHA, - npmVersion: process.env.NPM_PACKAGE_VERSION, + gitSha: GIT_SHA, + npmVersion: NPM_PACKAGE_VERSION, orderSource: orderSourceName, affiliateAddress, affiliateFeePercent, |