aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-29 08:36:52 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-29 08:36:52 +0800
commit76259352229881287a94cb561f82498920de5443 (patch)
tree09bd604f3d9fb3ef941618e25747b01cbae38133 /packages/instant/src/index.umd.ts
parent8b05db35104bf6853bdec81b2a1f25b16914608f (diff)
downloaddexon-sol-tools-76259352229881287a94cb561f82498920de5443.tar
dexon-sol-tools-76259352229881287a94cb561f82498920de5443.tar.gz
dexon-sol-tools-76259352229881287a94cb561f82498920de5443.tar.bz2
dexon-sol-tools-76259352229881287a94cb561f82498920de5443.tar.lz
dexon-sol-tools-76259352229881287a94cb561f82498920de5443.tar.xz
dexon-sol-tools-76259352229881287a94cb561f82498920de5443.tar.zst
dexon-sol-tools-76259352229881287a94cb561f82498920de5443.zip
feat: write version info directly to exported object
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
index 063874d36..45369d9ee 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -6,9 +6,6 @@ import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_CLASS, INJECTED_DIV_ID
import { ZeroExInstantOverlay, ZeroExInstantOverlayProps } from './index';
import { assert } from './util/assert';
import { util } from './util/util';
-import { versionUtil } from './util/version';
-
-versionUtil.writeVersionInfoToWindow();
const isInstantRendered = (): boolean => !!document.getElementById(INJECTED_DIV_ID);
@@ -113,3 +110,7 @@ export const render = (config: ZeroExInstantConfig, selector: string = DEFAULT_Z
};
window.onpopstate = onPopStateHandler;
};
+
+// Write version info to the exported object for debugging
+export const GitSha = process.env.GIT_SHA;
+export const NpmVersion = process.env.NPM_PACKAGE_VERSION;