Report on git sha and npm version of build
This commit is contained in:
		@@ -128,6 +128,8 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
 | 
				
			|||||||
            embeddedUrl: window.location.href,
 | 
					            embeddedUrl: window.location.href,
 | 
				
			||||||
            networkId: state.network,
 | 
					            networkId: state.network,
 | 
				
			||||||
            providerName: state.providerState.name,
 | 
					            providerName: state.providerState.name,
 | 
				
			||||||
 | 
					            gitSha: process.env.GIT_SHA,
 | 
				
			||||||
 | 
					            npmVersion: process.env.NPM_PACKAGE_VERSION,
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        analytics.widgetOpened();
 | 
					        analytics.widgetOpened();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,8 +30,10 @@ export interface AnalyticsUserOptions {
 | 
				
			|||||||
export interface AnalyticsEventOptions {
 | 
					export interface AnalyticsEventOptions {
 | 
				
			||||||
    embeddedHost?: string;
 | 
					    embeddedHost?: string;
 | 
				
			||||||
    embeddedUrl?: string;
 | 
					    embeddedUrl?: string;
 | 
				
			||||||
    networkId: number;
 | 
					    networkId?: number;
 | 
				
			||||||
    providerName: string;
 | 
					    providerName?: string;
 | 
				
			||||||
 | 
					    gitSha?: string;
 | 
				
			||||||
 | 
					    npmVersion?: string;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
export const analytics = {
 | 
					export const analytics = {
 | 
				
			||||||
    addUserProperties: (properties: AnalyticsUserOptions): void => {
 | 
					    addUserProperties: (properties: AnalyticsUserOptions): void => {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,8 @@ module.exports = {
 | 
				
			|||||||
            'process.env': {
 | 
					            'process.env': {
 | 
				
			||||||
                NODE_ENV: JSON.stringify(process.env.NODE_ENV),
 | 
					                NODE_ENV: JSON.stringify(process.env.NODE_ENV),
 | 
				
			||||||
                GIT_SHA: JSON.stringify(GIT_SHA),
 | 
					                GIT_SHA: JSON.stringify(GIT_SHA),
 | 
				
			||||||
                ENABLE_HEAP: process.env.ENABLE_HEAP,
 | 
					                ENABLE_HEAP: JSON.stringify(process.env.ENABLE_HEAP),
 | 
				
			||||||
 | 
					                NPM_PACKAGE_VERSION: JSON.stringify(process.env.npm_package_version),
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        }),
 | 
					        }),
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user