make-mp-data 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -23,9 +23,10 @@ const { makeName, md5, clone, tracker, uid } = require('ak-tools');
|
|
|
23
23
|
const NOW = dayjs().unix();
|
|
24
24
|
let VERBOSE = false;
|
|
25
25
|
let isCLI = false;
|
|
26
|
-
const { version } = require('./package.json');
|
|
27
26
|
|
|
28
|
-
const
|
|
27
|
+
const { version } = require('./package.json');
|
|
28
|
+
const os = require("os");
|
|
29
|
+
const metrics = tracker("make-mp-data", "db99eb8f67ae50949a13c27cacf57d41", os.userInfo().username);
|
|
29
30
|
function track(name, props, ...rest) {
|
|
30
31
|
if (process.env.NODE_ENV === 'test') return;
|
|
31
32
|
metrics(name, props, ...rest);
|
|
@@ -76,11 +77,10 @@ async function main(config) {
|
|
|
76
77
|
numEvents,
|
|
77
78
|
numUsers,
|
|
78
79
|
numDays,
|
|
79
|
-
events,
|
|
80
80
|
anonIds,
|
|
81
81
|
sessionIds,
|
|
82
82
|
format,
|
|
83
|
-
token,
|
|
83
|
+
targetToken: token,
|
|
84
84
|
region,
|
|
85
85
|
writeToDisk,
|
|
86
86
|
isCLI,
|
|
@@ -256,7 +256,6 @@ async function main(config) {
|
|
|
256
256
|
numEvents,
|
|
257
257
|
numUsers,
|
|
258
258
|
numDays,
|
|
259
|
-
events,
|
|
260
259
|
anonIds,
|
|
261
260
|
sessionIds,
|
|
262
261
|
format,
|
|
@@ -382,7 +381,7 @@ async function main(config) {
|
|
|
382
381
|
anonIds,
|
|
383
382
|
sessionIds,
|
|
384
383
|
format,
|
|
385
|
-
token,
|
|
384
|
+
targetToken: token,
|
|
386
385
|
region,
|
|
387
386
|
writeToDisk,
|
|
388
387
|
isCLI,
|