make-mp-data 1.3.1 → 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 +5 -4
- 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);
|
|
@@ -80,7 +81,7 @@ async function main(config) {
|
|
|
80
81
|
anonIds,
|
|
81
82
|
sessionIds,
|
|
82
83
|
format,
|
|
83
|
-
token,
|
|
84
|
+
targetToken: token,
|
|
84
85
|
region,
|
|
85
86
|
writeToDisk,
|
|
86
87
|
isCLI,
|
|
@@ -382,7 +383,7 @@ async function main(config) {
|
|
|
382
383
|
anonIds,
|
|
383
384
|
sessionIds,
|
|
384
385
|
format,
|
|
385
|
-
token,
|
|
386
|
+
targetToken: token,
|
|
386
387
|
region,
|
|
387
388
|
writeToDisk,
|
|
388
389
|
isCLI,
|