make-mp-data 1.3.0 → 1.3.2
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 +11 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -24,10 +24,12 @@ const NOW = dayjs().unix();
|
|
|
24
24
|
let VERBOSE = false;
|
|
25
25
|
let isCLI = false;
|
|
26
26
|
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const { version } = require('./package.json');
|
|
28
|
+
const os = require("os");
|
|
29
|
+
const metrics = tracker("make-mp-data", "db99eb8f67ae50949a13c27cacf57d41", os.userInfo().username);
|
|
30
|
+
function track(name, props, ...rest) {
|
|
29
31
|
if (process.env.NODE_ENV === 'test') return;
|
|
30
|
-
metrics
|
|
32
|
+
metrics(name, props, ...rest);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
/** @typedef {import('./types.d.ts').Config} Config */
|
|
@@ -79,10 +81,11 @@ async function main(config) {
|
|
|
79
81
|
anonIds,
|
|
80
82
|
sessionIds,
|
|
81
83
|
format,
|
|
82
|
-
token,
|
|
84
|
+
targetToken: token,
|
|
83
85
|
region,
|
|
84
86
|
writeToDisk,
|
|
85
|
-
isCLI
|
|
87
|
+
isCLI,
|
|
88
|
+
version
|
|
86
89
|
});
|
|
87
90
|
log(`------------------SETUP------------------`);
|
|
88
91
|
log(`\nyour data simulation will heretofore be known as: \n\n\t${simulationName.toUpperCase()}...\n`);
|
|
@@ -380,10 +383,11 @@ async function main(config) {
|
|
|
380
383
|
anonIds,
|
|
381
384
|
sessionIds,
|
|
382
385
|
format,
|
|
383
|
-
token,
|
|
386
|
+
targetToken: token,
|
|
384
387
|
region,
|
|
385
388
|
writeToDisk,
|
|
386
|
-
isCLI
|
|
389
|
+
isCLI,
|
|
390
|
+
version
|
|
387
391
|
});
|
|
388
392
|
return {
|
|
389
393
|
import: importResults,
|